diff options
| author | Steve Purcell | 2021-05-03 09:41:44 +0200 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2021-05-03 09:41:44 +0200 |
| commit | 81fc95bf22cadc09178e7ccfc13eba531660ddcd (patch) | |
| tree | 6ec17bbc59e5d6829a6299642036783181984e5c | |
| parent | 73513c36a93d19d802e9adf01f1383fc23dd49f5 (diff) | |
| download | emacs-81fc95bf22cadc09178e7ccfc13eba531660ddcd.tar.gz emacs-81fc95bf22cadc09178e7ccfc13eba531660ddcd.zip | |
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).
| -rw-r--r-- | lisp/progmodes/ruby-mode.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/progmodes/ruby-mode.el b/lisp/progmodes/ruby-mode.el index 35772827ce2..0c54a1d27a6 100644 --- a/lisp/progmodes/ruby-mode.el +++ b/lisp/progmodes/ruby-mode.el | |||
| @@ -2127,11 +2127,9 @@ It will be properly highlighted even when the call omits parens.") | |||
| 2127 | "loop" | 2127 | "loop" |
| 2128 | "open" | 2128 | "open" |
| 2129 | "p" | 2129 | "p" |
| 2130 | "print" | ||
| 2131 | "printf" | 2130 | "printf" |
| 2132 | "proc" | 2131 | "proc" |
| 2133 | "putc" | 2132 | "putc" |
| 2134 | "puts" | ||
| 2135 | "require" | 2133 | "require" |
| 2136 | "require_relative" | 2134 | "require_relative" |
| 2137 | "spawn" | 2135 | "spawn" |
| @@ -2180,9 +2178,11 @@ It will be properly highlighted even when the call omits parens.") | |||
| 2180 | "fork" | 2178 | "fork" |
| 2181 | "global_variables" | 2179 | "global_variables" |
| 2182 | "local_variables" | 2180 | "local_variables" |
| 2181 | "print" | ||
| 2183 | "private" | 2182 | "private" |
| 2184 | "protected" | 2183 | "protected" |
| 2185 | "public" | 2184 | "public" |
| 2185 | "puts" | ||
| 2186 | "raise" | 2186 | "raise" |
| 2187 | "rand" | 2187 | "rand" |
| 2188 | "readline" | 2188 | "readline" |