mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-30 12:21:25 -08:00
ruby-mode: Fix a "required arguments" confusion
* lisp/progmodes/ruby-mode.el (ruby-font-lock-keywords): Move `at_exit' and `callcc' to the "methods with required arguments" section, they need a block argument. Remove a `throw' duplicate.
This commit is contained in:
parent
13eb26ad38
commit
8142fc97af
2 changed files with 9 additions and 4 deletions
|
|
@ -1,3 +1,9 @@
|
|||
2015-03-20 Dmitry Gutov <dgutov@yandex.ru>
|
||||
|
||||
* progmodes/ruby-mode.el (ruby-font-lock-keywords): Move `at_exit'
|
||||
and `callcc' to the "methods with required arguments" section,
|
||||
they need a block argument. Remove a `throw' duplicate.
|
||||
|
||||
2015-03-19 Vibhav Pant <vibhavp@gmail.com>
|
||||
|
||||
* lisp/progmodes/cperl-mode.el (cperl-electric-backspace):
|
||||
|
|
|
|||
|
|
@ -2069,8 +2069,10 @@ See `font-lock-syntax-table'.")
|
|||
ruby-font-lock-keyword-beg-re
|
||||
(regexp-opt
|
||||
'( ;; built-in methods on Kernel
|
||||
"at_exit"
|
||||
"autoload"
|
||||
"autoload?"
|
||||
"callcc"
|
||||
"catch"
|
||||
"eval"
|
||||
"exec"
|
||||
|
|
@ -2124,10 +2126,8 @@ See `font-lock-syntax-table'.")
|
|||
"__dir__"
|
||||
"__method__"
|
||||
"abort"
|
||||
"at_exit"
|
||||
"binding"
|
||||
"block_given?"
|
||||
"callcc"
|
||||
"caller"
|
||||
"exit"
|
||||
"exit!"
|
||||
|
|
@ -2143,8 +2143,7 @@ See `font-lock-syntax-table'.")
|
|||
"readline"
|
||||
"readlines"
|
||||
"sleep"
|
||||
"srand"
|
||||
"throw")
|
||||
"srand")
|
||||
'symbols))
|
||||
(1 font-lock-builtin-face))
|
||||
;; Here-doc beginnings.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue