godismyjudge95 / shorthand

A Brackets extension for expanding shorthand css properties in the inline editor.
MIT License
4 stars 5 forks source link

Switch parsing from LESS to regex #10

Closed redmunds closed 10 years ago

redmunds commented 10 years ago

Note: that this branch (dev-randy) is branched off of your dev branch. So if everything looks good in this pull request, it needs to be merged first into your branch. Then you can try to fix the bugs in your branch.

This switches parsing from using LESS to using regexes. The LESS parser is asynchronous, so the code is much simpler with synchronous regular expressions.

I also changed declaration properties to be: { prop: {string}, val: {string} }

The TRBL provider should now work.

The background provider works better, but there are still problems.

Hopefully, it will be easier to fix these problems with the code simplified.