aboutsummaryrefslogtreecommitdiff
path: root/src/z/parser/js/grammar/root.zig
diff options
context:
space:
mode:
authorNathan Reiner <nathan@nathanreiner.xyz>2026-08-05 09:08:24 +0200
committerNathan Reiner <nathan@nathanreiner.xyz>2026-08-05 09:08:24 +0200
commit0eaa2a420cb699cdb23ce9b1573560a5d9e59a31 (patch)
tree7c33f4be58e47aa6c1641b66442216352fa3f36b /src/z/parser/js/grammar/root.zig
parent356c2bc0ccb1794b5ec219079d8c5b85ddcc4c87 (diff)
add regex literals
Diffstat (limited to 'src/z/parser/js/grammar/root.zig')
-rw-r--r--src/z/parser/js/grammar/root.zig1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/z/parser/js/grammar/root.zig b/src/z/parser/js/grammar/root.zig
index 56f3990..f732b7f 100644
--- a/src/z/parser/js/grammar/root.zig
+++ b/src/z/parser/js/grammar/root.zig
@@ -31,6 +31,7 @@ pub const Grammar = union(enum) {
pub const Context = struct {
template_nesting: usize = 0,
+ regex_possible: bool = true,
};
pub inline fn tokenize(comptime lexer: *Lexer) Lexer.Error!void {