Commit Graph

14 Commits

Author SHA1 Message Date
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 ba29487be5 Fix comment block, better align `make help` task-list 2016-03-19 15:22:41 +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 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 19f2f5b514 Change tagline, fix comments 2016-03-09 22:36:57 +00:00
Alex Palaistras 98fcc7b634 Make comment blocks Markdown-compliant
This allows for documentation to be generated as Markdown using
the `task-runner doc` command. Generated Markdown can then be
rendered to HTML as needed.
2016-03-05 23:51:47 +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 27c845a16c Implement inline comment rule, make tests a bit more robust 2016-02-28 19:11:25 +00:00
Alex Palaistras 9a7431b232 Complete work on simple variable definitions. 2016-02-28 16:08:55 +00:00
Alex Palaistras 0a43eddd20 First version of Fawkss with basic test-suite 2016-02-28 11:13:34 +00:00