@willbooster/tree-sitter-go 3.0.0 → 3.0.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
@@ -694,6 +694,7 @@ module.exports = grammar({
694
694
 
695
695
  _generic_function: $ => choice(
696
696
  $.identifier,
697
+ alias(choice('new', 'make'), $.identifier),
697
698
  $.selector_expression,
698
699
  alias($._parenthesized_generic_function, $.parenthesized_expression),
699
700
  ),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@willbooster/tree-sitter-go",
3
- "version": "3.0.0",
3
+ "version": "3.0.2",
4
4
  "description": "Go grammar for tree-sitter",
5
5
  "keywords": [
6
6
  "incremental",
@@ -1,4 +1,6 @@
1
- ; Function calls
1
+ (type_identifier) @type
2
+ (field_identifier) @property
3
+ (identifier) @variable
2
4
 
3
5
  (call_expression
4
6
  function: (identifier) @function)
@@ -11,22 +13,12 @@
11
13
  function: (selector_expression
12
14
  field: (field_identifier) @function.method))
13
15
 
14
- ; Function definitions
15
-
16
16
  (function_declaration
17
17
  name: (identifier) @function)
18
18
 
19
19
  (method_declaration
20
20
  name: (field_identifier) @function.method)
21
21
 
22
- ; Identifiers
23
-
24
- (type_identifier) @type
25
- (field_identifier) @property
26
- (identifier) @variable
27
-
28
- ; Operators
29
-
30
22
  [
31
23
  "--"
32
24
  "-"
@@ -67,8 +59,6 @@
67
59
  "~"
68
60
  ] @operator
69
61
 
70
- ; Keywords
71
-
72
62
  [
73
63
  "break"
74
64
  "case"
@@ -97,8 +87,6 @@
97
87
  "var"
98
88
  ] @keyword
99
89
 
100
- ; Literals
101
-
102
90
  [
103
91
  (interpreted_string_literal)
104
92
  (raw_string_literal)
Binary file
package/tree-sitter.json CHANGED
@@ -14,7 +14,7 @@
14
14
  }
15
15
  ],
16
16
  "metadata": {
17
- "version": "3.0.0",
17
+ "version": "3.0.2",
18
18
  "license": "MIT",
19
19
  "description": "Go grammar for tree-sitter",
20
20
  "authors": [