mirror of
https://github.com/godotengine/godot.git
synced 2024-11-22 20:23:53 +00:00
Add multiline string GDScript export hint export(String, MULTILINE)
This commit is contained in:
parent
e18c1ba05b
commit
57b2c4b0c6
@ -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: {
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user