fix(roc): use correct predicate in injections

This commit is contained in:
Christian Clason 2025-04-26 22:12:46 +02:00
parent 58dd149629
commit 4c7509e7b0

View file

@ -7,7 +7,7 @@
(multiline_string) (multiline_string)
(string) (string)
] @injection.content) ] @injection.content)
(#any-eq? @injection.language (#any-of? @injection.language
"json" "toml" "yaml" "xml" "sql" "lua" "js" "html" "css" "http" "jq" "latex" "md" "nix" "regex")) "json" "toml" "yaml" "xml" "sql" "lua" "js" "html" "css" "http" "jq" "latex" "md" "nix" "regex"))
;injection from piping function calls ;injection from piping function calls
@ -20,7 +20,7 @@
part: (operator) part: (operator)
part: (variable_expr part: (variable_expr
(identifier) @injection.language) (identifier) @injection.language)
(#any-eq? @injection.language (#any-of? @injection.language
"json" "toml" "yaml" "xml" "sql" "lua" "js" "html" "css" "http" "jq" "latex" "md" "nix" "regex")) "json" "toml" "yaml" "xml" "sql" "lua" "js" "html" "css" "http" "jq" "latex" "md" "nix" "regex"))
([ ([