https://redmine.ruby-lang.org/https://redmine.ruby-lang.org/favicon.ico?17113305112010-05-20T00:21:46ZRuby Issue Tracking SystemRuby master - Bug #3320: emacs ruby-mode.el font-lock fails on symboled string ending with ?https://redmine.ruby-lang.org/issues/3320?journal_id=111162010-05-20T00:21:46Zzev (Zev Blut)zev@bebear.net
<ul><li><strong>File</strong> <a href="/attachments/996">ruby-mode.el.patch</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/996/ruby-mode.el.patch">ruby-mode.el.patch</a> added</li></ul><p>=begin</p>
<p>=end</p> Ruby master - Bug #3320: emacs ruby-mode.el font-lock fails on symboled string ending with ?https://redmine.ruby-lang.org/issues/3320?journal_id=111352010-05-20T22:18:40Zzev (Zev Blut)zev@bebear.net
<ul></ul><h2>=begin<br>
I found another related parse error. Unfortunately, I am not sure how to fix this one.<br>
This is a multi line string that starts on one line and ends on a different line with a ?<br>
Such as:</h2>
<p>x = 'What do you think about this long<br>
text today ?'</p>
<p>def foo<br>
end</p>
<hr>
<p>=end</p> Ruby master - Bug #3320: emacs ruby-mode.el font-lock fails on symboled string ending with ?https://redmine.ruby-lang.org/issues/3320?journal_id=111602010-05-21T18:28:19Zzenspider (Ryan Davis)
<ul></ul><p>=begin</p>
<p>On May 20, 2010, at 06:18 , Zev Blut wrote:</p>
<blockquote>
<p>Issue <a class="issue tracker-1 status-8 priority-4 priority-default closed child" title="Bug: emacs ruby-mode.el font-lock fails on symboled string ending with ? (Third Party's Issue)" href="https://redmine.ruby-lang.org/issues/3320">#3320</a> has been updated by Zev Blut.</p>
<h2>I found another related parse error. Unfortunately, I am not sure how to fix this one.<br>
This is a multi line string that starts on one line and ends on a different line with a ?<br>
Such as:</h2>
<p>x = 'What do you think about this long<br>
text today ?'</p>
<p>def foo<br>
end</p>
</blockquote>
<p>In this case it is because it sees ?' or ?" and interprets that as the character notation (I have no idea what this is called). Putting a backslash in front of the ? fixes the problem locally.</p>
<p>There are a lot of different things that can trip up ruby-mode when inside a string. I tripped on one today with a multiline string with "def" in it:</p>
<p>eval "<br>
def xxx<br>
yyy<br>
end<br>
"</p>
<p>Notice that tab will indent up to the yyy as if it is actual code, not string content.</p>
<p>BTW, I'm using version 1.0 of ruby-mode.el as supplied in emacs 24.0.50. It may be more up to date in the ruby distro, but afaik, it should be shifting to emacs for distribution.</p>
<p>=end</p> Ruby master - Bug #3320: emacs ruby-mode.el font-lock fails on symboled string ending with ?https://redmine.ruby-lang.org/issues/3320?journal_id=182532011-06-26T13:46:54Zakr (Akira Tanaka)akr@fsij.org
<ul><li><strong>Project</strong> changed from <i>Ruby</i> to <i>Ruby master</i></li><li><strong>Category</strong> deleted (<del><i>misc</i></del>)</li><li><strong>Assignee</strong> set to <i>nobu (Nobuyoshi Nakada)</i></li></ul> Ruby master - Bug #3320: emacs ruby-mode.el font-lock fails on symboled string ending with ?https://redmine.ruby-lang.org/issues/3320?journal_id=183702011-06-26T16:49:15Znahi (Hiroshi Nakamura)nakahiro@gmail.com
<ul><li><strong>Target version</strong> set to <i>1.9.3</i></li></ul> Ruby master - Bug #3320: emacs ruby-mode.el font-lock fails on symboled string ending with ?https://redmine.ruby-lang.org/issues/3320?journal_id=190682011-07-11T15:09:26Zkosaki (Motohiro KOSAKI)kosaki.motohiro@gmail.com
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Assigned</i></li></ul> Ruby master - Bug #3320: emacs ruby-mode.el font-lock fails on symboled string ending with ?https://redmine.ruby-lang.org/issues/3320?journal_id=194482011-07-21T14:55:59Zkosaki (Motohiro KOSAKI)kosaki.motohiro@gmail.com
<ul><li><strong>Target version</strong> changed from <i>1.9.3</i> to <i>1.9.4</i></li></ul><p>ETIMEOUT. ruby-mode.el never be release stopper.</p> Ruby master - Bug #3320: emacs ruby-mode.el font-lock fails on symboled string ending with ?https://redmine.ruby-lang.org/issues/3320?journal_id=199652011-08-02T10:48:24Znaruse (Yui NARUSE)naruse@airemix.jp
<ul><li><strong>Parent task</strong> set to <i>#5142</i></li></ul> Ruby master - Bug #3320: emacs ruby-mode.el font-lock fails on symboled string ending with ?https://redmine.ruby-lang.org/issues/3320?journal_id=343822012-12-04T05:45:16Zdgutov (Dmitry Gutov)dgutov@yandex.ru
<ul></ul><p>All examples in this bug work fine for me with ruby-mode from the Emacs tree.<br>
Not sure when they were fixed.</p> Ruby master - Bug #3320: emacs ruby-mode.el font-lock fails on symboled string ending with ?https://redmine.ruby-lang.org/issues/3320?journal_id=344722012-12-06T17:48:09Znobu (Nobuyoshi Nakada)nobu@ruby-lang.org
<ul><li><strong>Status</strong> changed from <i>Assigned</i> to <i>Third Party's Issue</i></li></ul>