helix-mirror/runtime/queries/bash/injections.scm

12 lines
300 B
Scheme
Raw Permalink Normal View History

((comment) @injection.content
(#set! injection.language "comment"))
2022-08-24 20:58:15 +04:00
(command
name: (command_name (word) @_command)
argument: (raw_string) @injection.content
(#match? @_command "^[gnm]?awk$")
(#set! injection.language "awk"))
((regex) @injection.content
(#set! injection.language "regex"))