Hi Thomas

>>Line 40 is the last closing brace in the config.json snippet above but
>>the
>> problem is caused by having a double slash in the value for "uri" on the
>> previous line.
>>
>> It's typo in my config.json but the error message is rather obscure and
>> took
>> me a while to figure out what was triggering it.  Is this just normal
>> python
>> or a bug in the generator?
>
>It's neither nor. It's Json, or to be more precise, our simple extension
>to it: We support JavaScript-style comments. When you use '//' you start
>an end-of-line comment which is stripped, and what remains is a run-away
>string that extends to the end of the file.
>
>I never fall into this trap as I use JavaScript syntax highlighting when
>editing Json, so comments stand out.
>

I see what you mean about the end of line comment, but I'm using Eclipse's
JavaScript editor for syntax highlighting json files and it sees it as
part of the string, as does firefox and chrome.  Adding comments to Json
is obviously useful but the extension shouldn't break valid json.

It's not a problem for me because my double-slash was a typo anyway, do
you want me to file a bug?

John




------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to