summaryrefslogtreecommitdiff
path: root/queries/vim
diff options
context:
space:
mode:
authorThomas Vigouroux <thomas.vigouroux@univ-grenoble-alpes.fr>2022-04-16 20:26:31 +0200
committerChristian Clason <christian.clason@uni-due.de>2022-04-16 20:32:35 +0200
commit386f80e4d7430f106754421a648778c055aec34a (patch)
treeaab2ee8915e4d6079cf82a6adc43cc89ff6a9e58 /queries/vim
parentbc72a865d984182742f50f89bc86c58c842f6f65 (diff)
feat(vim): highlight unknown commands
Diffstat (limited to 'queries/vim')
-rw-r--r--queries/vim/highlights.scm5
1 files changed, 4 insertions, 1 deletions
diff --git a/queries/vim/highlights.scm b/queries/vim/highlights.scm
index 64120e14..28342e3c 100644
--- a/queries/vim/highlights.scm
+++ b/queries/vim/highlights.scm
@@ -79,7 +79,10 @@
"wincmd"
] @keyword
(map_statement cmd: _ @keyword)
-(command_name) @function.macro
+[
+ (command_name)
+ (unknown_command_name)
+]@function.macro
;; Syntax command