feat(git_config): shell command alias injections

This commit is contained in:
Riley Bruins 2024-01-21 19:40:30 -08:00 committed by ObserverOfTime
parent ab23464393
commit 177a775fd8

View file

@ -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"))