[ALOY-13] CSS grammar does not support comments
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-07-19T11:52:01.000+0000 |
Affected Version/s | 2012 Sprint 14 |
Fix Version/s | 2012 Sprint 14 |
Components | Runtime, XML |
Labels | n/a |
Reporter | Tony Lukasavage |
Assignee | Tony Lukasavage |
Created | 2012-05-21T12:32:11.000+0000 |
Updated | 2014-06-22T13:21:31.000+0000 |
Description
As per the [w3c specification](http://www.w3.org/TR/CSS21/syndata.html#comments), css should support comments in the following format:
/*
commented text
*/
The current CSS grammar and generated parser throws the following exception when it encounters comments in code:
[ERROR] Script Error = Expected "*", ".", ":", "[", -->, <!--, @import, @media, @page, hash, identifier or whitespace but "/" found. (unknown file).
details here: [https://github.com/appcelerator/ZipTi/commit/8ded41e69c5b4d85f40c6884d200fda9f6533668](https://github.com/appcelerator/ZipTi/commit/8ded41e69c5b4d85f40c6884d200fda9f6533668)
Wow - your a css/html grammar machine