Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions web/playground/src/workbench/prql-syntax.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,13 @@ const TRANSFORMS = [
"from_text",
"from",
"group",
"intersect",
"join",
"loop",
"remove",
"select",
"sort",
"take",
"union",
"window",
];
const MODULES = ["date", "math", "text"];
Expand Down Expand Up @@ -82,7 +84,7 @@ const def = {
// We allow underscores, a bit more liberally than PRQL, which doesn't
// allow them at the start or end (but that's difficult to express with
// regex; contributions welcome).
[/[+-]?[^\w](([\d_]+(\.[\d_]+])?)|(\.[\d_]+))/, "number"],
[/[+-]?[^\w](([\d_]+(\.[\d_]+)?)|(\.[\d_]+))/, "number"],

// strings
[/"([^"\\]|\\.)*$/, "string.invalid"], // non-terminated string
Expand Down
Loading