Merge pull request #96512 from bruvzg/gds_base_stt
[TextServer] Fix structured text parser for GDScript comments.
This commit is contained in:
commit
8120e0324a
1 changed files with 2 additions and 2 deletions
|
@ -2071,8 +2071,8 @@ TypedArray<Vector3i> TextServer::parse_structured_text(StructuredTextParser p_pa
|
|||
if (prev != i) {
|
||||
ret.push_back(Vector3i(prev, i, TextServer::DIRECTION_AUTO));
|
||||
}
|
||||
prev = i + 1;
|
||||
ret.push_back(Vector3i(i, i + 1, TextServer::DIRECTION_LTR));
|
||||
prev = p_text.length();
|
||||
ret.push_back(Vector3i(i, p_text.length(), TextServer::DIRECTION_AUTO));
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue