@codemirror/lang-html
Advanced tools
Comparing version 6.1.4 to 6.2.0
@@ -0,1 +1,7 @@ | ||
## 6.2.0 (2022-11-16) | ||
### New features | ||
Add a `selfClosingTags` option to `html` that enables `/>` syntax. | ||
## 6.1.4 (2022-11-15) | ||
@@ -2,0 +8,0 @@ |
@@ -61,2 +61,3 @@ import * as _codemirror_state from '@codemirror/state'; | ||
matchClosingTags?: boolean; | ||
selfClosingTags?: boolean; | ||
/** | ||
@@ -63,0 +64,0 @@ Determines whether [`autoCloseTags`](https://codemirror.net/6/docs/ref/#lang-html.autoCloseTags) |
@@ -575,2 +575,4 @@ import { parser, configureNesting } from '@lezer/html'; | ||
lang = lang.configure({ dialect: "noMatch" }); | ||
if (config.selfClosingTags === true) | ||
lang = lang.configure({ dialect: "selfClosing" }); | ||
return new LanguageSupport(lang, [ | ||
@@ -577,0 +579,0 @@ htmlLanguage.data.of({ autocomplete: htmlCompletionSourceWith(config) }), |
{ | ||
"name": "@codemirror/lang-html", | ||
"version": "6.1.4", | ||
"version": "6.2.0", | ||
"description": "HTML language support for the CodeMirror code editor", | ||
@@ -34,3 +34,3 @@ "scripts": { | ||
"@codemirror/state": "^6.0.0", | ||
"@lezer/html": "^1.0.1", | ||
"@lezer/html": "^1.1.0", | ||
"@lezer/common": "^1.0.0", | ||
@@ -37,0 +37,0 @@ "@codemirror/view": "^6.2.2" |
Sorry, the diff of this file is not supported yet
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
60037
1323
Updated@lezer/html@^1.1.0