Title:
[ANeff] Bug for: False syntax errors if 'setting' or 'param' only have 1 parameter
| View in TrackerStatus/Resolution/Reason: To Fix//
Reporter/Name(from Bugbase): Aaron Neff / ()
Created: 02/14/2018
Components: Editor Features, Syntax Checking
Versions: 2016
Failure Type: Cosmetic Issue
Found In Build/Fixed In Build: 302777+ /
Priority/Frequency: Normal / Few users will encounter
Locale/System: / Windows 10 64 bit
Vote Count: 0
Issue: CFB displays false syntax errors if 'setting' or 'param' only have 1 parameter.
Repro:
This works (no syntax errors):
1|<cfscript>
2| setting requestTimeout=300 enableCFOutputOnly=false;
3| param name="foo" default="bar";
4|</cfscript>
This fails (syntax errors):
(x)1|<cfscript>
(x)2| setting requestTimeout=300;
(x)3| param name="foo";
4|</cfscript>
Actual Result: Syntax errors on lines 1, 2 and 3.
- Line 1's syntax error message is: "Missing return statement in function"
- Line 2's syntax error message is: "Invalid Token requestTimeout at line 2, column 13"
- Line 3's syntax error message is: "Invalid Token name at line 3, column 11"
Expected Result: No syntax errors on lines 1, 2 or 3.
Attachments:
Comments: