Skip to content

Commit 95f9e8e

Browse files
committed
• markup two consecutive apostrophes in single-quoted strings as constant.character.escape.apostrophe.pascal (as this is the way to embed them in a single-quoted string)
git-svn-id: http://svn.textmate.org/trunk/Bundles/Pascal.tmbundle@4890 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
1 parent 4ccd5b0 commit 95f9e8e

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

Syntaxes/Pascal.plist

+13
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@
8282
<dict>
8383
<key>begin</key>
8484
<string>"</string>
85+
<key>comment</key>
86+
<string>Double quoted strings are an extension and (generally) support C-style escape sequences.</string>
8587
<key>end</key>
8688
<string>"</string>
8789
<key>name</key>
@@ -97,12 +99,23 @@
9799
</array>
98100
</dict>
99101
<dict>
102+
<key>applyEndPatternLast</key>
103+
<integer>1</integer>
100104
<key>begin</key>
101105
<string>'</string>
102106
<key>end</key>
103107
<string>'</string>
104108
<key>name</key>
105109
<string>string.quoted.single.pascal</string>
110+
<key>patterns</key>
111+
<array>
112+
<dict>
113+
<key>match</key>
114+
<string>''</string>
115+
<key>name</key>
116+
<string>constant.character.escape.apostrophe.pascal</string>
117+
</dict>
118+
</array>
106119
</dict>
107120
</array>
108121
<key>scopeName</key>

0 commit comments

Comments
 (0)