synedit: allowing @end labels in asm blocks

git-svn-id: trunk@15944 -
This commit is contained in:
mattias 2008-08-03 20:18:07 +00:00
parent 6e54405b2c
commit 69c476ffef

View File

@ -671,7 +671,7 @@ end;
function TSynPasSyn.Func23: TtkTokenKind;
begin
if KeyComp('End') then begin
if ((fToIdent<3) or (fLine[fToIdent-2]<>'@') or (fLine[fToIdent-1]<>'@'))
if ((fToIdent<2) or (fLine[fToIdent-1]<>'@'))
then begin
Result := tkKey;
fRange := rsUnknown;
@ -682,7 +682,7 @@ begin
EndCodeFoldBlock;
{$ENDIF}
end else begin
Result := tkKey; // @@end label
Result := tkKey; // @@end or @end label
end;
end else
if KeyComp('In') then Result := tkKey else Result := tkIdentifier;