@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 +6 -4
- package/package.json +1 -1
- package/tree-sitter-python.wasm +0 -0
- package/tree-sitter.json +1 -1
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
|
-
|
|
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(
|
|
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
package/tree-sitter-python.wasm
CHANGED
|
Binary file
|