ariatemplates/hashspace — pull request #323 by jakub-g (2014-10-09 14:43:04+00:00)
Title: WIP HTML syntax part 3

This is still WIP but I'm opening a PR already, since it's huge, so that someone can start reviewing
(I'll add new commit with some tests, the src should be untouched or barely touched)

Almost all 200 files changed are just syntax update in HSP files. In some of the test files I had to tweak error messages since the way parser works has changed.

---------------------

In first commit the two most interesting changes are `hspblocks.pegjs` and `syntaxTree.js`

- lots of changes to support HTMLish definition of `args`, `controller`, `export`, newly-added `export-module` and `id` + lot of validation code
- removed assertions concerning modifiers at the beginning of the statement (``
- changed `mod` to `modifier` in the syntax tree, and now it's an `object` or `null` instead of string or empty string (to support `export="foo"`)
- errtests.js: added a few lines to aid debugging in case of template parse errors
- added `suberrors` array to syntax tree in case of `