jed-users mailing list

[2017 Date Index] [2017 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

Re: [jed-users] Re: Perl multiline string highlighting?


Ulli Horlacher <framstag@xxxxxxxxxxxxxxxxxxxx> wrote:
> Ok, I have added this line in perl.sl after:
>
> define_syntax('"', '"', $1);
>
> But when I edit a perl file, `command` is still not highlighted.

I had forgotten that jed supports 2 string delimiters per syntax
table.  I have since made changes that increase that number to 6.  See
<http://www.jedsoft.org/snapshots/> for the latest version.

Alternatively, you can give the backtick a character-delimiter syntax,
which will also have the desired effect:

  define_syntax('`', '\'', $1);

Also, remove ` from the operator syntax.  That is, change

  define_syntax("!&*+-/<=>^|~", '+', $1);

to

  define_syntax("!&*+-/<=>^|~", '+', $1);

Thanks,
--John
_______________________________________________
For list information, visit <http://jedsoft.org/jed/mailinglists.html>.


[2017 date index] [2017 thread index]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]