diff --git a/src/core/rules/SyntaxRule.ts b/src/core/rules/SyntaxRule.ts index 7e1b0da..dcc4ffd 100644 --- a/src/core/rules/SyntaxRule.ts +++ b/src/core/rules/SyntaxRule.ts @@ -102,7 +102,7 @@ export class SyntaxRule implements LinterRule { // "in" (für for-Schleifen) als gültigen Zeilenumbruch hinzugefügt const continuesOnNextLine = /(,|and|or|not|\+|-|\*|\/|=|:=|matches|in)$/i.test(codePart); - ´const endsWithBlockOpener = /\b(then|do)$/.test(codePart); + const endsWithBlockOpener = /\b(then|do)$/.test(codePart); if (!noSemicolonNeeded && !ctx.justOpenedString && ctx.parenStack.length === 0 && ctx.bracketStack.length === 0 && ctx.inBlock !== 'enumeration' && !ctx.inConditionBlock && !continuesOnNextLine && !endsWithBlockOpener) { if (codePart.length > 0 && !codePart.endsWith(';') && !codePart.endsWith('{') && !codePart.endsWith(',')) {