From d8f6e4ed0931ccd0ee34a1d5f3faadab735ec218 Mon Sep 17 00:00:00 2001 From: Skyler Hawthorne Date: Mon, 4 Dec 2023 03:26:11 -0500 Subject: [PATCH] upgrade tree-sitter-python (#8976) supports new syntaxes from Python 3.12 --- languages.toml | 2 +- runtime/queries/python/highlights.scm | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/languages.toml b/languages.toml index f4ff483b2b11..b2c2a7ef8037 100644 --- a/languages.toml +++ b/languages.toml @@ -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" diff --git a/runtime/queries/python/highlights.scm b/runtime/queries/python/highlights.scm index 0c6a83c5403c..2666402b81c7 100644 --- a/runtime/queries/python/highlights.scm +++ b/runtime/queries/python/highlights.scm @@ -134,14 +134,17 @@ "//=" "/=" "&" + "&=" "%" "%=" "^" + "^=" "+" "->" "+=" "<" "<<" + "<<=" "<=" "<>" "=" @@ -150,8 +153,11 @@ ">" ">=" ">>" + ">>=" "|" + "|=" "~" + "@=" ] @operator [