Skip to content

Commit a8ccbe4

Browse files
authored
Merge pull request stadelmanma#126 from stadelmanma/allow-dollar-identifiers
Allow dollar-sign in identifiers
2 parents 5fc069e + 896267c commit a8ccbe4

File tree

4 files changed

+2061
-1020
lines changed

4 files changed

+2061
-1020
lines changed

grammar.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2052,7 +2052,7 @@ module.exports = grammar({
20522052
// correctly as either a keyword or a plain identifier, we must
20532053
// add the keywords here -- and possibly in `conflicts` too.
20542054
identifier: $ => choice(
2055-
/[a-zA-Z_]\w*/,
2055+
/[a-zA-Z_$][\w$]*/,
20562056
caseInsensitive('allocatable'),
20572057
caseInsensitive('automatic'),
20582058
caseInsensitive('block'),

src/grammar.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19514,7 +19514,7 @@
1951419514
"members": [
1951519515
{
1951619516
"type": "PATTERN",
19517-
"value": "[a-zA-Z_]\\w*"
19517+
"value": "[a-zA-Z_$][\\w$]*"
1951819518
},
1951919519
{
1952019520
"type": "ALIAS",

0 commit comments

Comments
 (0)