From 9c3a1366bcaa476ee058fac5b75b8f09a590d8af Mon Sep 17 00:00:00 2001 From: Christian Clason Date: Sat, 15 Oct 2022 10:54:43 +0200 Subject: [PATCH] feat(viml): update queries --- queries/vim/highlights.scm | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/queries/vim/highlights.scm b/queries/vim/highlights.scm index 37a081b93..8c86cea94 100644 --- a/queries/vim/highlights.scm +++ b/queries/vim/highlights.scm @@ -67,6 +67,8 @@ "augroup" "return" "syntax" + "filetype" + "source" "lua" "ruby" "perl" @@ -102,6 +104,16 @@ (map_statement cmd: _ @keyword) (command_name) @function.macro +;; Filetype command + +(filetype_statement [ + "detect" + "plugin" + "indent" + "on" + "off" +] @keyword) + ;; Syntax command (syntax_statement (keyword) @string) @@ -176,7 +188,6 @@ ;; Literals (string_literal) @string -(string_literal) @spell (integer_literal) @number (float_literal) @float (comment) @comment @spell