davidrios / pug-tmbundle

A comprehensive textmate / sublime text bundle for the Pug (formerly Jade) template language.
https://github.com/davidrios/pug-tmbundle
MIT License
48 stars 20 forks source link

Embedded PHP Causes Highlighting Error #15

Closed luxlogica closed 1 year ago

luxlogica commented 7 years ago

It seems that the current Pug syntax highlighter has trouble with PHP tags. It is probably not setup to identify PHP's opening - <?php - and closing - ?> tags, so it it seems to think that the closing > is mismatched. This is what we see in Sublime Text 3 (Build 3126):

screen shot 2017-09-08 at 8 02 22 pm

The issue also happens if we use PHP short tags syntax - i.e., <? and <?= opening tags.

This does not seem to happen inside interpolated tags - i.e., in the example below, the highlighter just parses everything as plain text:

screen shot 2017-09-08 at 8 11 06 pm
davidrios commented 1 year ago

Please comment if you think this is still relevant.