From 335ee743a4e0ce1cc0a7e1d2446f7912a95a25a4 Mon Sep 17 00:00:00 2001 From: Johannes Altmanninger Date: Tue, 13 Oct 2020 18:16:44 +0200 Subject: [PATCH] Fix overzealous closing of ruby heredocs Fixes #2516 --- rc/filetype/ruby.kak | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rc/filetype/ruby.kak b/rc/filetype/ruby.kak index 06b0f7815..e44492d91 100644 --- a/rc/filetype/ruby.kak +++ b/rc/filetype/ruby.kak @@ -63,7 +63,7 @@ add-highlighter shared/ruby/ region -recurse < '%[rxRX]<' > 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/heredoc region '<<[-~]?(?!self)(\w+)' '^\h*(\w+)$' fill string +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 # Regular expression flags are: i → ignore case, m → multi-lines, o → only interpolate #{} blocks once, x → extended mode (ignore white spaces)