diff options
author | Dmitry Gutov <dgutov@yandex.ru> | 2012-07-20 07:10:25 -0400 |
---|---|---|
committer | Stefan Monnier <monnier@iro.umontreal.ca> | 2012-07-20 07:10:25 -0400 |
commit | c28662a8dc4fefae711b21fcb7a71e871e37d1e6 (patch) | |
tree | 37b6cf9b6caced945b938195028c95697fd2adf1 /lisp | |
parent | 87ab808f0c0b2653a4a314d216c2afb44cfb2fc9 (diff) | |
download | emacs-c28662a8dc4fefae711b21fcb7a71e871e37d1e6.tar.gz emacs-c28662a8dc4fefae711b21fcb7a71e871e37d1e6.tar.bz2 emacs-c28662a8dc4fefae711b21fcb7a71e871e37d1e6.zip |
* lisp/progmodes/ruby-mode.el (ruby-parse-partial): No error when end
up inside string symbol literal.
* test/automated/ruby-mode-tests.el: New file with one test.
Fixes: debbugs:11923
Diffstat (limited to 'lisp')
-rw-r--r-- | lisp/ChangeLog | 5 | ||||
-rw-r--r-- | lisp/progmodes/ruby-mode.el | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 8edae88c1da..d7cb05c0664 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2012-07-20 Dmitry Gutov <dgutov@yandex.ru> + + * progmodes/ruby-mode.el (ruby-parse-partial): No error when end + up inside string symbol literal (bug#11923). + 2012-07-20 Eli Zaretskii <eliz@gnu.org> * startup.el (fancy-startup-text): Read the whole tutorial, not diff --git a/lisp/progmodes/ruby-mode.el b/lisp/progmodes/ruby-mode.el index 5d79437c3c2..091a7b74df2 100644 --- a/lisp/progmodes/ruby-mode.el +++ b/lisp/progmodes/ruby-mode.el @@ -594,7 +594,7 @@ and `\\' when preceded by `?'." (goto-char pnt)) ((looking-at ":\\(['\"]\\)") (goto-char (match-beginning 1)) - (ruby-forward-string (buffer-substring (match-beginning 1) (match-end 1)) end)) + (ruby-forward-string (match-string 1) end t)) ((looking-at ":\\([-,.+*/%&|^~<>]=?\\|===?\\|<=>\\|![~=]?\\)") (goto-char (match-end 0))) ((looking-at ":\\([a-zA-Z_][a-zA-Z_0-9]*[!?=]?\\)?") |