Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

HEREDOC highlighting broken #57

Closed
wyqydsyq opened this issue Jan 28, 2015 · 19 comments
Closed

HEREDOC highlighting broken #57

wyqydsyq opened this issue Jan 28, 2015 · 19 comments

Comments

@wyqydsyq
Copy link

I have the following code:

$this->data['text_message'] .= <<<TRACKER
        <!-- Facebook Conversion Code for Checkout Success -->
<script>(function() {
var _fbq = window._fbq || (window._fbq = []);
if (!_fbq.loaded) {
var fbds = document.createElement('script');
fbds.async = true;
fbds.src ='//connect.facebook.net/en_US/fbds.js';
var s =document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(fbds, s);
_fbq.loaded = true;
}
})();
window._fbq = window._fbq || [];
window._fbq.push(['track', '',{'value':'0.00','currency':'AUD'}]);
</script>
<noscript><img height="1" width="1"alt="" style="display:none" src="https://www.facebook.com/tr?ev=&amp;cd[value]=0.00&amp;cd[currency]=AUD&amp;noscript=1"/></noscript> 
TRACKER;

But atom doesn't highlight the contents of the HEREDOC as a string:

Example

The first < is correctly given the appropriate classes (class="string unquoted heredoc php") but the class doesn't persist to any of following tokens:
Example 2

@winstliu
Copy link
Contributor

Refs #10.

@winstliu winstliu added the bug label Jan 28, 2015
@wyqydsyq
Copy link
Author

It seems in #10 they're getting the correct behaviour of the heredoc being treated as string until a PHP tag is encountered, my case is only the first character of the heredoc is treated as a string regardless of the heredoc's contents.

@halcarleton
Copy link

+1
HERDOC Syntax Bug

Windows 8.1 / Atom 0.179.0
Ubuntu 14.04 / Atom 0.174.0

@Krinkle
Copy link

Krinkle commented Jul 3, 2015

  • Atom: v1.0.0
  • atom/language-php: v0.26.0

screen shot 2015-07-03 at 02 31 31

@janbaykara
Copy link

Getting the same problem as above, with ' character breaking syntax highlighting. It'd be good if <<<HTML foobar HTML; syntax highlighted packaged code with language-html, too.

@Nicolas-Bouteille
Copy link

any plan for a fix? I find atom really sexy but I use heredocs a lot on my projects. So I am staying on PHPStorm until it is fixed.

@winstliu
Copy link
Contributor

I may be able to take a look at this soon. Depends on how quickly I get my existing language backlog cleared up :).

@Nicolas-Bouteille
Copy link

awesome :)

Le 23 oct. 2015 à 01:32, Wliu [email protected] a écrit :

I may be able to take a look at this soon. Depends on how quickly I get my existing language backlog cleared up :).


Reply to this email directly or view it on GitHub #57 (comment).

@Talon1024
Copy link

This is an issue with first-mate ignoring nested repositories.

@GuilhemN
Copy link

Any news about this?

@timbotron
Copy link

Just wanted to chime in that this is an issue for me too. Crossing fingers that someone can get to it soon. Thanks in advance for all the hard work!

@laviyatziv
Copy link

I'm also seeing this. Any patch to be released?

@krisj
Copy link

krisj commented Mar 21, 2016

This has been dragging on since issue #10 back in 2014. #10

Any joy with making progress on it? Can issues be merged so there is more priority on this?

@winstliu
Copy link
Contributor

Any help would be welcome. I'll gladly teach someone the basics if they want to give it a try.

@GuilhemN
Copy link

@50Wliu isn't #77 what you want?

@Skarlso
Copy link

Skarlso commented Dec 20, 2016

Why has this been closed? It's not fixed, and the issue that it mentioned is also a bug which was closed because of this, but there is no fix?!

@winstliu
Copy link
Contributor

@Skarlso this issue is clearly still open.

@Skarlso
Copy link

Skarlso commented Dec 20, 2016

@50Wliu damn. Argh. Sorry. Messes that one up. :-)

@winstliu
Copy link
Contributor

Fixed by #184.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests