@willbooster/tree-sitter-python 24.0.0 → 26.0.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
@@ -325,9 +325,7 @@ module.exports = grammar({
325
325
  'try',
326
326
  ':',
327
327
  field('body', $._suite),
328
- repeat($.except_clause),
329
- optional($.else_clause),
330
- optional($.finally_clause)
328
+ choice(seq(repeat1($.except_clause), optional($.else_clause), optional($.finally_clause)), $.finally_clause)
331
329
  ),
332
330
 
333
331
  except_clause: ($) =>
@@ -1009,7 +1007,7 @@ module.exports = grammar({
1009
1007
  /u[a-fA-F\d]{4}/,
1010
1008
  /U[a-fA-F\d]{8}/,
1011
1009
  /x[a-fA-F\d]{2}/,
1012
- /\d{1,3}/,
1010
+ /[0-7]{1,3}/,
1013
1011
  /\r\n?|\n/,
1014
1012
  /['"abfrntv\\]/,
1015
1013
  /N\{[^}]+\}/
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@willbooster/tree-sitter-python",
3
- "version": "24.0.0",
3
+ "version": "26.0.0",
4
4
  "description": "Python grammar for tree-sitter",
5
5
  "keywords": [
6
6
  "parsing",
@@ -3202,7 +3202,7 @@
3202
3202
  },
3203
3203
  "children": {
3204
3204
  "multiple": true,
3205
- "required": false,
3205
+ "required": true,
3206
3206
  "types": [
3207
3207
  {
3208
3208
  "type": "else_clause",
Binary file
package/tree-sitter.json CHANGED
@@ -13,7 +13,7 @@
13
13
  }
14
14
  ],
15
15
  "metadata": {
16
- "version": "24.0.0",
16
+ "version": "26.0.0",
17
17
  "license": "MIT",
18
18
  "description": "Python grammar for tree-sitter",
19
19
  "authors": [