Skip to content

Commit

Permalink
Merge pull request #57 from cfroystad/master
Browse files Browse the repository at this point in the history
Fixes #49: Error when parsing constants
  • Loading branch information
patrickt committed Apr 5, 2021
2 parents c0e8713 + 1f8607a commit 0d63eaf
Show file tree
Hide file tree
Showing 6 changed files with 28,062 additions and 27,882 deletions.
1 change: 1 addition & 0 deletions grammar.js
Original file line number Diff line number Diff line change
Expand Up @@ -970,6 +970,7 @@ module.exports = grammar({
$.class_constant_access_expression,
$.parenthesized_expression,
$.array_creation_expression,
$.qualified_name,
$._string
)),

Expand Down
4 changes: 4 additions & 0 deletions src/grammar.json
Original file line number Diff line number Diff line change
Expand Up @@ -4944,6 +4944,10 @@
"type": "SYMBOL",
"name": "array_creation_expression"
},
{
"type": "SYMBOL",
"name": "qualified_name"
},
{
"type": "SYMBOL",
"name": "_string"
Expand Down
12 changes: 12 additions & 0 deletions src/node-types.json
Original file line number Diff line number Diff line change
Expand Up @@ -1904,6 +1904,10 @@
"type": "parenthesized_expression",
"named": true
},
{
"type": "qualified_name",
"named": true
},
{
"type": "scoped_call_expression",
"named": true
Expand Down Expand Up @@ -2004,6 +2008,10 @@
"type": "parenthesized_expression",
"named": true
},
{
"type": "qualified_name",
"named": true
},
{
"type": "scoped_call_expression",
"named": true
Expand Down Expand Up @@ -2883,6 +2891,10 @@
"type": "parenthesized_expression",
"named": true
},
{
"type": "qualified_name",
"named": true
},
{
"type": "scoped_call_expression",
"named": true
Expand Down
Loading

0 comments on commit 0d63eaf

Please sign in to comment.