@emmetio/css-abbreviation
Advanced tools
Comparing version 0.3.0 to 0.3.1
@@ -277,3 +277,3 @@ 'use strict'; | ||
// SCSS or LESS variable | ||
stream.eatWhile(isAlphaNumericWord); | ||
stream.eatWhile(isVariableName); | ||
} else if (short) { | ||
@@ -303,2 +303,6 @@ stream.eatWhile(isAlphaWord); | ||
function isVariableName(code) { | ||
return code === 45 /* - */ || isAlphaNumericWord(code); | ||
} | ||
const opt = { throws: true }; | ||
@@ -427,2 +431,3 @@ | ||
const DASH = 45; // - | ||
const COLON = 58; // : | ||
const AT = 64; // @ | ||
@@ -496,2 +501,4 @@ | ||
while (!stream.eof()) { | ||
// use colon as value separator | ||
stream.eat(COLON); | ||
if (value = consumeNumericValue(stream) || consumeColor(stream)) { | ||
@@ -498,0 +505,0 @@ // edge case: a dash after unit-less numeric value or color should |
@@ -273,3 +273,3 @@ import Node from '@emmetio/node'; | ||
// SCSS or LESS variable | ||
stream.eatWhile(isAlphaNumericWord); | ||
stream.eatWhile(isVariableName); | ||
} else if (short) { | ||
@@ -299,2 +299,6 @@ stream.eatWhile(isAlphaWord); | ||
function isVariableName(code) { | ||
return code === 45 /* - */ || isAlphaNumericWord(code); | ||
} | ||
const opt = { throws: true }; | ||
@@ -423,2 +427,3 @@ | ||
const DASH = 45; // - | ||
const COLON = 58; // : | ||
const AT = 64; // @ | ||
@@ -492,2 +497,4 @@ | ||
while (!stream.eof()) { | ||
// use colon as value separator | ||
stream.eat(COLON); | ||
if (value = consumeNumericValue(stream) || consumeColor(stream)) { | ||
@@ -494,0 +501,0 @@ // edge case: a dash after unit-less numeric value or color should |
{ | ||
"name": "@emmetio/css-abbreviation", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"description": "Parses Emmet CSS abbreviatoin into AST tree", | ||
@@ -5,0 +5,0 @@ "main": "dist/css-abbreviation.cjs.js", |
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
25170
892