Add supertypes

This commit is contained in:
Max Brunsfeld 2020-05-14 15:28:42 -07:00
parent 60f2783804
commit 7478c62b24
3 changed files with 199 additions and 1915 deletions

View File

@ -47,6 +47,12 @@ module.exports = grammar({
/\\?\s/,
],
supertypes: $ => [
$._statement,
$._expression,
$._primary_expression,
],
word: $ => $.word,
rules: {

6
src/grammar.json vendored
View File

@ -2505,6 +2505,10 @@
"_simple_variable_name",
"_special_variable_name"
],
"supertypes": []
"supertypes": [
"_statement",
"_expression",
"_primary_expression"
]
}

2102
src/node-types.json vendored

File diff suppressed because it is too large Load Diff