From d6384e01cbbcbfd5a7dc113b29084ccdf2633093 Mon Sep 17 00:00:00 2001 From: Margers Date: Mon, 30 Jun 2025 06:18:08 +0000 Subject: [PATCH] Fix syntax highlight for asm block when local label name is @end. --- packages/ide/weditor.pas | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/ide/weditor.pas b/packages/ide/weditor.pas index ec137082a7..1d932a021d 100644 --- a/packages/ide/weditor.pas +++ b/packages/ide/weditor.pas @@ -2643,7 +2643,9 @@ var Dec(ClassStart,length(MatchingSymbol)-1); end else if (InComment=false) and (InString=true) and IsStringSuffix then - InString:=false; + InString:=false + else if (InAsm) and (C='@') then + CC:=ccAlpha; { local labels in asm block will be normal words } end; if MatchedSymbol and (InComment=false) then SymbolConcat:='';