File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed
runtime/queries/git-config Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change 1313 (name) @_var (#any-of? @_var "xfuncname" "wordRegex")
1414 value: (string) @injection.content
1515 (#set! injection.language "regex"))
16+
17+ ((section_header (section_name) @markup.heading )
18+ (#eq? @markup.heading "alias")
19+ (variable (name)
20+ value: (string) @injection.content
21+ ; ASK: some way to not highlight the bang as `sh`?
22+ ; ASK: add `(?s)` (dot-all) flag?
23+ (#match? @injection.content "(^\"!.*\"$)|(^!)")
24+ (#set! injection.language "bash"))
25+ )
26+
27+ (variable
28+ ; ASK: is this overly general?
29+ (name) @_var (#eq? @_var "helper")
30+ value: (string) @injection.content
31+ (#match? @injection.content "(^\"!.*\"$)|(^!)")
32+ (#set! injection.language "bash"))
33+
34+ ; TODO: missing `*.cmd` sections
You can’t perform that action at this time.
0 commit comments