@willbooster/tree-sitter-python 6.0.0 → 6.0.1

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
@@ -90,12 +90,14 @@ module.exports = grammar({
90
90
  // if no dedent is expected.
91
91
  sym('comment'),
92
92
 
93
- // Allow the external scanner to check for the validity of closing brackets
94
- // so that it can avoid returning dedent tokens between brackets.
95
- ']',
93
+ '(',
96
94
  ')',
95
+ '[',
96
+ ']',
97
+ '{',
97
98
  '}',
98
99
  'except',
100
+ sym('_format_specifier_content'),
99
101
  ],
100
102
 
101
103
  inline: ($) => [
@@ -977,7 +979,7 @@ module.exports = grammar({
977
979
  format_specifier: ($) =>
978
980
  seq(
979
981
  token(prec(1, ':')),
980
- repeat(choice(token(prec(1, /[^{}\n]+/)), alias($.interpolation, sym('format_expression'))))
982
+ repeat(choice(sym('_format_specifier_content'), alias($.interpolation, sym('format_expression'))))
981
983
  ),
982
984
 
983
985
  type_conversion: () => /![a-z]/,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@willbooster/tree-sitter-python",
3
- "version": "6.0.0",
3
+ "version": "6.0.1",
4
4
  "description": "Python grammar for tree-sitter",
5
5
  "keywords": [
6
6
  "incremental",
Binary file
package/tree-sitter.json CHANGED
@@ -19,7 +19,7 @@
19
19
  }
20
20
  ],
21
21
  "metadata": {
22
- "version": "6.0.0",
22
+ "version": "6.0.1",
23
23
  "license": "MIT",
24
24
  "description": "Python grammar for tree-sitter",
25
25
  "authors": [