From 8b0fe9cfb05881527419a4852b7e457bfb654ef7 Mon Sep 17 00:00:00 2001 From: connor Date: Wed, 18 Nov 2020 16:15:48 -0700 Subject: [PATCH] Avoid recognizing remainder division as a percent string --- rc/filetype/ruby.kak | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rc/filetype/ruby.kak b/rc/filetype/ruby.kak index e44492d9..2afde299 100644 --- a/rc/filetype/ruby.kak +++ b/rc/filetype/ruby.kak @@ -60,9 +60,9 @@ add-highlighter shared/ruby/ region -recurse \( '%[rxRX]\(' \) add-highlighter shared/ruby/ region -recurse \{ '%[rxRX]\{' \} fill meta add-highlighter shared/ruby/ region -recurse \[ '%[rxRX]\[' \] fill meta add-highlighter shared/ruby/ region -recurse < '%[rxRX]<' > fill meta -add-highlighter shared/ruby/ region -match-capture '%[qwQW]?([^0-9A-Za-z\(\{\[<>\]\}\)])' ([^0-9A-Za-z\(\{\[<>\]\}\)]) fill string -add-highlighter shared/ruby/ region -match-capture '%[isIS]([^0-9A-Za-z\(\{\[<>\]\}\)])' ([^0-9A-Za-z\(\{\[<>\]\}\)]) fill variable -add-highlighter shared/ruby/ region -match-capture '%[rxRX]([^0-9A-Za-z\(\{\[<>\]\}\)])' ([^0-9A-Za-z\(\{\[<>\]\}\)]) fill meta +add-highlighter shared/ruby/ region -match-capture '%[qwQW]?([^\s0-9A-Za-z\(\{\[<>\]\}\)])' ([^\s0-9A-Za-z\(\{\[<>\]\}\)]) fill string +add-highlighter shared/ruby/ region -match-capture '%[isIS]([^\s0-9A-Za-z\(\{\[<>\]\}\)])' ([^\s0-9A-Za-z\(\{\[<>\]\}\)]) fill variable +add-highlighter shared/ruby/ region -match-capture '%[rxRX]([^\s0-9A-Za-z\(\{\[<>\]\}\)])' ([^\s0-9A-Za-z\(\{\[<>\]\}\)]) fill meta add-highlighter shared/ruby/heredoc region -match-capture '<<[-~]?(?!self)(\w+)' '^\h*(\w+)$' fill string add-highlighter shared/ruby/division region '[\w\)\]]\K(/|(\h+/\h+))' '\w' group # Help Kakoune to better detect /…/ literals