Skip to content

Commit 02dbf8b

Browse files
committed
Fix matching of escaped newlines in SQL strings
1 parent 1c579ef commit 02dbf8b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Syntaxes/Python.tmLanguage

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2933,7 +2933,7 @@
29332933
</dict>
29342934
</dict>
29352935
<key>match</key>
2936-
<string>(\G|^)([^"\\]|\\.)*(?="|$)</string>
2936+
<string>(\G|^)([^"\\]|\\(.|\n))*(?="|$)</string>
29372937
</dict>
29382938
</array>
29392939
</dict>
@@ -3859,7 +3859,7 @@
38593859
</dict>
38603860
</dict>
38613861
<key>match</key>
3862-
<string>(\G|^)([^'\\]|\\.)*(?='|$)</string>
3862+
<string>(\G|^)([^'\\]|\\(.|\n))*(?='|$)</string>
38633863
</dict>
38643864
</array>
38653865
</dict>

0 commit comments

Comments
 (0)