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:
@@ -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: [
|
||||
|
||||
Reference in New Issue
Block a user