helix/runtime/queries/bash/injections.scm

12 lines
300 B
Scheme
Raw Normal View History

2024-09-13 13:28:20 -05:00
((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"))