From a5f6b3dd8acf676d9feceed339429f8084530bb0 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sat, 16 Aug 2025 11:08:18 +0900 Subject: nvim/treesitter: tweak highlight of Ruby's delimited symbol --- .config/nvim/after/queries/ruby/highlights.scm | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 .config/nvim/after/queries/ruby/highlights.scm 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) -- cgit v1.2.3-70-g09d2