Skip to content

Commit

Permalink
queries: Reverse precedence for git-config highlights
Browse files Browse the repository at this point in the history
  • Loading branch information
the-mikedavis committed Feb 24, 2025
1 parent 3683cd9 commit e1c26eb
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions runtime/queries/git-config/highlights.scm
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
(section_name) @markup.heading

((section_name) @keyword.directive
(#eq? @keyword.directive "include"))

Expand All @@ -6,16 +8,15 @@
(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) (subsection_name)] @string

((string) @string.special.path
(#match? @string.special.path "^(~|./|/)"))

[(string) (subsection_name)] @string

[
"["
"]"
Expand Down

0 comments on commit e1c26eb

Please sign in to comment.