This repository was archived by the owner on Dec 15, 2022. It is now read-only.
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
HEREDOC highlighting broken #57
Closed
Description
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=&cd[value]=0.00&cd[currency]=AUD&noscript=1"/></noscript>
TRACKER;
But atom doesn't highlight the contents of the HEREDOC as a string:
The first <
is correctly given the appropriate classes (class="string unquoted heredoc php"
) but the class doesn't persist to any of following tokens: