aboutsummaryrefslogtreecommitdiffhomepage
path: root/.config
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2025-08-16 11:08:18 +0900
committernsfisis <nsfisis@gmail.com>2025-08-16 11:08:18 +0900
commita5f6b3dd8acf676d9feceed339429f8084530bb0 (patch)
treef82f8f8bbc5c7d77bee0d67c879d2c2ce2beb51f /.config
parent812dd657ab7c4603e7e54f41c3cb2b7662259243 (diff)
downloaddotfiles-a5f6b3dd8acf676d9feceed339429f8084530bb0.tar.gz
dotfiles-a5f6b3dd8acf676d9feceed339429f8084530bb0.tar.zst
dotfiles-a5f6b3dd8acf676d9feceed339429f8084530bb0.zip
nvim/treesitter: tweak highlight of Ruby's delimited symbol
Diffstat (limited to '.config')
-rw-r--r--.config/nvim/after/queries/ruby/highlights.scm10
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)