SynPasHighlighter recognize {$IF ...}

git-svn-id: trunk@26346 -
This commit is contained in:
martin 2010-06-30 12:28:12 +00:00
parent 9e1d9075fb
commit e8a130ff2f

View File

@ -2289,7 +2289,7 @@ begin
inc(Run,2);
fToIdent := Run;
KeyHash;
if KeyComp('ifdef') or KeyComp('ifndef') then
if KeyComp('ifdef') or KeyComp('ifndef') or KeyComp('if') then
StartCustomCodeFoldBlock(cfbtIfDef)
else if KeyComp('endif') then
EndCustomCodeFoldBlock(cfbtIfDef)