highlights(python): "from" in yield should be @keyword.return

Fixes #2712
This commit is contained in:
Stephan Seitz 2022-04-01 16:50:57 +02:00
parent 4b9aec69bd
commit b8d1c2445a
2 changed files with 11 additions and 1 deletions

View file

@ -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