diff --git a/rc/base/ruby.kak b/rc/base/ruby.kak index c22c44e25..1449251ae 100644 --- a/rc/base/ruby.kak +++ b/rc/base/ruby.kak @@ -45,7 +45,7 @@ add-highlighter -group /ruby/comment fill comment add-highlighter -group /ruby/literal fill meta -add-highlighter -group /ruby/code regex \b([A-Za-z]\w*:(?=[^:]))|([$@][A-Za-z]\w*)|((?<=[^:]):[A-Za-z]\w*[=?!]?)|([A-Z]\w*|^|\h)\K::(?=[A-Z]) 0:variable +add-highlighter -group /ruby/code regex \b([A-Za-z]\w*:(?=[^:]))|([$@][A-Za-z]\w*)|((?<=[^:]):(([A-Za-z]\w*[=?!]?)|(\[\]=?)))|([A-Z]\w*|^|\h)\K::(?=[A-Z]) 0:variable %sh{ # Grammar