aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 cd3b04de712..d75edbc84ef 100644
--- a/lisp/progmodes/ruby-mode.el
+++ b/lisp/progmodes/ruby-mode.el
@@ -1151,7 +1151,7 @@ delimiter."
1151 ((looking-at "<<") 1151 ((looking-at "<<")
1152 (cond 1152 (cond
1153 ((and (ruby-expr-beg 'heredoc) 1153 ((and (ruby-expr-beg 'heredoc)
1154 (looking-at "<<\\(-\\)?\\(\\([\"'`]\\)\\([^\n]+?\\)\\3\\|\\(?:\\sw\\|\\s_\\)+\\)")) 1154 (looking-at "<<\\([-~]\\)?\\(\\([\"'`]\\)\\([^\n]+?\\)\\3\\|\\(?:\\sw\\|\\s_\\)+\\)"))
1155 (setq re (regexp-quote (or (match-string 4) (match-string 2)))) 1155 (setq re (regexp-quote (or (match-string 4) (match-string 2))))
1156 (if (match-beginning 1) (setq re (concat "\\s *" re))) 1156 (if (match-beginning 1) (setq re (concat "\\s *" re)))
1157 (let* ((id-end (goto-char (match-end 0))) 1157 (let* ((id-end (goto-char (match-end 0)))