1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-24 06:30:03 +08:00
SpaceVim/bundle/nvim-treesitter/queries/v/injections.scm

14 lines
383 B
Scheme

(comment) @comment
;; asm_statement if asm ever highlighted :)
;; #include <...>
(hash_statement) @c
;; regex for the methods defined in `re` module
((call_expression
function: (selector_expression
field: (identifier) @_re)
arguments: (argument_list
(raw_string_literal) @regex (#offset! @regex 0 2 0 -1)))
(#any-of? @_re "regex_base" "regex_opt" "compile_opt"))