fix a regression (GDScript) from e00630b

This removes `not` from the variable safe list of
keywords.
Before that this was a valid expression:
    self.!(some_arg)

The other fix is just a forgotten boolean negation.
This commit is contained in:
Karroffel 2017-07-25 20:01:19 +02:00
parent 497411aa12
commit 5319098aef
2 changed files with 2 additions and 2 deletions

View file

@ -3283,7 +3283,7 @@ void GDParser::_parse_class(ClassNode *p_class) {
break;
}
if (tokenizer->is_token_literal(0, true)) {
if (!tokenizer->is_token_literal(0, true)) {
_set_error("Expected identifier in signal argument.");
return;
}

View file

@ -250,7 +250,7 @@ bool GDTokenizer::is_token_literal(int p_offset, bool variable_safe) const {
case TK_BUILT_IN_FUNC:
case TK_OP_IN:
case TK_OP_NOT:
//case TK_OP_NOT:
//case TK_OP_OR:
//case TK_OP_AND: