mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-12-27 10:54:40 +00:00
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.
This commit is contained in:
parent
366ec7719f
commit
9b16bc2a01
@ -2188,11 +2188,11 @@ See `font-lock-syntax-table'.")
|
||||
(2 font-lock-constant-face)
|
||||
(3 (unless (and (eq (char-before (match-end 3)) ?=)
|
||||
(eq (char-after (match-end 3)) ?>))
|
||||
;; bug#18466
|
||||
;; bug#18644
|
||||
font-lock-constant-face)
|
||||
nil t))
|
||||
;; Symbols with special characters.
|
||||
("\\(^\\|[^:]\\)\\(:\\([-+~]@?\\|[/%&|^`]\\|\\*\\*?\\|<\\(<\\|=>?\\)?\\|>[>=]?\\|===?\\|=~\\|![~=]?\\|\\[\\]=?\\|#{[^}\n\\\\]*\\(\\\\.[^}\n\\\\]*\\)*}\\)\\)"
|
||||
("\\(^\\|[^:]\\)\\(:\\([-+~]@?\\|[/%&|^`]\\|\\*\\*?\\|<\\(<\\|=>?\\)?\\|>[>=]?\\|===?\\|=~\\|![~=]?\\|\\[\\]=?\\)\\)"
|
||||
2 font-lock-constant-face)
|
||||
;; Special globals.
|
||||
(,(concat "\\$\\(?:[:\"!@;,/\\._><\\$?~=*&`'+0-9]\\|-[0adFiIlpvw]\\|"
|
||||
|
Loading…
Reference in New Issue
Block a user