File tree Expand file tree Collapse file tree 5 files changed +42
-0
lines changed
runtime/queries/git-config Expand file tree Collapse file tree 5 files changed +42
-0
lines changed Original file line number Diff line number Diff line change 190
190
path = helix-syntax/languages/tree-sitter-git-rebase
191
191
url = https://github.com/the-mikedavis/tree-sitter-git-rebase.git
192
192
shallow = true
193
+ [submodule "helix-syntax/languages/tree-sitter-git-config "]
194
+ path = helix-syntax/languages/tree-sitter-git-config
195
+ url = https://github.com/the-mikedavis/tree-sitter-git-config.git
196
+ shallow = true
Original file line number Diff line number Diff line change 12
12
| elixir | ✓ | | | ` elixir-ls ` |
13
13
| fish | ✓ | ✓ | ✓ | |
14
14
| git-commit | ✓ | | | |
15
+ | git-config | ✓ | | | |
15
16
| git-diff | ✓ | | | |
16
17
| git-rebase | ✓ | | | |
17
18
| glsl | ✓ | | ✓ | |
Original file line number Diff line number Diff line change @@ -530,3 +530,12 @@ file-types = ["git-rebase-todo"]
530
530
injection-regex = " git-rebase"
531
531
comment-token = " #"
532
532
indent = { tab-width = 2 , unit = " " }
533
+
534
+ [[language ]]
535
+ name = " git-config"
536
+ scope = " source.gitconfig"
537
+ roots = []
538
+ file-types = [" .gitmodules" , " .gitconfig" ]
539
+ injection-regex = " git-config"
540
+ comment-token = " #"
541
+ indent = { tab-width = 4 , unit = " \t " }
Original file line number Diff line number Diff line change
1
+ ((section_name) @keyword.directive
2
+ (#eq? @keyword.directive " include" ))
3
+
4
+ ((section_header
5
+ (section_name) @keyword.directive
6
+ (subsection_name))
7
+ (#eq? @keyword.directive " includeIf" ))
8
+
9
+ (section_name) @markup.heading
10
+ (variable (name) @variable.other.member)
11
+ [(true) (false)] @constant.builtin.boolean
12
+ (integer) @constant.numeric.integer
13
+
14
+ ((string) @string.special.path
15
+ (#match? @string.special.path " ^(~|./|/)" ))
16
+
17
+ [(string) (subsection_name)] @string
18
+
19
+ [
20
+ " ["
21
+ " ]"
22
+ " \" "
23
+ ] @punctuation.bracket
24
+
25
+ " =" @punctuation.delimiter
26
+
27
+ (comment) @comment
You can’t perform that action at this time.
0 commit comments