We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6e272cf commit 5b9087aCopy full SHA for 5b9087a
lexers/c/css.go
@@ -39,6 +39,18 @@ var CSS = internal.Register(MustNewLexer(
39
Include("basics"),
40
{`\}`, Punctuation, Pop(2)},
41
},
42
+ "atparenthesis": {
43
+ Include("common-values"),
44
+ {`/\*(?:.|\n)*?\*/`, Comment, nil},
45
+ Include("numeric-values"),
46
+ {`[*+/-]`, Operator, nil},
47
+ {`[,]`, Punctuation, nil},
48
+ {`"(\\\\|\\"|[^"])*"`, LiteralStringDouble, nil},
49
+ {`'(\\\\|\\'|[^'])*'`, LiteralStringSingle, nil},
50
+ {`[a-zA-Z_-]\w*`, Name, nil},
51
+ {`\(`, Punctuation, Push("atparenthesis")},
52
+ {`\)`, Punctuation, Pop(1)},
53
+ },
54
"content": {
55
{`\s+`, Text, nil},
56
{`\}`, Punctuation, Pop(1)},
@@ -73,6 +85,7 @@ var CSS = internal.Register(MustNewLexer(
73
85
{`"(\\\\|\\"|[^"])*"`, LiteralStringDouble, nil},
74
86
{`'(\\\\|\\'|[^'])*'`, LiteralStringSingle, nil},
75
87
{`[a-zA-Z_-]\w*`, Name, nil},
88
76
89
{`\)`, Punctuation, Pop(1)},
77
90
78
91
"common-values": {
0 commit comments