diff --git a/src/ce_d2syn.pas b/src/ce_d2syn.pas index 976b7e22..2c03f0eb 100644 --- a/src/ce_d2syn.pas +++ b/src/ce_d2syn.pas @@ -814,8 +814,9 @@ begin if fLineBuf[FTokStart..fTokStop-1] = fCurrIdent then fTokKind := tkCurrI; //check asm range - if fLineBuf[FTokStart..fTokStop-1] = 'asm' then - fCurrRange.rangeKinds += [rkAsm]; + if fTokKind = tkKeywd then + if fLineBuf[FTokStart..fTokStop-1] = 'asm' then + fCurrRange.rangeKinds += [rkAsm]; exit; end;