Titanium JIRA Archive
Alloy (ALOY)

[ALOY-13] CSS grammar does not support comments

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2012-07-19T11:52:01.000+0000
Affected Version/s2012 Sprint 14
Fix Version/s2012 Sprint 14
ComponentsRuntime, XML
Labelsn/a
ReporterTony Lukasavage
AssigneeTony Lukasavage
Created2012-05-21T12:32:11.000+0000
Updated2014-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).

Comments

  1. Tony Lukasavage 2012-05-21

    details here: [https://github.com/appcelerator/ZipTi/commit/8ded41e69c5b4d85f40c6884d200fda9f6533668](https://github.com/appcelerator/ZipTi/commit/8ded41e69c5b4d85f40c6884d200fda9f6533668)
  2. Russell McMahon 2012-05-21

    Wow - your a css/html grammar machine

JSON Source