mirror of
https://github.com/ZDoom/acc.git
synced 2024-11-14 08:31:05 +00:00
Added #region / #endregion handling.
This commit is contained in:
parent
0f40a7aebe
commit
4c10065b3b
3 changed files with 8 additions and 0 deletions
4
parse.c
4
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();
|
||||
|
|
2
token.c
2
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]))
|
||||
|
|
2
token.h
2
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 ----------------------------------------------
|
||||
|
|
Loading…
Reference in a new issue