LiamAshdown / php-fat-free-syntax-highlighting

0 stars 0 forks source link

Keyword "empty" causing highlighting to stop #2

Open djadomi opened 2 months ago

djadomi commented 2 months ago

btw, thanks for the extension.

With this contrived example template, we lose highlighting after the word "empty":

<h1>Heading</h1>
<blockquote>empty blockquote</blockquote>
<p>
    Some {{@fatfree.testing->code}}
</p>
<p>
    As we can see, after the keyword "empty", we lost all highlighting.
</p>

Screenshot:

image

If we nullify the "empty" keyword, it's fine (and for that matter, if "empty" is in quotes):

image

Similarly, while I was making examples for this report, I noticed that a single quote used as apostrophe breaks subsequent highlighting (although not completely - template tags are OK):

image
LiamAshdown commented 2 months ago

Hey,

Thank you for reporting this.

I will be releasing a new update which fixes the problem you described and with quality of life improvements.

image