mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-14 17:30:08 -04:00
feat!: drop modules, general refactor and cleanup
This commit is contained in:
parent
310f0925ec
commit
692b051b09
1247 changed files with 6096 additions and 9074 deletions
69
runtime/queries/git_config/injections.scm
Normal file
69
runtime/queries/git_config/injections.scm
Normal file
|
|
@ -0,0 +1,69 @@
|
|||
((comment) @injection.content
|
||||
(#set! injection.language "comment"))
|
||||
|
||||
((variable
|
||||
(name) @_name
|
||||
value: (string) @injection.content)
|
||||
(#any-of? @_name "cmd" "command" "textconv" "sendmailCmd")
|
||||
(#set! injection.language "bash"))
|
||||
|
||||
(section
|
||||
(variable
|
||||
(name) @_name
|
||||
value: (string) @injection.content)
|
||||
(#eq? @_name "tool")
|
||||
(#set! injection.language "bash"))
|
||||
|
||||
(section
|
||||
(section_header
|
||||
(section_name) @_pager)
|
||||
(variable
|
||||
value: (string) @injection.content)
|
||||
(#eq? @_pager "pager")
|
||||
(#set! injection.language "bash"))
|
||||
|
||||
(section
|
||||
(section_header
|
||||
(section_name) @_interactive)
|
||||
(variable
|
||||
(name) @_name
|
||||
value: (string) @injection.content)
|
||||
(#eq? @_interactive "interactive")
|
||||
(#eq? @_name "diffFilter")
|
||||
(#set! injection.language "bash"))
|
||||
|
||||
; https://github.com/git-lfs/git-lfs
|
||||
; git lfs install
|
||||
(section
|
||||
(section_header
|
||||
(section_name) @_filter
|
||||
(subsection_name) @_lfs)
|
||||
(variable
|
||||
(name) @_name
|
||||
value: (string) @injection.content)
|
||||
(#eq? @_filter "filter")
|
||||
(#eq? @_lfs "lfs")
|
||||
(#any-of? @_name "smudge" "process" "clean")
|
||||
(#set! injection.language "bash"))
|
||||
|
||||
(section
|
||||
(section_header
|
||||
(section_name) @_alias)
|
||||
(variable
|
||||
value: (string) @injection.content)
|
||||
(#eq? @_alias "alias")
|
||||
(#lua-match? @injection.content "^!")
|
||||
(#offset! @injection.content 0 1 0 0)
|
||||
(#set! injection.language "bash"))
|
||||
|
||||
(section
|
||||
(section_header
|
||||
(section_name) @_alias)
|
||||
(variable
|
||||
value: (string
|
||||
"\""
|
||||
"\"") @injection.content)
|
||||
(#eq? @_alias "alias")
|
||||
(#lua-match? @injection.content "^\"!")
|
||||
(#offset! @injection.content 0 2 0 -1)
|
||||
(#set! injection.language "bash"))
|
||||
Loading…
Add table
Add a link
Reference in a new issue