updated the compiler to not leave whitespace when parsing tables
Publish Action Release / Derive release metadata (push) Successful in 4s
Publish Install Lua Addon Action / test_action (push) Successful in 7s
Publish Action Release / Publish tags (push) Successful in 5s
Publish Bundle Script Action / publish_action (push) Successful in 30s
Publish Action Release / Derive release metadata (push) Successful in 3s
Publish Action Release / Publish tags (push) Successful in 6s
Publish Install Lua Addon Action / publish_action (push) Successful in 13s
publish-vs-code-extensions.yml / Publish VS Code Extension (push) Successful in 52s
Publish Action Release / Derive release metadata (push) Successful in 4s
Publish Install Lua Addon Action / test_action (push) Successful in 7s
Publish Action Release / Publish tags (push) Successful in 5s
Publish Bundle Script Action / publish_action (push) Successful in 30s
Publish Action Release / Derive release metadata (push) Successful in 3s
Publish Action Release / Publish tags (push) Successful in 6s
Publish Install Lua Addon Action / publish_action (push) Successful in 13s
publish-vs-code-extensions.yml / Publish VS Code Extension (push) Successful in 52s
This commit is contained in:
@@ -223,10 +223,15 @@ export abstract class CodeBlock {
|
||||
}
|
||||
|
||||
if (tempCursor < fileContent.length && fileContent[tempCursor] === '\n') {
|
||||
currentBlockString += '\n';
|
||||
currentBlockString = trimEndPreserveNewlines(currentBlockString) + '\n';
|
||||
lineCounter++;
|
||||
lineCursor = 0;
|
||||
leftCursor = tempCursor + 1;
|
||||
} else if (tempCursor < fileContent.length && fileContent[tempCursor] === '-' && tempCursor + 1 < fileContent.length && fileContent[tempCursor + 1] === '-') {
|
||||
// Found a comment after whitespace, trim the whitespace and position at the comment
|
||||
currentBlockString = trimEndPreserveNewlines(currentBlockString) + '\n';
|
||||
leftCursor = tempCursor;
|
||||
lineCursor = tempLineCursor;
|
||||
} else if (tempCursor > leftCursor) {
|
||||
// We found whitespace but no newline, so position cursor at last whitespace
|
||||
leftCursor = tempCursor;
|
||||
|
||||
Reference in New Issue
Block a user