Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@johanneslumpe/css-value-declaration-grammer-lexer

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@johanneslumpe/css-value-declaration-grammer-lexer - npm Package Compare versions

Comparing version 0.1.3 to 0.1.4

8

docs/enums/_types_.icsscombinatortokentype.md

@@ -26,3 +26,3 @@ [@johanneslumpe/css-value-declaration-grammer-lexer](../README.md) > ["types"](../modules/_types_.md) > [ICssCombinatorTokenType](../enums/_types_.icsscombinatortokentype.md)

*Defined in [types.ts:45](https://github.com/johanneslumpe/css-value-declaration-grammer-lexer/blob/9be101f/src/types.ts#L45)*
*Defined in [types.ts:45](https://github.com/johanneslumpe/css-value-declaration-grammer-lexer/blob/2d14583/src/types.ts#L45)*

@@ -36,3 +36,3 @@ ___

*Defined in [types.ts:44](https://github.com/johanneslumpe/css-value-declaration-grammer-lexer/blob/9be101f/src/types.ts#L44)*
*Defined in [types.ts:44](https://github.com/johanneslumpe/css-value-declaration-grammer-lexer/blob/2d14583/src/types.ts#L44)*

@@ -46,3 +46,3 @@ ___

*Defined in [types.ts:42](https://github.com/johanneslumpe/css-value-declaration-grammer-lexer/blob/9be101f/src/types.ts#L42)*
*Defined in [types.ts:42](https://github.com/johanneslumpe/css-value-declaration-grammer-lexer/blob/2d14583/src/types.ts#L42)*

@@ -56,5 +56,5 @@ ___

*Defined in [types.ts:43](https://github.com/johanneslumpe/css-value-declaration-grammer-lexer/blob/9be101f/src/types.ts#L43)*
*Defined in [types.ts:43](https://github.com/johanneslumpe/css-value-declaration-grammer-lexer/blob/2d14583/src/types.ts#L43)*
___

@@ -24,3 +24,3 @@ [@johanneslumpe/css-value-declaration-grammer-lexer](../README.md) > ["types"](../modules/_types_.md) > [ICssDataTokenType](../enums/_types_.icssdatatokentype.md)

*Defined in [types.ts:34](https://github.com/johanneslumpe/css-value-declaration-grammer-lexer/blob/9be101f/src/types.ts#L34)*
*Defined in [types.ts:34](https://github.com/johanneslumpe/css-value-declaration-grammer-lexer/blob/2d14583/src/types.ts#L34)*

@@ -34,5 +34,5 @@ ___

*Defined in [types.ts:35](https://github.com/johanneslumpe/css-value-declaration-grammer-lexer/blob/9be101f/src/types.ts#L35)*
*Defined in [types.ts:35](https://github.com/johanneslumpe/css-value-declaration-grammer-lexer/blob/2d14583/src/types.ts#L35)*
___

@@ -24,3 +24,3 @@ [@johanneslumpe/css-value-declaration-grammer-lexer](../README.md) > ["types"](../modules/_types_.md) > [ICssFunctionTokenType](../enums/_types_.icssfunctiontokentype.md)

*Defined in [types.ts:19](https://github.com/johanneslumpe/css-value-declaration-grammer-lexer/blob/9be101f/src/types.ts#L19)*
*Defined in [types.ts:19](https://github.com/johanneslumpe/css-value-declaration-grammer-lexer/blob/2d14583/src/types.ts#L19)*

@@ -34,5 +34,5 @@ ___

*Defined in [types.ts:18](https://github.com/johanneslumpe/css-value-declaration-grammer-lexer/blob/9be101f/src/types.ts#L18)*
*Defined in [types.ts:18](https://github.com/johanneslumpe/css-value-declaration-grammer-lexer/blob/2d14583/src/types.ts#L18)*
___

@@ -24,3 +24,3 @@ [@johanneslumpe/css-value-declaration-grammer-lexer](../README.md) > ["types"](../modules/_types_.md) > [ICssGroupTokenType](../enums/_types_.icssgrouptokentype.md)

*Defined in [types.ts:27](https://github.com/johanneslumpe/css-value-declaration-grammer-lexer/blob/9be101f/src/types.ts#L27)*
*Defined in [types.ts:27](https://github.com/johanneslumpe/css-value-declaration-grammer-lexer/blob/2d14583/src/types.ts#L27)*

@@ -34,5 +34,5 @@ ___

*Defined in [types.ts:26](https://github.com/johanneslumpe/css-value-declaration-grammer-lexer/blob/9be101f/src/types.ts#L26)*
*Defined in [types.ts:26](https://github.com/johanneslumpe/css-value-declaration-grammer-lexer/blob/2d14583/src/types.ts#L26)*
___

@@ -28,3 +28,3 @@ [@johanneslumpe/css-value-declaration-grammer-lexer](../README.md) > ["types"](../modules/_types_.md) > [ICssMultiplierTokenType](../enums/_types_.icssmultipliertokentype.md)

*Defined in [types.ts:52](https://github.com/johanneslumpe/css-value-declaration-grammer-lexer/blob/9be101f/src/types.ts#L52)*
*Defined in [types.ts:52](https://github.com/johanneslumpe/css-value-declaration-grammer-lexer/blob/2d14583/src/types.ts#L52)*

@@ -38,3 +38,3 @@ ___

*Defined in [types.ts:57](https://github.com/johanneslumpe/css-value-declaration-grammer-lexer/blob/9be101f/src/types.ts#L57)*
*Defined in [types.ts:57](https://github.com/johanneslumpe/css-value-declaration-grammer-lexer/blob/2d14583/src/types.ts#L57)*

@@ -48,3 +48,3 @@ ___

*Defined in [types.ts:56](https://github.com/johanneslumpe/css-value-declaration-grammer-lexer/blob/9be101f/src/types.ts#L56)*
*Defined in [types.ts:56](https://github.com/johanneslumpe/css-value-declaration-grammer-lexer/blob/2d14583/src/types.ts#L56)*

@@ -58,3 +58,3 @@ ___

*Defined in [types.ts:54](https://github.com/johanneslumpe/css-value-declaration-grammer-lexer/blob/9be101f/src/types.ts#L54)*
*Defined in [types.ts:54](https://github.com/johanneslumpe/css-value-declaration-grammer-lexer/blob/2d14583/src/types.ts#L54)*

@@ -68,3 +68,3 @@ ___

*Defined in [types.ts:53](https://github.com/johanneslumpe/css-value-declaration-grammer-lexer/blob/9be101f/src/types.ts#L53)*
*Defined in [types.ts:53](https://github.com/johanneslumpe/css-value-declaration-grammer-lexer/blob/2d14583/src/types.ts#L53)*

@@ -78,5 +78,5 @@ ___

*Defined in [types.ts:55](https://github.com/johanneslumpe/css-value-declaration-grammer-lexer/blob/9be101f/src/types.ts#L55)*
*Defined in [types.ts:55](https://github.com/johanneslumpe/css-value-declaration-grammer-lexer/blob/2d14583/src/types.ts#L55)*
___

@@ -29,3 +29,3 @@ [@johanneslumpe/css-value-declaration-grammer-lexer](../README.md) > ["types"](../modules/_types_.md) > [ICssTokenType](../enums/_types_.icsstokentype.md)

*Defined in [types.ts:5](https://github.com/johanneslumpe/css-value-declaration-grammer-lexer/blob/9be101f/src/types.ts#L5)*
*Defined in [types.ts:5](https://github.com/johanneslumpe/css-value-declaration-grammer-lexer/blob/2d14583/src/types.ts#L5)*

@@ -39,3 +39,3 @@ ___

*Defined in [types.ts:7](https://github.com/johanneslumpe/css-value-declaration-grammer-lexer/blob/9be101f/src/types.ts#L7)*
*Defined in [types.ts:7](https://github.com/johanneslumpe/css-value-declaration-grammer-lexer/blob/2d14583/src/types.ts#L7)*

@@ -49,3 +49,3 @@ ___

*Defined in [types.ts:9](https://github.com/johanneslumpe/css-value-declaration-grammer-lexer/blob/9be101f/src/types.ts#L9)*
*Defined in [types.ts:9](https://github.com/johanneslumpe/css-value-declaration-grammer-lexer/blob/2d14583/src/types.ts#L9)*

@@ -59,3 +59,3 @@ ___

*Defined in [types.ts:10](https://github.com/johanneslumpe/css-value-declaration-grammer-lexer/blob/9be101f/src/types.ts#L10)*
*Defined in [types.ts:10](https://github.com/johanneslumpe/css-value-declaration-grammer-lexer/blob/2d14583/src/types.ts#L10)*

@@ -69,3 +69,3 @@ ___

*Defined in [types.ts:6](https://github.com/johanneslumpe/css-value-declaration-grammer-lexer/blob/9be101f/src/types.ts#L6)*
*Defined in [types.ts:6](https://github.com/johanneslumpe/css-value-declaration-grammer-lexer/blob/2d14583/src/types.ts#L6)*

@@ -79,3 +79,3 @@ ___

*Defined in [types.ts:11](https://github.com/johanneslumpe/css-value-declaration-grammer-lexer/blob/9be101f/src/types.ts#L11)*
*Defined in [types.ts:11](https://github.com/johanneslumpe/css-value-declaration-grammer-lexer/blob/2d14583/src/types.ts#L11)*

@@ -89,5 +89,5 @@ ___

*Defined in [types.ts:8](https://github.com/johanneslumpe/css-value-declaration-grammer-lexer/blob/9be101f/src/types.ts#L8)*
*Defined in [types.ts:8](https://github.com/johanneslumpe/css-value-declaration-grammer-lexer/blob/2d14583/src/types.ts#L8)*
___

@@ -23,5 +23,5 @@ [@johanneslumpe/css-value-declaration-grammer-lexer](../README.md) > ["types"](../modules/_types_.md) > [ILexingError](../enums/_types_.ilexingerror.md)

*Defined in [types.ts:65](https://github.com/johanneslumpe/css-value-declaration-grammer-lexer/blob/9be101f/src/types.ts#L65)*
*Defined in [types.ts:65](https://github.com/johanneslumpe/css-value-declaration-grammer-lexer/blob/2d14583/src/types.ts#L65)*
___

@@ -25,3 +25,3 @@ [@johanneslumpe/css-value-declaration-grammer-lexer](../README.md) > ["types"](../modules/_types_.md) > [IAdditionalTokenData](../interfaces/_types_.iadditionaltokendata.md)

*Defined in [types.ts:79](https://github.com/johanneslumpe/css-value-declaration-grammer-lexer/blob/9be101f/src/types.ts#L79)*
*Defined in [types.ts:79](https://github.com/johanneslumpe/css-value-declaration-grammer-lexer/blob/2d14583/src/types.ts#L79)*

@@ -28,0 +28,0 @@ The token sub type.

@@ -21,3 +21,3 @@ [@johanneslumpe/css-value-declaration-grammer-lexer](../README.md) > ["formatTokens"](../modules/_formattokens_.md)

*Defined in [formatTokens.ts:16](https://github.com/johanneslumpe/css-value-declaration-grammer-lexer/blob/9be101f/src/formatTokens.ts#L16)*
*Defined in [formatTokens.ts:16](https://github.com/johanneslumpe/css-value-declaration-grammer-lexer/blob/2d14583/src/formatTokens.ts#L16)*

@@ -24,0 +24,0 @@ Formats the given tokens into a readable declaration output

@@ -21,3 +21,3 @@ [@johanneslumpe/css-value-declaration-grammer-lexer](../README.md) > ["index"](../modules/_index_.md)

*Defined in [index.ts:19](https://github.com/johanneslumpe/css-value-declaration-grammer-lexer/blob/9be101f/src/index.ts#L19)*
*Defined in [index.ts:19](https://github.com/johanneslumpe/css-value-declaration-grammer-lexer/blob/2d14583/src/index.ts#L19)*

@@ -24,0 +24,0 @@ **Parameters:**

@@ -36,5 +36,5 @@ [@johanneslumpe/css-value-declaration-grammer-lexer](../README.md) > ["types"](../modules/_types_.md)

*Defined in [types.ts:68](https://github.com/johanneslumpe/css-value-declaration-grammer-lexer/blob/9be101f/src/types.ts#L68)*
*Defined in [types.ts:68](https://github.com/johanneslumpe/css-value-declaration-grammer-lexer/blob/2d14583/src/types.ts#L68)*
___

@@ -47,3 +47,3 @@ [@johanneslumpe/css-value-declaration-grammer-lexer](../README.md) > ["valueDeclaration"](../modules/_valuedeclaration_.md)

*Defined in [valueDeclaration.ts:20](https://github.com/johanneslumpe/css-value-declaration-grammer-lexer/blob/9be101f/src/valueDeclaration.ts#L20)*
*Defined in [valueDeclaration.ts:20](https://github.com/johanneslumpe/css-value-declaration-grammer-lexer/blob/2d14583/src/valueDeclaration.ts#L20)*

@@ -57,3 +57,3 @@ ___

*Defined in [valueDeclaration.ts:15](https://github.com/johanneslumpe/css-value-declaration-grammer-lexer/blob/9be101f/src/valueDeclaration.ts#L15)*
*Defined in [valueDeclaration.ts:15](https://github.com/johanneslumpe/css-value-declaration-grammer-lexer/blob/2d14583/src/valueDeclaration.ts#L15)*

@@ -67,3 +67,3 @@ ___

*Defined in [valueDeclaration.ts:25](https://github.com/johanneslumpe/css-value-declaration-grammer-lexer/blob/9be101f/src/valueDeclaration.ts#L25)*
*Defined in [valueDeclaration.ts:25](https://github.com/johanneslumpe/css-value-declaration-grammer-lexer/blob/2d14583/src/valueDeclaration.ts#L25)*

@@ -93,3 +93,3 @@ The state function pattern is inspired by a talk on lexing in Go by Rob Pike

*Defined in [valueDeclaration.ts:178](https://github.com/johanneslumpe/css-value-declaration-grammer-lexer/blob/9be101f/src/valueDeclaration.ts#L178)*
*Defined in [valueDeclaration.ts:179](https://github.com/johanneslumpe/css-value-declaration-grammer-lexer/blob/2d14583/src/valueDeclaration.ts#L179)*

@@ -111,3 +111,3 @@ **Parameters:**

*Defined in [valueDeclaration.ts:369](https://github.com/johanneslumpe/css-value-declaration-grammer-lexer/blob/9be101f/src/valueDeclaration.ts#L369)*
*Defined in [valueDeclaration.ts:371](https://github.com/johanneslumpe/css-value-declaration-grammer-lexer/blob/2d14583/src/valueDeclaration.ts#L371)*

@@ -129,3 +129,3 @@ **Parameters:**

*Defined in [valueDeclaration.ts:273](https://github.com/johanneslumpe/css-value-declaration-grammer-lexer/blob/9be101f/src/valueDeclaration.ts#L273)*
*Defined in [valueDeclaration.ts:275](https://github.com/johanneslumpe/css-value-declaration-grammer-lexer/blob/2d14583/src/valueDeclaration.ts#L275)*

@@ -147,3 +147,3 @@ **Parameters:**

*Defined in [valueDeclaration.ts:125](https://github.com/johanneslumpe/css-value-declaration-grammer-lexer/blob/9be101f/src/valueDeclaration.ts#L125)*
*Defined in [valueDeclaration.ts:126](https://github.com/johanneslumpe/css-value-declaration-grammer-lexer/blob/2d14583/src/valueDeclaration.ts#L126)*

@@ -165,3 +165,3 @@ **Parameters:**

*Defined in [valueDeclaration.ts:402](https://github.com/johanneslumpe/css-value-declaration-grammer-lexer/blob/9be101f/src/valueDeclaration.ts#L402)*
*Defined in [valueDeclaration.ts:404](https://github.com/johanneslumpe/css-value-declaration-grammer-lexer/blob/2d14583/src/valueDeclaration.ts#L404)*

@@ -183,3 +183,3 @@ **Parameters:**

*Defined in [valueDeclaration.ts:193](https://github.com/johanneslumpe/css-value-declaration-grammer-lexer/blob/9be101f/src/valueDeclaration.ts#L193)*
*Defined in [valueDeclaration.ts:194](https://github.com/johanneslumpe/css-value-declaration-grammer-lexer/blob/2d14583/src/valueDeclaration.ts#L194)*

@@ -201,3 +201,3 @@ **Parameters:**

*Defined in [valueDeclaration.ts:31](https://github.com/johanneslumpe/css-value-declaration-grammer-lexer/blob/9be101f/src/valueDeclaration.ts#L31)*
*Defined in [valueDeclaration.ts:31](https://github.com/johanneslumpe/css-value-declaration-grammer-lexer/blob/2d14583/src/valueDeclaration.ts#L31)*

@@ -219,3 +219,3 @@ **Parameters:**

*Defined in [valueDeclaration.ts:254](https://github.com/johanneslumpe/css-value-declaration-grammer-lexer/blob/9be101f/src/valueDeclaration.ts#L254)*
*Defined in [valueDeclaration.ts:256](https://github.com/johanneslumpe/css-value-declaration-grammer-lexer/blob/2d14583/src/valueDeclaration.ts#L256)*

@@ -237,3 +237,3 @@ **Parameters:**

*Defined in [valueDeclaration.ts:104](https://github.com/johanneslumpe/css-value-declaration-grammer-lexer/blob/9be101f/src/valueDeclaration.ts#L104)*
*Defined in [valueDeclaration.ts:105](https://github.com/johanneslumpe/css-value-declaration-grammer-lexer/blob/2d14583/src/valueDeclaration.ts#L105)*

@@ -255,3 +255,3 @@ **Parameters:**

*Defined in [valueDeclaration.ts:27](https://github.com/johanneslumpe/css-value-declaration-grammer-lexer/blob/9be101f/src/valueDeclaration.ts#L27)*
*Defined in [valueDeclaration.ts:27](https://github.com/johanneslumpe/css-value-declaration-grammer-lexer/blob/2d14583/src/valueDeclaration.ts#L27)*

@@ -273,3 +273,3 @@ **Parameters:**

*Defined in [valueDeclaration.ts:216](https://github.com/johanneslumpe/css-value-declaration-grammer-lexer/blob/9be101f/src/valueDeclaration.ts#L216)*
*Defined in [valueDeclaration.ts:217](https://github.com/johanneslumpe/css-value-declaration-grammer-lexer/blob/2d14583/src/valueDeclaration.ts#L217)*

@@ -291,3 +291,3 @@ **Parameters:**

*Defined in [valueDeclaration.ts:207](https://github.com/johanneslumpe/css-value-declaration-grammer-lexer/blob/9be101f/src/valueDeclaration.ts#L207)*
*Defined in [valueDeclaration.ts:208](https://github.com/johanneslumpe/css-value-declaration-grammer-lexer/blob/2d14583/src/valueDeclaration.ts#L208)*

@@ -309,3 +309,3 @@ **Parameters:**

*Defined in [valueDeclaration.ts:359](https://github.com/johanneslumpe/css-value-declaration-grammer-lexer/blob/9be101f/src/valueDeclaration.ts#L359)*
*Defined in [valueDeclaration.ts:361](https://github.com/johanneslumpe/css-value-declaration-grammer-lexer/blob/2d14583/src/valueDeclaration.ts#L361)*

@@ -327,3 +327,3 @@ **Parameters:**

*Defined in [valueDeclaration.ts:36](https://github.com/johanneslumpe/css-value-declaration-grammer-lexer/blob/9be101f/src/valueDeclaration.ts#L36)*
*Defined in [valueDeclaration.ts:36](https://github.com/johanneslumpe/css-value-declaration-grammer-lexer/blob/2d14583/src/valueDeclaration.ts#L36)*

@@ -345,3 +345,3 @@ **Parameters:**

*Defined in [valueDeclaration.ts:89](https://github.com/johanneslumpe/css-value-declaration-grammer-lexer/blob/9be101f/src/valueDeclaration.ts#L89)*
*Defined in [valueDeclaration.ts:90](https://github.com/johanneslumpe/css-value-declaration-grammer-lexer/blob/2d14583/src/valueDeclaration.ts#L90)*

@@ -363,3 +363,3 @@ **Parameters:**

*Defined in [valueDeclaration.ts:396](https://github.com/johanneslumpe/css-value-declaration-grammer-lexer/blob/9be101f/src/valueDeclaration.ts#L396)*
*Defined in [valueDeclaration.ts:398](https://github.com/johanneslumpe/css-value-declaration-grammer-lexer/blob/2d14583/src/valueDeclaration.ts#L398)*

@@ -381,3 +381,3 @@ **Parameters:**

*Defined in [valueDeclaration.ts:309](https://github.com/johanneslumpe/css-value-declaration-grammer-lexer/blob/9be101f/src/valueDeclaration.ts#L309)*
*Defined in [valueDeclaration.ts:311](https://github.com/johanneslumpe/css-value-declaration-grammer-lexer/blob/2d14583/src/valueDeclaration.ts#L311)*

@@ -399,3 +399,3 @@ **Parameters:**

*Defined in [valueDeclaration.ts:247](https://github.com/johanneslumpe/css-value-declaration-grammer-lexer/blob/9be101f/src/valueDeclaration.ts#L247)*
*Defined in [valueDeclaration.ts:249](https://github.com/johanneslumpe/css-value-declaration-grammer-lexer/blob/2d14583/src/valueDeclaration.ts#L249)*

@@ -418,3 +418,3 @@ **Parameters:**

*Defined in [valueDeclaration.ts:241](https://github.com/johanneslumpe/css-value-declaration-grammer-lexer/blob/9be101f/src/valueDeclaration.ts#L241)*
*Defined in [valueDeclaration.ts:243](https://github.com/johanneslumpe/css-value-declaration-grammer-lexer/blob/2d14583/src/valueDeclaration.ts#L243)*

@@ -436,3 +436,3 @@ **Parameters:**

*Defined in [valueDeclaration.ts:75](https://github.com/johanneslumpe/css-value-declaration-grammer-lexer/blob/9be101f/src/valueDeclaration.ts#L75)*
*Defined in [valueDeclaration.ts:76](https://github.com/johanneslumpe/css-value-declaration-grammer-lexer/blob/2d14583/src/valueDeclaration.ts#L76)*

@@ -454,3 +454,3 @@ **Parameters:**

*Defined in [valueDeclaration.ts:443](https://github.com/johanneslumpe/css-value-declaration-grammer-lexer/blob/9be101f/src/valueDeclaration.ts#L443)*
*Defined in [valueDeclaration.ts:445](https://github.com/johanneslumpe/css-value-declaration-grammer-lexer/blob/2d14583/src/valueDeclaration.ts#L445)*

@@ -457,0 +457,0 @@ Lexing entry function

@@ -24,2 +24,3 @@ import { EOS } from '@johanneslumpe/basic-lexer';

prevTokenType === ICssTokenType.DATA_TYPE ||
prevTokenType === ICssTokenType.MULTIPLIER ||
(prevTokenType === ICssTokenType.GROUP &&

@@ -160,7 +161,8 @@ prevTokenSubType === ICssGroupTokenType.GROUP_END);

var token = lexer.lookBehindForTypes(ICssTokenType.FUNCTION, ICssTokenType.GROUP);
if (token &&
((token.type === ICssTokenType.FUNCTION &&
getTokenSubType(token) !== ICssFunctionTokenType.FUNCTION_END) ||
(token.type !== ICssTokenType.FUNCTION &&
token.type !== ICssTokenType.GROUP))) {
if (!token ||
(token &&
((token.type === ICssTokenType.FUNCTION &&
getTokenSubType(token) !== ICssFunctionTokenType.FUNCTION_END) ||
(token.type !== ICssTokenType.FUNCTION &&
token.type !== ICssTokenType.GROUP)))) {
return error('Invalid bracket closing position');

@@ -167,0 +169,0 @@ }

@@ -26,2 +26,3 @@ "use strict";

prevTokenType === types_1.ICssTokenType.DATA_TYPE ||
prevTokenType === types_1.ICssTokenType.MULTIPLIER ||
(prevTokenType === types_1.ICssTokenType.GROUP &&

@@ -162,7 +163,8 @@ prevTokenSubType === types_1.ICssGroupTokenType.GROUP_END);

var token = lexer.lookBehindForTypes(types_1.ICssTokenType.FUNCTION, types_1.ICssTokenType.GROUP);
if (token &&
((token.type === types_1.ICssTokenType.FUNCTION &&
exports.getTokenSubType(token) !== types_1.ICssFunctionTokenType.FUNCTION_END) ||
(token.type !== types_1.ICssTokenType.FUNCTION &&
token.type !== types_1.ICssTokenType.GROUP))) {
if (!token ||
(token &&
((token.type === types_1.ICssTokenType.FUNCTION &&
exports.getTokenSubType(token) !== types_1.ICssFunctionTokenType.FUNCTION_END) ||
(token.type !== types_1.ICssTokenType.FUNCTION &&
token.type !== types_1.ICssTokenType.GROUP)))) {
return error('Invalid bracket closing position');

@@ -169,0 +171,0 @@ }

{
"name": "@johanneslumpe/css-value-declaration-grammer-lexer",
"version": "0.1.3",
"version": "0.1.4",
"description": "A lexer for css value declaration grammar",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -14,3 +14,3 @@ # css-value-declaration-grammer-lexer

* combinators (`|`, `||`, ` `, `&&`)
* mutlipliers (`+`, `*`, `?`, `!`, `#`, `{}`)
* multipliers (`+`, `*`, `?`, `!`, `#`, `{}`)
* literal characters (`,`, `/`)

@@ -70,2 +70,2 @@

Typedocs can be found in [the docs folder](docs/README.md)
Typedocs can be found in [the docs folder](docs/README.md)

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc