From 4b23919e92a4ef405a9ee89ff9745478db135ca1 Mon Sep 17 00:00:00 2001 From: Alex Leferry 2 Date: Thu, 10 Jul 2014 19:16:20 +0200 Subject: [PATCH] highlight symbols in hash syntax as identifiers --- rc/ruby.kak | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rc/ruby.kak b/rc/ruby.kak index ef92b67b..ed13642c 100644 --- a/rc/ruby.kak +++ b/rc/ruby.kak @@ -43,8 +43,8 @@ addhl -group /ruby/regex/interpolation/content fill macro addhl -group /ruby/comment fill comment addhl -group /ruby/literal fill macro -addhl -group /ruby/code regex ([$@][a-z]\w+)|(\W\K:[a-z]\w+[=?!]?) 0:identifier -addhl -group /ruby/code regex \<(require|include)\>|\<([a-z]\w+:) 0:macro +addhl -group /ruby/code regex \<([a-z]\w+:)|([$@][a-z]\w+)|(\W\K:[a-z]\w+[=?!]?) 0:identifier +addhl -group /ruby/code regex \<(require|include)\> 0:macro addhl -group /ruby/code regex \<(attr_(reader|writer|accessor))\> 0:attribute # Keywords are collected searching for keyword_ at