vscode-cfml
vscode-cfml copied to clipboard
Just-in-time array color coding issue
The following, valid code results in unmatched coloring of the surrounding ## characters.
<cfloop array="#["Small","Medium","Large","Extra Large","Extra Extra Large"]#" index="thisOne">
Thanks!
@michaelalandawson Try changing the outside quotes to single quotes. This one shows correct highlighting: <cfloop array='#["Small","Medium","Large","Extra Large","Extra Extra Large"]#' index="thisOne">
@pczarn2 that does work, although I have never used that syntax. Thanks.
While testing this, I may have uncovered another related issue:
This invalid code shows as valid. Notice the placement of the single and double quotes. They are not in pairs.
<cfloop array='#["Small","Medium","Large","Extra Large","Extra Extra Large"]#" index="thisOne'></cfloop>