From cb4289e43ac9c02e0a8b9e6e4c8531508d508e6b Mon Sep 17 00:00:00 2001 From: Marijn Haverbeke Date: Tue, 2 Mar 2021 15:38:14 +0100 Subject: [PATCH] Install the default highlightstyle as fallback --- src/basic-setup.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/basic-setup.ts b/src/basic-setup.ts index 6273f70..3d0a92c 100644 --- a/src/basic-setup.ts +++ b/src/basic-setup.ts @@ -1,5 +1,5 @@ import {keymap, highlightSpecialChars, drawSelection, highlightActiveLine} from "@codemirror/view" -import {Extension, EditorState, Prec} from "@codemirror/state" +import {Extension, EditorState} from "@codemirror/state" import {history, historyKeymap} from "@codemirror/history" import {foldGutter, foldKeymap} from "@codemirror/fold" import {indentOnInput} from "@codemirror/language" @@ -29,7 +29,7 @@ import {lintKeymap} from "@codemirror/lint" /// - [custom selection drawing](#view.drawSelection) /// - [multiple selections](#state.EditorState^allowMultipleSelections) /// - [reindentation on input](#language.indentOnInput) -/// - [the default highlight style](#highlight.defaultHighlightStyle) +/// - [the default highlight style](#highlight.defaultHighlightStyle) (as fallback) /// - [bracket matching](#matchbrackets.bracketMatching) /// - [bracket closing](#closebrackets.closeBrackets) /// - [autocompletion](#autocomplete.autocompletion) @@ -56,7 +56,7 @@ export const basicSetup: Extension = [ drawSelection(), EditorState.allowMultipleSelections.of(true), indentOnInput(), - Prec.fallback(defaultHighlightStyle), + defaultHighlightStyle.fallback, bracketMatching(), closeBrackets(), autocompletion(),