sugar for data and other improvements

- parse types in let (everything but parser was there)
- add sugar for `data`
- move `joinBy` to prelude
- fix highlighting for char in vscode
- better errors for missing imports
This commit is contained in:
2024-12-28 09:24:30 -08:00
parent 0992dc1367
commit 3ec2f90770
17 changed files with 115 additions and 94 deletions

View File

@@ -110,7 +110,8 @@ export let newtTokens: monaco.languages.IMonarchLanguage = {
},
},
],
// char literal, but I don't think there is a class for that.
[/'\\?.'/, "string"],
[/\d+/, "number"],
// strings
@@ -125,7 +126,7 @@ export let newtTokens: monaco.languages.IMonarchLanguage = {
string: [
[/[^\\"]+/, "string"],
// [/@escapes/, "string.escape"],
[/\\./, "string.escape.invalid"],
// [/\\./, "string.escape.invalid"],
[/"/, { token: "string.quote", bracket: "@close", next: "@pop" }],
],
whitespace: [