mirror of https://gitlab.com/basile.b/dexed.git
fix #229 - `class` not highlighted correctly when contiguous to a right curly bracket
This commit is contained in:
parent
ee4b928c8c
commit
382ae6c7bd
|
@ -840,7 +840,7 @@ begin
|
||||||
EndCodeFoldBlock(fkBrackets in fFoldKinds);
|
EndCodeFoldBlock(fkBrackets in fFoldKinds);
|
||||||
if (reader^ = '}') and (rkAsm in fCurrRange.rangeKinds) then
|
if (reader^ = '}') and (rkAsm in fCurrRange.rangeKinds) then
|
||||||
fCurrRange.rangeKinds -= [rkAsm]; ;
|
fCurrRange.rangeKinds -= [rkAsm]; ;
|
||||||
if (reader+1)^ in stringPostfixes then
|
if ((reader+1)^ in stringPostfixes) and not isIdentifier((reader+2)^) then
|
||||||
readerNext;
|
readerNext;
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
|
@ -815,7 +815,8 @@ begin
|
||||||
begin
|
begin
|
||||||
reader.saveBeginning;
|
reader.saveBeginning;
|
||||||
identifier += reader.head^;
|
identifier += reader.head^;
|
||||||
if (reader.head^ = '}') and ((reader.head + 1)^ in stringPostfixes) then
|
if (reader.head^ = '}') and ((reader.head + 1)^ in stringPostfixes) and not
|
||||||
|
isIdentifier((reader.head + 2)^) then
|
||||||
reader.Next;
|
reader.Next;
|
||||||
reader.Next;
|
reader.Next;
|
||||||
addToken(ltkSymbol);
|
addToken(ltkSymbol);
|
||||||
|
|
Loading…
Reference in New Issue