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 can not convert numeric scope fragments #11

Closed
thecodechef opened this issue Jan 14, 2016 · 5 comments
Closed

SCSS can not convert numeric scope fragments #11

thecodechef opened this issue Jan 14, 2016 · 5 comments
Labels

Comments

@thecodechef
Copy link

The Heading Scopes for Markdown Extended are not working i keep getting errors in each of the languages so HELP PLEASE!!

P.S Awesome Plugin keep doing what you do.

@FichteFoll
Copy link
Owner

What are the errors and how can I reproduce it?

@thecodechef
Copy link
Author

Whenever i try to change the colors of either the header content or the header punctuation it gives errors

Errors converting from SCSScheme to CSS, return code: 65

Error: Invalid CSS after "...markup.heading.": expected class name, was "1.markdown punc..."
        in scheme/langs/_markdown.scss on line 2
        from line 215 of ~/.config/sublime-text-3/Packages/Theme - LevelUpTuts/LevelUpTuts.scsscheme
  Use --trace for backtrace.

to recreate this error

text.html.markdown meta.block-level.markdown markup.heading.1.markdown punctuation.definition.heading.markdown {
  @name "Markdown: Heading (Punctuation)";
  foreground: $cyan;
}

@FichteFoll FichteFoll changed the title Markdown Extended Headings SCSS can not convert numeric scope fragments Jan 14, 2016
@FichteFoll FichteFoll added the bug label Jan 14, 2016
@FichteFoll
Copy link
Owner

Thanks for the details. That should help me track down the issue and especially work on a fix.

No ETA.

@thecodechef
Copy link
Author

No Rush just Thought you should know.
and Thnx

@FichteFoll
Copy link
Owner

So, as it is quite obvious from the error message, SASS expects a fully qualified classname and .1 is not a valid class name since they need to start with alpha characters, not numbers.

SASS also cannot comprehend a couple of other more advanced scope selector operators (most notably grouping), but parses them correctly if preceeded with a backslash. As such, I will add a csscheme pre-processor that strips all backslashes from a selector (although valid in scope names and selectors, they aren't used anywhere).

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

No branches or pull requests

2 participants