Skip to content

Commit

Permalink
Fix typos in node names
Browse files Browse the repository at this point in the history
  • Loading branch information
theHamsta committed Nov 18, 2023
1 parent 952c35e commit e658e86
Show file tree
Hide file tree
Showing 5 changed files with 122 additions and 122 deletions.
6 changes: 3 additions & 3 deletions grammar.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,9 @@ module.exports = grammar(HLSL, {
import_statement: $ => seq(optional("__exported"), "import", dotSep1($.identifier), ";"),

// TODO: fix type_hinted_declarator
_field_declaration_list_item: ($, original) => choice(original, $.property_declaration, $.subscript_declaraion),
init_declaraion: $ => seq("__init", $.parameter_list, $.compound_statement),
subscript_declaraion: $ => seq("__subscript", $.parameter_list, optional($.trailing_return_type), alias(seq("{", repeat(choice($.property_get, $.property_set)), "}"), $.compound_statement)),
_field_declaration_list_item: ($, original) => choice(original, $.property_declaration, $.subscript_declaration),
init_declaration: $ => seq("__init", $.parameter_list, $.compound_statement),
subscript_declaration: $ => seq("__subscript", $.parameter_list, optional($.trailing_return_type), alias(seq("{", repeat(choice($.property_get, $.property_set)), "}"), $.compound_statement)),
property_declaration: $ => seq("property",
choice(seq($.identifier, ":", $.type_descriptor),
seq($.type_descriptor, $.identifier)),
Expand Down
6 changes: 3 additions & 3 deletions src/grammar.json
Original file line number Diff line number Diff line change
Expand Up @@ -4504,7 +4504,7 @@
},
{
"type": "SYMBOL",
"name": "subscript_declaraion"
"name": "subscript_declaration"
}
]
},
Expand Down Expand Up @@ -15286,7 +15286,7 @@
}
]
},
"init_declaraion": {
"init_declaration": {
"type": "SEQ",
"members": [
{
Expand All @@ -15303,7 +15303,7 @@
}
]
},
"subscript_declaraion": {
"subscript_declaration": {
"type": "SEQ",
"members": [
{
Expand Down
12 changes: 6 additions & 6 deletions src/node-types.json
Original file line number Diff line number Diff line change
Expand Up @@ -2774,7 +2774,7 @@
"named": true
},
{
"type": "subscript_declaraion",
"type": "subscript_declaration",
"named": true
},
{
Expand Down Expand Up @@ -5106,7 +5106,7 @@
"named": true
},
{
"type": "subscript_declaraion",
"type": "subscript_declaration",
"named": true
},
{
Expand Down Expand Up @@ -5333,7 +5333,7 @@
"named": true
},
{
"type": "subscript_declaraion",
"type": "subscript_declaration",
"named": true
},
{
Expand Down Expand Up @@ -5533,7 +5533,7 @@
"named": true
},
{
"type": "subscript_declaraion",
"type": "subscript_declaration",
"named": true
},
{
Expand Down Expand Up @@ -5673,7 +5673,7 @@
"named": true
},
{
"type": "subscript_declaraion",
"type": "subscript_declaration",
"named": true
},
{
Expand Down Expand Up @@ -6289,7 +6289,7 @@
}
},
{
"type": "subscript_declaraion",
"type": "subscript_declaration",
"named": true,
"fields": {},
"children": {
Expand Down
Loading

0 comments on commit e658e86

Please sign in to comment.