Giter Site home page Giter Site logo

Comments (5)

thecfguy avatar thecfguy commented on June 27, 2024 1

Similar issue with string has // and variable with # sign,

<cfset myurl = "http://localsite.com/q=#variables.query#">

from atom-language-cfml.

willthemoor avatar willthemoor commented on June 27, 2024

Came to report something similar. Think it might have something to do with the scope within cfoutput tags.

image

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

Mootly avatar Mootly commented on June 27, 2024

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.

dnando avatar dnando commented on June 27, 2024

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.

screen shot 2016-11-21 at 14 57

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.

Mootly avatar Mootly commented on June 27, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.