@codemirror/language
Advanced tools
Comparing version 6.3.0 to 6.3.1
@@ -0,1 +1,9 @@ | ||
## 6.3.1 (2022-11-14) | ||
### Bug fixes | ||
Make syntax-based folding include syntax nodes that start right at the end of a line as potential fold targets. | ||
Fix the `indentService` protocol to allow a distinction between declining to handle the indentation and returning null to indicate the line has no definite indentation. | ||
## 6.3.0 (2022-10-24) | ||
@@ -2,0 +10,0 @@ |
@@ -366,6 +366,8 @@ import { NodeProp, Parser, Tree, TreeFragment, SyntaxNode, NodeType } from '@lezer/common'; | ||
[`indentString`](https://codemirror.net/6/docs/ref/#language.indentString)), at the start of a given | ||
line, or `null` to indicate no appropriate indentation could be | ||
determined. | ||
line. A return value of `null` indicates no indentation can be | ||
determined, and the line should inherit the indentation of the one | ||
above it. A return value of `undefined` defers to the next indent | ||
service. | ||
*/ | ||
declare const indentService: Facet<(context: IndentContext, pos: number) => number | null, readonly ((context: IndentContext, pos: number) => number | null)[]>; | ||
declare const indentService: Facet<(context: IndentContext, pos: number) => number | null | undefined, readonly ((context: IndentContext, pos: number) => number | null | undefined)[]>; | ||
/** | ||
@@ -372,0 +374,0 @@ Facet for overriding the unit by which indentation happens. |
{ | ||
"name": "@codemirror/language", | ||
"version": "6.3.0", | ||
"version": "6.3.1", | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
231913
5882