mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-03 03:56:52 -04:00
Use @string.regex to highlight regex's
This commit is contained in:
parent
ae9a9d60f1
commit
0aaf937802
1 changed files with 5 additions and 2 deletions
|
|
@ -129,11 +129,14 @@
|
|||
(string_double_quoted)
|
||||
(string_qq_quoted)
|
||||
(bareword)
|
||||
(transliteration_tr_or_y)
|
||||
] @string
|
||||
|
||||
[
|
||||
(regex_pattern_qr)
|
||||
(patter_matcher_m)
|
||||
(substitution_pattern_s)
|
||||
(transliteration_tr_or_y)
|
||||
] @string
|
||||
] @string.regex
|
||||
|
||||
(escape_sequence) @string.escape
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue