I don’t think Scala (the spec as well as us users) can handle more than one punctuation inference, but there might be some tricks you could try.
You have to get past the parser, so you need a legal “shape” of Scala. For example,
res1: List[Int] = List(3)
The above is still legal Scala. The curly brace gets parsed into
Block datatype in the compiler. It might be possible to define a macro that takes vararg
Int* as argument, and when
Block is passed, expands each statements as an argument.
I haven’t tried it so not sure if it’s going to all work out, but I can see how it might be useful for some DSLs like build.sbt.