mirror of
https://github.com/cmur2/joe-syntax.git
synced 2024-12-22 02:54:23 +01:00
Ruby: support for :"symbols" and :'symbols'
These are highlighted completely red.
This commit is contained in:
parent
cd11cffde5
commit
e832ba5d5a
22
ruby.jsf
22
ruby.jsf
@ -18,6 +18,7 @@
|
|||||||
=Brace magenta
|
=Brace magenta
|
||||||
|
|
||||||
=Symbol red
|
=Symbol red
|
||||||
|
=SymbolEscape bold red
|
||||||
=ProcArg #yellow
|
=ProcArg #yellow
|
||||||
=ClassMember fg_310 # brown
|
=ClassMember fg_310 # brown
|
||||||
=GlobalVar yellow
|
=GlobalVar yellow
|
||||||
@ -489,13 +490,30 @@ done
|
|||||||
":" rest
|
":" rest
|
||||||
# first char mustn't be 0-9
|
# first char mustn't be 0-9
|
||||||
"a-zA-Z_" symbol recolor=-2
|
"a-zA-Z_" symbol recolor=-2
|
||||||
# # might be a :"symbol"
|
"\"" symbol_str recolor=-2
|
||||||
# "\""
|
"'" symbol_str_sq recolor=-2
|
||||||
|
|
||||||
:symbol Symbol
|
:symbol Symbol
|
||||||
* rest noeat
|
* rest noeat
|
||||||
"a-zA-Z0-9_" symbol
|
"a-zA-Z0-9_" symbol
|
||||||
|
|
||||||
|
:symbol_str Symbol
|
||||||
|
* symbol_str
|
||||||
|
"\"" after_term
|
||||||
|
"#" symbol_maybe_str_subst recolor=-1
|
||||||
|
|
||||||
|
:symbol_maybe_str_subst Symbol
|
||||||
|
* symbol_str
|
||||||
|
"{" symbol_str_subst recolor=-2
|
||||||
|
|
||||||
|
:symbol_str_subst SymbolEscape
|
||||||
|
* symbol_str_subst
|
||||||
|
"}" symbol_str
|
||||||
|
|
||||||
|
:symbol_str_sq Symbol
|
||||||
|
* symbol_str_sq
|
||||||
|
"'" after_term
|
||||||
|
|
||||||
:proc_arg ProcArg
|
:proc_arg ProcArg
|
||||||
* rest noeat
|
* rest noeat
|
||||||
"," proc_arg_sep noeat
|
"," proc_arg_sep noeat
|
||||||
|
Loading…
Reference in New Issue
Block a user