aboutsummaryrefslogtreecommitdiffstats
path: root/queries/lua
diff options
context:
space:
mode:
authorJanfel <33464477+Janfel@users.noreply.github.com>2022-06-24 02:02:44 +0200
committerStephan Seitz <stephan.seitz@fau.de>2022-06-24 20:27:58 +0200
commit881b932893db04afd493c8db7cfb67e2fa060137 (patch)
tree9582d9649467a8681e90afa2ee40c50a1ea8a082 /queries/lua
parenthighlights(lua): highlight only `self` as `self` (diff)
downloadnvim-treesitter-881b932893db04afd493c8db7cfb67e2fa060137.tar
nvim-treesitter-881b932893db04afd493c8db7cfb67e2fa060137.tar.gz
nvim-treesitter-881b932893db04afd493c8db7cfb67e2fa060137.tar.bz2
nvim-treesitter-881b932893db04afd493c8db7cfb67e2fa060137.tar.lz
nvim-treesitter-881b932893db04afd493c8db7cfb67e2fa060137.tar.xz
nvim-treesitter-881b932893db04afd493c8db7cfb67e2fa060137.tar.zst
nvim-treesitter-881b932893db04afd493c8db7cfb67e2fa060137.zip
highlights(lua): use `#eq?` instead of `#match?`
Co-authored-by: Santos Gallegos <stsewd@protonmail.com>
Diffstat (limited to 'queries/lua')
-rw-r--r--queries/lua/highlights.scm2
1 files changed, 1 insertions, 1 deletions
diff --git a/queries/lua/highlights.scm b/queries/lua/highlights.scm
index ef4010bb2..8c43fb7d8 100644
--- a/queries/lua/highlights.scm
+++ b/queries/lua/highlights.scm
@@ -129,7 +129,7 @@
(identifier) @variable
((identifier) @variable.builtin
- (#match? @variable.builtin "^self$"))
+ (#eq? @variable.builtin "self"))
;; Constants