injections: add more regex injections

This commit is contained in:
ObserverOfTime 2022-11-26 14:27:21 +02:00 committed by Stephan Seitz
parent 5aacb06135
commit 9018fb26cc
5 changed files with 12 additions and 1 deletions

View file

@ -1 +1,3 @@
(comment) @comment
(regex) @regex

View file

@ -6,3 +6,8 @@
(line_comment)
(block_comment)
] @comment
((prefixed_string_literal
prefix: (identifier) @_prefix) @regex
(#eq? @_prefix "r")
(#offset! @regex 0 2 0 -1))

View file

@ -166,7 +166,8 @@
] @string
[
(regex_pattern_qr)
(pattern_matcher)
(regex_pattern_qr)
(patter_matcher_m)
(substitution_pattern_s)
] @string.regex

View file

@ -0,0 +1 @@
(comments) @comment

View file

@ -5,3 +5,5 @@
(heredoc_end) @language
(#set! "language" @language)
(#downcase! "language"))
(regex (string_content) @regex)