diff --git a/rc/base/ruby.kak b/rc/base/ruby.kak index 8790ff0f..c137cf94 100644 --- a/rc/base/ruby.kak +++ b/rc/base/ruby.kak @@ -51,7 +51,7 @@ addhl -group /ruby/comment fill comment addhl -group /ruby/literal fill meta -addhl -group /ruby/code regex \b([A-Za-z]\w*:(?=[^:]))|([$@][A-Za-z]\w*)|((?<=[^:]):[A-Za-z]\w*[=?!]?) 0:identifier +addhl -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:identifier %sh{ # Grammar