diff options
author | eska <eska@eska.me> | 2015-10-16 16:39:59 +0200 |
---|---|---|
committer | eska <eska@eska.me> | 2015-10-16 18:48:54 +0200 |
commit | 57b2c4b0c6334b37d150a1945dfef45fb0783e94 (patch) | |
tree | a4cbacb6b258aa05810ce366b2bf000301fa119f | |
parent | e18c1ba05b5a92c15b987d604a84749b26929ded (diff) |
Add multiline string GDScript export hint `export(String, MULTILINE)`
-rw-r--r-- | modules/gdscript/gd_parser.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/modules/gdscript/gd_parser.cpp b/modules/gdscript/gd_parser.cpp index 32c24909a8..47f39e9e81 100644 --- a/modules/gdscript/gd_parser.cpp +++ b/modules/gdscript/gd_parser.cpp @@ -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: { |