Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
chore(code): reintroduce bracket matching
Elian Dorandf92ec9521f4
diff --git a/packages/codemirror/src/index.ts b/packages/codemirror/src/index.tsindex 1e821c535d..3edb2a1485 100644--- a/packages/codemirror/src/index.ts+++ b/packages/codemirror/src/index.ts@@ -1,6 +1,6 @@import { defaultKeymap, indentWithTab } from "@codemirror/commands";import { EditorView, highlightActiveLine, keymap, lineNumbers, placeholder, ViewUpdate, type EditorViewConfig } from "@codemirror/view";-import { defaultHighlightStyle, StreamLanguage, syntaxHighlighting, indentUnit } from "@codemirror/language";+import { defaultHighlightStyle, StreamLanguage, syntaxHighlighting, indentUnit, bracketMatching } from "@codemirror/language";import { Compartment } from "@codemirror/state";import { highlightSelectionMatches } from "@codemirror/search";import byMimeType from "./syntax_highlighting.js";@@ -29,6 +29,7 @@ export default class CodeMirror extends EditorView {syntaxHighlighting(defaultHighlightStyle),highlightActiveLine(),highlightSelectionMatches(),+ bracketMatching(),lineNumbers(),indentUnit.of(" ".repeat(4))];