From: Dmitry Gutov Date: Mon, 7 Mar 2016 01:19:09 +0000 (+0200) Subject: Don't apply the return value of goto-char as syntax class X-Git-Tag: emacs-25.0.93~120 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=991c801cd6b6b323fb4510de9e295b3fea2fb12f;p=emacs.git 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. --- diff --git a/lisp/progmodes/ruby-mode.el b/lisp/progmodes/ruby-mode.el index 1395828cff9..c1001450bda 100644 --- a/lisp/progmodes/ruby-mode.el +++ b/lisp/progmodes/ruby-mode.el @@ -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. ("[!?]"