diff options
Diffstat (limited to 'misc')
-rw-r--r-- | misc/ruby-mode.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/misc/ruby-mode.el b/misc/ruby-mode.el index fa84d5b3c5..c44b4c7875 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))) |