From bug-request at octave dot org Thu Feb 9 23:00:07 2006 Subject: Re: emacs mode doesn't recognize ' From: Quentin Spencer To: "John W. Eaton" CC: Bill Denney , bugs@octave.org Date: Thu, 09 Feb 2006 22:52:25 -0600 John W. Eaton wrote: >On 9-Feb-2006, Bill Denney wrote: > >| As far as I can tell, emacs mode doesn't recognize the tick (or apostrophe >| or single quote) character, ', as a string delimiter like it does for >| quote, ". >| >| I realize that the parsing of this could be tricky because of the >| transpose operator, but is this something that is fixable or just a known >| bug that we live with? > >It's a known problem and has been reported and discussed before. It >could be fixed if you are willing to do enough work to properly parse >the Octave code in the Emacs buffer. It's not important enough to me >that I'm interested in fixing it. The Matlab mode (also freely >available, I think) does distinguish between ' for strings and ' for >transpose, so you might get some ideas there. > > Yes, the Matlab mode does do this correctly, and it is GPL. I think I included a link to it the last time this came up. I think it would be really nice to create two separate syntax highlighting modes for # octave comments and % matlab-style comments, and perhaps different highlighting for '' and "" strings. This would help people who are trying to write code that runs in both octave and Matlab. -Quentin ------------------------------------------------------------- Octave is freely available under the terms of the GNU GPL. Octave's home on the web: http://www.octave.org How to fund new projects: http://www.octave.org/funding.html Subscription information: http://www.octave.org/archive.html -------------------------------------------------------------