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 06/16/2012 06:07 AM, Paul Boekholt wrote:
> You could also use DFA highlighting, or highlight triple-quoted
> strings as comments by adding a line
> define_syntax("\"\"\"","\"\"\"", '%', $1);
> to the mode.

By the way, as of S-Lang pre-2.2.0-11, string literals can also be
delimited by backtics, see also
http://www.jedsoft.org/slang/doc/html/slang-4.html#Strings. In this way,
backslashes can often be avoided.

In recent S-Lang, the above statement is therefore equivalent to:
   define_syntax(`"""`, `"""`, '%', $1);

Cheers,

Manfred
_______________________________________________
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]