highlight hash access symbols

This commit is contained in:
Alex Leferry 2 2017-02-28 09:48:17 +01:00
parent eace7e0424
commit 63f9f9bbc9

View File

@ -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