-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MISSING_VAR reports cfwddx() attributes #483
Comments
Hey Andreas, thx for logging these. I wonder if this and #482 is a general problem with this kind of cfscript syntax in the parsing process. From what I can see is that it thinks cfwddx and cfmail in your other example are user functions and then looks for a named arguments action etc --- that is never defined as a local variable. @ryaneberly - would that a fair assessment? |
i think it is tag specific. throw message="" reports var not declared and #482 is for both variants |
I will look at what we did for throw and see what can done about this one. |
Does anyone have the spec for the rather awkward form: It's going to take hard coding those special cases in the parser as far as I can tell. |
"yay" :-/ I'm not sure if there IS a spec. IIRC the official line from Adobe was that all tags can be used this way with all attributes each tags supports. Is that correct, @eppinger ? |
the tag attribute=value syntax was the first lucee implementation in cfscript Adobe uses in cf11+ the cftag(attribute=value) syntax. Lucee supports now both variants. https://helpx.adobe.com/coldfusion/cfml-reference/coldfusion-tags/tags-r-s/cfscript.html |
Ah, I thought Adobe led the way in interesting language decisions... Thanks @eppinger I'll see what we can do in cfparser. |
cfparser 2.6.0 is out, and I believe the issues in this task are resolved. |
This will be included in 1.3.0 |
sample
cfwddx(action="cfml2wddx", input="#attribs#" output="attribsWDDX");
reports
Variable action is not declared with a var statement., etc
The text was updated successfully, but these errors were encountered: