Skip to content

Commit

Permalink
parser: parse NO-ERROR for function calls
Browse files Browse the repository at this point in the history
  • Loading branch information
jkbz64 committed Apr 12, 2024
1 parent bb23a2b commit c0c68d3
Show file tree
Hide file tree
Showing 4 changed files with 89,951 additions and 88,767 deletions.
3 changes: 2 additions & 1 deletion grammar.js
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,8 @@ module.exports = grammar({
"function",
choice($.identifier, prec.right(2, $.object_access))
),
seq("(", optional($._function_call_arguments), ")")
seq("(", optional($._function_call_arguments), ")"),
optional(kw("NO-ERROR"))
)
),

Expand Down
24 changes: 24 additions & 0 deletions src/grammar.json
Original file line number Diff line number Diff line change
Expand Up @@ -2492,6 +2492,30 @@
"value": ")"
}
]
},
{
"type": "CHOICE",
"members": [
{
"type": "ALIAS",
"content": {
"type": "TOKEN",
"content": {
"type": "PREC",
"value": 1,
"content": {
"type": "PATTERN",
"value": "[nN][oO][--][eE][rR][rR][oO][rR]"
}
}
},
"named": false,
"value": "NO-ERROR"
},
{
"type": "BLANK"
}
]
}
]
}
Expand Down
Loading

0 comments on commit c0c68d3

Please sign in to comment.