From b8d1c2445a1f8799ed1320ab59d121f78150ad6d Mon Sep 17 00:00:00 2001 From: Stephan Seitz Date: Fri, 1 Apr 2022 16:50:57 +0200 Subject: highlights(python): "from" in yield should be `@keyword.return` Fixes #2712 --- queries/python/highlights.scm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'queries/python') 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 -- cgit v1.2.3-70-g09d2