diff options
author | 2022-01-28 23:56:45 -0800 | |
---|---|---|
committer | 2022-01-28 23:56:45 -0800 | |
commit | bf4943eec152ca1617db9c004f19fa5c27aa4b82 (patch) | |
tree | a59d793b36a9c28c2ccf7f74c61f48a5502bbcc1 /src/js_lexer.zig | |
parent | 97d17904d3f6b850e8973b84d6b4ad5e22afb941 (diff) | |
download | bun-bf4943eec152ca1617db9c004f19fa5c27aa4b82.tar.gz bun-bf4943eec152ca1617db9c004f19fa5c27aa4b82.tar.zst bun-bf4943eec152ca1617db9c004f19fa5c27aa4b82.zip |
Implement TOML parser
No Date/DateTime/Time/Local Time yet
Diffstat (limited to 'src/js_lexer.zig')
-rw-r--r-- | src/js_lexer.zig | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/js_lexer.zig b/src/js_lexer.zig index 5191d7095..45c8dd982 100644 --- a/src/js_lexer.zig +++ b/src/js_lexer.zig @@ -1574,6 +1574,7 @@ pub fn NewLexer(comptime json_options: JSONOptions) type { // this code is so hot that if you save lexer.raw() into a temporary variable // it shows up in profiling lexer.identifier = lexer.raw(); + // switching to strings.ExactSizeMatcher doesn't seem to have an impact here lexer.token = Keywords.get(lexer.identifier) orelse T.t_identifier; } else { const scan_result = try lexer.scanIdentifierWithEscapes(.normal); |