Feature #5142: Remove ruby-mode.el from ruby's repo
emacs ruby-mode.el font-lock fails on symboled string ending with ?
Fontification breaks when emacs sees a symbol like
:'this is a symbol?'
'this is a test'
'is this a test?'
"Can this be a test"
:'this is an error?'
I have a very hacked fix in ruby-font-lock-syntactic-keywords
;; the last $', $", $
in the respective string is not variable in the respective string is not ascii code
;; the last ?', ?", ?
(2 (7 . nil))
(4 (7 . nil)))
by adding : in the above matches with space tabs L etc...
See the attached patch
I am not sure this is the proper fix, but it fixes the above example.