Skip to content

Commit

Permalink
Merge pull request godotengine#96512 from bruvzg/gds_base_stt
Browse files Browse the repository at this point in the history
[TextServer] Fix structured text parser for GDScript comments.
  • Loading branch information
akien-mga committed Sep 3, 2024
2 parents 9dbf9aa + 1829bc3 commit 8120e03
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions servers/text_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit 8120e03

Please sign in to comment.