aboutsummaryrefslogtreecommitdiffstats
path: root/queries/python/highlights.scm
diff options
context:
space:
mode:
authorObserverOfTime <chronobserver@disroot.org>2022-09-18 20:15:23 +0300
committerStephan Seitz <stephan.seitz@fau.de>2022-10-15 08:49:01 -0700
commit9b43ab819c756f01d2977cd481bdcaead6867174 (patch)
treefb9fb63ed00958b7e7e71a3634554c77848f2aab /queries/python/highlights.scm
parenttest(gitattributes): add tests for highlights (diff)
downloadnvim-treesitter-9b43ab819c756f01d2977cd481bdcaead6867174.tar
nvim-treesitter-9b43ab819c756f01d2977cd481bdcaead6867174.tar.gz
nvim-treesitter-9b43ab819c756f01d2977cd481bdcaead6867174.tar.bz2
nvim-treesitter-9b43ab819c756f01d2977cd481bdcaead6867174.tar.lz
nvim-treesitter-9b43ab819c756f01d2977cd481bdcaead6867174.tar.xz
nvim-treesitter-9b43ab819c756f01d2977cd481bdcaead6867174.tar.zst
nvim-treesitter-9b43ab819c756f01d2977cd481bdcaead6867174.zip
highlights: use @preproc where appropriate
Diffstat (limited to 'queries/python/highlights.scm')
-rw-r--r--queries/python/highlights.scm4
1 files changed, 4 insertions, 0 deletions
diff --git a/queries/python/highlights.scm b/queries/python/highlights.scm
index 6555a5dea..94fbe50b8 100644
--- a/queries/python/highlights.scm
+++ b/queries/python/highlights.scm
@@ -141,6 +141,10 @@
(float) @float
(comment) @comment @spell
+
+((module . (comment) @preproc)
+ (#match? @preproc "^#!/"))
+
(string) @string
[
(escape_sequence)