summaryrefslogtreecommitdiff
path: root/rc/ruby.kak
diff options
context:
space:
mode:
authorAlex Leferry 2 <alexherbo2@gmail.com>2014-07-10 19:16:20 +0200
committerAlex Leferry 2 <alexherbo2@gmail.com>2014-07-10 19:16:20 +0200
commit4b23919e92a4ef405a9ee89ff9745478db135ca1 (patch)
tree14529014d3bc3e80d7d6eedc14d8186bd0dedcf8 /rc/ruby.kak
parentbbc1e1f5c263484ad164d3583db2fbe15482a81b (diff)
highlight symbols in hash syntax as identifiers
Diffstat (limited to 'rc/ruby.kak')
-rw-r--r--rc/ruby.kak4
1 files 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