mirror of http://shamusworld.gotdns.org/git/rmac
Fix for #199 - stop tokenising after the first symbol when inside a disabled code blcok
This commit is contained in:
parent
a095d8edf0
commit
e6e125acd9
8
token.c
8
token.c
|
@ -1257,6 +1257,14 @@ DEBUG { printf("TokenizeLine: Calling fpop() from SRC_IFILE...\n"); }
|
||||||
if (stuffnull) // Arrange for string termination on next pass
|
if (stuffnull) // Arrange for string termination on next pass
|
||||||
nullspot = ln;
|
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;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue