Open Eccenux opened 4 months ago
What you have is with hyphen, maybe that's why? I managed to solve this "highlighting is not terminating" problem by removing the hyphen. In this particular context I cannot use semicolon, so I cannot rely on caps-formatting.
In some scenarios you'd need a trailing semicolon. Then you can do:
I'm using v0.4.5
Example code:
Steps/problems
Normal PHP highlighting:
Once I type in "SELECT" the string becomes unterminated and brakes whole file basically:
Another example of broken highlighting because a comment happen to have "SELECT" in upper case:
Another example where both
SELECT
and--being-sql
is used. Notice how function is not highlighted:Expected
--begin-sql
is used auto-open should not be used.