Diffdown is a real-time collaborative Markdown editor/previewer built on the AT Protocol diffdown.com
at 864c8fd63cccd160a05f67a7ce42eac86768c97c 36 lines 1.2 kB view raw
1import {styleTags, tags as t} from "@lezer/highlight" 2 3export const cssHighlighting = styleTags({ 4 "AtKeyword import charset namespace keyframes media supports": t.definitionKeyword, 5 "from to selector": t.keyword, 6 NamespaceName: t.namespace, 7 KeyframeName: t.labelName, 8 KeyframeRangeName: t.operatorKeyword, 9 TagName: t.tagName, 10 ClassName: t.className, 11 PseudoClassName: t.constant(t.className), 12 IdName: t.labelName, 13 "FeatureName PropertyName": t.propertyName, 14 AttributeName: t.attributeName, 15 NumberLiteral: t.number, 16 KeywordQuery: t.keyword, 17 UnaryQueryOp: t.operatorKeyword, 18 "CallTag ValueName": t.atom, 19 VariableName: t.variableName, 20 Callee: t.operatorKeyword, 21 Unit: t.unit, 22 "UniversalSelector NestingSelector": t.definitionOperator, 23 "MatchOp CompareOp": t.compareOperator, 24 "ChildOp SiblingOp, LogicOp": t.logicOperator, 25 BinOp: t.arithmeticOperator, 26 Important: t.modifier, 27 Comment: t.blockComment, 28 ColorLiteral: t.color, 29 "ParenthesizedContent StringLiteral": t.string, 30 ":": t.punctuation, 31 "PseudoOp #": t.derefOperator, 32 "; ,": t.separator, 33 "( )": t.paren, 34 "[ ]": t.squareBracket, 35 "{ }": t.brace 36})