@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 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@willbooster/tree-sitter-go",
3
- "version": "2.1.0",
3
+ "version": "2.1.2",
4
4
  "description": "Go grammar for tree-sitter",
5
5
  "keywords": [
6
6
  "incremental",
Binary file
package/tree-sitter.json CHANGED
@@ -14,7 +14,7 @@
14
14
  }
15
15
  ],
16
16
  "metadata": {
17
- "version": "2.1.0",
17
+ "version": "2.1.2",
18
18
  "license": "MIT",
19
19
  "description": "Go grammar for tree-sitter",
20
20
  "authors": [