## 6.2.0 (2022-06-30) ### Bug fixes Fix a bug that prevented bracket matching to recognize plain brackets inside a language parsed as an overlay. ### New features The `indentRange` function provides an easy way to programatically auto-indent a range of the document. ## 6.1.0 (2022-06-20) ### New features The `foldState` field is now public, and can be used to serialize and deserialize the fold state. ## 6.0.0 (2022-06-08) ### New features The `foldingChanged` option to `foldGutter` can now be used to trigger a recomputation of the fold markers. ## 0.20.2 (2022-05-20) ### Bug fixes List style-mod as a dependency. ## 0.20.1 (2022-05-18) ### Bug fixes 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 ## 0.20.0 (2022-04-20) ### Breaking changes `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. ### New features `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. ## 0.19.10 (2022-03-31) ### Bug fixes Autocompletion may now also trigger automatic indentation on input. ## 0.19.9 (2022-03-30) ### Bug fixes 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. ## 0.19.8 (2022-03-03) ### Bug fixes Fix an issue that could cause indentation logic to use the wrong line content when indenting multiple lines at once. ## 0.19.7 (2021-12-02) ### Bug fixes Fix an issue where the parse worker could incorrectly stop working when the parse tree has skipped gaps in it. ## 0.19.6 (2021-11-26) ### Bug fixes 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. ## 0.19.5 (2021-11-17) ### New features 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. ## 0.19.4 (2021-11-13) ### New features `LanguageDescription.of` now takes an optional already-loaded extension. ## 0.19.3 (2021-09-13) ### Bug fixes Fix an issue where a parse that skipped content with `skipUntilInView` would in some cases not be restarted when the range came into view. ## 0.19.2 (2021-08-11) ### Bug fixes Fix a bug that caused `indentOnInput` to fire for the wrong kinds of transactions. Fix a bug that could cause `indentOnInput` to apply its changes incorrectly. ## 0.19.1 (2021-08-11) ### Bug fixes Fix incorrect versions for @lezer dependencies. ## 0.19.0 (2021-08-11) ### Breaking changes CodeMirror now uses lezer 0.15, which means different package names (scoped with @lezer) and some breaking changes in the library. `EditorParseContext` is now called `ParseContext`. It is no longer passed to parsers, but must be retrieved with `ParseContext.get`. `IndentContext.lineIndent` now takes a position, not a `Line` object, as argument. `LezerLanguage` was renamed to `LRLanguage` (because all languages must emit Lezer-style trees, the name was misleading). `Language.parseString` no longer exists. You can just call `.parser.parse(...)` instead. ### New features New `IndentContext.lineAt` method to access lines in a way that is aware of simulated line breaks. `IndentContext` now provides a `simulatedBreak` property through which client code can query whether the context has a simulated line break. ## 0.18.2 (2021-06-01) ### Bug fixes Fix an issue where asynchronous re-parsing (with dynamically loaded languages) sometimes failed to fully happen. ## 0.18.1 (2021-03-31) ### Breaking changes `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.) ### Bug fixes Fix an issue where nested parsers could see past the end of the nested region. ## 0.18.0 (2021-03-03) ### Breaking changes Update dependencies to 0.18. ### Breaking changes The `Language` constructor takes an additional argument that provides the top node type. ### New features `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. ## 0.17.5 (2021-02-19) ### New features This package now exports a `foldInside` helper function, a fold function that should work for most delimited node types. ## 0.17.4 (2021-01-15) ## 0.17.3 (2021-01-15) ### Bug fixes 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. ## 0.17.2 (2021-01-06) ### New features The package now also exports a CommonJS module. ## 0.17.1 (2020-12-30) ### Bug fixes Fix a bug where changing the editor configuration wouldn't update the language parser used. ## 0.17.0 (2020-12-29) ### Breaking changes First numbered release.