@lezer/css
Advanced tools
Comparing version 1.1.6 to 1.1.7
@@ -0,1 +1,7 @@ | ||
## 1.1.7 (2024-01-08) | ||
### Bug fixes | ||
Correctly parse properties with a space before the colon. | ||
## 1.1.6 (2024-01-01) | ||
@@ -2,0 +8,0 @@ |
@@ -46,3 +46,4 @@ import { ExternalTokenizer, LRParser, LocalTokenGroup } from '@lezer/lr'; | ||
if (isAlpha(next) || next == underscore || next == hash || next == period || | ||
next == bracketL || next == colon || next == dash || next == ampersand) | ||
next == bracketL || next == colon && isAlpha(input.peek(1)) || | ||
next == dash || next == ampersand) | ||
input.acceptToken(descendantOp); | ||
@@ -49,0 +50,0 @@ } |
{ | ||
"name": "@lezer/css", | ||
"version": "1.1.6", | ||
"version": "1.1.7", | ||
"description": "lezer-based CSS grammar", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.cjs", |
@@ -39,3 +39,4 @@ /* Hand-written tokenizers for CSS tokens that can't be | ||
if (isAlpha(next) || next == underscore || next == hash || next == period || | ||
next == bracketL || next == colon || next == dash || next == ampersand) | ||
next == bracketL || next == colon && isAlpha(input.peek(1)) || | ||
next == dash || next == ampersand) | ||
input.acceptToken(descendantOp) | ||
@@ -42,0 +43,0 @@ } |
@@ -145,1 +145,17 @@ # Function calls | ||
Declaration(PropertyName,CallExpression(Callee,ArgList(VariableName)))))) | ||
# Space before colon | ||
div { | ||
color : red; | ||
.x :active { | ||
color : blue; | ||
} | ||
} | ||
==> | ||
StyleSheet(RuleSet(TagSelector(TagName),Block( | ||
Declaration(PropertyName,ValueName), | ||
RuleSet(DescendantSelector(ClassSelector(ClassName),PseudoClassSelector(PseudoClassName)),Block( | ||
Declaration(PropertyName,ValueName)))))) |
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
67094
505