-
Notifications
You must be signed in to change notification settings - Fork 24
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 highlighting after the hash character #83
Comments
Similar issue with string has // and variable with # sign,
|
Came to report something similar. Think it might have something to do with the scope within <a href="foo.html#anchor">Link text</a>
<p> Working <em>fine</em>.</p>
<a href="http://blah.cc/foo.html#anchor">Link text</a>
<p> Working <em>fine</em>.</p>
<a href="https://blah.cc/my.cfm?paramid=#get_current_paramID()#">Link text</a>
<p>
This text is fine. The scope |here| is:
text.html.cfml
</p>
<cfoutput>
<a href="https://blah.cc/my.cfm?paramid=#get_current_paramID()#">Link text</a>
<p>
This text and tag have the same highlighting as a string. The scope |here| is:
text.html.cfml
meta.scope.cfoutput.cfml
meta.tag.inline.any.html
string.quoted.double.html
string.quoted.double.cfml
</p>
</cfoutput> <!-- Hey, that works -->
<p> Still broken here though! The scope |here| is:
text.html.cfml
meta.scope.cfoutput.cfml
meta.tag.inline.any.html
string.quoted.double.html
string.quoted.double.cfml
</p> I poked around the source but couldn't make heads or tails of the what/why. Hope this helps someone with a bigger brain than me. |
I am getting this too: Breaks: Removing the cfoutput block does indeed fix the color coding, as does moving it directly into the string. Add that to the stuff above, and it looks like the syntax highlighter does not like hash marks after certain bits of punctuation when inside a cfoutput block. |
The color coding starting at the ampersand may be complicated by any error or validation parsing you have. Mine flags them as needing to be escaped to &. Could certainly be some contention adding to the wonkiness. |
The syntax highlighting stops working after the hash character, but it shouldn't.
The text was updated successfully, but these errors were encountered: