فهرست منبع

Allow semicolon after 'pass' keyword

George Marques 9 سال پیش
والد
کامیت
8113ba8bef
1فایلهای تغییر یافته به همراه4 افزوده شده و 0 حذف شده
  1. 4 0
      modules/gdscript/gd_parser.cpp

+ 4 - 0
modules/gdscript/gd_parser.cpp

@@ -1536,6 +1536,10 @@ void GDParser::_parse_block(BlockNode *p_block,bool p_static) {
 					return;
 				}
 				tokenizer->advance();
+				if(tokenizer->get_token()==GDTokenizer::TK_SEMICOLON) {
+					// Ignore semicolon after 'pass'
+					tokenizer->advance();
+				}
 			} break;
 			case GDTokenizer::TK_PR_VAR: {
 				//variale declaration and (eventual) initialization