Skip to content

Commit

Permalink
fix(identifier): fix identififer
Browse files Browse the repository at this point in the history
Signed-off-by: loongtao.zhang <[email protected]>
  • Loading branch information
cathaysia committed Aug 16, 2024
1 parent 9aeaf3a commit 8e8d36c
Show file tree
Hide file tree
Showing 4 changed files with 4,644 additions and 4,672 deletions.
2 changes: 1 addition & 1 deletion grammar.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ module.exports = grammar({
),
// table 21

identifier: _ => /[a-zA-Z][\w_]*/, // 7.2.3
identifier: _ => /[a-zA-Z_][\w_]*/, // 7.2.3
comment: $ =>
choice(
seq('//', /(\\+(.|\r?\n)|[^\\\n])*/),
Expand Down
2 changes: 1 addition & 1 deletion src/grammar.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 8e8d36c

Please sign in to comment.