-
-
Save fuksito/4482864 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- elgalu: Adding ruby regular expression detection starting and ending with slashes --> | |
<dict> | |
<key>begin</key> | |
<string>/</string> | |
<key>beginCaptures</key> | |
<dict> | |
<key>0</key> | |
<dict> | |
<key>name</key> | |
<string>punctuation.definition.string.begin.ruby</string> | |
</dict> | |
</dict> | |
<key>comment</key> | |
<string>regular expressions (literal)</string> | |
<key>end</key> | |
<string>/[eimnosux]*</string> | |
<key>endCaptures</key> | |
<dict> | |
<key>0</key> | |
<dict> | |
<key>name</key> | |
<string>punctuation.definition.string.end.ruby</string> | |
</dict> | |
</dict> | |
<key>name</key> | |
<string>string.regexp.mod-r.ruby</string> | |
<key>patterns</key> | |
<array> | |
<dict> | |
<key>include</key> | |
<string>#regex_sub</string> | |
</dict> | |
</array> | |
</dict> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment