tree-sitter-zsh 0.41.0 → 0.42.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/grammar.js CHANGED
@@ -1304,7 +1304,7 @@ module.exports = grammar({
1304
1304
  optional(
1305
1305
  seq(
1306
1306
  token.immediate('/'),
1307
- field('replacement', $._param_replacement)
1307
+ optional(field('replacement', $._param_replacement))
1308
1308
  )
1309
1309
  )
1310
1310
  ),
@@ -1314,7 +1314,7 @@ module.exports = grammar({
1314
1314
  optional(
1315
1315
  seq(
1316
1316
  token.immediate('/'),
1317
- field('replacement', $._param_replacement),
1317
+ optional(field('replacement', $._param_replacement)),
1318
1318
  )
1319
1319
  ),
1320
1320
  ),
@@ -1324,7 +1324,7 @@ module.exports = grammar({
1324
1324
  optional(
1325
1325
  seq(
1326
1326
  token.immediate('/'),
1327
- field('replacement', $._param_replacement),
1327
+ optional(field('replacement', $._param_replacement)),
1328
1328
  )
1329
1329
  ),
1330
1330
  )
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tree-sitter-zsh",
3
- "version": "0.41.0",
3
+ "version": "0.42.0",
4
4
  "description": "Zsh grammar for tree-sitter",
5
5
  "repository": "https://github.com/geohar/tree-sitter-zsh",
6
6
  "license": "MIT",
package/src/grammar.json CHANGED
@@ -8013,12 +8013,20 @@
8013
8013
  }
8014
8014
  },
8015
8015
  {
8016
- "type": "FIELD",
8017
- "name": "replacement",
8018
- "content": {
8019
- "type": "SYMBOL",
8020
- "name": "_param_replacement"
8021
- }
8016
+ "type": "CHOICE",
8017
+ "members": [
8018
+ {
8019
+ "type": "FIELD",
8020
+ "name": "replacement",
8021
+ "content": {
8022
+ "type": "SYMBOL",
8023
+ "name": "_param_replacement"
8024
+ }
8025
+ },
8026
+ {
8027
+ "type": "BLANK"
8028
+ }
8029
+ ]
8022
8030
  }
8023
8031
  ]
8024
8032
  },
@@ -8065,12 +8073,20 @@
8065
8073
  }
8066
8074
  },
8067
8075
  {
8068
- "type": "FIELD",
8069
- "name": "replacement",
8070
- "content": {
8071
- "type": "SYMBOL",
8072
- "name": "_param_replacement"
8073
- }
8076
+ "type": "CHOICE",
8077
+ "members": [
8078
+ {
8079
+ "type": "FIELD",
8080
+ "name": "replacement",
8081
+ "content": {
8082
+ "type": "SYMBOL",
8083
+ "name": "_param_replacement"
8084
+ }
8085
+ },
8086
+ {
8087
+ "type": "BLANK"
8088
+ }
8089
+ ]
8074
8090
  }
8075
8091
  ]
8076
8092
  },
@@ -8124,12 +8140,20 @@
8124
8140
  }
8125
8141
  },
8126
8142
  {
8127
- "type": "FIELD",
8128
- "name": "replacement",
8129
- "content": {
8130
- "type": "SYMBOL",
8131
- "name": "_param_replacement"
8132
- }
8143
+ "type": "CHOICE",
8144
+ "members": [
8145
+ {
8146
+ "type": "FIELD",
8147
+ "name": "replacement",
8148
+ "content": {
8149
+ "type": "SYMBOL",
8150
+ "name": "_param_replacement"
8151
+ }
8152
+ },
8153
+ {
8154
+ "type": "BLANK"
8155
+ }
8156
+ ]
8133
8157
  }
8134
8158
  ]
8135
8159
  },