feat(ruby): string/punctuation highlight improvements

This commit is contained in:
Riley Bruins 2024-08-25 15:12:57 -07:00 committed by Christian Clason
parent 54becf661a
commit 7499f73794

View file

@ -172,10 +172,10 @@
; (#is-not? local))
; Literals
[
(string)
(bare_string)
(subshell)
(heredoc_body)
(string_content)
(heredoc_content)
"\""
"`"
] @string
[
@ -190,11 +190,8 @@
(hash_key_symbol)
] @string.special.symbol
(pair
key: (hash_key_symbol)
":" @constant)
(regex) @string.regexp
(regex
(string_content) @string.regexp)
(escape_sequence) @string.escape
@ -276,8 +273,15 @@
";"
"."
"&."
"::"
] @punctuation.delimiter
(regex
"/" @punctuation.bracket)
(pair
":" @punctuation.delimiter)
[
"("
")"
@ -289,6 +293,9 @@
"%i("
] @punctuation.bracket
(block_parameters
"|" @punctuation.bracket)
(interpolation
"#{" @punctuation.special
"}" @punctuation.special) @none
"}" @punctuation.special)