From 771978259eb6b1caf0a37554c006e42d7ab802c6 Mon Sep 17 00:00:00 2001 From: Bozhidar Batsov Date: Tue, 17 Mar 2015 22:41:36 +0200 Subject: [PATCH] Font-lock more Kernel methods as built-in --- lisp/ChangeLog | 5 +++++ lisp/progmodes/ruby-mode.el | 14 ++++++++++++++ 2 files changed, 19 insertions(+) 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" -- 2.39.2