From fbd01660ee8cff6d17e54e9e4b6ffd4e5011083b Mon Sep 17 00:00:00 2001 From: gingerBill Date: Tue, 30 Mar 2021 11:48:32 +0100 Subject: Experiment with new grammatical parsing rule for expression level (-strict-style) idea --- src/parser.hpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/parser.hpp') 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; -- cgit v1.2.3