]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/progmodes/ruby-mode.el (ruby-font-lock-keywords): Do not
authorDmitry Gutov <dgutov@yandex.ru>
Tue, 16 Jul 2013 14:47:23 +0000 (18:47 +0400)
committerDmitry Gutov <dgutov@yandex.ru>
Tue, 16 Jul 2013 14:47:23 +0000 (18:47 +0400)
highlight question marks in the method names as strings.

lisp/ChangeLog
lisp/progmodes/ruby-mode.el

index d1613283bb787a9c3a11846dd717c86b313b1e3c..37c2365cc6002986f6cea1ac165e432d5b71ad96 100644 (file)
@@ -1,3 +1,8 @@
+2013-07-16  Dmitry Gutov  <dgutov@yandex.ru>
+
+       * progmodes/ruby-mode.el (ruby-font-lock-keywords): Do not
+       highlight question marks in the method names as strings.
+
 2013-07-16  Jan Djärv  <jan.h.d@swipnet.se>
 
        * frame.el (blink-cursor-blinks): New defcustom.
index 0b83921504b54fd2125fc8fd997944f81b43df1a..dc3dec87ba8791d702761e5e4991b0ae884390b8 100644 (file)
@@ -1864,7 +1864,7 @@ See `font-lock-syntax-table'.")
      1 font-lock-negation-char-face)
    ;; character literals
    ;; FIXME: Support longer escape sequences.
-   '("\\?\\\\?\\S " 0 font-lock-string-face)
+   '("\\_<\\?\\\\?\\S " 0 font-lock-string-face)
    )
   "Additional expressions to highlight in Ruby mode.")