Removed whitespaces from AssingmentInfo's statementStart

This commit is contained in:
bigguy345 committed 2025-12-27 20:52:34 +02:00
1 parent 17e0782a32
commit 794ff0c9b0
1 file changed
+5
@@ -2924,6 +2924,11 @@ public class ScriptDocument {
}
if (stmtStart < 0) stmtStart = 0;
// Skip leading whitespace to get to the actual first character of the statement
while (stmtStart < equalsPos && Character.isWhitespace(text.charAt(stmtStart))) {
stmtStart++;
}
// Find the end of this statement (next ;)
int stmtEnd = text.indexOf(';', equalsPos);
if (stmtEnd < 0) stmtEnd = text.length();