mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-17 10:27:41 +00:00
ruby-mode.el: puts and printf do not require args
* lisp/progmodes/ruby-mode.el (ruby-font-lock-keywords): puts and printf can be called without arguments, so the font locking of "bare" calls to either is incorrect. The fix is to font-lock them as for other kernel methods which accepts zero or more arguments (bug#48180).
This commit is contained in:
parent
73513c36a9
commit
81fc95bf22
1 changed files with 2 additions and 2 deletions
|
|
@ -2127,11 +2127,9 @@ It will be properly highlighted even when the call omits parens.")
|
|||
"loop"
|
||||
"open"
|
||||
"p"
|
||||
"print"
|
||||
"printf"
|
||||
"proc"
|
||||
"putc"
|
||||
"puts"
|
||||
"require"
|
||||
"require_relative"
|
||||
"spawn"
|
||||
|
|
@ -2180,9 +2178,11 @@ It will be properly highlighted even when the call omits parens.")
|
|||
"fork"
|
||||
"global_variables"
|
||||
"local_variables"
|
||||
"print"
|
||||
"private"
|
||||
"protected"
|
||||
"public"
|
||||
"puts"
|
||||
"raise"
|
||||
"rand"
|
||||
"readline"
|
||||
|
|
|
|||
Loading…
Reference in a new issue