diff options
| author | Stephan Seitz <stephan.seitz@fau.de> | 2022-04-01 16:50:57 +0200 |
|---|---|---|
| committer | Stephan Seitz <stephan.seitz@fau.de> | 2022-04-01 17:00:21 +0200 |
| commit | b8d1c2445a1f8799ed1320ab59d121f78150ad6d (patch) | |
| tree | 0160ddf041200dec35e3ac058ec7c021455ad2c7 /queries/python | |
| parent | highlights(fennel): fix "collect" "icollect" "accumulate" (diff) | |
| download | nvim-treesitter-b8d1c2445a1f8799ed1320ab59d121f78150ad6d.tar nvim-treesitter-b8d1c2445a1f8799ed1320ab59d121f78150ad6d.tar.gz nvim-treesitter-b8d1c2445a1f8799ed1320ab59d121f78150ad6d.tar.bz2 nvim-treesitter-b8d1c2445a1f8799ed1320ab59d121f78150ad6d.tar.lz nvim-treesitter-b8d1c2445a1f8799ed1320ab59d121f78150ad6d.tar.xz nvim-treesitter-b8d1c2445a1f8799ed1320ab59d121f78150ad6d.tar.zst nvim-treesitter-b8d1c2445a1f8799ed1320ab59d121f78150ad6d.zip | |
highlights(python): "from" in yield should be `@keyword.return`
Fixes #2712
Diffstat (limited to 'queries/python')
| -rw-r--r-- | queries/python/highlights.scm | 5 |
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 |
