diff --git a/extension.toml b/extension.toml index 795ee14..e0de762 100644 --- a/extension.toml +++ b/extension.toml @@ -11,7 +11,7 @@ repository = "https://github.com/d1y/git_firefly" [grammars.git_config] repository = "https://github.com/the-mikedavis/tree-sitter-git-config" -commit = "9c2a1b7894e6d9eedfe99805b829b4ecd871375e" +commit = "0fbc9f99d5a28865f9de8427fb0672d66f9d83a5" [grammars.git_rebase] repository = "https://github.com/the-mikedavis/tree-sitter-git-rebase" diff --git a/languages/gitconfig/highlights.scm b/languages/gitconfig/highlights.scm index a3a4a03..3471d3d 100644 --- a/languages/gitconfig/highlights.scm +++ b/languages/gitconfig/highlights.scm @@ -1,3 +1,5 @@ +(section_name) @tag + ((section_name) @function.builtin (#eq? @function.builtin "include")) @@ -6,8 +8,6 @@ (subsection_name)) (#eq? @function.builtin "includeIf")) -(section_name) @tag - (variable (name) @property) @@ -18,14 +18,14 @@ (integer) @number -((string) @string.special.path - (#match? @string.special.path "^(~|./|/)")) - [ (string) (subsection_name) ] @string +((string) @string.special.path + (#match? @string.special.path "^(~|./|/)")) + [ "[" "]"