mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-16 18:30:06 -04:00
feat(ruby): string/punctuation highlight improvements
This commit is contained in:
parent
54becf661a
commit
7499f73794
1 changed files with 17 additions and 10 deletions
|
|
@ -172,10 +172,10 @@
|
||||||
; (#is-not? local))
|
; (#is-not? local))
|
||||||
; Literals
|
; Literals
|
||||||
[
|
[
|
||||||
(string)
|
(string_content)
|
||||||
(bare_string)
|
(heredoc_content)
|
||||||
(subshell)
|
"\""
|
||||||
(heredoc_body)
|
"`"
|
||||||
] @string
|
] @string
|
||||||
|
|
||||||
[
|
[
|
||||||
|
|
@ -190,11 +190,8 @@
|
||||||
(hash_key_symbol)
|
(hash_key_symbol)
|
||||||
] @string.special.symbol
|
] @string.special.symbol
|
||||||
|
|
||||||
(pair
|
(regex
|
||||||
key: (hash_key_symbol)
|
(string_content) @string.regexp)
|
||||||
":" @constant)
|
|
||||||
|
|
||||||
(regex) @string.regexp
|
|
||||||
|
|
||||||
(escape_sequence) @string.escape
|
(escape_sequence) @string.escape
|
||||||
|
|
||||||
|
|
@ -276,8 +273,15 @@
|
||||||
";"
|
";"
|
||||||
"."
|
"."
|
||||||
"&."
|
"&."
|
||||||
|
"::"
|
||||||
] @punctuation.delimiter
|
] @punctuation.delimiter
|
||||||
|
|
||||||
|
(regex
|
||||||
|
"/" @punctuation.bracket)
|
||||||
|
|
||||||
|
(pair
|
||||||
|
":" @punctuation.delimiter)
|
||||||
|
|
||||||
[
|
[
|
||||||
"("
|
"("
|
||||||
")"
|
")"
|
||||||
|
|
@ -289,6 +293,9 @@
|
||||||
"%i("
|
"%i("
|
||||||
] @punctuation.bracket
|
] @punctuation.bracket
|
||||||
|
|
||||||
|
(block_parameters
|
||||||
|
"|" @punctuation.bracket)
|
||||||
|
|
||||||
(interpolation
|
(interpolation
|
||||||
"#{" @punctuation.special
|
"#{" @punctuation.special
|
||||||
"}" @punctuation.special) @none
|
"}" @punctuation.special)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue