@codemirror/lang-css
Advanced tools
Comparing version 6.2.1 to 6.3.0
@@ -0,1 +1,7 @@ | ||
## 6.3.0 (2024-09-07) | ||
### New features | ||
CSS autocompletion now completes `@`-keywords. | ||
## 6.2.1 (2023-08-04) | ||
@@ -2,0 +8,0 @@ |
@@ -131,2 +131,7 @@ import { parser } from '@lezer/css'; | ||
].map(name => ({ type: "type", label: name })); | ||
const atRules = /*@__PURE__*/[ | ||
"@charset", "@color-profile", "@container", "@counter-style", "@font-face", "@font-feature-values", | ||
"@font-palette-values", "@import", "@keyframes", "@layer", "@media", "@namespace", "@page", | ||
"@position-try", "@property", "@scope", "@starting-style", "@supports", "@view-transition" | ||
].map(label => ({ type: "keyword", label })); | ||
const identifier = /^(\w[\w-]*|-\w[\w-]*|)$/, variable = /^-(-[\w-]*)?$/; | ||
@@ -212,2 +217,4 @@ function isVarArg(node, doc) { | ||
} | ||
if (node.name == "AtKeyword") | ||
return { from: node.from, options: atRules, validFor: identifier }; | ||
if (!context.explicit) | ||
@@ -214,0 +221,0 @@ return null; |
{ | ||
"name": "@codemirror/lang-css", | ||
"version": "6.2.1", | ||
"version": "6.3.0", | ||
"description": "CSS language support for the CodeMirror code editor", | ||
@@ -33,3 +33,3 @@ "scripts": { | ||
"@lezer/common": "^1.0.2", | ||
"@lezer/css": "^1.0.0" | ||
"@lezer/css": "^1.1.7" | ||
}, | ||
@@ -36,0 +36,0 @@ "devDependencies": { |
Sorry, the diff of this file is not supported yet
41035
551
Updated@lezer/css@^1.1.7