From 6a78514d4cb14202890e0c3379c38e6545de2fdf Mon Sep 17 00:00:00 2001 From: matz Date: Wed, 13 Sep 2006 09:29:41 +0000 Subject: * misc/ruby-mode.el (ruby-parse-partial): better here-doc support. a patch from Marshall T. Vandegrift . [ruby-core:08804] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10920 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 6 ++++++ misc/ruby-mode.el | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 9ad77b7f5..9ad5befee 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Wed Sep 13 18:25:18 2006 Yukihiro Matsumoto + + * misc/ruby-mode.el (ruby-parse-partial): better here-doc support. + a patch from Marshall T. Vandegrift . + [ruby-core:08804] + Wed Sep 13 16:43:36 2006 Yukihiro Matsumoto * string.c (rb_str_intern): prohibit interning tainted string. diff --git a/misc/ruby-mode.el b/misc/ruby-mode.el index 12c60a1d8..ff22e4998 100644 --- a/misc/ruby-mode.el +++ b/misc/ruby-mode.el @@ -523,7 +523,7 @@ The variable ruby-indent-level controls the amount of indentation. ((looking-at "<<") (cond ((and (ruby-expr-beg 'heredoc) - (looking-at "<<\\(-\\)?\\(\\([\"'`]\\)\\([^\n]+?\\)\\3\\|\\sw+\\)")) + (looking-at "<<\\(-\\)?\\(\\([\"'`]\\)\\([^\n]+?\\)\\3\\|\\(?:\\sw\\|\\s_\\)+\\)")) (setq re (regexp-quote (or (match-string 4) (match-string 2)))) (if (match-beginning 1) (setq re (concat "\\s *" re))) (let* ((id-end (goto-char (match-end 0))) -- cgit