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);
|
||||
if (reader^ = '}') and (rkAsm in fCurrRange.rangeKinds) then
|
||||
fCurrRange.rangeKinds -= [rkAsm]; ;
|
||||
if (reader+1)^ in stringPostfixes then
|
||||
if ((reader+1)^ in stringPostfixes) and not isIdentifier((reader+2)^) then
|
||||
readerNext;
|
||||
end;
|
||||
end;
|
||||
|
|
|
@ -815,8 +815,9 @@ begin
|
|||
begin
|
||||
reader.saveBeginning;
|
||||
identifier += reader.head^;
|
||||
if (reader.head^ = '}') and ((reader.head + 1)^ in stringPostfixes) then
|
||||
reader.Next;
|
||||
if (reader.head^ = '}') and ((reader.head + 1)^ in stringPostfixes) and not
|
||||
isIdentifier((reader.head + 2)^) then
|
||||
reader.Next;
|
||||
reader.Next;
|
||||
addToken(ltkSymbol);
|
||||
if callBackDoStop then
|
||||
|
|
Loading…
Reference in New Issue