summaryrefslogtreecommitdiffstats
path: root/queries/python
diff options
context:
space:
mode:
authorSantos Gallegos <stsewd@protonmail.com>2022-05-13 16:46:06 -0500
committerGitHub <noreply@github.com>2022-05-13 21:46:06 +0000
commitf1373051e554cc4642cda719c8023e4e8508eb2d (patch)
tree63ac107d0c18a24d43acdcba9e9e7c03d7c0f520 /queries/python
parenthighlights(php): improve highlight for attributes (diff)
downloadnvim-treesitter-f1373051e554cc4642cda719c8023e4e8508eb2d.tar
nvim-treesitter-f1373051e554cc4642cda719c8023e4e8508eb2d.tar.gz
nvim-treesitter-f1373051e554cc4642cda719c8023e4e8508eb2d.tar.bz2
nvim-treesitter-f1373051e554cc4642cda719c8023e4e8508eb2d.tar.lz
nvim-treesitter-f1373051e554cc4642cda719c8023e4e8508eb2d.tar.xz
nvim-treesitter-f1373051e554cc4642cda719c8023e4e8508eb2d.tar.zst
nvim-treesitter-f1373051e554cc4642cda719c8023e4e8508eb2d.zip
Python: highlight future import (#2936)
* Python: highlight future import * Use constant.builtin
Diffstat (limited to 'queries/python')
-rw-r--r--queries/python/highlights.scm1
1 files changed, 1 insertions, 0 deletions
diff --git a/queries/python/highlights.scm b/queries/python/highlights.scm
index 681b9e4de..18ed5162f 100644
--- a/queries/python/highlights.scm
+++ b/queries/python/highlights.scm
@@ -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