atom/language-php

Comment in sql string breaks highlighting

Opened this issue · 1 comments

From microsoft/vscode#118450

Write following Code:

<?php

/*** GET ***/
$System->Router('DELETE /push/*', function ($self, $variables) {
    ...
});
$System->Router('GET /push', function ($self, $variables) {
    ...
});

Now you can see, that everything after /push/* will be handled as a comment in highlighting.

Similar to #187

This shouldn't be treated as SQL, we might add some filtering to check the next word after DELETE to remove some false-positives. Second thing is this endless battle with embedded syntaxes, where nobody wants to touch TextMate syntax - this should be improved a long time ago..