Browse Source

Fix $a/b being parsed as division

Bojidar Marinov 8 years ago
parent
commit
a5fb82c28c
1 changed files with 2 additions and 1 deletions
  1. 2 1
      modules/gdscript/gd_parser.cpp

+ 2 - 1
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;
 					}
 				}