- Fix an issue where text is not highlighted correctly if there is no space or symbol between a single line comment or variable and the end tag "?>".
AdjustCharPosInTextBlocks(pBuf, nActualItems, nActualItems + nActualItemsEmbedded - 1, I);
nActualItems += nActualItemsEmbedded;
if (!pszEnd)
- dwCookie |= COOKIE_EXT_USER1;
+ {
+ dwCookie |= COOKIE_EXT_USER1;
+ nextI += 1;
+ }
else if ((nEmbeddedLanguage == SRC_PHP) && (dwCookie & (COOKIE_EXT_COMMENT | COOKIE_STRING | COOKIE_CHAR)))
{
// A closing tag in a comment or string.
}
else
{
+ if (I > 0)
+ nextI += 1;
dwCookie = 0;
bRedefineBlock = true;
}
if (nIdentBegin >= 0)
{
+ if (dwCookie & COOKIE_USER2)
+ {
+ DEFINE_BLOCK(nIdentBegin, COLORINDEX_USER1);
+ }
if (IsPhpKeyword (pszChars + nIdentBegin, I - nIdentBegin))
{
DEFINE_BLOCK (nIdentBegin, COLORINDEX_KEYWORD);