[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: New development for emacs's octave-mode
From: |
Olaf Till |
Subject: |
Re: New development for emacs's octave-mode |
Date: |
Fri, 3 May 2013 09:29:50 +0200 |
User-agent: |
Mutt/1.5.20 (2009-06-14) |
On Fri, May 03, 2013 at 07:12:09AM +0800, Leo Liu wrote:
> On 2013-05-02 08:45 +0800, c. wrote:
> [snipped 32 lines]
> > try automatic indentation on this code:
> >
> > if (true)
> > a = (1 \(2-3));
> > else
> > a = 0;
> > endif
> >
> > it seems the sequence '\(' is misinterpreted and I get the result in
> > the attachment.
>
> Should be fixed. Please update your octave.el.
>
> On 2013-05-02 19:44 +0800, Olaf Till wrote:
> [snipped 9 lines]
> > Hi Leo,
> >
> > I'v just seen that it doesn't always work:
> >
> > a(1, end) -> 'end' not highlighted
> >
> > a(1, [1, end]) -> 'end' highlighted (always if 'end' is within [])
> >
> > I know nothing of emacs mode programming, so perhaps a stupid thought,
> > but since in indentation it seems to be always correctly recognized if
> > 'end' is _not_ part of an index expression, can't this information be
> > used for highlighting?
> >
> > BTW I don't know if its better to highlight 'end' within index
> > expressions or not.
> >
> > a = 'abc' -> highlighted as string
> >
> > 'abc' -> not highlighted
> >
> > "abc" -> highlighted as string
> >
> > Olaf
>
> Hopefully all these issues are resolved. Please update octave.el.
Seems all fixed.
But with some "wicked" code, one can still make the
single-quote-highlighting stumble:
a = a'; -> correctly not highlighted
a = a '; -> '; highlighted as string
(Leaving a space between a and ' is not usual, but valid.)
Olaf
--
public key id EAFE0591, e.g. on x-hkp://pool.sks-keyservers.net
signature.asc
Description: Digital signature
- Re: New development for emacs's octave-mode, Leo Liu, 2013/05/02
- Re: New development for emacs's octave-mode, Olaf Till, 2013/05/02
- Re: New development for emacs's octave-mode, Olaf Till, 2013/05/02
- Re: New development for emacs's octave-mode, Olaf Till, 2013/05/02
- Re: New development for emacs's octave-mode, Jordi GutiƩrrez Hermoso, 2013/05/02
- Re: New development for emacs's octave-mode, Leo Liu, 2013/05/02
- Re: New development for emacs's octave-mode, Olaf Till, 2013/05/02
- Re: New development for emacs's octave-mode, Leo Liu, 2013/05/02
- Re: New development for emacs's octave-mode, Olaf Till, 2013/05/03