mirror of
https://github.com/cmur2/joe-syntax.git
synced 2024-12-22 02:54:23 +01:00
Ruby: class name declaration highlighter (bold blue)
This commit is contained in:
parent
2368f93f0e
commit
23aa59efc2
20
ruby.jsf
20
ruby.jsf
@ -21,6 +21,7 @@
|
|||||||
=ProcArg #yellow
|
=ProcArg #yellow
|
||||||
=ClassMember fg_310 # brown
|
=ClassMember fg_310 # brown
|
||||||
=GlobalVar yellow
|
=GlobalVar yellow
|
||||||
|
=ClassDecl bold blue
|
||||||
|
|
||||||
# Detect pod
|
# Detect pod
|
||||||
|
|
||||||
@ -345,7 +346,7 @@ done
|
|||||||
"break" kw
|
"break" kw
|
||||||
"case" kw
|
"case" kw
|
||||||
"catch" kw
|
"catch" kw
|
||||||
"class" kw
|
"class" kw_class
|
||||||
"def" kw
|
"def" kw
|
||||||
"defined" kw
|
"defined" kw
|
||||||
"do" kw
|
"do" kw
|
||||||
@ -404,6 +405,23 @@ done
|
|||||||
:kw Keyword
|
:kw Keyword
|
||||||
* rest noeat
|
* rest noeat
|
||||||
|
|
||||||
|
:kw_class Keyword
|
||||||
|
* rest noeat
|
||||||
|
" \t\n" kw_class_space
|
||||||
|
|
||||||
|
:kw_class_space Idle
|
||||||
|
* kw_class_decl1 noeat
|
||||||
|
" \t\n" kw_class_space
|
||||||
|
|
||||||
|
:kw_class_decl1 ClassDecl
|
||||||
|
* rest noeat
|
||||||
|
# first char should be uppercase letter
|
||||||
|
"a-zA-Z_" kw_class_decl1
|
||||||
|
|
||||||
|
:kw_class_decl ClassDecl
|
||||||
|
* rest noeat
|
||||||
|
"a-zA-Z0-9_" kw_class_decl
|
||||||
|
|
||||||
:pstring Idle
|
:pstring Idle
|
||||||
* match noeat
|
* match noeat
|
||||||
" \t" after_term noeat
|
" \t" after_term noeat
|
||||||
|
Loading…
Reference in New Issue
Block a user