diff options
Diffstat (limited to 'src/js_lexer.zig')
-rw-r--r-- | src/js_lexer.zig | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/js_lexer.zig b/src/js_lexer.zig index cf8f4e863..a16c72c19 100644 --- a/src/js_lexer.zig +++ b/src/js_lexer.zig @@ -20,6 +20,7 @@ pub const tokenToString = tables.tokenToString; pub const jsxEntity = tables.jsxEntity; pub const StrictModeReservedWords = tables.StrictModeReservedWords; pub const PropertyModifierKeyword = tables.PropertyModifierKeyword; +pub const TypescriptStmtKeyword = tables.TypescriptStmtKeyword; // TODO: JSON const IS_JSON_FILE = false; @@ -265,7 +266,7 @@ pub const Lexer = struct { } } - pub fn expect(self: *Lexer, token: T) void { + pub fn expect(self: *Lexer, comptime token: T) void { if (self.token != token) { self.expected(token); } |