nvim-treesitter/runtime/queries/bitbake/injections.scm

16 lines
401 B
Scheme
Raw Normal View History

2023-08-17 00:49:36 -04:00
(call
function: (attribute
object: (python_identifier) @_re)
arguments: (argument_list
(python_string
(string_content) @injection.content) @_string)
2023-08-17 00:49:36 -04:00
(#eq? @_re "re")
(#lua-match? @_string "^r.*")
(#set! injection.language "regex"))
((shell_content) @injection.content
(#set! injection.language "bash"))
((comment) @injection.content
2024-01-06 15:05:50 +09:00
(#set! injection.language "comment"))