Updated parser to accept underscores in variable names
This commit is contained in:
@@ -23,7 +23,7 @@ function id(x) { return x[0]; }
|
||||
value: s => s.slice(1, -1),
|
||||
},
|
||||
name: {
|
||||
match: /[a-zA-Z]+\w*?/,
|
||||
match: /[a-zA-Z_]+/,
|
||||
type: moo.keywords({
|
||||
'keywords': ['d'],
|
||||
}),
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
value: s => s.slice(1, -1),
|
||||
},
|
||||
name: {
|
||||
match: /[a-zA-Z]+\w*?/,
|
||||
match: /[a-zA-Z_]+/,
|
||||
type: moo.keywords({
|
||||
'keywords': ['d'],
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user