You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<?php/** Query to be executed.*/$query = "set search_path = '%SCHEMA%';";
// testfunctionabc() {
return"test";
}
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
I guess this auto-open, even in comments, is something some one would want, but it brakes my code. Would be great to be able to disable it in settings.
Auto-open (with uppercase keywords) should only be triggered within strings (at least by default).
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

SELECTand--being-sqlis used. Notice how function is not highlighted:Expected
--beginsql, --endsql"""doesn't terminate highlighting #19).--begin-sqlis used auto-open should not be used.