diff options
| author | Josh Wolfe <thejoshwolfe@gmail.com> | 2017-04-02 11:50:34 -0700 |
|---|---|---|
| committer | Josh Wolfe <thejoshwolfe@gmail.com> | 2017-04-02 11:50:34 -0700 |
| commit | 4b9e782d37a334740a04190e3b3dd375f41ef3fe (patch) | |
| tree | bc554e18c98fb4c1376dd409f4457e7361bceabc /std/debug.zig | |
| parent | 9968879261a8628600bfde4e438e8f8c0d2fa811 (diff) | |
| download | zig-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 'std/debug.zig')
0 files changed, 0 insertions, 0 deletions
