Commit Graph

14 Commits

Author SHA1 Message Date
Alex Palaistras f26cba14c7 Implement better ordering for tests 2016-07-03 13:45:26 +01:00
Alex Palaistras e05aabbadb Clean up and separate tests
Tests are now placed in their own folders, and separated per unit.
2016-05-21 13:17:39 +01:00
Alex Palaistras d82ad0ae29 Expand mixin support, fix README docs 2016-05-19 21:45:17 +01:00
Alex Palaistras aa37d6c3fd Add initial mixin support.
This adds support for simple mixins, i.e. parameters and parent
selectors aren't handled yet. More to come.
2016-05-17 10:27:47 +01:00
Alex Palaistras c43d0214d8 Fix issue with multi-word variables and incorrect trim 2016-03-20 22:59:57 +00:00
Alex Palaistras a849ee6135 Make `@import` declarations more robust against the SASS spec 2016-03-19 11:38:36 +00:00
Alex Palaistras 9d8de835fd Rename all references of `include` to `import`
Due to a major facepalm, `@import` declarations were incorrectly handled
as `@include` declarations instead. The code and accompanying documentation
and tests have been rectified to fix this error.
2016-03-17 12:33:04 +00:00
Alex Palaistras 19ff03983d Improve test file for include functionality 2016-03-17 12:25:38 +00:00
Alex Palaistras e5d2012112 Fix issues with `include` declarations, add better docs 2016-03-17 12:23:52 +00:00
Alex Palaistras 984c36cc2d Add initial version of `@include` declaration support
This adds support for SASS-style `@import` declarations, for transparently
including external `.scss` files in the resulting markup. File names are
resolved as per the rules set by SASS (i.e. importing a file named
"include/common" will search for "_common.scss" as well as "common.scss").

The entire source code had to be restructured around the idea of having to
switch the file context transparently, and is now based around double `while`
loops, one for checking the current context and the other for checking the
current line via `getline`.

The included test-suite may need some cleaning up, and the source code most
definitely will. More to come.
2016-03-17 00:10:24 +00:00
Alex Palaistras 32e3f189cc Remove prematurely-pushed test files 2016-03-09 22:38:34 +00:00
Alex Palaistras 19f2f5b514 Change tagline, fix comments 2016-03-09 22:36:57 +00:00
Alex Palaistras 031fe1d0be Move shared regex rules to table, fix special cases with variables 2016-03-04 16:18:10 +00:00
Alex Palaistras 5dbcfb1546 Move tests from `spec` to `tests` folder, fix test runner messages 2016-02-28 21:40:53 +00:00