From 92de67ef9e8a6cae015ca99b98c0adb8174c1afd Mon Sep 17 00:00:00 2001 From: Christian Nicolai Date: Sun, 18 Sep 2011 16:35:32 +0200 Subject: [PATCH] Ruby: fix symbol detection - it now detects 1-char-symbols like :s --- ruby.jsf | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/ruby.jsf b/ruby.jsf index 4859c14..017a485 100644 --- a/ruby.jsf +++ b/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