aboutsummaryrefslogtreecommitdiffstats
path: root/queries/python/highlights.scm
diff options
context:
space:
mode:
Diffstat (limited to 'queries/python/highlights.scm')
-rw-r--r--queries/python/highlights.scm5
1 files changed, 4 insertions, 1 deletions
diff --git a/queries/python/highlights.scm b/queries/python/highlights.scm
index ccbb2e79d..e7b59caf6 100644
--- a/queries/python/highlights.scm
+++ b/queries/python/highlights.scm
@@ -226,8 +226,11 @@
"return"
"yield"
] @keyword.return
+(yield "from" @keyword.return)
+
+(import_from_statement "from" @include)
+"import" @include
-["from" "import"] @include
(aliased_import "as" @include)
["if" "elif" "else" "match" "case"] @conditional