ditinc / linter-cflint

:shirt: CFLint plugin for Atom Linter
MIT License
4 stars 7 forks source link

Unrecognized Lucee 5 'new' syntax #33

Open AFO-0 opened 5 years ago

AFO-0 commented 5 years ago

Hi, I don't know if you continue to maintain the project, but...

In Lucee 5 there is some new syntax accepted.

I have not check all the new staff but least the syntax of Lambda expressions (or arrow functions) is not recognized.
Ej. var add = (numeric x, numeric y) => x + y;

Also, and affecting the Adobe Coldfusion as well, the posibility to declare ordered structs with literal notation doesn't work. Ej. var my_ordered_struct = [ a=1, b=2 ];

In both cases the linter expects a semicolon somewhere.

I think that for the Lucee only Syntax should be configurable it's recognition.

Thanks in advance.

ryaneberly commented 5 years ago

@AFO-0 I still consider myself a maintainer - though I haven't put much time into it recently. I think we're due for another release though. Contribs are welcome.

This issue should be moved to https://github.com/cflint/CFLint/ or the language parser https://github.com/cfparser/cfparser/ projects though