Ruby: fix symbol detection - it now detects 1-char-symbols like :s

This commit is contained in:
Christian Nicolai 2011-09-18 16:35:32 +02:00
parent da873ca713
commit 92de67ef9e
1 changed files with 3 additions and 7 deletions

View File

@ -49,7 +49,7 @@
"a-zA-Z_" ident buffer "a-zA-Z_" ident buffer
# higher level, ruby specific # higher level, ruby specific
":" maybe_symbol noeat ":" maybe_symbol
"|" proc_arg "|" proc_arg
"@" class_member1 "@" class_member1
@ -478,21 +478,17 @@ done
* repl * repl
:maybe_symbol Idle :maybe_symbol Idle
* rest noeat
":" maybe_symbol2
:maybe_symbol2 Idle
* rest noeat * rest noeat
# prevent wrong Module::Member detection # prevent wrong Module::Member detection
":" rest ":" rest
# first char mustn't be 0-9 # first char mustn't be 0-9
"a-zA-Z_" symbol "a-zA-Z_" symbol recolor=-2
# # might be a :"symbol" # # might be a :"symbol"
# "\"" # "\""
:symbol Symbol :symbol Symbol
* rest noeat * rest noeat
"a-zA-Z0-9_" symbol recolor=-3 "a-zA-Z0-9_" symbol
:proc_arg ProcArg :proc_arg ProcArg
* rest noeat * rest noeat