@willbooster/tree-sitter-java 2.0.2 → 2.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/README.md CHANGED
@@ -13,7 +13,8 @@ Java grammar for [tree-sitter](https://github.com/tree-sitter/tree-sitter), fork
13
13
  to its authors and contributors. This is not an official release of that project.
14
14
 
15
15
  This fork is based on tree-sitter-java 0.23.5 and accepts `final` modifiers on switch type patterns
16
- and qualified names in record patterns. These extensions preserve the existing node types. It ships the parser as the compact tables that the
16
+ and typed record-pattern components, plus qualified names in record patterns. These extensions preserve the existing
17
+ node types. It ships the parser as the compact tables that the
17
18
  [WillBooster/tree-sitter](https://github.com/WillBooster/tree-sitter) generator emits under that fork's own ABI number
18
19
  (`0x57420001`), so the parser loads only with that runtime, version 2.0.0 or later, and not with upstream's tree-sitter.
19
20
 
package/grammar.js CHANGED
@@ -525,6 +525,7 @@ module.exports = grammar({
525
525
  record_pattern_component: $ => choice(
526
526
  $.underscore_pattern,
527
527
  seq(
528
+ optional('final'),
528
529
  $._unannotated_type,
529
530
  choice($.identifier, $._reserved_identifier),
530
531
  ),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@willbooster/tree-sitter-java",
3
- "version": "2.0.2",
3
+ "version": "2.0.3",
4
4
  "description": "Java 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.0.2",
17
+ "version": "2.0.3",
18
18
  "license": "MIT",
19
19
  "description": "Java grammar for tree-sitter",
20
20
  "authors": [