diff --git a/parse.c b/parse.c index 9a5976a..863eee5 100644 --- a/parse.c +++ b/parse.c @@ -520,6 +520,10 @@ static void Outside(void) } TK_NextToken(); break; + case TK_REGION: // [mxd] + case TK_ENDREGION: + TK_SkipLine(); + break; default: ERR_Error(ERR_INVALID_DIRECTIVE, YES); TK_SkipLine(); diff --git a/token.c b/token.c index 7ddca99..35392a7 100644 --- a/token.c +++ b/token.c @@ -197,6 +197,8 @@ static struct keyword_s { "static", TK_STATIC }, { "strparam", TK_STRPARAM_EVAL }, // [FDARI] { "strcpy", TK_STRCPY }, // [FDARI] + { "region", TK_REGION }, // [mxd] + { "endregion", TK_ENDREGION }, // [mxd] }; #define NUM_KEYWORDS (sizeof(Keywords)/sizeof(Keywords[0])) diff --git a/token.h b/token.h index c6fa9f1..975983f 100644 --- a/token.h +++ b/token.h @@ -132,6 +132,8 @@ typedef enum TK_RSASSIGN, // '>>=' TK_STRPARAM_EVAL, // 'strparam' TK_STRCPY, // 'strcpy' + TK_REGION, // 'region' [mxd] + TK_ENDREGION, // 'endregion' [mxd] } tokenType_t; // PUBLIC FUNCTION PROTOTYPES ----------------------------------------------