@codemirror/matchbrackets
Advanced tools
Comparing version 0.17.0 to 0.17.1
@@ -0,1 +1,7 @@ | ||
## 0.17.1 (2021-01-05) | ||
### Bug fixes | ||
Fix a bug where only the bracket at the cursor was highlighted. | ||
## 0.17.0 (2020-12-29) | ||
@@ -2,0 +8,0 @@ |
@@ -14,3 +14,3 @@ import { Extension, EditorState } from '@codemirror/state'; | ||
}; | ||
other?: { | ||
end?: { | ||
from: number; | ||
@@ -17,0 +17,0 @@ to: number; |
@@ -40,4 +40,4 @@ import { Facet, combineConfig, StateField } from '@codemirror/state'; | ||
decorations.push(mark.range(match.start.from, match.start.to)); | ||
if (match.other) | ||
decorations.push(mark.range(match.other.from, match.other.to)); | ||
if (match.end) | ||
decorations.push(mark.range(match.end.from, match.end.to)); | ||
} | ||
@@ -44,0 +44,0 @@ return Decoration.set(decorations, true); |
{ | ||
"name": "@codemirror/matchbrackets", | ||
"version": "0.17.0", | ||
"version": "0.17.1", | ||
"description": "Bracket matching for the CodeMirror code editor", | ||
"scripts": { | ||
"test": "echo 'No tests'", | ||
"prepare": "tsc && rollup -c" | ||
"prepare": "tsc -p tsconfig.local.json && rollup -c" | ||
}, | ||
@@ -9,0 +9,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
24470
9
171