Ver Fonte

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

Margers há 3 meses atrás
pai
commit
d6384e01cb
1 ficheiros alterados com 3 adições e 1 exclusões
  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:='';