mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
feat(git_config): shell command alias injections
This commit is contained in:
parent
ab23464393
commit
177a775fd8
1 changed files with 23 additions and 0 deletions
|
|
@ -6,3 +6,26 @@
|
|||
value: (string) @injection.content)
|
||||
(#any-of? @_name "cmd" "command" "textconv")
|
||||
(#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