typing error fix
This commit is contained in:
parent
00bdc8744d
commit
13b873cf8f
|
|
@ -102,7 +102,7 @@ export class SyntaxRule implements LinterRule {
|
||||||
// "in" (für for-Schleifen) als gültigen Zeilenumbruch hinzugefügt
|
// "in" (für for-Schleifen) als gültigen Zeilenumbruch hinzugefügt
|
||||||
const continuesOnNextLine = /(,|and|or|not|\+|-|\*|\/|=|:=|matches|in)$/i.test(codePart);
|
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 (!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(',')) {
|
if (codePart.length > 0 && !codePart.endsWith(';') && !codePart.endsWith('{') && !codePart.endsWith(',')) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue