Skip to content

Commit

Permalink
Install the default highlightstyle as fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
marijnh committed Mar 2, 2021
1 parent 032bc58 commit cb4289e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/basic-setup.ts
Original file line number Diff line number Diff line change
@@ -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"
Expand Down Expand Up @@ -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)
Expand All @@ -56,7 +56,7 @@ export const basicSetup: Extension = [
drawSelection(),
EditorState.allowMultipleSelections.of(true),
indentOnInput(),
Prec.fallback(defaultHighlightStyle),
defaultHighlightStyle.fallback,
bracketMatching(),
closeBrackets(),
autocompletion(),
Expand Down

0 comments on commit cb4289e

Please sign in to comment.