@codemirror/language
Advanced tools
Changelog
0.18.1 (2021-03-31)
EditorParseContext.getSkippingParser
now replaces EditorParseContext.skippingParser
and allows you to provide a promise that'll cause parsing to start again. (The old property remains available until the next major release.)
Fix an issue where nested parsers could see past the end of the nested region.
Changelog
0.18.0 (2021-03-03)
Update dependencies to 0.18.
The Language
constructor takes an additional argument that provides the top node type.
Language
instances now have a topNode
property giving their top node type.
TreeIndentContext
now has a continue
method that allows an indenter to defer to the indentation of the parent nodes.
Changelog
0.17.5 (2021-02-19)
This package now exports a foldInside
helper function, a fold function that should work for most delimited node types.
Changelog
0.17.3 (2021-01-15)
Parse scheduling has been improved to reduce the likelyhood of the user looking at unparsed code in big documents.
Prevent parser from running too far past the current viewport in huge documents.
Changelog
0.17.1 (2020-12-30)
Fix a bug where changing the editor configuration wouldn't update the language parser used.