jed-users mailing list

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

Re: [Jed-users-l] python mode, syntax highlighting and triple quotes


On Fri, Jun 15, 2012 at 7:36 PM, John E. Davis <davis@xxxxxxxxxxxxx> wrote:
> Lara Michaels <laramichaels1978@xxxxxxxxx> wrote:
>> s = """
>> a lonely quote ends this line "
>> """
> [...]
>> Is there a way I can fix this? (The output of jed --version follows.)
>
> The only work-around that currently exists is to escape the single
> quote:
>
>  a lonely quote ends this line \"
>
> I believe that both forms are equivalent, but the latter is more
> jed-friendly.

You could also use DFA highlighting, or highlight triple-quoted
strings as comments by adding a line
define_syntax("\"\"\"","\"\"\"", '%', $1);
to the mode.

Paul
_______________________________________________
Jed-users-l mailing list
Jed-users-l@xxxxxxxx
http://mailman.jtan.com/mailman/listinfo/jed-users-l

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