mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-10-23 14:41:26 +02:00
synedit: allowing @end labels in asm blocks
git-svn-id: trunk@15944 -
This commit is contained in:
parent
6e54405b2c
commit
69c476ffef
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user