diff --git a/src/ce_d2syn.pas b/src/ce_d2syn.pas index edd6c1c9..caa0c6f4 100644 --- a/src/ce_d2syn.pas +++ b/src/ce_d2syn.pas @@ -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; diff --git a/src/ce_dlang.pas b/src/ce_dlang.pas index b7a4d306..d062d784 100644 --- a/src/ce_dlang.pas +++ b/src/ce_dlang.pas @@ -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