diff options
Diffstat (limited to '.config/nvim/after/queries')
| -rw-r--r-- | .config/nvim/after/queries/ruby/highlights.scm | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/.config/nvim/after/queries/ruby/highlights.scm b/.config/nvim/after/queries/ruby/highlights.scm new file mode 100644 index 0000000..2f8d1e2 --- /dev/null +++ b/.config/nvim/after/queries/ruby/highlights.scm @@ -0,0 +1,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) |
