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

@lezer/css

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lezer/css - npm Package Compare versions

Comparing version 0.15.2 to 0.16.0

src/highlight.js

10

CHANGELOG.md

@@ -0,1 +1,11 @@

## 0.16.0 (2022-04-20)
### Breaking changes
Move to 0.16 serialized parser format.
### New features
The parser now includes syntax highlighting information in its node types.
## 0.15.2 (2021-09-24)

@@ -2,0 +12,0 @@

48

dist/index.es.js
import { ExternalTokenizer, LRParser } from '@lezer/lr';
import { NodeProp } from '@lezer/common';
import { styleTags, tags } from '@lezer/highlight';

@@ -58,2 +58,39 @@ // This file was generated by lezer-generator. You probably shouldn't edit it.

const cssHighlighting = styleTags({
"import charset namespace keyframes": tags.definitionKeyword,
"media supports": tags.controlKeyword,
"from to selector": tags.keyword,
NamespaceName: tags.namespace,
KeyframeName: tags.labelName,
TagName: tags.tagName,
ClassName: tags.className,
PseudoClassName: tags.constant(tags.className),
IdName: tags.labelName,
"FeatureName PropertyName": tags.propertyName,
AttributeName: tags.attributeName,
NumberLiteral: tags.number,
KeywordQuery: tags.keyword,
UnaryQueryOp: tags.operatorKeyword,
"CallTag ValueName": tags.atom,
VariableName: tags.variableName,
Callee: tags.operatorKeyword,
Unit: tags.unit,
"UniversalSelector NestingSelector": tags.definitionOperator,
AtKeyword: tags.keyword,
MatchOp: tags.compareOperator,
"ChildOp SiblingOp, LogicOp": tags.logicOperator,
BinOp: tags.arithmeticOperator,
Important: tags.modifier,
Comment: tags.blockComment,
ParenthesizedContent: tags.special(tags.name),
ColorLiteral: tags.color,
StringLiteral: tags.string,
":": tags.punctuation,
"PseudoOp #": tags.derefOperator,
"; ,": tags.separator,
"( )": tags.paren,
"[ ]": tags.squareBracket,
"{ }": tags.brace
});
// This file was generated by lezer-generator. You probably shouldn't edit it.

@@ -64,3 +101,3 @@ const spec_callee = {__proto__:null,lang:32, "nth-child":32, "nth-last-child":32, "nth-of-type":32, dir:32, url:60, "url-prefix":60, domain:60, regexp:60, selector:134};

const parser = LRParser.deserialize({
version: 13,
version: 14,
states: "7WOYQ[OOOOQP'#Cd'#CdOOQP'#Cc'#CcO!ZQ[O'#CfO!}QXO'#CaO#UQ[O'#ChO#aQ[O'#DPO#fQ[O'#DTOOQP'#Ec'#EcO#kQdO'#DeO$VQ[O'#DrO#kQdO'#DtO$hQ[O'#DvO$sQ[O'#DyO$xQ[O'#EPO%WQ[O'#EROOQS'#Eb'#EbOOQS'#ES'#ESQYQ[OOOOQP'#Cg'#CgOOQP,59Q,59QO!ZQ[O,59QO%_Q[O'#EVO%yQWO,58{O&RQ[O,59SO#aQ[O,59kO#fQ[O,59oO%_Q[O,59sO%_Q[O,59uO%_Q[O,59vO'bQ[O'#D`OOQS,58{,58{OOQP'#Ck'#CkOOQO'#C}'#C}OOQP,59S,59SO'iQWO,59SO'nQWO,59SOOQP'#DR'#DROOQP,59k,59kOOQO'#DV'#DVO'sQ`O,59oOOQS'#Cp'#CpO#kQdO'#CqO'{QvO'#CsO)VQtO,5:POOQO'#Cx'#CxO'iQWO'#CwO)kQWO'#CyOOQS'#Ef'#EfOOQO'#Dh'#DhO)pQ[O'#DoO*OQWO'#EiO$xQ[O'#DmO*^QWO'#DpOOQO'#Ej'#EjO%|QWO,5:^O*cQpO,5:`OOQS'#Dx'#DxO*kQWO,5:bO*pQ[O,5:bOOQO'#D{'#D{O*xQWO,5:eO*}QWO,5:kO+VQWO,5:mOOQS-E8Q-E8QOOQP1G.l1G.lO+yQXO,5:qOOQO-E8T-E8TOOQS1G.g1G.gOOQP1G.n1G.nO'iQWO1G.nO'nQWO1G.nOOQP1G/V1G/VO,WQ`O1G/ZO,qQXO1G/_O-XQXO1G/aO-oQXO1G/bO.VQXO'#CdO.zQWO'#DaOOQS,59z,59zO/PQWO,59zO/XQ[O,59zO/`QdO'#CoO/gQ[O'#D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@@ -16,3 +16,3 @@ "main": "dist/index.cjs",

"devDependencies": {
"@lezer/generator": "^0.15.0",
"@lezer/generator": "^0.16.0",
"mocha": "^9.0.1",

@@ -23,3 +23,4 @@ "rollup": "^2.52.2",

"dependencies": {
"@lezer/lr": "^0.15.0"
"@lezer/lr": "^0.16.0",
"@lezer/highlight": "^0.16.0"
},

@@ -26,0 +27,0 @@ "repository": {

// This file was generated by lezer-generator. You probably shouldn't edit it.
import {LRParser} from "@lezer/lr"
import {descendant, unitToken, identifiers} from "./tokens"
import {NodeProp} from "@lezer/common"
import {cssHighlighting} from "./highlight"
const spec_callee = {__proto__:null,lang:32, "nth-child":32, "nth-last-child":32, "nth-of-type":32, dir:32, url:60, "url-prefix":60, domain:60, regexp:60, selector:134}

@@ -9,3 +9,3 @@ const spec_AtKeyword = {__proto__:null,"@import":114, "@media":138, "@charset":142, "@namespace":146, "@keyframes":152, "@supports":164}

export const parser = LRParser.deserialize({
version: 13,
version: 14,
states: "7WOYQ[OOOOQP'#Cd'#CdOOQP'#Cc'#CcO!ZQ[O'#CfO!}QXO'#CaO#UQ[O'#ChO#aQ[O'#DPO#fQ[O'#DTOOQP'#Ec'#EcO#kQdO'#DeO$VQ[O'#DrO#kQdO'#DtO$hQ[O'#DvO$sQ[O'#DyO$xQ[O'#EPO%WQ[O'#EROOQS'#Eb'#EbOOQS'#ES'#ESQYQ[OOOOQP'#Cg'#CgOOQP,59Q,59QO!ZQ[O,59QO%_Q[O'#EVO%yQWO,58{O&RQ[O,59SO#aQ[O,59kO#fQ[O,59oO%_Q[O,59sO%_Q[O,59uO%_Q[O,59vO'bQ[O'#D`OOQS,58{,58{OOQP'#Ck'#CkOOQO'#C}'#C}OOQP,59S,59SO'iQWO,59SO'nQWO,59SOOQP'#DR'#DROOQP,59k,59kOOQO'#DV'#DVO'sQ`O,59oOOQS'#Cp'#CpO#kQdO'#CqO'{QvO'#CsO)VQtO,5:POOQO'#Cx'#CxO'iQWO'#CwO)kQWO'#CyOOQS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oWOy%Qz}%Q}!O>e!O!Q%Q!Q![>e![!c%Q!c!}>e!}#T%Q#T#o>e#o~%QX?aQxPOy%Qz~%Q^?lQvUOy%Qz~%QX?uSOy%Qz#b%Q#b#c@R#c~%QX@WSoWOy%Qz#W%Q#W#X@d#X~%QX@kQ!`PoWOy%Qz~%QX@tSOy%Qz#f%Q#f#g@d#g~%QXAVQ!RPOy%Qz~%Q_AbQ!QVOy%Qz~%QZAmS!PPOy%Qz!_%Q!_!`2e!`~%Q",
tokenizers: [descendant, unitToken, identifiers, 0, 1, 2, 3],

@@ -25,0 +26,0 @@ topRules: {"StyleSheet":[0,4]},

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