summaryrefslogtreecommitdiffstats
path: root/misc/ruby-mode.el
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-05-23 21:46:18 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-05-23 21:46:18 +0000
commit974716d474edd2c3f2575c23406fb77c0e6d4bf6 (patch)
tree7915159d921ccbb65b88cd6da51b88319f5b0134 /misc/ruby-mode.el
parenteb2494aba1dedff2543dd8079c97091305ed2f96 (diff)
downloadruby-974716d474edd2c3f2575c23406fb77c0e6d4bf6.tar.gz
ruby-974716d474edd2c3f2575c23406fb77c0e6d4bf6.tar.xz
ruby-974716d474edd2c3f2575c23406fb77c0e6d4bf6.zip
* misc/ruby-mode.el (ruby-font-lock-syntactic-keywords): string
literals to be matched non-greedy. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8512 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'misc/ruby-mode.el')
-rw-r--r--misc/ruby-mode.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/misc/ruby-mode.el b/misc/ruby-mode.el
index 2190a932b..7f2bcabd5 100644
--- a/misc/ruby-mode.el
+++ b/misc/ruby-mode.el
@@ -999,7 +999,7 @@ balanced expression is found."
("\\(#\\)[{$@]" 1 (1 . nil))
;; the last $', $", $` in the respective string is not variable
;; the last ?', ?", ?` in the respective string is not ascii code
- ("\\(^\\|[\[ \t\n<+\(,=]\\)\\(['\"`]\\)\\(\\\\.\\|\\2\\|[^'\"`\n\\\\]\\)*\\\\?[?$]\\(\\2\\)"
+ ("\\(^\\|[\[ \t\n<+\(,=]\\)\\(['\"`]\\)\\(\\\\.\\|\\2\\|[^'\"`\n\\\\]\\)*?\\\\?[?$]\\(\\2\\)"
(2 (7 . nil))
(4 (7 . nil)))
;; $' $" $` .... are variables