primitive string and int, primitive functions, codegen fixes
This commit is contained in:
@@ -47,7 +47,7 @@ export function activate(context: vscode.ExtensionContext) {
|
||||
) {
|
||||
message += "\n" + lines[++i];
|
||||
}
|
||||
const severity = kind === 'ERROR' ? vscode.DiagnosticSeverity.Error : vscode.DiagnosticSeverity.Information
|
||||
const severity = kind === 'ERROR' ? vscode.DiagnosticSeverity.Error : vscode.DiagnosticSeverity.Information;
|
||||
const diag = new vscode.Diagnostic(range, message, severity);
|
||||
diagnostics.push(diag);
|
||||
}
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
},
|
||||
{
|
||||
"name": "keyword.newt",
|
||||
"match": "\\b(data|where|case|of|let|in|U|module)\\b"
|
||||
"match": "\\b(data|where|case|of|let|in|U|module|ptype|pfunc)\\b"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user