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
Copy file name to clipboardExpand all lines: PostgreSQL.tmLanguage
+5-3Lines changed: 5 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -95,7 +95,7 @@
95
95
<array>
96
96
<dict>
97
97
<key>begin</key>
98
-
<string>(\$[\w_]*\$)(?=[^\$]*$)</string>
98
+
<string>(\$[\w_]*\$)(?=\s*[-\/\n\r]+)</string>
99
99
<key>beginCaptures</key>
100
100
<dict>
101
101
<key>1</key>
@@ -105,7 +105,9 @@
105
105
</dict>
106
106
</dict>
107
107
<key>comment</key>
108
-
<string>Assume multiline dollar quote is SQL body! Start if double dollar quote is followed by no dollar quote till line ending. See match for dollar quotes as string: string.unquoted.dollar.pgsql. This could easily support other PL languages like PHP and Ruby -- see PHP heredoc as an example.</string>
108
+
<string>Assume multiline dollar quote is SQL body! Start if double dollar quote is followed by comment (-- or /**/) or linebreak (
109
+
or
110
+
). See match for dollar quotes as string: string.unquoted.dollar.pgsql. This could easily support other PL languages like PHP and Ruby -- see PHP heredoc as an example.</string>
109
111
<key>contentName</key>
110
112
<string>meta.dollar-quote.pgsql</string>
111
113
<key>end</key>
@@ -574,7 +576,7 @@
574
576
<key>begin</key>
575
577
<string>(\$[\w_]*\$)</string>
576
578
<key>comment</key>
577
-
<string>Color dollar double quotes as a string if in one line. No multiline supported because function body is with dollar quotes, see meta.dollar-quote.pgsql.</string>
579
+
<string>Color double dollar quotes as a string Only if not followed by comment or linebreak, see meta.dollar-quote.pgsql.</string>
0 commit comments