diff options
| author | Éric NICOLAS <ccjmne@gmail.com> | 2025-05-31 02:26:17 +0200 |
|---|---|---|
| committer | Christian Clason <ch.clason+github@icloud.com> | 2025-05-31 10:12:23 +0200 |
| commit | 9a51f860c123ee072c08ff3e093d480d32699390 (patch) | |
| tree | 46f8b3724cbdf261226ffcaabe2114d0109ba43a /runtime/queries/git_config | |
| parent | fix(check-queries): only show timings for existing queries (diff) | |
| download | nvim-treesitter-9a51f860c123ee072c08ff3e093d480d32699390.tar nvim-treesitter-9a51f860c123ee072c08ff3e093d480d32699390.tar.gz nvim-treesitter-9a51f860c123ee072c08ff3e093d480d32699390.tar.bz2 nvim-treesitter-9a51f860c123ee072c08ff3e093d480d32699390.tar.lz nvim-treesitter-9a51f860c123ee072c08ff3e093d480d32699390.tar.xz nvim-treesitter-9a51f860c123ee072c08ff3e093d480d32699390.tar.zst nvim-treesitter-9a51f860c123ee072c08ff3e093d480d32699390.zip | |
fix(git_config): match lowercase Git config vars
Git config's sections, variable names, and (sometimes) subsections are
case-insensitive. This commit proposes to match the full lowercase
variants in addition to the non-normalised, lowerCamelCase ones.
See `git help config`
Diffstat (limited to 'runtime/queries/git_config')
| -rw-r--r-- | runtime/queries/git_config/highlights.scm | 4 | ||||
| -rw-r--r-- | runtime/queries/git_config/injections.scm | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/runtime/queries/git_config/highlights.scm b/runtime/queries/git_config/highlights.scm index 6b37e9090..557ac60ec 100644 --- a/runtime/queries/git_config/highlights.scm +++ b/runtime/queries/git_config/highlights.scm @@ -7,7 +7,7 @@ ((section_header (section_name) @keyword.import (subsection_name)) - (#eq? @keyword.import "includeIf")) + (#any-of? @keyword.import "includeIf" "includeif")) (variable (name) @property) @@ -47,7 +47,7 @@ ((variable (name) @_name value: (string) @string.special.url) - (#eq? @_name "insteadOf")) + (#any-of? @_name "insteadOf" "insteadof")) ; Punctuation [ diff --git a/runtime/queries/git_config/injections.scm b/runtime/queries/git_config/injections.scm index 7bda6979c..8b4d69282 100644 --- a/runtime/queries/git_config/injections.scm +++ b/runtime/queries/git_config/injections.scm @@ -4,7 +4,7 @@ ((variable (name) @_name value: (string) @injection.content) - (#any-of? @_name "cmd" "command" "textconv" "sendmailCmd") + (#any-of? @_name "cmd" "command" "textconv" "sendmailCmd" "sendmailcmd") (#set! injection.language "bash")) (section @@ -29,7 +29,7 @@ (name) @_name value: (string) @injection.content) (#eq? @_interactive "interactive") - (#eq? @_name "diffFilter") + (#any-of? @_name "diffFilter" "difffilter") (#set! injection.language "bash")) ; https://github.com/git-lfs/git-lfs |
