Browse Source

Fix syntax highlight for asm block when local label name is @end.

Margers 1 month ago
parent
commit
d6384e01cb
1 changed files with 3 additions and 1 deletions
  1. 3 1
      packages/ide/weditor.pas

+ 3 - 1
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:='';