tree-sitter-batch 0.7.0 → 0.7.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
@@ -36,11 +36,11 @@ export default grammar({
36
36
  ),
37
37
  )),
38
38
  arithmetic_assignment: ($) => seq(
39
- optional(/[ \t]+/), alias(token(prec(10, ci('/a'))), $.set_option),
39
+ optional(/[ \t]+/), alias(ci('/a'), $.set_option),
40
40
  optional(/[ \t]+/), $.arithmetic_expression,
41
41
  ),
42
42
  prompt_assignment: ($) => seq(
43
- optional(/[ \t]+/), alias(token(prec(10, ci('/p'))), $.set_option),
43
+ optional(/[ \t]+/), alias(ci('/p'), $.set_option),
44
44
  optional(/[ \t]+/),
45
45
  alias(/[a-zA-Z_][a-zA-Z0-9_()\[\]]*/, $.variable_name), '=', optional($.assignment_value),
46
46
  ),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tree-sitter-batch",
3
- "version": "0.7.0",
3
+ "version": "0.7.2",
4
4
  "description": "A Windows Batch/CMD grammar for tree-sitter",
5
5
  "type": "module",
6
6
  "repository": {
package/src/grammar.json CHANGED
@@ -385,15 +385,8 @@
385
385
  {
386
386
  "type": "ALIAS",
387
387
  "content": {
388
- "type": "TOKEN",
389
- "content": {
390
- "type": "PREC",
391
- "value": 10,
392
- "content": {
393
- "type": "PATTERN",
394
- "value": "\\/[aA]"
395
- }
396
- }
388
+ "type": "PATTERN",
389
+ "value": "\\/[aA]"
397
390
  },
398
391
  "named": true,
399
392
  "value": "set_option"
@@ -434,15 +427,8 @@
434
427
  {
435
428
  "type": "ALIAS",
436
429
  "content": {
437
- "type": "TOKEN",
438
- "content": {
439
- "type": "PREC",
440
- "value": 10,
441
- "content": {
442
- "type": "PATTERN",
443
- "value": "\\/[pP]"
444
- }
445
- }
430
+ "type": "PATTERN",
431
+ "value": "\\/[pP]"
446
432
  },
447
433
  "named": true,
448
434
  "value": "set_option"