From: Bozhidar Batsov Date: Tue, 17 Mar 2015 20:41:36 +0000 (+0200) Subject: Font-lock more Kernel methods as built-in X-Git-Tag: emacs-25.0.90~2564^2~144 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=771978259eb6b1caf0a37554c006e42d7ab802c6;p=emacs.git Font-lock more Kernel methods as built-in --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index cf4eeae2287..57d988b6887 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2015-03-17 Bozhidar Batsov + + * progmodes/ruby-mode.el (ruby-font-lock-keywords): Font-lock + more Kernel methods. + 2015-03-17 Michael Albinus * tramp-sh.el (tramp-maybe-send-script): Avoid leading tabs in diff --git a/lisp/progmodes/ruby-mode.el b/lisp/progmodes/ruby-mode.el index 060bc847eb4..40204faa379 100644 --- a/lisp/progmodes/ruby-mode.el +++ b/lisp/progmodes/ruby-mode.el @@ -2069,16 +2069,25 @@ See `font-lock-syntax-table'.") ruby-font-lock-keyword-beg-re (regexp-opt '( ;; built-in methods on Kernel + "abort" "at_exit" "autoload" "autoload?" + "binding" + "block_given?" + "callcc" + "caller" "catch" "eval" "exec" + "exit" + "exit!" "fork" "format" + "global_variables" "lambda" "load" + "local_variables" "loop" "open" "p" @@ -2089,11 +2098,16 @@ See `font-lock-syntax-table'.") "puts" "require" "require_relative" + "sleep" "spawn" "sprintf" + "srand" "syscall" "system" + "throw" + "trace_var" "trap" + "untrace_var" "warn" ;; keyword-like private methods on Module "alias_method"