@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 +2 -0
- package/package.json +1 -1
- package/src/node-types.json +4 -0
- package/tree-sitter-java.wasm +0 -0
- package/tree-sitter.json +1 -1
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
package/src/node-types.json
CHANGED
package/tree-sitter-java.wasm
CHANGED
|
Binary file
|