Merge pull request #58971 from Chaosus/gds_multiline_annotation
This commit is contained in:
commit
7befa7234d
1 changed files with 2 additions and 0 deletions
|
@ -1380,6 +1380,7 @@ GDScriptParser::AnnotationNode *GDScriptParser::parse_annotation(uint32_t p_vali
|
||||||
push_completion_call(annotation);
|
push_completion_call(annotation);
|
||||||
make_completion_context(COMPLETION_ANNOTATION_ARGUMENTS, annotation, 0, true);
|
make_completion_context(COMPLETION_ANNOTATION_ARGUMENTS, annotation, 0, true);
|
||||||
if (!check(GDScriptTokenizer::Token::PARENTHESIS_CLOSE) && !is_at_end()) {
|
if (!check(GDScriptTokenizer::Token::PARENTHESIS_CLOSE) && !is_at_end()) {
|
||||||
|
push_multiline(true);
|
||||||
int argument_index = 0;
|
int argument_index = 0;
|
||||||
do {
|
do {
|
||||||
make_completion_context(COMPLETION_ANNOTATION_ARGUMENTS, annotation, argument_index, true);
|
make_completion_context(COMPLETION_ANNOTATION_ARGUMENTS, annotation, argument_index, true);
|
||||||
|
@ -1391,6 +1392,7 @@ GDScriptParser::AnnotationNode *GDScriptParser::parse_annotation(uint32_t p_vali
|
||||||
}
|
}
|
||||||
annotation->arguments.push_back(argument);
|
annotation->arguments.push_back(argument);
|
||||||
} while (match(GDScriptTokenizer::Token::COMMA));
|
} while (match(GDScriptTokenizer::Token::COMMA));
|
||||||
|
pop_multiline();
|
||||||
|
|
||||||
consume(GDScriptTokenizer::Token::PARENTHESIS_CLOSE, R"*(Expected ")" after annotation arguments.)*");
|
consume(GDScriptTokenizer::Token::PARENTHESIS_CLOSE, R"*(Expected ")" after annotation arguments.)*");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue