Font-lock more Kernel methods as built-in

This commit is contained in:
Bozhidar Batsov 2015-03-17 22:41:36 +02:00
parent 7cf5b3748c
commit 771978259e
2 changed files with 19 additions and 0 deletions

View 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

View 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"