From b59cc47e5345a3dad7a7901150f26e209754084f Mon Sep 17 00:00:00 2001 From: MaxED Date: Mon, 15 Feb 2016 15:56:25 +0300 Subject: [PATCH] Fixed: #region blocks should not increase outertokencount (otherwise #library inside a #region will generate the ERR_LIBRARY_NOT_FIRST error). --- parse.c | 1 + 1 file changed, 1 insertion(+) diff --git a/parse.c b/parse.c index 1b62b2e..459079b 100644 --- a/parse.c +++ b/parse.c @@ -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: