Fixed: #region blocks should not increase outertokencount (otherwise #library inside a #region will generate the ERR_LIBRARY_NOT_FIRST error).

This commit is contained in:
MaxED 2016-02-15 15:56:25 +03:00
parent 61db6c3fd2
commit b59cc47e53

View file

@ -522,6 +522,7 @@ static void Outside(void)
break;
case TK_REGION: // [mxd]
case TK_ENDREGION:
outertokencount--; // #region markers should not count as "real" tokens
TK_SkipLine();
break;
default: