diff options
| author | nsfisis <nsfisis@gmail.com> | 2025-08-16 11:08:18 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2025-08-16 11:08:18 +0900 |
| commit | a5f6b3dd8acf676d9feceed339429f8084530bb0 (patch) | |
| tree | f82f8f8bbc5c7d77bee0d67c879d2c2ce2beb51f | |
| parent | 812dd657ab7c4603e7e54f41c3cb2b7662259243 (diff) | |
| download | dotfiles-a5f6b3dd8acf676d9feceed339429f8084530bb0.tar.gz dotfiles-a5f6b3dd8acf676d9feceed339429f8084530bb0.tar.zst dotfiles-a5f6b3dd8acf676d9feceed339429f8084530bb0.zip | |
nvim/treesitter: tweak highlight of Ruby's delimited symbol
| -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) |
