Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong space matching inside at-rules #11

Open
mishanga opened this issue Aug 22, 2013 · 0 comments
Open

Wrong space matching inside at-rules #11

mishanga opened this issue Aug 22, 2013 · 0 comments

Comments

@mishanga
Copy link

Правильное поведение:
'a{}\tb{}' =>

["stylesheet",["ruleset",["selector",["simpleselector",["ident","a"]]],["block"]],["s","\t"],["ruleset",["selector",["simpleselector",["ident","b"]]],["block"]]]

Пробел \t находится за пределами ruleset.

Неправильное поведение:
'@media all{a{}\tb{}}' =>

["stylesheet",["atruler",["atkeyword",["ident","media"]],["atrulerq",["s"," "],["ident","all"]],["atrulers",["ruleset",["selector",["simpleselector",["ident","a"]]],["block"]],["ruleset",["selector",["simpleselector",["s","\t"],["ident","b"]]],["block"]]]]]

Пробел \t попал внутрь simpleselector.
Туда же попадают и комментарии, если есть.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant