Hey Adam,
I spent some time on this issue tonight and unfortunately I think this is
out of my hands: Lucee and Railo both attempt to interpret the commented
string as a cftag!
As you said, the error is thrown on a comment. My first idea was to delete
the comment, but that just made the error happen again in another place.
This time it was on working code, so I had to start digging…
The line:
//str = rereplace(str,‘<cfdirectory(.*?)>’,‘<cfdirectory \1 />’,‘all’);
The error:
Invalid Identifier, the following character cannot be part of a identifier
[(]
If I remove the “(.*?)” from the regex I get a new error:
The line:
//str = rereplace(str,‘’,‘<cfdirectory \1 />’,‘all’);
The error:
attribute directory is required for tag cfdirectory
Since the file is entirely made of regex that replaces cftags with cfscript
I don’t think this is going to work until Lucee & Railo understand that
we’re looking at strings and not tags.
A possible work around would be to take the regex and rewrite
cftag2cfscript in a different language. …maybe someone has a cf to ???
script?! X’DOn Wednesday, May 13, 2015 at 7:54:39 PM UTC-4, Adam Chapman wrote:
Due to my inherent laziness… I wanted to automate (the bulk) of tag to
script conversion… this tool seems to fit the bill, but errors:
/cftag2cfscript/cftag2cfxml.cfc: line 55
Invalid Identifier, the following character cannot be part of a identifier
[(]
cftag2cfscript/cftag2cfxml.cfc at master · pirategaspard/cftag2cfscript · GitHub
The repo states it only supports ACF…
Interesting to note that the error on line 55 is a comment…
Anyway, has anyone managed to use this tool outside of ACF?
Regards,
Adam