Comments (5)
Similar issue with string has // and variable with # sign,
<cfset myurl = "http://localsite.com/q=#variables.query#">
from atom-language-cfml.
Came to report something similar. Think it might have something to do with the scope within cfoutput
tags.
<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.
from atom-language-cfml.
I am getting this too:
Breaks: <li><a href="mailto:#application.emailHelp#">Contact Support</a></li>
Correct: <li><a href="mailto&##58;#application.emailHelp#">Contact Support</a></li>
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.
from atom-language-cfml.
I'm seeing a similar issue where both syntax highlighting and code completion is breaking after an & in the query string of an a href tag. See attached screenshot.
A clue to what might be going on here is if I remove the quotation marks around the href attribute, functionality is restored.
from atom-language-cfml.
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.
from atom-language-cfml.
Related Issues (20)
- Adding addition file extention HOT 6
- Quotes breaks highlighting HOT 2
- Nested Comments breaks highlighting HOT 1
- Error after update to Atom 1.19 HOT 3
- CFC Method Outline/Structure View? HOT 5
- Changes to TextEditor.onDidChange and TextBuffer.onDidChange coming in Atom 1.23 HOT 1
- Atom 1.24 - script cfc syntax highlighting HOT 9
- Syntax Highlighting not working in CFCs HOT 21
- Not recognizing CFCs HOT 7
- Unable to install language-cfml HOT 1
- Multi-line Comments Broken HOT 4
- Syntax coloring fails HOT 14
- tag-generic-attribute-script doesn't allow underscores HOT 1
- Commenting uses wrong comment tag
- Syntax Highlighting Issue
- Any CF tag inside comments breaks comment highlighting HOT 1
- Using CTRL+CMD+Down Arrow to move code down results in an error sound HOT 2
- Different code coloring for CFML tags vs. HTML HOT 2
- wrong parsing HOT 5
- Jump to symbol? HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from atom-language-cfml.