@willbooster/tree-sitter-zig 2.0.0 → 2.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@willbooster/tree-sitter-zig",
3
- "version": "2.0.0",
3
+ "version": "2.0.2",
4
4
  "description": "Zig grammar for tree-sitter",
5
5
  "keywords": [
6
6
  "incremental",
@@ -13,7 +13,7 @@
13
13
  type: (identifier) @type)
14
14
 
15
15
  ((identifier) @type
16
- (#lua-match? @type "^[A-Z_][a-zA-Z0-9_]*"))
16
+ (#match? @type "^[A-Z_][a-zA-Z0-9_]*"))
17
17
 
18
18
  (variable_declaration
19
19
  (identifier) @type
@@ -33,7 +33,7 @@
33
33
  ; Constants
34
34
 
35
35
  ((identifier) @constant
36
- (#lua-match? @constant "^[A-Z][A-Z_0-9]+$"))
36
+ (#match? @constant "^[A-Z][A-Z_0-9]+$"))
37
37
 
38
38
  [
39
39
  "null"
@@ -74,6 +74,10 @@
74
74
  .
75
75
  member: (identifier) @variable.member)))
76
76
 
77
+ (parameter
78
+ type: (field_expression
79
+ member: (identifier) @type))
80
+
77
81
  ; Functions
78
82
 
79
83
  (builtin_identifier) @function.builtin
@@ -286,4 +290,4 @@
286
290
  (comment) @comment @spell
287
291
 
288
292
  ((comment) @comment.documentation
289
- (#lua-match? @comment.documentation "^//!"))
293
+ (#match? @comment.documentation "^//!"))
Binary file
package/tree-sitter.json CHANGED
@@ -15,7 +15,7 @@
15
15
  }
16
16
  ],
17
17
  "metadata": {
18
- "version": "2.0.0",
18
+ "version": "2.0.2",
19
19
  "license": "MIT",
20
20
  "description": "Zig grammar for tree-sitter",
21
21
  "authors": [