From a5fb82c28c9b52a2df940f4c282ba4330bc05f9e Mon Sep 17 00:00:00 2001 From: Bojidar Marinov Date: Wed, 26 Jul 2017 18:51:03 +0300 Subject: [PATCH] Fix $a/b being parsed as division --- modules/gdscript/gd_parser.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/gdscript/gd_parser.cpp b/modules/gdscript/gd_parser.cpp index ba0413a5a95..36aa2493986 100644 --- a/modules/gdscript/gd_parser.cpp +++ b/modules/gdscript/gd_parser.cpp @@ -314,9 +314,10 @@ GDParser::Node *GDParser::_parse_expression(Node *p_parent, bool p_static, bool path += String(tokenizer->get_token_literal()); tokenizer->advance(); need_identifier = false; + } else { + done = true; } - done = true; break; } }