diff options
author | Michael Davis | 2022-01-09 14:10:20 +0000 |
---|---|---|
committer | GitHub | 2022-01-09 14:10:20 +0000 |
commit | e0a99ae51ac099e30dc1039f9ac1059bba90a806 (patch) | |
tree | cb7d6f44c637b35c9cb7dcd744b643b2a2387a7c /runtime/queries | |
parent | 97e12f5c5a26cbbc2eddffd91a2e506403d4d453 (diff) |
add tree-sitter-git-config (#1426)
* add tree-sitter-git-config
* add todo comment for improving filetype check
Diffstat (limited to 'runtime/queries')
-rw-r--r-- | runtime/queries/git-config/highlights.scm | 27 |
1 files changed, 27 insertions, 0 deletions
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 |