Hirse/brackets-outline-list

function names are not displayed for syntax errors

larushorl opened this issue · 2 comments

Brackets 1.12.0
Outline 1.1

I use the Brackets to create html-panels for Photoshop CC2015. The programming language is JavaScript, but if there are lines in the text where the XML data is being processed, I get a "syntax error" and no function names in the Outline panel. Is it possible to make the adjustment by disabling the syntax check and entering only the function names in the Outline panel ?
default

Hirse commented

The extension is using a parser to generate an abstract syntax tree to extract the function names. Functions can only be listed if the syntax is correct.

In your example, the issue is not processing XML, but rather the usage of @title as a property name. @ is not allowed in JavaScript property and variable names. Try using it as

projXmlData.grproj[i]["@title"].toString()