Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add match for empty {} and ()

This allows the special return between snippet from the TextMate bundle to function. Thanks to Dominic Morgan for the report.
  • Loading branch information...
commit 850b7044ac3ba8d4111ab82259ca880cbaf8688b 1 parent 7d4a2fe
@infininight infininight authored
Showing with 38 additions and 0 deletions.
  1. +38 −0 Syntaxes/Perl.plist
View
38 Syntaxes/Perl.plist
@@ -2762,6 +2762,44 @@
<key>name</key>
<string>support.function.perl</string>
</dict>
+ <dict>
+ <key>captures</key>
+ <dict>
+ <key>1</key>
+ <dict>
+ <key>name</key>
+ <string>punctuation.section.scope.begin.perl</string>
+ </dict>
+ <key>2</key>
+ <dict>
+ <key>name</key>
+ <string>punctuation.section.scope.end.perl</string>
+ </dict>
+ </dict>
+ <key>comment</key>
+ <string>Match empty brackets for ↩ snippet</string>
+ <key>match</key>
+ <string>(\{)(\})</string>
+ </dict>
+ <dict>
+ <key>captures</key>
+ <dict>
+ <key>1</key>
+ <dict>
+ <key>name</key>
+ <string>punctuation.section.scope.begin.perl</string>
+ </dict>
+ <key>2</key>
+ <dict>
+ <key>name</key>
+ <string>punctuation.section.scope.end.perl</string>
+ </dict>
+ </dict>
+ <key>comment</key>
+ <string>Match empty parenthesis for ↩ snippet</string>
+ <key>match</key>
+ <string>(\()(\))</string>
+ </dict>
</array>
<key>repository</key>
<dict>
Please sign in to comment.
Something went wrong with that request. Please try again.