Skip to content

Commit

Permalink
upgrade tree-sitter-python (helix-editor#8976)
Browse files Browse the repository at this point in the history
supports new syntaxes from Python 3.12
  • Loading branch information
dead10ck authored and dgkf committed Jan 30, 2024
1 parent caca93e commit d8f6e4e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion languages.toml
Original file line number Diff line number Diff line change
Expand Up @@ -697,7 +697,7 @@ indent = { tab-width = 4, unit = " " }

[[grammar]]
name = "python"
source = { git = "https://github.com/tree-sitter/tree-sitter-python", rev = "de221eccf9a221f5b85474a553474a69b4b5784d" }
source = { git = "https://github.com/tree-sitter/tree-sitter-python", rev = "4bfdd9033a2225cc95032ce77066b7aeca9e2efc" }

[[language]]
name = "nickel"
Expand Down
6 changes: 6 additions & 0 deletions runtime/queries/python/highlights.scm
Original file line number Diff line number Diff line change
Expand Up @@ -134,14 +134,17 @@
"//="
"/="
"&"
"&="
"%"
"%="
"^"
"^="
"+"
"->"
"+="
"<"
"<<"
"<<="
"<="
"<>"
"="
Expand All @@ -150,8 +153,11 @@
">"
">="
">>"
">>="
"|"
"|="
"~"
"@="
] @operator

[
Expand Down

0 comments on commit d8f6e4e

Please sign in to comment.