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
14
ruby.jsf
14
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
|
||||||
|
|
||||||
@ -488,9 +487,14 @@ done
|
|||||||
: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_member2 ClassMember
|
||||||
|
* rest noeat
|
||||||
|
"a-zA-Z_" class_member recolor=-3
|
||||||
|
|
||||||
:class_member ClassMember
|
:class_member ClassMember
|
||||||
* rest noeat
|
* rest noeat
|
||||||
|
Loading…
Reference in New Issue
Block a user