Skip to content

Commit

Permalink
Match a code block.
Browse files Browse the repository at this point in the history
  • Loading branch information
usualoma committed Jan 27, 2022
1 parent a85927a commit 3482e24
Showing 1 changed file with 23 additions and 11 deletions.
34 changes: 23 additions & 11 deletions Syntaxes/Perl.plist
Original file line number Diff line number Diff line change
Expand Up @@ -2190,28 +2190,40 @@
</dict>
</dict>
<key>comment</key>
<string>Match empty brackets for ↩ snippet</string>
<string>Match empty parenthesis for ↩ snippet</string>
<key>match</key>
<string>(\{)(\})</string>
<string>(\()(\))</string>
</dict>
<dict>
<key>captures</key>
<key>comment</key>
<string>Match a code block</string>
<key>begin</key>
<string>\{</string>
<key>beginCaptures</key>
<dict>
<key>1</key>
<key>0</key>
<dict>
<key>name</key>
<string>punctuation.section.scope.begin.perl</string>
<string>punctuation.section.scope.begin.js</string>
</dict>
<key>2</key>
</dict>
<key>end</key>
<string>\}</string>
<key>endCaptures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>punctuation.section.scope.end.perl</string>
<string>punctuation.section.scope.end.js</string>
</dict>
</dict>
<key>comment</key>
<string>Match empty parenthesis for ↩ snippet</string>
<key>match</key>
<string>(\()(\))</string>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>$self</string>
</dict>
</array>
</dict>
</array>
<key>repository</key>
Expand Down

0 comments on commit 3482e24

Please sign in to comment.