@codemirror/matchbrackets
Advanced tools
Comparing version 0.17.2 to 0.18.0
@@ -0,1 +1,3 @@ | ||
## 0.18.0 (2021-03-03) | ||
## 0.17.2 (2021-01-06) | ||
@@ -2,0 +4,0 @@ |
import { Facet, combineConfig, StateField } from '@codemirror/state'; | ||
import { syntaxTree } from '@codemirror/language'; | ||
import { EditorView, Decoration, themeClass } from '@codemirror/view'; | ||
import { EditorView, Decoration } from '@codemirror/view'; | ||
import { NodeProp } from 'lezer-tree'; | ||
const baseTheme = EditorView.baseTheme({ | ||
$matchingBracket: { color: "#0b0" }, | ||
$nonmatchingBracket: { color: "#a22" } | ||
".cm-matchingBracket": { color: "#0b0" }, | ||
".cm-nonmatchingBracket": { color: "#a22" } | ||
}); | ||
@@ -20,3 +20,3 @@ const DefaultScanDist = 10000, DefaultBrackets = "()[]{}"; | ||
}); | ||
const matchingMark = Decoration.mark({ class: themeClass("matchingBracket") }), nonmatchingMark = Decoration.mark({ class: themeClass("nonmatchingBracket") }); | ||
const matchingMark = Decoration.mark({ class: "cm-matchingBracket" }), nonmatchingMark = Decoration.mark({ class: "cm-nonmatchingBracket" }); | ||
const bracketMatchingState = StateField.define({ | ||
@@ -23,0 +23,0 @@ create() { return Decoration.none; }, |
{ | ||
"name": "@codemirror/matchbrackets", | ||
"version": "0.17.2", | ||
"version": "0.18.0", | ||
"description": "Bracket matching for the CodeMirror code editor", | ||
@@ -29,5 +29,5 @@ "scripts": { | ||
"dependencies": { | ||
"@codemirror/language": "^0.17.0", | ||
"@codemirror/state": "^0.17.0", | ||
"@codemirror/view": "^0.17.0", | ||
"@codemirror/language": "^0.18.0", | ||
"@codemirror/state": "^0.18.0", | ||
"@codemirror/view": "^0.18.0", | ||
"lezer-tree": "^0.13.0" | ||
@@ -34,0 +34,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
30957
+ Added@codemirror/language@0.18.2(transitive)
+ Added@codemirror/rangeset@0.18.5(transitive)
+ Added@codemirror/state@0.18.7(transitive)
+ Added@codemirror/text@0.18.1(transitive)
+ Added@codemirror/view@0.18.19(transitive)
+ Addedstyle-mod@4.1.2(transitive)
- Removed@codemirror/language@0.17.5(transitive)
- Removed@codemirror/rangeset@0.17.1(transitive)
- Removed@codemirror/state@0.17.2(transitive)
- Removed@codemirror/text@0.17.2(transitive)
- Removed@codemirror/view@0.17.13(transitive)
- Removedstyle-mod@3.2.2(transitive)
Updated@codemirror/language@^0.18.0
Updated@codemirror/state@^0.18.0
Updated@codemirror/view@^0.18.0