;----------------------------------------------;
;           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
;==========
*.dpr
*.pas


;----------------------------------------------;
;                  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
;1=1
1	3	${COMM}	0	"//"	""	":"	""	""	0	0
;5=1+4
5	0	${VAR}	0	"{$"	"}"	""	""	""	0	0
;5=1+4
5	3	${COMM}	0	"{"	"}"	""	""	""	0	0
;5=1+4
5	3	${COMM}	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	^


Words:
;===========================================
;Flags  Font    Color   Color   Word  Parent
;       style   text    bkgrnd        ID
;===========================================
;--Types--
0	0	${TYPE}	0	Const
0	0	${TYPE}	0	File
0	0	${TYPE}	0	Out
0	0	${TYPE}	0	String
0	0	${TYPE}	0	ThreadVar
0	0	${TYPE}	0	Var
0	0	${TYPE}	0	AnsiChar
0	0	${TYPE}	0	AnsiString
0	0	${TYPE}	0	Boolean
0	0	${TYPE}	0	Byte
0	0	${TYPE}	0	ByteBool
0	0	${TYPE}	0	Cardinal
0	0	${TYPE}	0	Comp
0	0	${TYPE}	0	Currency
0	0	${TYPE}	0	Integer
0	0	${TYPE}	0	LongBool
0	0	${TYPE}	0	LongInt
0	0	${TYPE}	0	LongWord
0	0	${TYPE}	0	OleVariant
0	0	${TYPE}	0	OpenString
0	0	${TYPE}	0	PAnsiChar
0	0	${TYPE}	0	PChar
0	0	${TYPE}	0	PWideChar
0	0	${TYPE}	0	Pointer
0	0	${TYPE}	0	ShortInt
0	0	${TYPE}	0	ShortString
0	0	${TYPE}	0	SmallInt
0	0	${TYPE}	0	TDateTime
0	0	${TYPE}	0	TextFile
0	0	${TYPE}	0	Variant
0	0	${TYPE}	0	WideChar
0	0	${TYPE}	0	WideString
0	0	${TYPE}	0	Word
0	0	${TYPE}	0	WordBool
0	0	${TYPE}	0	Byte
0	0	${TYPE}	0	Char
0	0	${TYPE}	0	Double
0	0	${TYPE}	0	Extended
0	0	${TYPE}	0	Int64
0	0	${TYPE}	0	Real
0	0	${TYPE}	0	Real46
0	0	${TYPE}	0	Single
0	0	${TYPE}	0	Text
;--Math--
0	0	${OP}	0	And
0	0	${OP}	0	As
0	0	${OP}	0	Div
0	0	${OP}	0	In
0	0	${OP}	0	Is
0	0	${OP}	0	Mod
0	0	${OP}	0	Not
0	0	${OP}	0	Or
0	0	${OP}	0	Shl
0	0	${OP}	0	Shr
0	0	${OP}	0	Xor
;--Operators--
0	0	${OP}	0	Absolute
0	0	${OP}	0	Abstract
0	0	${OP}	0	Asm
0	0	${OP}	0	Assembler
0	0	${OP}	0	Automated
0	0	${OP}	0	Begin
0	0	${OP}	0	Cdecl
0	0	${OP}	0	Class
0	0	${OP}	0	Constructor
0	0	${OP}	0	Contains
0	0	${OP}	0	Destructor
0	0	${OP}	0	DispID
0	0	${OP}	0	DispInterface
0	0	${OP}	0	Dynamic
0	0	${OP}	0	End
0	0	${OP}	0	Export
0	0	${OP}	0	Exports
0	0	${OP}	0	External
0	0	${OP}	0	Far
0	0	${OP}	0	Finalization
0	0	${OP}	0	Forward
0	0	${OP}	0	Function
0	0	${OP}	0	Implementation
0	0	${OP}	0	Inherited
0	0	${OP}	0	Initialization
0	0	${OP}	0	Inline
0	0	${OP}	0	Interface
0	0	${OP}	0	Interrupt
0	0	${OP}	0	Label
0	0	${OP}	0	Library
0	0	${OP}	0	Message
0	0	${OP}	0	Near
0	0	${OP}	0	Object
0	0	${OP}	0	Overload
0	0	${OP}	0	Override
0	0	${OP}	0	Package
0	0	${OP}	0	Packed
0	0	${OP}	0	Pascal
0	0	${OP}	0	Private
0	0	${OP}	0	Procedure
0	0	${OP}	0	Program
0	0	${OP}	0	Property
0	0	${OP}	0	Protected
0	0	${OP}	0	Public
0	0	${OP}	0	Published
0	0	${OP}	0	Raise
0	0	${OP}	0	Record
0	0	${OP}	0	Reintroduce
0	0	${OP}	0	Requires
0	0	${OP}	0	Resident
0	0	${OP}	0	Result
0	0	${OP}	0	ResourceString
0	0	${OP}	0	SafeCall
0	0	${OP}	0	Set
0	0	${OP}	0	Self
0	0	${OP}	0	SizeOf
0	0	${OP}	0	StdCall
0	0	${OP}	0	Register
0	0	${OP}	0	Type
0	0	${OP}	0	Unit
0	0	${OP}	0	Uses
0	0	${OP}	0	Virtual
;--Conditional--
0	0	${IF}	0	Array
0	0	${IF}	0	Break
0	0	${IF}	0	Case
0	0	${IF}	0	Do
0	0	${IF}	0	DownTo
0	0	${IF}	0	Else
0	0	${IF}	0	Except
0	0	${IF}	0	Exit
0	0	${IF}	0	Finally
0	0	${IF}	0	For
0	0	${IF}	0	Goto
0	0	${IF}	0	If
0	0	${IF}	0	Of
0	0	${IF}	0	On
0	0	${IF}	0	Repeat
0	0	${IF}	0	Then
0	0	${IF}	0	To
0	0	${IF}	0	Try
0	0	${IF}	0	Until
0	0	${IF}	0	While
0	0	${IF}	0	With


;----------------------------------------------;
;                   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).


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	"'"	"'"	"\"
1	"//"	""	":"


Folds:
;===========================================================================================
;Flags  Font    Color   Color   Fold              Fold      Deli        Parent  Rule    Rule
;       style   text    bkgrnd  start             end       miters      ID      ID      file
;===========================================================================================
;1049089=1+512+1048576
1049089	3	${COMM}	0	"\{(?!\$)"        "}"       ""          0	0
;513=1+512
513	3	${COMM}	0	"(*"              "*)"      ""          0	0
2	0	0	0	"case"            "end"     " 	;.}"    0	0
2	0	0	0	"begin"           "end"     " 	;.}"    0	0
2	0	0	0	"implementation"  "end"     " 	;.}"    0	0
2	0	0	0	"repeat"          "until"   " 	;.}"    0	0
;--try--
2	0	0	0	"try"             "end"     " 	;.}"    0	0
;130=2+128
130	0	0	0	"try"             "except"  " 	;.}"    0	0
;130=2+128
130	0	0	0	"try"             "finally" " 	;.}"    0	0
2	0	0	0	"except"          "end"     " 	;.}"    0	0
2	0	0	0	"finally"         "end"     " 	;.}"    0	0
;--Definitions--
2	0	0	0	"record"          "end"     " 	;.}"    0	0
2048	0	0	0	"class;"          ""        ""
2	0	0	0	"class"           "end"     " 	;.}("   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.
;=============================================================================
$~if
if $[] then
begin
${AutoComplete_Indent}$[]
end;

$~while
while $[] do
begin
${AutoComplete_Indent}$[]
end;

$~for
for $[] to $[] do
begin
${AutoComplete_Indent}$[]
end;

$~with
with $[] do
begin
${AutoComplete_Indent}$[]
end;

$~repeat
repeat
${AutoComplete_Indent}$[]
until $[];

$~case
case $[] of
${AutoComplete_Indent}$[]
end;

$~procedure
procedure $[];
begin
${AutoComplete_Indent}$[]
end;

$~function
function $[];
begin
${AutoComplete_Indent}$[]
end;
