We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a5a56db commit e1e91c6Copy full SHA for e1e91c6
server/src/rules/literal.ts
@@ -7,7 +7,7 @@ import { Chapter, Context } from "../types";
7
export const literalRule = new class extends Rule<Literal> {
8
public process(child: Literal, parent: Node, context: Context, ast: AST): void {
9
if (typeof child.value === "string") {
10
- if (child.raw!.length < 2 || !child.raw!.endsWith("\""))
+ if (child.raw!.length < 2 || !child.raw!.endsWith(child.raw!.charAt(0)))
11
ast.addDiagnostic("Incomplete string expression", DiagnosticSeverity.Error, child.loc!);
12
}
13
if (child.value === null && context.chapter == Chapter.SOURCE_1)
0 commit comments