aboutsummaryrefslogtreecommitdiff
path: root/src/parser.hpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2018-06-11 18:02:04 +0100
committergingerBill <bill@gingerbill.org>2018-06-11 18:02:04 +0100
commit881f667558bf78490a502cffd69c921f54772b91 (patch)
treec6582f2bb6ebe92058dda44418362f2ec6f47b57 /src/parser.hpp
parent0a99595efe0cbe8fd02d5628420d2692e1640709 (diff)
Change how `context <-` is parsed to remove the need for a look-ahead
Diffstat (limited to 'src/parser.hpp')
-rw-r--r--src/parser.hpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/parser.hpp b/src/parser.hpp
index 1cb06524f..c7c45ccac 100644
--- a/src/parser.hpp
+++ b/src/parser.hpp
@@ -167,9 +167,10 @@ enum FieldFlag {
};
enum StmtAllowFlag {
- StmtAllowFlag_None = 0,
- StmtAllowFlag_In = 1<<0,
- StmtAllowFlag_Label = 1<<1,
+ StmtAllowFlag_None = 0,
+ StmtAllowFlag_In = 1<<0,
+ StmtAllowFlag_Label = 1<<1,
+ StmtAllowFlag_Context = 1<<2,
};
#define AST_NODE_KINDS \