mirror of
https://github.com/zadam/trilium.git
synced 2025-12-21 15:49:56 +01:00
chore(code): reintegrate hcl syntax
This commit is contained in:
@@ -68,8 +68,14 @@ export default class CodeMirror extends EditorView {
|
||||
|
||||
const correspondingSyntax = byMimeType[mime];
|
||||
if (correspondingSyntax) {
|
||||
const extension = StreamLanguage.define(await correspondingSyntax());
|
||||
newExtension.push(extension);
|
||||
const resolvedSyntax = await correspondingSyntax();
|
||||
|
||||
if ("token" in resolvedSyntax) {
|
||||
const extension = StreamLanguage.define(resolvedSyntax);
|
||||
newExtension.push(extension);
|
||||
} else {
|
||||
newExtension.push(resolvedSyntax());
|
||||
}
|
||||
}
|
||||
|
||||
this.dispatch({
|
||||
|
||||
Reference in New Issue
Block a user