aboutsummaryrefslogtreecommitdiffhomepage
path: root/.config/nvim/after/queries/ruby/highlights.scm
blob: 2f8d1e225a88960b0a0cf0be90fe7e44f20f2a4e (plain)
1
2
3
4
5
6
7
8
9
10
;; extends

;; Highlight inner string and delimiter within delimited symbol like :'foo'.
;; NOTE: delimiters is aliased to ':"' and '"' regardless of the actual
;; delimiter symbols. No need to define rule for all kinds of string
;; delimiters.
(delimited_symbol
  ":\""            @string.special.symbol
  (string_content) @string.special.symbol
  "\""             @string.special.symbol)