From 63f9f9bbc951cb1e129649a1309b4229ad430356 Mon Sep 17 00:00:00 2001 From: Alex Leferry 2 Date: Tue, 28 Feb 2017 09:48:17 +0100 Subject: [PATCH] highlight hash access symbols --- rc/base/ruby.kak | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rc/base/ruby.kak b/rc/base/ruby.kak index c22c44e2..1449251a 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