helix-mirror/runtime/queries/bash/injections.scm
2024-07-14 02:59:07 +09:00

12 lines
300 B
Scheme

((comment) @injection.content
(#set! injection.language "comment"))
(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"))