GDScript: fixed highlighting of the next line when colon is missing
This commit is contained in:
parent
b0dbcccb6c
commit
e52d211b61
@ -65,8 +65,10 @@ bool GDParser::_enter_indent_block(BlockNode* p_block) {
|
|||||||
|
|
||||||
|
|
||||||
if (tokenizer->get_token()!=GDTokenizer::TK_COLON) {
|
if (tokenizer->get_token()!=GDTokenizer::TK_COLON) {
|
||||||
|
// report location at the previous token (on the previous line)
|
||||||
_set_error("':' expected at end of line.");
|
int error_line = tokenizer->get_token_line(-1);
|
||||||
|
int error_column = tokenizer->get_token_column(-1);
|
||||||
|
_set_error("':' expected at end of line.",error_line,error_column);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
tokenizer->advance();
|
tokenizer->advance();
|
||||||
|
Loading…
Reference in New Issue
Block a user