@codemirror/language
Advanced tools
Changelog
6.10.8 (2024-12-23)
Fix a regression introduced 6.10.7 that caused indention to sometimes crash on nested language boundaries.
Changelog
6.10.7 (2024-12-17)
Fix an issue where indentation for a stream language would fail to work when the parse covered only part of the document, far from the start.
Make sure the inner mode gets a chance to indent when indenting right at the end of a nested language section.
Changelog
6.10.6 (2024-11-29)
Fix a crash in StreamLanguage
when the input range is entirely before the editor viewport.
Changelog
6.10.5 (2024-11-27)
Fix an issue where a StreamLanguage
could get confused when trying to reuse existing parse data when the parsed range changed.
Changelog
6.10.4 (2024-11-24)
Join adjacent tokens of the same type into a single token in .
Call stream language indent functions even when the language is used as a nested parser.
Fix a crash in StreamParser
when a parse was resumed with different input ranges.
Changelog
6.10.3 (2024-09-19)
Fix a TypeScript error when using HighlightStyle
with the exactOptionalPropertyTypes
typechecking option enabled.
Make delimitedIndent
align to spaces after the opening token.
Changelog
6.10.2 (2024-06-03)
Fix an infinite loop that could occur when enabling bidiIsolates
in documents with both bidirectional text and very long lines.
Changelog
6.10.1 (2024-02-02)
Fix an issue where, when a lot of code is visible in the initial editor, the bottom bit of code is shown without highlighting for one frame.
Changelog
6.10.0 (2023-12-28)
The new bidiIsolates
extension can be used to wrap syntactic elements where this is appropriate in an element that isolates their text direction, avoiding weird ordering of neutral characters on direction boundaries.