diff options
| author | Dmitry Gutov | 2012-07-20 07:10:25 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2012-07-20 07:10:25 -0400 |
| commit | c28662a8dc4fefae711b21fcb7a71e871e37d1e6 (patch) | |
| tree | 37b6cf9b6caced945b938195028c95697fd2adf1 /lisp/progmodes/ruby-mode.el | |
| parent | 87ab808f0c0b2653a4a314d216c2afb44cfb2fc9 (diff) | |
| download | emacs-c28662a8dc4fefae711b21fcb7a71e871e37d1e6.tar.gz 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/progmodes/ruby-mode.el')
| -rw-r--r-- | lisp/progmodes/ruby-mode.el | 2 |
1 files changed, 1 insertions, 1 deletions
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 `?'." | |||
| 594 | (goto-char pnt)) | 594 | (goto-char pnt)) |
| 595 | ((looking-at ":\\(['\"]\\)") | 595 | ((looking-at ":\\(['\"]\\)") |
| 596 | (goto-char (match-beginning 1)) | 596 | (goto-char (match-beginning 1)) |
| 597 | (ruby-forward-string (buffer-substring (match-beginning 1) (match-end 1)) end)) | 597 | (ruby-forward-string (match-string 1) end t)) |
| 598 | ((looking-at ":\\([-,.+*/%&|^~<>]=?\\|===?\\|<=>\\|![~=]?\\)") | 598 | ((looking-at ":\\([-,.+*/%&|^~<>]=?\\|===?\\|<=>\\|![~=]?\\)") |
| 599 | (goto-char (match-end 0))) | 599 | (goto-char (match-end 0))) |
| 600 | ((looking-at ":\\([a-zA-Z_][a-zA-Z_0-9]*[!?=]?\\)?") | 600 | ((looking-at ":\\([a-zA-Z_][a-zA-Z_0-9]*[!?=]?\\)?") |