- Subject: Re: [Jed-users-l] python mode, syntax highlighting and triple quotes
- From: Manfred Hanke <Manfred.Hanke@xxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Sat, 16 Jun 2012 11:25:42 +0200
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]