@codemirror/highlight
Advanced tools
Comparing version 0.19.1 to 0.19.2
@@ -0,1 +1,7 @@ | ||
## 0.19.2 (2021-08-19) | ||
### Bug fixes | ||
Fix a bug where old highlighting could stick around when switching language parser configuration. | ||
## 0.19.1 (2021-08-11) | ||
@@ -2,0 +8,0 @@ |
@@ -378,3 +378,3 @@ import { NodeProp, NodeType } from '@lezer/common'; | ||
let styleChange = style != update.startState.facet(highlightStyle); | ||
if (tree.length < update.view.viewport.to && !styleChange) { | ||
if (tree.length < update.view.viewport.to && !styleChange && tree.type == this.tree.type) { | ||
this.decorations = this.decorations.map(update.changes); | ||
@@ -381,0 +381,0 @@ } |
{ | ||
"name": "@codemirror/highlight", | ||
"version": "0.19.1", | ||
"version": "0.19.2", | ||
"description": "Syntax highlighting for the CodeMirror code editor", | ||
@@ -5,0 +5,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
106466