mirror of
https://github.com/cmur2/joe-syntax.git
synced 2024-12-21 06:54:22 +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
|
||||
=ClassMember fg_310 # brown
|
||||
=GlobalVar yellow
|
||||
=ClassDecl bold blue
|
||||
|
||||
# Detect pod
|
||||
|
||||
@ -345,7 +346,7 @@ done
|
||||
"break" kw
|
||||
"case" kw
|
||||
"catch" kw
|
||||
"class" kw
|
||||
"class" kw_class
|
||||
"def" kw
|
||||
"defined" kw
|
||||
"do" kw
|
||||
@ -404,6 +405,23 @@ done
|
||||
:kw Keyword
|
||||
* 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
|
||||
* match noeat
|
||||
" \t" after_term noeat
|
||||
|
Loading…
Reference in New Issue
Block a user