;Python Syntax highlight Script for Twistpad
;1998 - 2022 © Carthago Software

[::Header::]
SyntaxName=Python
Extensions=py;pyc
Spelling=0 
SpellingContexts=1;2;3;4

[Comment1]
Type=StartStop
Context=1
Scope=0
Priority=10
WholeWordOnly=0
First=#
Last=
ColorConstant=ColorComments
italic=0

[Comment2]
Type=StartStop
Context=2
Scope=0
Priority=10
WholeWordOnly=0
First="""
Last="""
ColorConstant=ColorComments
italic=0
Outline=1

[Comment3]
Type=StartStop
Context=3
Scope=0
Priority=10
WholeWordOnly=0
First='''
Last='''
ColorConstant=ColorComments
italic=0
Outline=1

[Quote]
Type=StartStop
Context=3
Scope=0
Priority=10
WholeWordOnly=0
First="
Last="
ColorConstant=ColorStrings


[Quote2]
Type=StartStop
Context=4
Scope=0
Priority=10
WholeWordOnly=0
First='
Last='
ColorConstant=ColorStrings

[python Keywords]
Type=keyword
Context=101
Scope=0
Priority=6
WholeWordOnly=1
CaseSensitive=0
Keyword1=if;in;is;or;and;def;del;for;not;try;else;elif;exec;from;pass;break;class;print;raise
Keyword3=while;assert;except;global;import;lambda;return;finally;continue;import
ColorConstant=ColorKeyword1
Bold=1
