fish injection query for nu, on nu -c (#14376)

This commit is contained in:
Axlefublr
2025-09-03 23:17:07 +08:00
committed by GitHub
parent c5f0a4bc22
commit d1750a7502

View File

@@ -5,3 +5,10 @@
name: (word) @_command (#any-of? @_command "jq" "jaq")
argument: [(double_quote_string) (single_quote_string)] @injection.content
(#set! injection.language "jq"))
(command
name: (word) @_command (#eq? @_command "nu")
argument: (word) @_flag (#match? @_flag "^-.*c$")
argument: [(single_quote_string) (double_quote_string)] @injection.content
(#set! injection.language "nu")
)