Skip to content
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

can't parse param syntax without attribute names #207

Closed
displague opened this issue Oct 27, 2016 · 2 comments
Closed

can't parse param syntax without attribute names #207

displague opened this issue Oct 27, 2016 · 2 comments

Comments

@displague
Copy link
Contributor

<cfscript>
public void function test() {
  param string parse_error="but works";
  param type="string" name="parses_fine" default="works as expected";
  writeDump(parse_error);
  writeDump(parses_fine);
}
test();
</cfscript>

CFLint reports: Unable to parse

http://trycf.com/gist/40d1a3f29abdabc13daeb0ec41a8ce80/acf2016?theme=monokai

@ryaneberly
Copy link
Contributor

Thanks for the example :-).

Covering all of CFscripts undocumented quirks is a bit challenging.

http://cfsimplicity.com/69/simpler-param-syntax-in-cfscript

On Thu, Oct 27, 2016 at 5:16 PM, Marques Johansson <[email protected]

wrote:

public void function test() { param string parse_error="but works"; param type="string" name="parses_fine" default="works as expected"; writeDump(parse_error); writeDump(parses_fine);}test();

CFLint reports: Unable to parse

http://trycf.com/gist/40d1a3f29abdabc13daeb0ec41a8ce
80/acf2016?theme=monokai


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#207, or mute the thread
https://github.com/notifications/unsubscribe-auth/AFtZu53F3rrQmTTyijJbDqGgPfign-B5ks5q4RSlgaJpZM4Ki1au
.

@ryaneberly
Copy link
Contributor

fixed cfparser
cfparser/cfparser#61

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants