Fix for #199 - stop tokenising after the first symbol when inside a disabled code blcok

This commit is contained in:
ggn 2022-12-20 21:39:51 +02:00 committed by Shamus Hammons
parent a095d8edf0
commit e6e125acd9
1 changed files with 8 additions and 0 deletions

View File

@ -1257,6 +1257,14 @@ DEBUG { printf("TokenizeLine: Calling fpop() from SRC_IFILE...\n"); }
if (stuffnull) // Arrange for string termination on next pass
nullspot = ln;
if (disabled)
{
// When we are in a disabled code block, the only thing that can break out
// of this is an ".endif" keyword, so this is the minimum we have to parse
// in order to discover such a keyword.
goto goteol;
}
continue;
}