CFLint icon indicating copy to clipboard operation
CFLint copied to clipboard

Parsing error. Comment with woks

Open Vintic opened this issue 5 years ago • 1 comments

This wont be parsed correctly because of: '

<cfset get_el = test(
    arg1 = 1,
    arg2 = 2 <!---Selectors'--->
    ) />

Vintic avatar Jun 03 '20 12:06 Vintic

for now I replace it in CommentReformatting.java on line 22;

int quot;
                while((quot = sb.indexOf("'",pos))>0 && quot<=endpos) {
                    sb.replace(quot,quot+1," ");
                }
                while((quot = sb.indexOf("\"",pos))>0 && quot<=endpos) {
                    sb.replace(quot,quot+1," ");
                }

Vintic avatar Jun 03 '20 12:06 Vintic