Skip to content

Commit 2b493e2

Browse files
committed
Fix SCSS issue with comments.
Fixes #272
1 parent a5a6d52 commit 2b493e2

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

lexers/s/scss.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ var Scss = internal.Register(MustNewLexer(
8080
{`[\w-]+`, NameTag, nil},
8181
{`#\{`, LiteralStringInterpol, Push("interpolation")},
8282
{`&`, Keyword, nil},
83-
{`[~^*!&\[\]()<>|+=@:;,./?-]`, Operator, nil},
83+
{`[~^*!&\[\]()<>|+=@:,./?-]`, Operator, nil},
8484
{`"`, LiteralStringDouble, Push("string-double")},
8585
{`'`, LiteralStringSingle, Push("string-single")},
8686
{`\n`, Text, nil},
@@ -92,9 +92,9 @@ var Scss = internal.Register(MustNewLexer(
9292
{`"`, LiteralStringDouble, Pop(1)},
9393
},
9494
"string-single": {
95-
{`(\\.|#(?=[^\n{])|[^\n'#])+`, LiteralStringDouble, nil},
95+
{`(\\.|#(?=[^\n{])|[^\n'#])+`, LiteralStringSingle, nil},
9696
{`#\{`, LiteralStringInterpol, Push("interpolation")},
97-
{`'`, LiteralStringDouble, Pop(1)},
97+
{`'`, LiteralStringSingle, Pop(1)},
9898
},
9999
"string-url": {
100100
{`(\\#|#(?=[^\n{])|[^\n#)])+`, LiteralStringOther, nil},

0 commit comments

Comments
 (0)