@willbooster/tree-sitter-python 2.1.1 → 2.1.2
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 +4 -1
- package/package.json +1 -1
- package/tree-sitter-python.wasm +0 -0
- package/tree-sitter.json +1 -1
package/grammar.js
CHANGED
|
@@ -867,7 +867,10 @@ module.exports = grammar({
|
|
|
867
867
|
_not_escape_sequence: () => token.immediate('\\'),
|
|
868
868
|
|
|
869
869
|
format_specifier: ($) =>
|
|
870
|
-
seq(
|
|
870
|
+
seq(
|
|
871
|
+
token(prec(1, ':')),
|
|
872
|
+
repeat(choice(token(prec(1, /[^{}\n]+/)), alias($.interpolation, sym('format_expression'))))
|
|
873
|
+
),
|
|
871
874
|
|
|
872
875
|
type_conversion: () => /![a-z]/,
|
|
873
876
|
|
package/package.json
CHANGED
package/tree-sitter-python.wasm
CHANGED
|
Binary file
|