Commit 991c801c authored by Dmitry Gutov's avatar Dmitry Gutov

Don't apply the return value of goto-char as syntax class

* lisp/progmodes/ruby-mode.el (ruby-syntax-propertize): Don't
apply the return value of goto-char as syntax class.
parent 6e63b3e9
......@@ -1852,7 +1852,8 @@ It will be properly highlighted even when the call omits parens.")
(1 (if (save-excursion
(nth 3 (syntax-ppss (match-beginning 0))))
;; Within a string, skip.
(goto-char (match-end 1))
(ignore
(goto-char (match-end 1)))
(string-to-syntax "\\"))))
;; Part of symbol when at the end of a method name.
("[!?]"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment