@codemirror/language
Advanced tools
Comparing version 6.1.0 to 6.2.0
@@ -0,1 +1,11 @@ | ||
## 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) | ||
@@ -2,0 +12,0 @@ |
@@ -386,2 +386,7 @@ import { NodeProp, Parser, Tree, TreeFragment, SyntaxNode, NodeType } from '@lezer/common'; | ||
/** | ||
Create a change set that auto-indents all lines touched by the | ||
given document range. | ||
*/ | ||
declare function indentRange(state: EditorState, from: number, to: number): _codemirror_state.ChangeSet; | ||
/** | ||
Indentation contexts are used when calling [indentation | ||
@@ -1076,2 +1081,2 @@ services](https://codemirror.net/6/docs/ref/#language.indentService). They provide helper utilities | ||
export { Config, HighlightStyle, IndentContext, LRLanguage, Language, LanguageDescription, LanguageSupport, MatchResult, ParseContext, StreamLanguage, StreamParser, StringStream, TagStyle, TreeIndentContext, bracketMatching, codeFolding, continuedIndent, defaultHighlightStyle, defineLanguageFacet, delimitedIndent, ensureSyntaxTree, flatIndent, foldAll, foldCode, foldEffect, foldGutter, foldInside, foldKeymap, foldNodeProp, foldService, foldState, foldable, foldedRanges, forceParsing, getIndentUnit, getIndentation, highlightingFor, indentNodeProp, indentOnInput, indentService, indentString, indentUnit, language, languageDataProp, matchBrackets, syntaxHighlighting, syntaxParserRunning, syntaxTree, syntaxTreeAvailable, unfoldAll, unfoldCode, unfoldEffect }; | ||
export { Config, HighlightStyle, IndentContext, LRLanguage, Language, LanguageDescription, LanguageSupport, MatchResult, ParseContext, StreamLanguage, StreamParser, StringStream, TagStyle, TreeIndentContext, bracketMatching, codeFolding, continuedIndent, defaultHighlightStyle, defineLanguageFacet, delimitedIndent, ensureSyntaxTree, flatIndent, foldAll, foldCode, foldEffect, foldGutter, foldInside, foldKeymap, foldNodeProp, foldService, foldState, foldable, foldedRanges, forceParsing, getIndentUnit, getIndentation, highlightingFor, indentNodeProp, indentOnInput, indentRange, indentService, indentString, indentUnit, language, languageDataProp, matchBrackets, syntaxHighlighting, syntaxParserRunning, syntaxTree, syntaxTreeAvailable, unfoldAll, unfoldCode, unfoldEffect }; |
{ | ||
"name": "@codemirror/language", | ||
"version": "6.1.0", | ||
"version": "6.2.0", | ||
"description": "Language support infrastructure for the CodeMirror code editor", | ||
@@ -5,0 +5,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
228347
5808