Improve error messaging for reserved keywords (bug 6199).

This commit is contained in:
David Anderson
2014-07-24 06:51:03 -04:00
parent 6e48ded1a6
commit 97e821dd6f
4 changed files with 15 additions and 2 deletions
@@ -0,0 +1,5 @@
public Action:SomeEvent( Handle:event, const String:name[], bool:dontBroadcast)
{
// error 143: new-style declarations should not have "new"
new object = GetEventInt(event, "object");
}
@@ -0,0 +1 @@
(4) : error 157: 'object' is a reserved keyword