Added global variable highlighter for ruby

Feature:
- highlights $blub variables (yellow)
This commit is contained in:
Christian Nicolai 2011-08-04 00:23:31 +02:00
parent 267ac0301b
commit 60f12d591d
1 changed files with 7 additions and 2 deletions

View File

@ -20,6 +20,7 @@
=Symbol red =Symbol red
=ProcArg #yellow =ProcArg #yellow
=ClassMember fg_310 # brown =ClassMember fg_310 # brown
=GlobalVar yellow
# Detect pod # Detect pod
@ -153,8 +154,8 @@ done
* regex * regex
:not_string Idle :not_string Idle
* rest noeat * rest noeat
"A-Za-z_" ident "A-Za-z_" global_var recolor=-2
"\"'`#/" rest "\"'`#/" rest
:brace Brace :brace Brace
@ -485,6 +486,10 @@ done
* rest noeat * rest noeat
"a-zA-Z0-9_" class_member "a-zA-Z0-9_" class_member
:global_var GlobalVar
* rest noeat
"a-zA-Z0-9_" global_var
.subr comment_todo .subr comment_todo
# initial state # initial state
:comment_todo_init Comment :comment_todo_init Comment