diff options
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/progmodes/ruby-mode.el | 4 |
2 files changed, 8 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 0506a68ceaf..aa2b3505411 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2013-06-30 Dmitry Gutov <dgutov@yandex.ru> | ||
| 2 | |||
| 3 | * progmodes/ruby-mode.el (ruby-syntax-propertize-function): Don't | ||
| 4 | start heredoc inside a string or comment. | ||
| 5 | |||
| 1 | 2013-06-29 Eli Zaretskii <eliz@gnu.org> | 6 | 2013-06-29 Eli Zaretskii <eliz@gnu.org> |
| 2 | 7 | ||
| 3 | * bindings.el (visual-order-cursor-movement): New defcustom. | 8 | * bindings.el (visual-order-cursor-movement): New defcustom. |
diff --git a/lisp/progmodes/ruby-mode.el b/lisp/progmodes/ruby-mode.el index ab5634e5274..0292e40b986 100644 --- a/lisp/progmodes/ruby-mode.el +++ b/lisp/progmodes/ruby-mode.el | |||
| @@ -1422,7 +1422,9 @@ It will be properly highlighted even when the call omits parens.") | |||
| 1422 | ("^\\(=\\)begin\\_>" (1 "!")) | 1422 | ("^\\(=\\)begin\\_>" (1 "!")) |
| 1423 | ;; Handle here documents. | 1423 | ;; Handle here documents. |
| 1424 | ((concat ruby-here-doc-beg-re ".*\\(\n\\)") | 1424 | ((concat ruby-here-doc-beg-re ".*\\(\n\\)") |
| 1425 | (7 (unless (ruby-singleton-class-p (match-beginning 0)) | 1425 | (7 (unless (or (nth 8 (save-excursion |
| 1426 | (syntax-ppss (match-beginning 0)))) | ||
| 1427 | (ruby-singleton-class-p (match-beginning 0))) | ||
| 1426 | (put-text-property (match-beginning 7) (match-end 7) | 1428 | (put-text-property (match-beginning 7) (match-end 7) |
| 1427 | 'syntax-table (string-to-syntax "\"")) | 1429 | 'syntax-table (string-to-syntax "\"")) |
| 1428 | (ruby-syntax-propertize-heredoc end)))) | 1430 | (ruby-syntax-propertize-heredoc end)))) |