+6

SQL syntax highlighting error in concatenated python strings

Bcj Brendan vor 12 Jahren aktualisiert von Joel Thornton vor 12 Jahren 1
In python strings that are broken up onto multiple lines (e.g. see below), SQL syntax highlighting only appears on the very first line of the string.
statement = ("SELECT <col> FROM <table> WHERE "
                    "<col> = <value> AND <col> = <value>;")
I would also like to see this addressed. More broadly I believe it is a general problem with continuing a given syntax scope across string concatenation boundaries. Unfortunately those boundaries are constructed differently in every programming language so this may not be a straightforward thing to fix.