@willbooster/tree-sitter-go 2.1.0 → 2.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/grammar.js +2 -3
- package/package.json +1 -1
- package/tree-sitter-go.wasm +0 -0
- package/tree-sitter.json +1 -1
package/grammar.js
CHANGED
|
@@ -109,7 +109,6 @@ module.exports = grammar({
|
|
|
109
109
|
|
|
110
110
|
supertypes: $ => [
|
|
111
111
|
$._expression,
|
|
112
|
-
$._type,
|
|
113
112
|
$._simple_type,
|
|
114
113
|
$._statement,
|
|
115
114
|
$._simple_statement,
|
|
@@ -711,8 +710,8 @@ module.exports = grammar({
|
|
|
711
710
|
special_argument_list: $ => seq(
|
|
712
711
|
'(',
|
|
713
712
|
optional(seq(
|
|
714
|
-
$._type,
|
|
715
|
-
repeat(seq(',', $._expression)),
|
|
713
|
+
choice(prec.dynamic(PREC.primary, $._type), $._expression, $.variadic_argument),
|
|
714
|
+
repeat(seq(',', choice($._expression, $.variadic_argument))),
|
|
716
715
|
optional(','),
|
|
717
716
|
)),
|
|
718
717
|
')',
|
package/package.json
CHANGED
package/tree-sitter-go.wasm
CHANGED
|
Binary file
|