mirror of
https://github.com/cmur2/joe-syntax.git
synced 2024-12-22 02:54:23 +01:00
Improved ruby.jsf
Now class and instance members (@@var and @var) will be recognized correctly.
This commit is contained in:
parent
7904eb9dbf
commit
c73df189f8
22
ruby.jsf
22
ruby.jsf
@ -6,7 +6,6 @@
|
|||||||
# EOF2.
|
# EOF2.
|
||||||
|
|
||||||
=Idle
|
=Idle
|
||||||
=Preproc blue
|
|
||||||
=Comment green
|
=Comment green
|
||||||
=POD green
|
=POD green
|
||||||
=Constant cyan
|
=Constant cyan
|
||||||
@ -19,7 +18,7 @@
|
|||||||
=CommentTODO bold green
|
=CommentTODO bold green
|
||||||
=Symbol red
|
=Symbol red
|
||||||
=ProcArg #yellow
|
=ProcArg #yellow
|
||||||
=ClassMember #fg_310 # brown
|
=ClassMember fg_310 # brown
|
||||||
|
|
||||||
# Detect pod
|
# Detect pod
|
||||||
|
|
||||||
@ -48,7 +47,7 @@
|
|||||||
# added
|
# added
|
||||||
":" maybe_symbol noeat
|
":" maybe_symbol noeat
|
||||||
"|" proc_arg
|
"|" proc_arg
|
||||||
"@" class_member recolor=-1
|
"@" class_member1
|
||||||
|
|
||||||
# / / regex not allowed after terms
|
# / / regex not allowed after terms
|
||||||
|
|
||||||
@ -480,18 +479,23 @@ done
|
|||||||
* rest noeat
|
* rest noeat
|
||||||
"a-zA-Z0-9_" symbol recolor=-3
|
"a-zA-Z0-9_" symbol recolor=-3
|
||||||
|
|
||||||
:proc_arg ProcArg
|
:proc_arg ProcArg
|
||||||
* rest noeat
|
* rest noeat
|
||||||
"," proc_arg_sep noeat
|
"," proc_arg_sep noeat
|
||||||
"a-zA-Z_" proc_arg
|
"a-zA-Z_" proc_arg
|
||||||
|
|
||||||
:proc_arg_sep Idle
|
:proc_arg_sep Idle
|
||||||
* proc_arg
|
* proc_arg
|
||||||
|
|
||||||
:class_member1 ClassMember
|
:class_member1 Idle
|
||||||
* rest noeat
|
* rest noeat
|
||||||
"a-zA-Z_" class_member
|
"a-zA-Z_" class_member recolor=-2
|
||||||
|
"@" class_member2
|
||||||
:class_member ClassMember
|
|
||||||
|
:class_member2 ClassMember
|
||||||
|
* rest noeat
|
||||||
|
"a-zA-Z_" class_member recolor=-3
|
||||||
|
|
||||||
|
:class_member ClassMember
|
||||||
* rest noeat
|
* rest noeat
|
||||||
"a-zA-Z0-9_" class_member
|
"a-zA-Z0-9_" class_member
|
||||||
|
Loading…
Reference in New Issue
Block a user