make const actually work, and add unsafe(const) for old behavior
This commit is contained in:
parent
236c9b4224
commit
7e86116ab1
9 changed files with 25 additions and 16 deletions
|
|
@ -177,6 +177,7 @@ std2:
|
|||
/* Other keywords from UnrealScript */
|
||||
'abstract' { RET(TK_Abstract); }
|
||||
'foreach' { RET(ParseVersion >= MakeVersion(4, 10, 0)? TK_ForEach : TK_Identifier); }
|
||||
'unsafe' { RET(ParseVersion >= MakeVersion(4, 15, 0)? TK_Unsafe : TK_Identifier); }
|
||||
'true' { RET(TK_True); }
|
||||
'false' { RET(TK_False); }
|
||||
'none' { RET(TK_None); }
|
||||
|
|
|
|||
|
|
@ -80,6 +80,7 @@ xx(TK_Color, "'color'")
|
|||
xx(TK_Goto, "'goto'")
|
||||
xx(TK_Abstract, "'abstract'")
|
||||
xx(TK_ForEach, "'foreach'")
|
||||
xx(TK_Unsafe, "'unsafe'")
|
||||
xx(TK_True, "'true'")
|
||||
xx(TK_False, "'false'")
|
||||
xx(TK_None, "'none'")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue