2024-07-01 23:00:34 -05:00
|
|
|
;; extends
|
|
|
|
|
|
|
|
(binding
|
2024-07-08 18:55:51 +02:00
|
|
|
attrpath: (attrpath
|
|
|
|
(identifier) @_path)
|
2024-07-01 23:00:34 -05:00
|
|
|
expression: [
|
2024-07-08 18:55:51 +02:00
|
|
|
(string_expression
|
|
|
|
((string_fragment) @injection.content
|
|
|
|
(#set! injection.language "lua")))
|
|
|
|
(indented_string_expression
|
|
|
|
((string_fragment) @injection.content
|
|
|
|
(#set! injection.language "lua")))
|
2024-07-01 23:00:34 -05:00
|
|
|
]
|
2024-07-08 18:57:12 +02:00
|
|
|
(#match? @_path "(^(extraConfigLua(Pre|Post)?|__raw))$"))
|
|
|
|
|
|
|
|
(apply_expression
|
|
|
|
function: (_) @_func
|
|
|
|
argument: [
|
|
|
|
(string_expression
|
|
|
|
((string_fragment) @injection.content
|
|
|
|
(#set! injection.language "lua")))
|
|
|
|
(indented_string_expression
|
|
|
|
((string_fragment) @injection.content
|
|
|
|
(#set! injection.language "lua")))
|
|
|
|
]
|
|
|
|
(#match? @_func "(^|\\.)mkRaw$")
|
|
|
|
(#set! injection.combined))
|
2024-07-01 23:00:34 -05:00
|
|
|
|
|
|
|
(binding
|
2024-07-08 18:55:51 +02:00
|
|
|
attrpath: (attrpath
|
|
|
|
(identifier) @_path)
|
2024-07-01 23:00:34 -05:00
|
|
|
expression: [
|
2024-07-08 18:55:51 +02:00
|
|
|
(string_expression
|
|
|
|
((string_fragment) @injection.content
|
|
|
|
(#set! injection.language "vim")))
|
|
|
|
(indented_string_expression
|
|
|
|
((string_fragment) @injection.content
|
|
|
|
(#set! injection.language "vim")))
|
2024-07-01 23:00:34 -05:00
|
|
|
]
|
2024-07-08 18:55:51 +02:00
|
|
|
(#match? @_path "(^extraConfigVim(Pre|Post)?)$"))
|
2025-01-02 18:06:40 -06:00
|
|
|
|
|
|
|
(binding
|
|
|
|
attrpath: (attrpath
|
|
|
|
(identifier) @namespace
|
|
|
|
(identifier) @name)
|
|
|
|
expression: [
|
|
|
|
(string_expression
|
|
|
|
((string_fragment) @injection.content
|
|
|
|
(#set! injection.language "lua")))
|
|
|
|
(indented_string_expression
|
|
|
|
((string_fragment) @injection.content
|
|
|
|
(#set! injection.language "lua")))
|
|
|
|
]
|
|
|
|
(#match? @namespace "^luaConfig$")
|
|
|
|
(#match? @name "^(pre|post|content)$"))
|
|
|
|
|
|
|
|
(binding
|
|
|
|
attrpath: (attrpath
|
|
|
|
(identifier) @_path)
|
|
|
|
expression: [
|
|
|
|
(attrset_expression
|
|
|
|
(binding_set
|
|
|
|
(binding
|
|
|
|
attrpath: (attrpath
|
|
|
|
(identifier) @_nested_path)
|
|
|
|
expression: [
|
|
|
|
(string_expression
|
|
|
|
((string_fragment) @injection.content
|
|
|
|
(#set! injection.language "lua")))
|
|
|
|
(indented_string_expression
|
|
|
|
((string_fragment) @injection.content
|
|
|
|
(#set! injection.language "lua")))
|
|
|
|
]
|
|
|
|
(#match? @_nested_path "^(pre|post|content)$"))))
|
|
|
|
]
|
|
|
|
(#match? @_path "^luaConfig$"))
|