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

Just-in-time array color coding issue #83

Open
michaelalandawson opened this issue Dec 13, 2022 · 2 comments
Open

Just-in-time array color coding issue #83

michaelalandawson opened this issue Dec 13, 2022 · 2 comments

Comments

@michaelalandawson
Copy link

The following, valid code results in unmatched coloring of the surrounding ## characters.

<cfloop array="#["Small","Medium","Large","Extra Large","Extra Extra Large"]#" index="thisOne">

image

Thanks!

@pczarn2
Copy link

pczarn2 commented Feb 1, 2023

@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">

@michaelalandawson
Copy link
Author

@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>

image

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