@konomanoasa/tree-sitter-posix-awk 0.14.0 → 0.15.0

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/Cargo.toml CHANGED
@@ -9,7 +9,7 @@ license = "MIT"
9
9
  name = "tree-sitter-posix-awk"
10
10
  readme = "README.md"
11
11
  repository = "https://github.com/konomanoasa/tree-sitter-posix-awk"
12
- version = "0.14.0"
12
+ version = "0.15.0"
13
13
 
14
14
  build = "bindings/rust/build.rs"
15
15
  links = "tree-sitter-posix-awk"
package/grammar.js CHANGED
@@ -796,7 +796,8 @@ export default grammar({
796
796
  ")",
797
797
  ),
798
798
 
799
- param_list: ($) => seq($.name, repeat(seq(",", $.name))),
799
+ param_list: ($) =>
800
+ seq($.name, repeat(seq(",", afterOptionalNewline($, $.name)))),
800
801
 
801
802
  pattern: ($) => choice($.normal_pattern, $.special_pattern),
802
803
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@konomanoasa/tree-sitter-posix-awk",
3
- "version": "0.14.0",
3
+ "version": "0.15.0",
4
4
  "type": "module",
5
5
  "description": "Tree-sitter grammar for POSIX awk.",
6
6
  "license": "MIT",
package/src/grammar.json CHANGED
@@ -446,8 +446,25 @@
446
446
  "value": ","
447
447
  },
448
448
  {
449
- "type": "SYMBOL",
450
- "name": "name"
449
+ "type": "SEQ",
450
+ "members": [
451
+ {
452
+ "type": "CHOICE",
453
+ "members": [
454
+ {
455
+ "type": "SYMBOL",
456
+ "name": "newline_opt"
457
+ },
458
+ {
459
+ "type": "BLANK"
460
+ }
461
+ ]
462
+ },
463
+ {
464
+ "type": "SYMBOL",
465
+ "name": "name"
466
+ }
467
+ ]
451
468
  }
452
469
  ]
453
470
  }
@@ -1439,6 +1439,10 @@
1439
1439
  {
1440
1440
  "type": "name",
1441
1441
  "named": true
1442
+ },
1443
+ {
1444
+ "type": "newline_opt",
1445
+ "named": true
1442
1446
  }
1443
1447
  ]
1444
1448
  }