]> git.eshelyaron.com Git - emacs.git/commitdiff
Font-lock more Kernel methods as built-in
authorBozhidar Batsov <bozhidar@batsov.com>
Tue, 17 Mar 2015 20:41:36 +0000 (22:41 +0200)
committerBozhidar Batsov <bozhidar@batsov.com>
Tue, 17 Mar 2015 20:41:36 +0000 (22:41 +0200)
lisp/ChangeLog
lisp/progmodes/ruby-mode.el

index cf4eeae2287872f731fe55974558287c7bb0407a..57d988b6887f380bc31e4f90e10a9451e1b82d35 100644 (file)
@@ -1,3 +1,8 @@
+2015-03-17  Bozhidar Batsov  <bozhidar@batsov.com>
+
+       * progmodes/ruby-mode.el (ruby-font-lock-keywords): Font-lock
+       more Kernel methods.
+
 2015-03-17  Michael Albinus  <michael.albinus@gmx.de>
 
        * tramp-sh.el (tramp-maybe-send-script): Avoid leading tabs in
index 060bc847eb4d7371ba5f4a89e32561ba96319681..40204faa379dfb8f7b879f7d7c6266ebe3c297cd 100644 (file)
@@ -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"