Add multiline string GDScript export hint `export(String, MULTILINE)`

This commit is contained in:
eska 2015-10-16 16:39:59 +02:00
parent e18c1ba05b
commit 57b2c4b0c6
1 changed files with 11 additions and 0 deletions

View File

@ -2571,6 +2571,17 @@ void GDParser::_parse_class(ClassNode *p_class) {
}
break;
}
if (tokenizer->get_token()==GDTokenizer::TK_IDENTIFIER && tokenizer->get_token_identifier()=="MULTILINE") {
current_export.hint=PROPERTY_HINT_MULTILINE_TEXT;
tokenizer->advance();
if (tokenizer->get_token()!=GDTokenizer::TK_PARENTHESIS_CLOSE) {
_set_error("Expected ')' in hint.");
return;
}
break;
}
} break;
case Variant::COLOR: {