From 39c0c0335108daf2a447d1043d33187dfbb06d8d Mon Sep 17 00:00:00 2001 From: Alex Leferry 2 Date: Thu, 8 Feb 2018 13:34:40 +0100 Subject: [PATCH] Highlight Ruby control access keywords --- 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 756363f7..473e5209 100644 --- a/rc/base/ruby.kak +++ b/rc/base/ruby.kak @@ -54,7 +54,7 @@ add-highlighter shared/ruby/code regex \b([A-Za-z]\w*:(?!:))|([$@][A-Za-z]\w*)|( # Keywords are collected searching for keywords at # https://github.com/ruby/ruby/blob/trunk/parse.y keywords="alias|and|begin|break|case|class|def|defined|do|else|elsif|end" - keywords="${keywords}|ensure|false|for|if|in|module|next|nil|not|or|redo" + keywords="${keywords}|ensure|false|for|if|in|module|next|nil|not|or|private|protected|public|redo" keywords="${keywords}|rescue|retry|return|self|super|then|true|undef|unless|until|when|while|yield" attributes="attr_reader|attr_writer|attr_accessor" values="false|true|nil"