Add support for Rust, XML and C++

Remove Lezer support
This commit is contained in:
Jonatan Heyman
2023-01-16 23:43:22 +01:00
parent c3918c32c5
commit 8d8f6cdcb3
6 changed files with 94 additions and 4 deletions

View File

@ -1,6 +1,20 @@
importScripts("highlight.min.js")
const HIGHLIGHTJS_LANGUAGES = ["json", "python", "javascript", "html", "sql", "java", "plaintext"]
const HIGHLIGHTJS_LANGUAGES = [
"json",
"python",
"javascript",
"html",
"sql",
"java",
"plaintext",
"cpp",
"php",
"css",
"markdown",
"xml",
"rust",
]
onmessage = (event) => {
//console.log("worker received message:", event.data)