helix/runtime/queries/bash/injections.scm
2024-09-13 13:28:20 -05: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"))