Skip to content

Commit

Permalink
#30 handle unicode symbols has identifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
TravonteD committed Sep 8, 2021
1 parent e10b043 commit 06181ad
Show file tree
Hide file tree
Showing 4 changed files with 475 additions and 351 deletions.
2 changes: 1 addition & 1 deletion grammar.js
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ module.exports = grammar({
'table'
),

identifier: $ => /([_\?A-Za-z<>][_\?\-A-Za-z0-9<>#\!]*)|(\$([1-9])?)/,
identifier: $ => /([_\?A-Za-z<>\p{Sm}][_\?\-A-Za-z0-9<>#\p{Sm}\!]*)|(\$([1-9])?)/,

number: $ => /([-])?\d+(\.\d+)?/,

Expand Down
2 changes: 1 addition & 1 deletion src/grammar.json
Original file line number Diff line number Diff line change
Expand Up @@ -1586,7 +1586,7 @@
},
"identifier": {
"type": "PATTERN",
"value": "([_\\?A-Za-z<>][_\\?\\-A-Za-z0-9<>#\\!]*)|(\\$([1-9])?)"
"value": "([_\\?A-Za-z<>\\p{Sm}][_\\?\\-A-Za-z0-9<>#\\p{Sm}\\!]*)|(\\$([1-9])?)"
},
"number": {
"type": "PATTERN",
Expand Down
Loading

0 comments on commit 06181ad

Please sign in to comment.