summaryrefslogtreecommitdiff
path: root/lisp/progmodes/ruby-mode.el
diff options
context:
space:
mode:
authorDmitry Gutov <dgutov@yandex.ru>2013-07-16 18:47:23 +0400
committerDmitry Gutov <dgutov@yandex.ru>2013-07-16 18:47:23 +0400
commit77aea2fbb3fc290a59d84e6534424a09aa8fc41a (patch)
treea32e0aee850473532516f62a65d1c0454d4dbd33 /lisp/progmodes/ruby-mode.el
parent18c26d81cde21b841a8f5f81b81118e5f8c6b07d (diff)
downloademacs-77aea2fbb3fc290a59d84e6534424a09aa8fc41a.tar.gz
* lisp/progmodes/ruby-mode.el (ruby-font-lock-keywords): Do not
highlight question marks in the method names as strings.
Diffstat (limited to 'lisp/progmodes/ruby-mode.el')
-rw-r--r--lisp/progmodes/ruby-mode.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/progmodes/ruby-mode.el b/lisp/progmodes/ruby-mode.el
index 0b83921504b..dc3dec87ba8 100644
--- a/lisp/progmodes/ruby-mode.el
+++ b/lisp/progmodes/ruby-mode.el
@@ -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.")