diff options
| author | gingerBill <bill@gingerbill.org> | 2021-03-30 11:48:32 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2021-03-30 11:48:32 +0100 |
| commit | fbd01660ee8cff6d17e54e9e4b6ffd4e5011083b (patch) | |
| tree | 049ff73d4fca0779784c2db838b5d8ef446a9701 /src/parser.hpp | |
| parent | bc5e80d7d652bd6bd5148161ebbcb1e7e148f259 (diff) | |
Experiment with new grammatical parsing rule for expression level (-strict-style) idea
Diffstat (limited to 'src/parser.hpp')
| -rw-r--r-- | src/parser.hpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/parser.hpp b/src/parser.hpp index 03a37739e..47e860845 100644 --- a/src/parser.hpp +++ b/src/parser.hpp @@ -95,6 +95,7 @@ struct AstFile { // < 0: In Control Clause // NOTE(bill): Used to prevent type literals in control clauses isize expr_level; + bool allow_newline; // Only valid for expr_level == 0 bool allow_range; // NOTE(bill): Ranges are only allowed in certain cases bool allow_in_expr; // NOTE(bill): in expression are only allowed in certain cases bool in_foreign_block; |