aboutsummaryrefslogtreecommitdiffstats
path: root/queries/python
diff options
context:
space:
mode:
authorSantos Gallegos <stsewd@protonmail.com>2020-12-18 12:49:56 -0500
committerStephan Seitz <stephan.lauf@yahoo.de>2020-12-18 20:33:04 +0100
commit1ad1f3b35afda469605ea8f6f0961dd4fa58e53d (patch)
tree4cbaf0811918aa0b965cddca45dfbc968d790329 /queries/python
parentAdd more ruby built-in constants (diff)
downloadnvim-treesitter-1ad1f3b35afda469605ea8f6f0961dd4fa58e53d.tar
nvim-treesitter-1ad1f3b35afda469605ea8f6f0961dd4fa58e53d.tar.gz
nvim-treesitter-1ad1f3b35afda469605ea8f6f0961dd4fa58e53d.tar.bz2
nvim-treesitter-1ad1f3b35afda469605ea8f6f0961dd4fa58e53d.tar.lz
nvim-treesitter-1ad1f3b35afda469605ea8f6f0961dd4fa58e53d.tar.xz
nvim-treesitter-1ad1f3b35afda469605ea8f6f0961dd4fa58e53d.tar.zst
nvim-treesitter-1ad1f3b35afda469605ea8f6f0961dd4fa58e53d.zip
Python: fix self highlighing
Diffstat (limited to 'queries/python')
-rw-r--r--queries/python/highlights.scm2
1 files changed, 1 insertions, 1 deletions
diff --git a/queries/python/highlights.scm b/queries/python/highlights.scm
index b98fc0cf7..23ec979f0 100644
--- a/queries/python/highlights.scm
+++ b/queries/python/highlights.scm
@@ -109,7 +109,7 @@
(none) @constant.builtin
[(true) (false)] @boolean
((identifier) @variable.builtin
- (#match? @variable.builtin "self"))
+ (#match? @variable.builtin "^self$"))
(integer) @number
(float) @float