1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-08 12:40:44 +00:00

[TextServer] Fix structured text parser for GDScript comments.

This commit is contained in:
bruvzg
2024-09-03 09:54:09 +03:00
parent 7c383767a2
commit 1829bc3663

View File

@@ -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;
}
}