diff options
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/progmodes/ruby-mode.el | 12 |
2 files changed, 15 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 3e458135186..e1842973acb 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2015-03-09 Dmitry Gutov <dgutov@yandex.ru> | ||
| 2 | |||
| 3 | * progmodes/ruby-mode.el (ruby-font-lock-keywords): Don't consider | ||
| 4 | `=' a part of symbol when followed by `>'. (Bug#18644) | ||
| 5 | |||
| 1 | 2015-03-09 Eli Zaretskii <eliz@gnu.org> | 6 | 2015-03-09 Eli Zaretskii <eliz@gnu.org> |
| 2 | 7 | ||
| 3 | * dired.el (dired-delete-file): Doc fix. (Bug#20021) | 8 | * dired.el (dired-delete-file): Doc fix. (Bug#20021) |
diff --git a/lisp/progmodes/ruby-mode.el b/lisp/progmodes/ruby-mode.el index 4abc413f636..06b1fcf1729 100644 --- a/lisp/progmodes/ruby-mode.el +++ b/lisp/progmodes/ruby-mode.el | |||
| @@ -2155,8 +2155,16 @@ See `font-lock-syntax-table'.") | |||
| 2155 | ;; Keywords that evaluate to certain values. | 2155 | ;; Keywords that evaluate to certain values. |
| 2156 | ("\\_<__\\(?:LINE\\|ENCODING\\|FILE\\)__\\_>" | 2156 | ("\\_<__\\(?:LINE\\|ENCODING\\|FILE\\)__\\_>" |
| 2157 | (0 font-lock-builtin-face)) | 2157 | (0 font-lock-builtin-face)) |
| 2158 | ;; Symbols. | 2158 | ;; Symbols with symbol characters. |
| 2159 | ("\\(^\\|[^:]\\)\\(:\\([-+~]@?\\|[/%&|^`]\\|\\*\\*?\\|<\\(<\\|=>?\\)?\\|>[>=]?\\|===?\\|=~\\|![~=]?\\|\\[\\]=?\\|@?\\(\\w\\|_\\)+\\([!?=]\\|\\b_*\\)\\|#{[^}\n\\\\]*\\(\\\\.[^}\n\\\\]*\\)*}\\)\\)" | 2159 | ("\\(^\\|[^:]\\)\\(:@?\\(?:\\w\\|_\\)+\\)\\([!?=]\\)?" |
| 2160 | (2 font-lock-constant-face) | ||
| 2161 | (3 (unless (and (eq (char-before (match-end 3)) ?=) | ||
| 2162 | (eq (char-after (match-end 3)) ?>)) | ||
| 2163 | ;; bug#18466 | ||
| 2164 | font-lock-constant-face) | ||
| 2165 | nil t)) | ||
| 2166 | ;; Symbols with special characters. | ||
| 2167 | ("\\(^\\|[^:]\\)\\(:\\([-+~]@?\\|[/%&|^`]\\|\\*\\*?\\|<\\(<\\|=>?\\)?\\|>[>=]?\\|===?\\|=~\\|![~=]?\\|\\[\\]=?\\|#{[^}\n\\\\]*\\(\\\\.[^}\n\\\\]*\\)*}\\)\\)" | ||
| 2160 | 2 font-lock-constant-face) | 2168 | 2 font-lock-constant-face) |
| 2161 | ;; Special globals. | 2169 | ;; Special globals. |
| 2162 | (,(concat "\\$\\(?:[:\"!@;,/\\._><\\$?~=*&`'+0-9]\\|-[0adFiIlpvw]\\|" | 2170 | (,(concat "\\$\\(?:[:\"!@;,/\\._><\\$?~=*&`'+0-9]\\|-[0adFiIlpvw]\\|" |