Code complete fixes and changelog

This commit is contained in:
Zef Hemel
2023-10-04 17:14:24 +02:00
parent 371932e085
commit d8797aa805
9 changed files with 115 additions and 121 deletions
+6 -1
View File
@@ -1,7 +1,7 @@
import { SysCallMapping } from "../../plugos/system.ts";
import { parse } from "../markdown_parser/parse_tree.ts";
import type { ParseTree } from "$sb/lib/tree.ts";
import { languageFor } from "../languages.ts";
import { builtinLanguages, languageFor } from "../languages.ts";
export function languageSyscalls(): SysCallMapping {
return {
@@ -16,5 +16,10 @@ export function languageSyscalls(): SysCallMapping {
}
return parse(lang, code);
},
"language.listLanguages": (
_ctx,
): string[] => {
return Object.keys(builtinLanguages);
},
};
}