;----------------------------------------------;
;           Coder plugin syntax file           ;
;----------------------------------------------;

;Colors
; Color need to be in #RRGGBB or #RGB format.
; If color equal to zero, then color ignored.
;
;Font styles
; 0  ignored.
; 1  normal.
; 2  bold.
; 3  italic.
; 4  bold italic.
;
;For comfort file viewing/editing set tab size to 8.


Files:
;==========
;File types
;==========
*.py
*.pyw


;----------------------------------------------;
;                  HighLight                   ;
;----------------------------------------------;

;Flags (sum of the members)
;     1  case sensitive.
;     2  word is a composition of characters ("Words:" section only). Example: "0123456789" - highlight words that contain only digits.
;     4  quote end required ("Quotes:" section only).
;     8  quote start string is ignored and last meet delimiter used as quote start ("Quotes:" section only).
;    16  quote end string is ignored and first meet delimiter used as quote end ("Quotes:" section only).
;    32  don't highlight quote start ("Quotes:" section only).
;    64  don't highlight quote end ("Quotes:" section only).
;   128  don't catch and don't highlight quote start ("Quotes:" section only).
;   256  don't catch and don't highlight quote end ("Quotes:" section only).
;   512  quote start, delimiter or word located at line start.
;  1024  quote end, delimiter or word located at line end.
;  2048  quote start is surrounded with delimiters ("Quotes:" section only).
;  4096  quote end is surrounded with delimiters ("Quotes:" section only).
;  8192  quote doesn't contain delimiters ("Quotes:" section only).
; 16384  only quote start string is catched ("Quotes:" section only).
; 32768  quote doesn't contain any character ("Quotes:" section only).


Font:
;=================================================================
;FontStyle             FontSize              FaceName
;=================================================================
${HighLight_FontStyle} ${HighLight_FontSize} ${HighLight_FaceName}


Colors:
;=============================================================================================================================================================================================================================================================================================================================================================================================================================
;BasicTextColor             BasicBkColor              SelTextColor              SelBkColor              LineTextColor              LineBkColor              LineBorderColor              AltTextColor              AltBkColor              AltBorderColor              ColumnColor              MarkerColor              CaretColor              UrlColor              ActiveUrlColor              VisitUrlColor
;=============================================================================================================================================================================================================================================================================================================================================================================================================================
${HighLight_BasicTextColor} ${HighLight_BasicBkColor} ${HighLight_SelTextColor} ${HighLight_SelBkColor} ${HighLight_LineTextColor} ${HighLight_LineBkColor} ${HighLight_LineBorderColor} ${HighLight_AltTextColor} ${HighLight_AltBkColor} ${HighLight_AltBorderColor} ${HighLight_ColumnColor} ${HighLight_MarkerColor} ${HighLight_CaretColor} ${HighLight_UrlColor} ${HighLight_ActiveUrlColor} ${HighLight_VisitUrlColor}


BkImage:
;==================================================
;BkImageFile              BkImageAlpha
;==================================================
${HighLight_BkImageFile}  ${HighLight_BkImageAlpha}


AutoMark:
;====================================================================================================================
;AutoMarkFlags             AutoMarkFontStyle              AutoMarkTextColor              AutoMarkBkColor
;====================================================================================================================
${HighLight_AutoMarkFlags} ${HighLight_AutoMarkFontStyle} ${HighLight_AutoMarkTextColor} ${HighLight_AutoMarkBkColor}


Quotes:
;===================================================================================
;Flags  Font    Color   Color   Quote   Quote   Escape  Quote   Quote   Parent  Rule
;       style   text    bkgrnd  start   end     char    include exclude ID      ID
;===================================================================================
;5=1+4
5	3	${STR}	0	`"""`	`"""`	""	""	""	0	0
;5=1+4
5	3	${STR}	0	`"`	`"`	"\"	""	""	0	0
;5=1+4
5	3	${STR}	0	"'''"	"'''"	""	""	""	0	0
;5=1+4
5	3	${STR}	0	"'"	"'"	"\"	""	""	0	0
;1=1
1	3	${COMM}	0	"#"	""	""	""	""	0	0
;8197=1+4+8192
8197	0	${VAR}	0	"__"	"__"	""	""	""	0	0


QuotesRE:
;===========================================================================================
;Flags  Pattern         \BackRef=(FontStyle,ColorText,ColorBk) \BackRef=...  ParentID RuleID
;===========================================================================================


Delimiters:
;===============================================
;Flags  Font    Color   Color   Char(s)   Parent
;       style   text    bkgrnd            ID
;===============================================
1	0	0	0	" "
1	0	0	0	"	"
1	0	${DEL1}	0	(
1	0	${DEL1}	0	)
1	0	${DEL2}	0	{
1	0	${DEL2}	0	}
1	0	${DEL2}	0	.
1	0	${DEL2}	0	,
1	0	${DEL2}	0	:
1	0	${DEL2}	0	;
1	0	${DEL2}	0	!
1	0	${DEL2}	0	~
1	0	${DEL2}	0	|
1	0	${DEL2}	0	=
1	0	${DEL2}	0	-
1	0	${DEL2}	0	*
1	0	${DEL2}	0	+
1	0	${DEL2}	0	/
1	0	${DEL2}	0	<
1	0	${DEL2}	0	>
1	0	${DEL2}	0	[
1	0	${DEL2}	0	]


Words:
;===========================================
;Flags  Font    Color   Color   Word  Parent
;       style   text    bkgrnd        ID
;===========================================
;--pythonStatement--
1	0	${OP}	0	del
1	0	${OP}	0	pass
1	0	${OP}	0	print
1	0	${OP}	0	raise
1	0	${OP}	0	global
1	0	${OP}	0	assert
1	0	${OP}	0	lambda
1	0	${OP}	0	yield
1	0	${OP}	0	def
1	0	${OP}	0	class
;--pythonOperator--
1	0	${OP}	0	and
1	0	${OP}	0	in
1	0	${OP}	0	is
1	0	${OP}	0	not
1	0	${OP}	0	or
;--pythonPreCondit--
1	0	${OP}	0	import
1	0	${OP}	0	from
1	0	${OP}	0	as
;--builtin exceptions and warnings--
1	0	${OP}	0	ArithmeticError
1	0	${OP}	0	AssertionError
1	0	${OP}	0	AttributeError
1	0	${OP}	0	DeprecationWarning
1	0	${OP}	0	EOFError
1	0	${OP}	0	EnvironmentError
1	0	${OP}	0	Exception
1	0	${OP}	0	FloatingPointError
1	0	${OP}	0	IOError
1	0	${OP}	0	ImportError
1	0	${OP}	0	IndentationError
1	0	${OP}	0	IndexError
1	0	${OP}	0	KeyError
1	0	${OP}	0	KeyboardInterrupt
1	0	${OP}	0	LookupError
1	0	${OP}	0	MemoryError
1	0	${OP}	0	NameError
1	0	${OP}	0	NotImplementedError
1	0	${OP}	0	OSError
1	0	${OP}	0	OverflowError
1	0	${OP}	0	OverflowWarning
1	0	${OP}	0	ReferenceError
1	0	${OP}	0	RuntimeError
1	0	${OP}	0	RuntimeWarning
1	0	${OP}	0	StandardError
1	0	${OP}	0	StopIteration
1	0	${OP}	0	SyntaxError
1	0	${OP}	0	SyntaxWarning
1	0	${OP}	0	SystemError
1	0	${OP}	0	SystemExit
1	0	${OP}	0	TabError
1	0	${OP}	0	TypeError
1	0	${OP}	0	UnboundLocalError
1	0	${OP}	0	UnicodeError
1	0	${OP}	0	UnicodeEncodeError
1	0	${OP}	0	UnicodeDecodeError
1	0	${OP}	0	UnicodeTranslateError
1	0	${OP}	0	UserWarning
1	0	${OP}	0	ValueError
1	0	${OP}	0	Warning
1	0	${OP}	0	WindowsError
1	0	${OP}	0	ZeroDivisionError
;--builtin functions, types and objects, not really part of the syntax--
1	0	${OP}	0	True
1	0	${OP}	0	False
1	0	${OP}	0	bool
1	0	${OP}	0	enumerate
1	0	${OP}	0	set
1	0	${OP}	0	frozenset
1	0	${OP}	0	help
1	0	${OP}	0	reversed
1	0	${OP}	0	sorted
1	0	${OP}	0	sum
1	0	${OP}	0	Ellipsis
1	0	${OP}	0	None
1	0	${OP}	0	NotImplemented
1	0	${OP}	0	__import__
1	0	${OP}	0	abs
1	0	${OP}	0	apply
1	0	${OP}	0	buffer
1	0	${OP}	0	callable
1	0	${OP}	0	chr
1	0	${OP}	0	classmethod
1	0	${OP}	0	cmp
1	0	${OP}	0	coerce
1	0	${OP}	0	compile
1	0	${OP}	0	complex
1	0	${OP}	0	delattr
1	0	${OP}	0	dict
1	0	${OP}	0	dir
1	0	${OP}	0	divmod
1	0	${OP}	0	eval
1	0	${OP}	0	execfile
1	0	${OP}	0	file
1	0	${OP}	0	filter
1	0	${OP}	0	float
1	0	${OP}	0	getattr
1	0	${OP}	0	globals
1	0	${OP}	0	hasattr
1	0	${OP}	0	hash
1	0	${OP}	0	hex
1	0	${OP}	0	id
1	0	${OP}	0	input
1	0	${OP}	0	int
1	0	${OP}	0	intern
1	0	${OP}	0	isinstance
1	0	${OP}	0	issubclass
1	0	${OP}	0	iter
1	0	${OP}	0	len
1	0	${OP}	0	list
1	0	${OP}	0	locals
1	0	${OP}	0	long
1	0	${OP}	0	map
1	0	${OP}	0	max
1	0	${OP}	0	min
1	0	${OP}	0	object
1	0	${OP}	0	oct
1	0	${OP}	0	open
1	0	${OP}	0	ord
1	0	${OP}	0	pow
1	0	${OP}	0	property
1	0	${OP}	0	range
1	0	${OP}	0	raw_input
1	0	${OP}	0	reduce
1	0	${OP}	0	reload
1	0	${OP}	0	repr
1	0	${OP}	0	round
1	0	${OP}	0	setattr
1	0	${OP}	0	slice
1	0	${OP}	0	staticmethod
1	0	${OP}	0	str
1	0	${OP}	0	super
1	0	${OP}	0	tuple
1	0	${OP}	0	type
1	0	${OP}	0	unichr
1	0	${OP}	0	unicode
1	0	${OP}	0	vars
1	0	${OP}	0	xrange
1	0	${OP}	0	zip
;--pythonRepeat--
1	2	${IF}	0	for
1	2	${IF}	0	while
1	2	${IF}	0	break
1	2	${IF}	0	return
1	2	${IF}	0	try
1	2	${IF}	0	with
1	2	${IF}	0	except
1	2	${IF}	0	exec
1	2	${IF}	0	finally
1	2	${IF}	0	continue
1	2	${IF}	0	if
1	2	${IF}	0	elif
1	2	${IF}	0	else


;----------------------------------------------;
;                   CodeFold                   ;
;----------------------------------------------;

;Flags (sum of the members)
;       1  case sensitive.
;       2  force get fold name for function list from left at the fold start ("Folds:" section only).
;       4  force get fold name for function list from right at the fold start, including fold start ("Folds:" section only).
;       8  fold start ("Folds:" section) or skip start ("Skips:" section) located at line start.
;      16  fold start ("Folds:" section) or skip start ("Skips:" section) located at line end.
;      32  fold end ("Folds:" section) or skip end ("Skips:" section) located at line start.
;      64  fold end ("Folds:" section) or skip end ("Skips:" section) located at line end.
;     128  don't catch fold end ("Folds:" section) or skip end ("Skips:" section).
;     256  additional to 128 flag - more priority is given to sibling level instead of parent level ("Folds:" section only).
;     512  comment fold - fold ignore any other folds and skips inside ("Folds:" section only).
;    1024  reserved.
;    2048  deny fold - founded fold will be ignored ("Folds:" section only).
;    4096  xml fold - "<tag" and "</tag>", "<single" and "/>", "<single" and ">" ("Folds:" section only).
;    8192  don't check delimiters from left of fold start ("Folds:" section only).
;   16384  don't check delimiters from right of fold start ("Folds:" section only).
;   32768  don't check delimiters from left of fold end ("Folds:" section only).
;   65536  don't check delimiters from right of fold end ("Folds:" section only).
;  131072  deny delimiters ("Folds:" section only).
;  262144  don't show fold in list ("Folds:" section only).
; 1048576  regular expression in fold start ("Folds:" section) or skip start ("Skips:" section).
; 2097152  regular expression in fold end ("Folds:" section) or skip end ("Skips:" section). Backreference \101 matches \1 in fold start, \102 matches \2 and so on.


FoldPanel:
;=================================================================================================================================================================================================================================================================================================================================================================================================================================================================
;PanelFirstBkColor            PanelSecondBkColor             PanelNormalFoldColor             PanelActiveFoldColor             PanelNormalNodeOpenBkColor             PanelNormalNodeCloseBkColor             PanelActiveNodeOpenBkColor             PanelActiveNodeCloseBkColor             PanelNormalNodeOpenSignColor             PanelNormalNodeCloseSignColor             PanelActiveNodeOpenSignColor             PanelActiveNodeCloseSignColor
;=================================================================================================================================================================================================================================================================================================================================================================================================================================================================
${CodeFold_PanelFirstBkColor} ${CodeFold_PanelSecondBkColor} ${CodeFold_PanelNormalFoldColor} ${CodeFold_PanelActiveFoldColor} ${CodeFold_PanelNormalNodeOpenBkColor} ${CodeFold_PanelNormalNodeCloseBkColor} ${CodeFold_PanelActiveNodeOpenBkColor} ${CodeFold_PanelActiveNodeCloseBkColor} ${CodeFold_PanelNormalNodeOpenSignColor} ${CodeFold_PanelNormalNodeCloseSignColor} ${CodeFold_PanelActiveNodeOpenSignColor} ${CodeFold_PanelActiveNodeCloseSignColor}


FoldList:
;================================================
;ListTextColor            ListBkColor
;================================================
${CodeFold_ListTextColor} ${CodeFold_ListBkColor}


TagMark:
;============================================================================================================
;TagMarkFlags            TagMarkFontStyle             TagMarkTextColor             TagMarkBkColor
;============================================================================================================
${CodeFold_TagMarkFlags} ${CodeFold_TagMarkFontStyle} ${CodeFold_TagMarkTextColor} ${CodeFold_TagMarkBkColor}


Skips:
;=============================
;Flags  Skip    Skip    Escape
;       start   end     char
;=============================
1	`'`	`'`	"\"


Folds:
;===================================================================================
;Flags  Font    Color   Color   Fold      Fold     Deli         Parent  Rule    Rule
;       style   text    bkgrnd  start     end      miters       ID      ID      file
;===================================================================================
;173=1+4+8+32+128
173	0	0	0	"class"   "class"  " 	"       0	0
;173=1+4+8+32+128
173	0	0	0	"def"     "def"    " 	"       0	0
;173=1+4+8+32+128
173	0	0	0	"def"     "class"  " 	"       0	0
;513=1+512
513	3	${STR}	0	`"""`     `"""`    ""           0	0
;513=1+512
513	3	${STR}	0	"'''"     "'''"    ""           0	0


;----------------------------------------------;
;                 AutoComplete                 ;
;----------------------------------------------;

;Flags (sum of the members)
;  1  force case sensitive.
;  2  force case insensitive.
;  4  regular expression (only for "$="). Scan starts from caret line beginning and metacharacters \a or \z specified caret position.
;  8  Don't show in listbox.


CompleteList:
;=====================================================================================================================================================================================================================================================================================================================================================================================================================================================================
;ListFontStyle                ListFontSize                 ListFaceName                 ListLineGap                 ListBlockIcon `"C:\1.dll", 0` ListBlockIconMargins "left;right"    ListHlBaseIcon `"C:\1.dll", 0` ListHlBaseIconMargins "left;right"    ListDocWordIcon `"C:\1.dll", 0` ListDocWordIconMargins "left;right"    ListBasicTextColor                 ListBasicBkColor                 ListSelTextColor                 ListSelBkColor
;=====================================================================================================================================================================================================================================================================================================================================================================================================================================================================
${AutoComplete_ListFontStyle} ${AutoComplete_ListFontSize} ${AutoComplete_ListFaceName} ${AutoComplete_ListLineGap} ${AutoComplete_ListBlockIcon} ${AutoComplete_ListBlockIconMargins} ${AutoComplete_ListHlBaseIcon} ${AutoComplete_ListHlBaseIconMargins} ${AutoComplete_ListDocWordIcon} ${AutoComplete_ListDocWordIconMargins} ${AutoComplete_ListBasicTextColor} ${AutoComplete_ListBasicBkColor} ${AutoComplete_ListSelTextColor} ${AutoComplete_ListSelBkColor}


Blocks:
;=============================================================================
;Abbreviations and blocks
;
; $~abbr         normal abbreviation.
; $(flags)~abbr  normal abbreviation with flags.
; $=abbr         exact abbreviation. May contain delimiters.
; $(flags)=abbr  exact abbreviation with flags. May contain delimiters.
; $[]            set caret to this position. Can be multiple (hot spots).
; $[text]        select text. Can be multiple (hot spots).
; $$             symbol $.
; $\]            escape symbol ]. Can be used in $[text] block: $[One [1$\] ].
; ${VAR}         variable assigned from Coder::Settings.
; $;             comment line.
;=============================================================================
$~def
def $[]:
${AutoComplete_Indent}$[]

$~class
class $[]:
${AutoComplete_Indent}$[]

$~if
if $[]:
${AutoComplete_Indent}$[]

$~for
for $[] in $[]:
${AutoComplete_Indent}$[]

$~while
while $[]:
${AutoComplete_Indent}$[]

$~try
try:
${AutoComplete_Indent}$[]
except $[]:
${AutoComplete_Indent}$[]
