mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
Python: highlight future import (#2936)
* Python: highlight future import * Use constant.builtin
This commit is contained in:
parent
4d53ee5c05
commit
f1373051e5
2 changed files with 5 additions and 0 deletions
|
|
@ -224,6 +224,7 @@
|
|||
] @keyword.return
|
||||
(yield "from" @keyword.return)
|
||||
|
||||
(future_import_statement "from" @include "__future__" @constant.builtin)
|
||||
(import_from_statement "from" @include)
|
||||
"import" @include
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue