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

12 lines
300 B
Scheme
Raw Normal View History

((comment) @injection.content
(#set! injection.language "comment"))
2022-08-24 18:58:15 +02: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"))