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