Comments (5)
Got a bunch of fixes for this said bug in my fork/branch (https://github.com/jgranstrom/sass-extract/compare/master...3rd-Eden:regexp?expand=1) will create a PR for this after I fixed the last set of bugs that I'm running in to.
from sass-extract.
Thank you for your efforts in investigating these issues!
I am in addition looking into a more robust parsing method that won't require regexp for reasons like this one. Patches are very welcome for the bugs you come across.
from sass-extract.
@jgranstrom Yeah, my branch has a couple of bug fixes already. As for alternate ways to parse there's https://github.com/postcss/postcss-scss which uses a tokenizer but that would require a lot refactoring and I don't know if that is worth the effort as the current regexp's work fine after making them less greedy.
from sass-extract.
Great stuff @3rd-Eden. I am looking into using scss-parser for parsing declarations from the AST of each file, which will be helpful in preparations for supporting local variables declared in specific scopes in addition to the global ones currently supported.
from sass-extract.
@3rd-Eden check out #8 It should fix your issue. It also prevents freezing in my case
from sass-extract.
Related Issues (20)
- Plugin options HOT 4
- Support custom node-sass `importer` compileOption.
- Compact should not drop unit / new plugin needed HOT 3
- Parsing error while parsing Bulma SASS HOT 3
- DeprecationWarning: Module Chunks HOT 2
- Add a built in plugin for flexible transformation of output format HOT 1
- Raw css imports are not supported HOT 1
- Parse error in Bootstrap v4.1 HOT 1
- Prototype Pollution vulnerability of dependency HOT 3
- Function references assigned to variables throw errors HOT 1
- Importers - callback vs. Promise
- Unable to parse variables which contain a forward-slash `/`
- Render fails for SCSS file encoded in UTF8-BOM HOT 1
- When calling the `findImportedPath` the `url` should be normalized to prevent issues on Windows
- Support for Dart Sass (possibility for using custom implementation) HOT 13
- Include doc comments HOT 2
- Sass plugin usage HOT 2
- Update node-sass peer dependency version? HOT 3
- Enable hex values to be capitalized HOT 1
- Look into nested map regression HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sass-extract.