aboutsummaryrefslogtreecommitdiff
path: root/src/ir.cpp
diff options
context:
space:
mode:
authorJosh Wolfe <thejoshwolfe@gmail.com>2017-04-02 11:50:34 -0700
committerJosh Wolfe <thejoshwolfe@gmail.com>2017-04-02 11:50:34 -0700
commit4b9e782d37a334740a04190e3b3dd375f41ef3fe (patch)
treebc554e18c98fb4c1376dd409f4457e7361bceabc /src/ir.cpp
parent9968879261a8628600bfde4e438e8f8c0d2fa811 (diff)
downloadzig-4b9e782d37a334740a04190e3b3dd375f41ef3fe.tar.gz
zig-4b9e782d37a334740a04190e3b3dd375f41ef3fe.zip
fix confusion in block expression parsing
closes #292 * if, try, while, for, comptime, defer are "greedy" with {} blocks, meaning if their bodies are blocks, then no suffix operator is allowed after the block. The {} block gets "built into" the containing statement, like the body of a switch statement. * the Expression syntactic element is no longer "greedy" with {} blocks, meaning it's possible to have suffix operators after {} blocks without needing the {} block to be an rhs operand first.
Diffstat (limited to 'src/ir.cpp')
0 files changed, 0 insertions, 0 deletions