From e0a99ae51ac099e30dc1039f9ac1059bba90a806 Mon Sep 17 00:00:00 2001 From: Michael Davis Date: Sun, 9 Jan 2022 08:10:20 -0600 Subject: add tree-sitter-git-config (#1426) * add tree-sitter-git-config * add todo comment for improving filetype check--- runtime/queries/git-config/highlights.scm | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 runtime/queries/git-config/highlights.scm (limited to 'runtime/queries/git-config') diff --git a/runtime/queries/git-config/highlights.scm b/runtime/queries/git-config/highlights.scm new file mode 100644 index 00000000..84767edc --- /dev/null +++ b/runtime/queries/git-config/highlights.scm @@ -0,0 +1,27 @@ +((section_name) @keyword.directive + (#eq? @keyword.directive "include")) + +((section_header + (section_name) @keyword.directive + (subsection_name)) + (#eq? @keyword.directive "includeIf")) + +(section_name) @markup.heading +(variable (name) @variable.other.member) +[(true) (false)] @constant.builtin.boolean +(integer) @constant.numeric.integer + +((string) @string.special.path + (#match? @string.special.path "^(~|./|/)")) + +[(string) (subsection_name)] @string + +[ + "[" + "]" + "\"" +] @punctuation.bracket + +"=" @punctuation.delimiter + +(comment) @comment -- cgit v1.2.3-70-g09d2