@willbooster/tree-sitter-java 3.0.2 → 3.0.3

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
@@ -72,6 +72,7 @@ module.exports = grammar({
72
72
  ],
73
73
 
74
74
  conflicts: $ => [
75
+ [$._literal, $.switch_label],
75
76
  [$.dimensions],
76
77
  [$.array_type, $._unannotated_type],
77
78
  [$.array_type, $.primary_expression],
@@ -508,6 +509,7 @@ module.exports = grammar({
508
509
  ),
509
510
 
510
511
  switch_label: $ => choice(
512
+ prec.dynamic(1, seq('case', $.null_literal, ',', 'default')),
511
513
  seq('case',
512
514
  choice(
513
515
  $.pattern,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@willbooster/tree-sitter-java",
3
- "version": "3.0.2",
3
+ "version": "3.0.3",
4
4
  "description": "Java grammar for tree-sitter",
5
5
  "keywords": [
6
6
  "incremental",
@@ -3596,6 +3596,10 @@
3596
3596
  "type": "guard",
3597
3597
  "named": true
3598
3598
  },
3599
+ {
3600
+ "type": "null_literal",
3601
+ "named": true
3602
+ },
3599
3603
  {
3600
3604
  "type": "pattern",
3601
3605
  "named": true
Binary file
package/tree-sitter.json CHANGED
@@ -14,7 +14,7 @@
14
14
  }
15
15
  ],
16
16
  "metadata": {
17
- "version": "3.0.2",
17
+ "version": "3.0.3",
18
18
  "license": "MIT",
19
19
  "description": "Java grammar for tree-sitter",
20
20
  "authors": [