@codemirror/lang-css
Advanced tools
Comparing version 6.0.0 to 6.0.1
@@ -0,1 +1,7 @@ | ||
## 6.0.1 (2022-10-24) | ||
### Bug fixes | ||
CSS completion now supports a number of additional recent and semi-standardized pseudo-class names. | ||
## 6.0.0 (2022-06-08) | ||
@@ -2,0 +8,0 @@ |
@@ -17,10 +17,14 @@ import { parser } from '@lezer/css'; | ||
const pseudoClasses = /*@__PURE__*/[ | ||
"active", "after", "before", "checked", "default", | ||
"disabled", "empty", "enabled", "first-child", "first-letter", | ||
"first-line", "first-of-type", "focus", "hover", "in-range", | ||
"indeterminate", "invalid", "lang", "last-child", "last-of-type", | ||
"link", "not", "nth-child", "nth-last-child", "nth-last-of-type", | ||
"nth-of-type", "only-of-type", "only-child", "optional", "out-of-range", | ||
"placeholder", "read-only", "read-write", "required", "root", | ||
"selection", "target", "valid", "visited" | ||
"active", "after", "any-link", "autofill", "backdrop", "before", | ||
"checked", "cue", "default", "defined", "disabled", "empty", | ||
"enabled", "file-selector-button", "first", "first-child", | ||
"first-letter", "first-line", "first-of-type", "focus", | ||
"focus-visible", "focus-within", "fullscreen", "has", "host", | ||
"host-context", "hover", "in-range", "indeterminate", "invalid", | ||
"is", "lang", "last-child", "last-of-type", "left", "link", "marker", | ||
"modal", "not", "nth-child", "nth-last-child", "nth-last-of-type", | ||
"nth-of-type", "only-child", "only-of-type", "optional", "out-of-range", | ||
"part", "placeholder", "placeholder-shown", "read-only", "read-write", | ||
"required", "right", "root", "scope", "selection", "slotted", "target", | ||
"target-text", "valid", "visited", "where" | ||
].map(name => ({ type: "class", label: name })); | ||
@@ -156,2 +160,3 @@ const values = /*@__PURE__*/[ | ||
const cssLanguage = /*@__PURE__*/LRLanguage.define({ | ||
name: "css", | ||
parser: /*@__PURE__*/parser.configure({ | ||
@@ -158,0 +163,0 @@ props: [ |
{ | ||
"name": "@codemirror/lang-css", | ||
"version": "6.0.0", | ||
"version": "6.0.1", | ||
"description": "CSS language support for the CodeMirror code editor", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -5,10 +5,10 @@ <!-- NOTE: README.md is generated from src/README.md --> | ||
[ [**WEBSITE**](https://codemirror.net/6/) | [**ISSUES**](https://github.com/codemirror/codemirror.next/issues) | [**FORUM**](https://discuss.codemirror.net/c/next/) | [**CHANGELOG**](https://github.com/codemirror/lang-css/blob/main/CHANGELOG.md) ] | ||
[ [**WEBSITE**](https://codemirror.net/) | [**ISSUES**](https://github.com/codemirror/dev/issues) | [**FORUM**](https://discuss.codemirror.net/c/next/) | [**CHANGELOG**](https://github.com/codemirror/lang-css/blob/main/CHANGELOG.md) ] | ||
This package implements CSS language support for the | ||
[CodeMirror](https://codemirror.net/6/) code editor. | ||
[CodeMirror](https://codemirror.net/) code editor. | ||
The [project page](https://codemirror.net/6/) has more information, a | ||
number of [examples](https://codemirror.net/6/examples/) and the | ||
[documentation](https://codemirror.net/6/docs/). | ||
The [project page](https://codemirror.net/) has more information, a | ||
number of [examples](https://codemirror.net/examples/) and the | ||
[documentation](https://codemirror.net/docs/). | ||
@@ -26,3 +26,3 @@ This code is released under an | ||
<dt id="user-content-css"> | ||
<code><strong><a href="#user-content-css">css</a></strong>() → <a href="https://codemirror.net/6/docs/ref#language.LanguageSupport">LanguageSupport</a></code></dt> | ||
<code><strong><a href="#user-content-css">css</a></strong>() → <a href="https://codemirror.net/docs/ref#language.LanguageSupport">LanguageSupport</a></code></dt> | ||
@@ -32,3 +32,3 @@ <dd><p>Language support for CSS.</p> | ||
<dt id="user-content-csslanguage"> | ||
<code><strong><a href="#user-content-csslanguage">cssLanguage</a></strong>: <a href="https://codemirror.net/6/docs/ref#language.LezerLanguage">LezerLanguage</a></code></dt> | ||
<code><strong><a href="#user-content-csslanguage">cssLanguage</a></strong>: <a href="https://codemirror.net/docs/ref#language.LezerLanguage">LezerLanguage</a></code></dt> | ||
@@ -40,3 +40,3 @@ <dd><p>A language provider based on the <a href="https://github.com/lezer-parser/css">Lezer CSS | ||
<dt id="user-content-csscompletion"> | ||
<code><strong><a href="#user-content-csscompletion">cssCompletion</a></strong>: <a href="https://codemirror.net/6/docs/ref#state.Extension">Extension</a></code></dt> | ||
<code><strong><a href="#user-content-csscompletion">cssCompletion</a></strong>: <a href="https://codemirror.net/docs/ref#state.Extension">Extension</a></code></dt> | ||
@@ -43,0 +43,0 @@ <dd><p>CSS property and value keyword completion.</p> |
Sorry, the diff of this file is not supported yet
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
30278
381