aboutsummaryrefslogtreecommitdiffstats
path: root/queries
diff options
context:
space:
mode:
authorThomas Vigouroux <tomvig38@gmail.com>2021-08-20 14:44:24 +0200
committerStephan Seitz <stephan.seitz@fau.de>2021-09-17 21:06:36 +0200
commit3c940fdfb5b2346c5d9537f774c71bca00db4e08 (patch)
tree373a1078da173e64b4569a18b5e9a6d79f3d5d4a /queries
parent[docgen] Update README.md (diff)
downloadnvim-treesitter-3c940fdfb5b2346c5d9537f774c71bca00db4e08.tar
nvim-treesitter-3c940fdfb5b2346c5d9537f774c71bca00db4e08.tar.gz
nvim-treesitter-3c940fdfb5b2346c5d9537f774c71bca00db4e08.tar.bz2
nvim-treesitter-3c940fdfb5b2346c5d9537f774c71bca00db4e08.tar.lz
nvim-treesitter-3c940fdfb5b2346c5d9537f774c71bca00db4e08.tar.xz
nvim-treesitter-3c940fdfb5b2346c5d9537f774c71bca00db4e08.tar.zst
nvim-treesitter-3c940fdfb5b2346c5d9537f774c71bca00db4e08.zip
feat(vim): support augroups
Diffstat (limited to 'queries')
-rw-r--r--queries/vim/highlights.scm6
1 files changed, 5 insertions, 1 deletions
diff --git a/queries/vim/highlights.scm b/queries/vim/highlights.scm
index f7b955837..fc7f19e5c 100644
--- a/queries/vim/highlights.scm
+++ b/queries/vim/highlights.scm
@@ -51,6 +51,7 @@
"silent"
"echo"
"autocmd"
+ "augroup"
"return"
"lua"
"ruby"
@@ -69,7 +70,10 @@
"<unique>"
] @constant.builtin
-(au_event) @constant
+[
+ (augroup_name)
+ (au_event)
+] @constant
(normal_statement (commands) @constant)
;; Literals