Skip to content

Commit f96015f

Browse files
committed
Fix AP injection matching type := as an object type
1 parent e790ee5 commit f96015f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/edgedb/schema-ast/crude-ast-parser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export class CrudeAstParser {
5858
return [SchemaModule, { name: module[1] }];
5959
}
6060

61-
const type = /^(?:abstract\s+)?type\s+(\S+)/i.exec(input.text);
61+
const type = /^(?:abstract\s+)?type\s+(?!:=)(\S+)/i.exec(input.text);
6262
if (type) {
6363
return [SchemaType, { name: type[1] }];
6464
}

0 commit comments

Comments
 (0)