Skip to content

Commit d942e9d

Browse files
authored
fix(playground): correct decimal regex and transforms list in syntax highlighting (#5788)
1 parent 512a800 commit d942e9d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

web/playground/src/workbench/prql-syntax.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,13 @@ const TRANSFORMS = [
66
"from_text",
77
"from",
88
"group",
9+
"intersect",
910
"join",
11+
"loop",
12+
"remove",
1013
"select",
1114
"sort",
1215
"take",
13-
"union",
1416
"window",
1517
];
1618
const MODULES = ["date", "math", "text"];
@@ -82,7 +84,7 @@ const def = {
8284
// We allow underscores, a bit more liberally than PRQL, which doesn't
8385
// allow them at the start or end (but that's difficult to express with
8486
// regex; contributions welcome).
85-
[/[+-]?[^\w](([\d_]+(\.[\d_]+])?)|(\.[\d_]+))/, "number"],
87+
[/[+-]?[^\w](([\d_]+(\.[\d_]+)?)|(\.[\d_]+))/, "number"],
8688

8789
// strings
8890
[/"([^"\\]|\\.)*$/, "string.invalid"], // non-terminated string

0 commit comments

Comments
 (0)