global script slot2 {
void run() {
int _test = 123;
int test = 456;
Trace(_test);
}
}This gives a "duplicate symbol" error:
ZQuest wrote:Pass 1: Parsing
Pass 2: Preprocessing
Scanner: lexical error '_'.Scanner: lexical error '_'.
Pass 3: Building symbol tables
quest2.z, line 4: Error S08: There is already a variable with name test defined in this scope.
If an underscore is not a valid token to start a symbol off with, then this should be a syntax error. Otherwise, the error is in the scanner, ignoring the underscore.