@codemirror/language
Advanced tools
Changelog
0.20.1 (2022-05-18)
Make sure all
styles in the CSS generated for a HighlightStyle
have a lower precedence than the other rules defined for the style. Use a shorthand property
Changelog
0.20.0 (2022-04-20)
HighlightStyle.get
is now called highlightingFor
.
HighlightStyles
no longer function as extensions (to improve tree shaking), and must be wrapped with syntaxHighlighting
to add to an editor configuration.
Language
objects no longer have a topNode
property.
HighlightStyle
and defaultHighlightStyle
from the now-removed @codemirror/highlight package now live in this package.
The new forceParsing
function can be used to run the parser forward on an editor view.
The exports that used to live in @codemirror/matchbrackets are now exported from this package.
The @codemirror/fold package has been merged into this one.
The exports from the old @codemirror/stream-parser package now live in this package.
Changelog
0.19.10 (2022-03-31)
Autocompletion may now also trigger automatic indentation on input.
Changelog
0.19.9 (2022-03-30)
Make sure nodes that end at the end of a partial parse aren't treated as valid fold targets.
Fix an issue where the parser sometimes wouldn't reuse parsing work done in the background on transactions.
Changelog
0.19.8 (2022-03-03)
Fix an issue that could cause indentation logic to use the wrong line content when indenting multiple lines at once.
Changelog
0.19.7 (2021-12-02)
Fix an issue where the parse worker could incorrectly stop working when the parse tree has skipped gaps in it.
Changelog
0.19.6 (2021-11-26)
Fixes an issue where the background parse work would be scheduled too aggressively, degrading responsiveness on a newly-created editor with a large document.
Improve initial highlight for mixed-language editors and limit the amount of parsing done on state creation for faster startup.
Changelog
0.19.5 (2021-11-17)
The new function syntaxTreeAvailable
can be used to check if a fully-parsed syntax tree is available up to a given document position.
The module now exports syntaxParserRunning
, which tells you whether the background parser is still planning to do more work for a given editor view.