diff options
| author | Dmitry Gutov | 2016-03-08 21:16:54 +0200 |
|---|---|---|
| committer | Dmitry Gutov | 2016-03-09 17:22:56 +0200 |
| commit | 9b16bc2a01a3554feb9577c507bcc874f863ad81 (patch) | |
| tree | e4854b638750180b28d56dc1d25edb9d428bfa29 | |
| parent | 366ec7719f3cfde5f003d97ae9f5d02609827b0c (diff) | |
| download | emacs-9b16bc2a01a3554feb9577c507bcc874f863ad81.tar.gz emacs-9b16bc2a01a3554feb9577c507bcc874f863ad81.zip | |
Stop recognizing :#{} as symbol in ruby-mode
* lisp/progmodes/ruby-mode.el (ruby-font-lock-keywords): Remove
the weird part that recognized colon followed by interpolation
construct without quotes (e.g. ':#{abc}') as symbol, which is just a
syntax error in any modern version of Ruby. Fix nearby bug reference.
| -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 b846dfe9191..914703d5f1b 100644 --- a/lisp/progmodes/ruby-mode.el +++ b/lisp/progmodes/ruby-mode.el | |||
| @@ -2188,11 +2188,11 @@ See `font-lock-syntax-table'.") | |||
| 2188 | (2 font-lock-constant-face) | 2188 | (2 font-lock-constant-face) |
| 2189 | (3 (unless (and (eq (char-before (match-end 3)) ?=) | 2189 | (3 (unless (and (eq (char-before (match-end 3)) ?=) |
| 2190 | (eq (char-after (match-end 3)) ?>)) | 2190 | (eq (char-after (match-end 3)) ?>)) |
| 2191 | ;; bug#18466 | 2191 | ;; bug#18644 |
| 2192 | font-lock-constant-face) | 2192 | font-lock-constant-face) |
| 2193 | nil t)) | 2193 | nil t)) |
| 2194 | ;; Symbols with special characters. | 2194 | ;; Symbols with special characters. |
| 2195 | ("\\(^\\|[^:]\\)\\(:\\([-+~]@?\\|[/%&|^`]\\|\\*\\*?\\|<\\(<\\|=>?\\)?\\|>[>=]?\\|===?\\|=~\\|![~=]?\\|\\[\\]=?\\|#{[^}\n\\\\]*\\(\\\\.[^}\n\\\\]*\\)*}\\)\\)" | 2195 | ("\\(^\\|[^:]\\)\\(:\\([-+~]@?\\|[/%&|^`]\\|\\*\\*?\\|<\\(<\\|=>?\\)?\\|>[>=]?\\|===?\\|=~\\|![~=]?\\|\\[\\]=?\\)\\)" |
| 2196 | 2 font-lock-constant-face) | 2196 | 2 font-lock-constant-face) |
| 2197 | ;; Special globals. | 2197 | ;; Special globals. |
| 2198 | (,(concat "\\$\\(?:[:\"!@;,/\\._><\\$?~=*&`'+0-9]\\|-[0adFiIlpvw]\\|" | 2198 | (,(concat "\\$\\(?:[:\"!@;,/\\._><\\$?~=*&`'+0-9]\\|-[0adFiIlpvw]\\|" |