Skip to content

Commit

Permalink
fix: keywords are only recognized if they are a separate token
Browse files Browse the repository at this point in the history
  • Loading branch information
r001 committed Jan 29, 2025
1 parent 44a061b commit 6bc5564
Show file tree
Hide file tree
Showing 4 changed files with 23,348 additions and 24,234 deletions.
4 changes: 2 additions & 2 deletions grammar.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ module.exports = grammar({
$.safe_nonascii
),

keyword: $ => choice(
keyword: $ => token(choice(
'Future',
'address',
'as',
Expand Down Expand Up @@ -217,7 +217,7 @@ module.exports = grammar({
'u32',
'u64',
'u8',
),
)),

decimal_digit: $ => /[0-9]/,

Expand Down
Loading

0 comments on commit 6bc5564

Please sign in to comment.