Skip to content

Commit

Permalink
Revert "and nothing else"
Browse files Browse the repository at this point in the history
This reverts commit 666919f.
  • Loading branch information
seren5240 committed Mar 12, 2024
1 parent aaf9fd6 commit 2c9d061
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions resources/language-metavariables/tree-sitter-go/grammar.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ module.exports = grammar({
$._type,
$._type_identifier,
$.field_identifier,
$.package_identifier,
$._package_identifier,
$._top_level_declaration,
$._string_literal,
],
Expand Down Expand Up @@ -114,7 +114,7 @@ module.exports = grammar({

package_clause: $ => seq(
'package',
field('package', $.package_identifier)
field('package', $._package_identifier)
),

import_declaration: $ => seq(
Expand All @@ -130,7 +130,7 @@ module.exports = grammar({
optional(field('name', choice(
$.dot,
$.blank_identifier,
$.package_identifier
$._package_identifier
))),
field('path', $._string_literal)
),
Expand Down Expand Up @@ -891,7 +891,7 @@ module.exports = grammar({
},

qualified_type: $ => seq(
field('package', $.package_identifier),
field('package', $._package_identifier),
'.',
field('name', $._type_identifier)
),
Expand All @@ -905,7 +905,7 @@ module.exports = grammar({

_type_identifier: $ => alias($.identifier, $.type_identifier),
field_identifier: $ => alias($.identifier, $.field_identifier),
package_identifier: $ => alias($.identifier, $.package_identifier),
_package_identifier: $ => alias($.identifier, $.package_identifier),

_string_literal: $ => choice(
$.raw_string_literal,
Expand Down
10 changes: 5 additions & 5 deletions resources/language-metavariables/tree-sitter-go/src/grammar.json
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
"name": "package",
"content": {
"type": "SYMBOL",
"name": "package_identifier"
"name": "_package_identifier"
}
}
]
Expand Down Expand Up @@ -156,7 +156,7 @@
},
{
"type": "SYMBOL",
"name": "package_identifier"
"name": "_package_identifier"
}
]
}
Expand Down Expand Up @@ -4703,7 +4703,7 @@
"name": "package",
"content": {
"type": "SYMBOL",
"name": "package_identifier"
"name": "_package_identifier"
}
},
{
Expand Down Expand Up @@ -4797,7 +4797,7 @@
"named": true,
"value": "field_identifier"
},
"package_identifier": {
"_package_identifier": {
"type": "ALIAS",
"content": {
"type": "SYMBOL",
Expand Down Expand Up @@ -7296,7 +7296,7 @@
"_type",
"_type_identifier",
"field_identifier",
"package_identifier",
"_package_identifier",
"_top_level_declaration",
"_string_literal"
],
Expand Down

0 comments on commit 2c9d061

Please sign in to comment.