tracker issue : CFB-4198450

select a category, or use search below
(searches all categories and all time range)
Title:

Regression: 'try' is no longer allowed as variable name in tag syntax

| View in Tracker

Status/Resolution/Reason: Open//

Reporter/Name(from Bugbase): Legorol S. / ()

Created: 07/17/2019

Components: Editor Features, Syntax Checking

Versions: 2018

Failure Type: Incorrectly functioning

Found In Build/Fixed In Build: 313943 /

Priority/Frequency: Normal / All users will encounter

Locale/System: English / Windows 10 64 bit

Vote Count: 0

Problem Description:
As of CFB 2018, keywords such as 'try' are no longer allowed by the editor as variable names in tag syntax. This was not the case in CFB 2016. This behaviour is not consistent with documentation and the actual behaviour of CF server, which is still happy with it.

All three of the following documentation pages consistently state that keywords such as 'try' are reserved only in script syntax, not in tag syntax:
https://helpx.adobe.com/coldfusion/developing-applications/the-cfml-programming-language/elements-of-cfml/reserved-words-in-coldfusion.html
https://helpx.adobe.com/coldfusion/cfml-reference/reserved-words-and-variables/reserved-words.html
https://helpx.adobe.com/coldfusion/developing-applications/the-cfml-programming-language/extending-coldfusion-pages-with-cfml-scripting/what-is-supported-in-cfscript.html

Steps to Reproduce:
A line of code such as:
<cfset try=0>

Actual Result:
The editor places an error marker, with the error message:
"Invalid Token try at line 2, column 8
Missing token > or />"

Expected Result:
No error, as was the case in CFB 2016.

Any Workarounds:
None

Attachments:

Comments:

I should add that this is a serious problem because once the editor encounters a line such as <cfset try=0>, it does not parse any further lines below that. For example in a CFC with many functions, if the offending line is near the top of the file, the outline view does not show the available functions, because they are not parsed.
Comment by Legorol S.
31040 | July 17, 2019 05:46:26 PM GMT