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
Syntax definition problem with .location #105
Comments
I can't replicate the issue. Could you post your actual code please? Thanks. |
Looks like it has to be inside a <cfif block.... try: <cfif schoolInfo.profile.location NEQ "" ... |
This also turns "location" red: rStruct["profile"]["location"] = location; |
I'm having a little trouble with this. I can redefine I'll see what I can do. |
I see... I tend to agree that it's bad to use keywords like that. However, sometimes its necessary, and it's definitely not fair for Adobe to claim the keyword "location"! (Just kidding) The word "location" followed by open/close parens should be a CF token (as in the cfscript equivalent to cflocation), otherwise it should be considered a local variable. Same is true with all cfscript functions, except the weird ones like "include" and "lock". |
I think this should work. It makes sure the tag operators aren't matched mid statement. |
Thanks... I'll give it a try! |
.cfm files using ColdFusion Markup syntax fails when "variableName.location" is found in the markup. The syntax definition turns the token "location" red, and then the syntax coloring fails. In my code, I have a struct key named "location", which I reference using the "dot" syntax (structName.location) syntax.
The text was updated successfully, but these errors were encountered: