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

SCSS and Sass give errors with :: (pseudo-element) in selector #841

Closed
AlexWayfer opened this issue Dec 21, 2017 · 12 comments · Fixed by #1554
Closed

SCSS and Sass give errors with :: (pseudo-element) in selector #841

AlexWayfer opened this issue Dec 21, 2017 · 12 comments · Fixed by #1554
Assignees
Labels
bugfix-request A request for a bugfix to be developed.

Comments

@AlexWayfer
Copy link

SCSS

image

Sass

image

@AlexWayfer AlexWayfer changed the title SCSS and Sass gives error for complex selector SCSS and Sass gives error with :: (pseudo-element) in selector Dec 21, 2017
@AlexWayfer AlexWayfer changed the title SCSS and Sass gives error with :: (pseudo-element) in selector SCSS and Sass give errors with :: (pseudo-element) in selector Dec 21, 2017
@AlexWayfer
Copy link
Author

Simplified examples:

SCSS

image

Sass

image

@gfx gfx added the bugfix-request A request for a bugfix to be developed. label Dec 22, 2017
@gfx
Copy link
Member

gfx commented Dec 22, 2017

@AlexWayfer What is your Rouge version? Is there a difference between v3.0.0 and v3.1.0?

@bfool
Copy link
Contributor

bfool commented Dec 22, 2017

I hava these bugs too with vue.
I cloned the v3.1.0. And I have print the m[2] in the next function, the variable is ''.

  state :lang_tag do
    rule /(lang\s*=)(\s*)("(?:\\.|[^\\])*?"|'(\\.|[^\\])*?'|[^\s>]+)/ do |m|
      groups Name::Attribute, Text, Str
      puts "m[2]: #{m[2]} 
      @lang = lookup_lang(m[2])
    end

    mixin :tag
  end

Also, I changed the variable to m[3],but the function lookup_lang always return PlainText

@gfx
Copy link
Member

gfx commented Dec 22, 2017

@purecaptain It's vue.rb, isn't it? Is it related to this SASS/SCSS issues?

@bfool
Copy link
Contributor

bfool commented Dec 22, 2017

It's vue.rb. A vue issues. But it can write SCSS codes in Vue and I found the bug when I writed SCSS codes in Vue . So I think it's also can put the issue in this.

@gfx
Copy link
Member

gfx commented Dec 22, 2017

@purecaptain Please file a new issue for Vue + SCSS issues. It seems not related to this issue.

@bfool
Copy link
Contributor

bfool commented Dec 22, 2017

Ok

@AlexWayfer
Copy link
Author

@AlexWayfer What is your Rouge version? Is there a difference between v3.0.0 and v3.1.0?

I've attached links to the official site. I see in footer 3.1.0.

Also I found it in GitLab 10.2.4 (don't know what version it's using).

@stale
Copy link

stale bot commented Jun 19, 2019

This contribution has been automatically marked as stale because it has not had any activity for more than a year. It will be closed if no additional activity occurs within the next 14 days.

@stale stale bot added the stale-issue There has been no activity for a year. label Jun 19, 2019
@pyrmont
Copy link
Contributor

pyrmont commented Jun 19, 2019

I can confirm this bug is still there.

@stale stale bot removed the stale-issue There has been no activity for a year. label Jun 19, 2019
@stale
Copy link

stale bot commented Jun 18, 2020

This issue has been automatically marked as stale because it has not had any activity for more than a year. It will be closed if no additional activity occurs within the next 14 days.
If you would like this issue to remain open, please reply and let us know if the issue is still reproducible.

@stale stale bot added the stale-issue There has been no activity for a year. label Jun 18, 2020
@pyrmont
Copy link
Contributor

pyrmont commented Jun 19, 2020

I'll try to get this fixed soon.

@stale stale bot removed the stale-issue There has been no activity for a year. label Jun 19, 2020
@pyrmont pyrmont self-assigned this Jun 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix-request A request for a bugfix to be developed.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants