Closed tremby closed 10 years ago
I've a feeling this one is related:
<p>
<em>
{{{ $address }}}
@if ($address && $document->getMyText('phone'))
<br/>
@endif
@if ($document->getMyText('phone'))
T: <a href="tel:{{{ $document->getMyText('phone') }}}">{{{ $document->getMyText('phone') }}}</a>
@endif
@if ($document->getMyText('phone') && $document->getMyText('email'))
|
@endif
@if ($document->getMyText('email'))
E: <a href="mailto:{{{ $document->getMyText('email') }}}">{{{ $document->getMyText('email') }}}</a>
@endif
</em>
</p>
Highlighting as
Note in particular:
@if
line is italic (look closely), so I think matching brackets aren't being detected properly@endif
is highlighted incorrectly{{{ }}}
sections on the line starting T:
aren't highlighted, but honestly I don't know if they should be or not, given that they're mixed in to HTML attributes and such.@if
line the highlighting stops after the first )
again, and the wrong highlighting afterwards is more obvious. Thanks!
Input:
Highlighting as
The code in the
@if
statement is not highlighting properly.