This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
When adding the comments in a .json file not highlighted as expected. Example: /** * The file path to this application's front HTML document, relative to this app.json file */ "indexHtmlPath": "index.html",
What do you mean by "not highlighted"? You mean the error badge on file? Or something else. Please always specify what you expect. That might be obvious to you but not to others. Thanks.
Created attachment 125038 [details] App.json file
Created attachment 125040 [details] App.json error badge I've added the file to reproduce it, so basically there's an error badge as you thought, that says "expected string but found /"
(In reply to comment #3) > Created attachment 125040 [details] > App.json error badge > > I've added the file to reproduce it, so basically there's an error badge as you > thought, that says "expected string but found /" Well the attachment does not seem to be json file. It looks like javascript. The message for json is correct. Comments are not allowed by json grammar.
Created attachment 125041 [details] The correct json file Sorry for that. Hmm ok, this file is taken from Sencha Touch 2 app, so probably guys from ST2 were not too strict on that.
I see comments only in examples not in "real" files. So I would stay with spec. BTW some time ago we had a bug reported that we are NOT marking comments in json as errors. (In reply to comment #5) > Created attachment 125041 [details] > The correct json file > > Sorry for that. Hmm ok, this file is taken from Sencha Touch 2 app, so probably > guys from ST2 were not too strict on that.