PHP inside a Javascript string Highlighting bug

Mauno Lempiäinen 9 years ago updated by James Homer 9 years ago 1

Sublime doesn't recognize php tags inside a javascript string:

$addDialog = $('<div><?php echo $this->Form->input('parent_id', array('type' => 'hidden', 'div' => false));?></div>');

It highlights the above php code as string and 'cuts' highlighting the JS string when ever there is a ' chracter in php code.
This is an absolute dealbreaker for me, cannot use without