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

Compass Sprite imports break KSS parsing #24

Closed
wants to merge 1 commit into from

Conversation

mscheibe
Copy link

  • Compass Sprite imports can be of the form @import "folder/*.png".
  • This matches the regex for multi-line comments and the rest of the
    file would then be ignored.
  • New behaviour is to continue if we aren't already in a multi-line
    comment if the line starts with @import.
  • Ran mocha test suite and still passed.
  • Manually verified as well.

* Compass Sprite imports can be of the form `@import "folder/*.png"`.
* This matches the regex for multi-line comments and the rest of the
  file would then be ignored.
* New behaviour is to `continue` if we aren't already in a multi-line
  comment if the line starts with @import.
* Ran mocha test suite and still passed.
* Manually verified as well.
@0x6a68 0x6a68 mentioned this pull request Jun 12, 2013
5 tasks
@JohnAlbin
Copy link
Contributor

Thanks for the bug report!

In addition to the problem you noted, kss-node fails to detect "/_" inside CSS strings, e.g. content: '/_';.

The problem is with the regular expressions that detect the start of multi-line comments. I'm working on some tests to confirm my fix.

@JohnAlbin
Copy link
Contributor

Fixing this over in #80

@JohnAlbin JohnAlbin closed this Jul 21, 2014
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

Successfully merging this pull request may close these issues.

None yet

2 participants