From 2219f0ef787766ecd5dc1c8dc77577d88e8a4345 Mon Sep 17 00:00:00 2001 From: Alex Leferry 2 Date: Thu, 9 Jul 2020 11:24:22 +0200 Subject: [PATCH] =?UTF-8?q?Ruby:=20Add=20support=20for=20%{=E2=80=A6}=20pe?= =?UTF-8?q?rcent=20string=20literals?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rc/filetype/ruby.kak | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/rc/filetype/ruby.kak b/rc/filetype/ruby.kak index 658ba9c3..3632d14e 100644 --- a/rc/filetype/ruby.kak +++ b/rc/filetype/ruby.kak @@ -48,10 +48,10 @@ add-highlighter shared/ruby/backtick region '(? fill meta +add-highlighter shared/ruby/ region -recurse \( '%[iqrswxIQRSWX]?\(' \) fill meta +add-highlighter shared/ruby/ region -recurse \{ '%[iqrswxIQRSWX]?\{' \} fill meta +add-highlighter shared/ruby/ region -recurse \[ '%[iqrswxIQRSWX]?\[' \] fill meta +add-highlighter shared/ruby/ region -recurse < '%[iqrswxIQRSWX]?<' > fill meta add-highlighter shared/ruby/heredoc region '<<[-~]?(?!self)(\w+)' '^\h*(\w+)$' fill string add-highlighter shared/ruby/division region '[\w\)\]](/|(\h+/\h+))' '\w' group # Help Kakoune to better detect /…/ literals