------ art_24564_14521103.1224061173032
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Not knowing it's actual term, I'll call them "symbols that are strings". If
your symbols has any characters in it except a-z0-9?! (or more, or less, for
all I know), you can use :"this awesome!!! syntax". The ruby-mode for emacs
doesn't parse these properly if they end with a question mark, though. An
example: :"active?"
Here's a screenshot:
http://img.skitch.com/20081015-nn18y2pmbqyrj4p1apxaf1a91c.png
And, here's what zenspider said in #ruby-lang:
<zenspider>: I'm using (defconst ruby-mode-revision "$Revision: 19208 quot;
<zenspider>: and ... can reproduce your bug... you should write
ruby-core about that
<zenspider>: btw, backslashing the ? fixes it
<zenspider>: but, so does dropping the quotes. :yay? is valid too
<zenspider>: the problem is that it is lexing ?" as an int first
<zenspider>: so it never sees the termination
I'm using (defconst ruby-mode-revision "$Revision: 1.74.2.14.2.1 $").
------ art_24564_14521103.1224061173032
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
<div dir tr">Not knowing it's actual term, I'll call them "symbols that are strings". If your symbols has any characters in it except a-z0-9?! (or more, or less, for all I know), you can use :"this awesome!!! syntax". The ruby-mode for emacs doesn't parse these properly if they end with a question mark, though. An example: :"active?"<div>
<br></div><div>Here's a screenshot: <a href ttp://img.skitch.com/20081015-nn18y2pmbqyrj4p1apxaf1a91c.png">http://img.skitch.com/20081015-nn18y2pmbqyrj4p1apxaf1a91c.png</a></div><div><br></div><div>And, here's what zenspider said in #ruby-lang:</div>
<div><br></div><zenspider>: I'm using (defconst ruby-mode-revision "$Revision: 19208 quot;<br><zenspider>: and ... can reproduce your bug... you should write ruby-core about that<br><zenspider>: btw, backslashing the ? fixes it<br>
<zenspider>: but, so does dropping the quotes. :yay? is valid too<br><zenspider>: the problem is that it is lexing ?" as an int first<br><zenspider>: so it never sees the termination<br><div>
<div><br></div><div>I'm using (defconst ruby-mode-revision "$Revision: 1.74.2.14.2.1 $").</div></div></div>
------ art_24564_14521103.1224061173032--