From 60f12d591d23df5040aa37e98f3fc69b6cf98e49 Mon Sep 17 00:00:00 2001 From: Christian Nicolai Date: Thu, 4 Aug 2011 00:23:31 +0200 Subject: [PATCH] Added global variable highlighter for ruby Feature: - highlights $blub variables (yellow) --- ruby.jsf | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/ruby.jsf b/ruby.jsf index 7909717..f1dba50 100644 --- a/ruby.jsf +++ b/ruby.jsf @@ -20,6 +20,7 @@ =Symbol red =ProcArg #yellow =ClassMember fg_310 # brown +=GlobalVar yellow # Detect pod @@ -153,8 +154,8 @@ done * regex :not_string Idle - * rest noeat - "A-Za-z_" ident + * rest noeat + "A-Za-z_" global_var recolor=-2 "\"'`#/" rest :brace Brace @@ -485,6 +486,10 @@ done * rest noeat "a-zA-Z0-9_" class_member +:global_var GlobalVar + * rest noeat + "a-zA-Z0-9_" global_var + .subr comment_todo # initial state :comment_todo_init Comment