We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
{{ is used to write a literal "{" in an f-string, but it's not parsed correctly if it's at the end of the string
{{
f"{my_var} {{"
module [0, 0] - [1, 0] ERROR [0, 0] - [0, 14] interpolation [0, 2] - [0, 10] identifier [0, 3] - [0, 9]
Adding a space after the {{ causes it to parses correctly:
f"{my_var} {{ "
module [0, 0] - [1, 0] expression_statement [0, 0] - [0, 15] string [0, 0] - [0, 15] interpolation [0, 2] - [0, 10] identifier [0, 3] - [0, 9]
The text was updated successfully, but these errors were encountered:
These are the Python bindings. Are you looking for the Python grammar? https://github.com/tree-sitter/tree-sitter-python
Sorry, something went wrong.
sorry tree-sitter/tree-sitter-python#122
No branches or pull requests
{{
is used to write a literal "{" in an f-string, but it's not parsed correctly if it's at the end of the stringf"{my_var} {{"
Adding a space after the
{{
causes it to parses correctly:f"{my_var} {{ "
The text was updated successfully, but these errors were encountered: