nvim-treesitter/queries/yuck/injections.scm
ObserverOfTime 8166080035 feat(yuck): add missing injections
And builtin variable highlights
2024-01-24 13:47:19 +01:00

26 lines
550 B
Scheme

((comment) @injection.content
(#set! injection.language "comment"))
((function_call
name: (ident) @_name
.
(simplexpr)
.
(simplexpr
(string
(string_fragment) @injection.content)+))
(#any-of? @_name "replace" "search" "matches" "captures")
(#set! injection.language "regex")
(#set! injection.combined))
((function_call
name: (ident) @_name
.
(simplexpr)
.
(simplexpr
(string
(string_fragment) @injection.content)+))
(#eq? @_name "jq")
(#set! injection.language "jq")
(#set! injection.combined))