From 40568ca3e3bface74c9a3d618a32b5eae29b57d5 Mon Sep 17 00:00:00 2001 From: Christian Nicolai Date: Thu, 11 Aug 2011 22:41:01 +0200 Subject: [PATCH] More keywords for Ruby, disabled $global variables --- ruby.jsf | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/ruby.jsf b/ruby.jsf index a78ff07..0c155ad 100644 --- a/ruby.jsf +++ b/ruby.jsf @@ -20,7 +20,7 @@ =Symbol red =ProcArg #yellow =ClassMember fg_310 # brown -=GlobalVar yellow +=GlobalVar #yellow # Detect pod @@ -344,6 +344,7 @@ done "begin" kw "break" kw "case" kw + "catch" kw "class" kw "def" kw "defined" kw @@ -352,15 +353,22 @@ done "elsif" kw "end" kw "ensure" kw + "fail" kw "false" kw "for" kw "if" kw "in" kw + "lambda" kw "module" kw "next" kw "nil" kw "not" kw "or" kw + "private" kw + "proc" kw + "protected" kw + "public" kw + "raise" kw "redo" kw "rescue" kw "retry" kw @@ -368,6 +376,7 @@ done "self" kw "super" kw "then" kw + "throw" kw "true" kw "undef" kw "unless" kw @@ -377,12 +386,16 @@ done "yield" kw # quasi-keywords (Module or Kernel methods) "require" kw + "autoload" kw + "load" kw + "extend" kw "include" kw "puts" kw "exit" kw "attr_accessor" kw "attr_reader" kw "attr_writer" kw + "module_function" kw done "a-zA-Z0-9_" ident