mirror of
https://github.com/cmur2/joe-syntax.git
synced 2024-12-22 02:54:23 +01:00
Ruby: fix symbol detection - it now detects 1-char-symbols like :s
This commit is contained in:
parent
da873ca713
commit
92de67ef9e
10
ruby.jsf
10
ruby.jsf
@ -49,7 +49,7 @@
|
||||
"a-zA-Z_" ident buffer
|
||||
|
||||
# higher level, ruby specific
|
||||
":" maybe_symbol noeat
|
||||
":" maybe_symbol
|
||||
"|" proc_arg
|
||||
"@" class_member1
|
||||
|
||||
@ -478,21 +478,17 @@ done
|
||||
* repl
|
||||
|
||||
:maybe_symbol Idle
|
||||
* rest noeat
|
||||
":" maybe_symbol2
|
||||
|
||||
:maybe_symbol2 Idle
|
||||
* rest noeat
|
||||
# prevent wrong Module::Member detection
|
||||
":" rest
|
||||
# first char mustn't be 0-9
|
||||
"a-zA-Z_" symbol
|
||||
"a-zA-Z_" symbol recolor=-2
|
||||
# # might be a :"symbol"
|
||||
# "\""
|
||||
|
||||
:symbol Symbol
|
||||
* rest noeat
|
||||
"a-zA-Z0-9_" symbol recolor=-3
|
||||
"a-zA-Z0-9_" symbol
|
||||
|
||||
:proc_arg ProcArg
|
||||
* rest noeat
|
||||
|
Loading…
Reference in New Issue
Block a user