- Subject: Re: fixed matlab mode?
- From: "John E. Davis" <davis@xxxxxxxxxxxxx>
- Date: Mon, 6 Jun 2005 09:58:56 -0400
Brian Blais <bblais@xxxxxxxxxx> wrote:
>I saw a patch for the matlab mode for an older version of jed
>(http://modeemi.fi/~tuomov/randomhack.html), and was wondering if this
>issue was going to be resolved in future jed versions? The basic
>problem is that matlab uses the single quote as both transpose operator
>and the string delimiter. So, if you use the transpose operator, then
>jed highlights the rest of the code as a string, and the auto indent
>breaks. Is there any workaround?
As far as I can see, matlab.sl does not assign any syntax to the
single quote character. If you add
define_syntax ('\'', '\'', $1);
to the appropriate section of matlab.sl, then it will cause the
problem that you mentioned. A partial solution is change the line
set_syntax_flags ($1, 4);
to
set_syntax_flags ($1, 4|0x80);
Is this solution sufficient for your needs?
Thanks,
--John
--------------------------
To unsubscribe send email to <jed-users-request@xxxxxxxxxxx> with
the word "unsubscribe" in the message body.
Need help? Email <jed-users-owner@xxxxxxxxxxx>.
[2005 date index]
[2005 thread index]
[Thread Prev] [Thread Next]
[Date Prev] [Date Next]