From: August Lilleaas Date: 2008-10-15T17:59:21+09:00 Subject: [ruby-core:19341] ruby-mode for Emacs - :"should this work?" ------=_Part_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: : I'm using (defconst ruby-mode-revision "$Revision: 19208 quot; : and ... can reproduce your bug... you should write ruby-core about that : btw, backslashing the ? fixes it : but, so does dropping the quotes. :yay? is valid too : the problem is that it is lexing ?" as an int first : so it never sees the termination I'm using (defconst ruby-mode-revision "$Revision: 1.74.2.14.2.1 $"). ------=_Part_24564_14521103.1224061173032 Content-Type: text/html; 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?"


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 $").
------=_Part_24564_14521103.1224061173032--