Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
86 lines (85 sloc) 2.42 KB
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Rules</key>
<array>
<dict>
<!-- word consisting of anything but whitespace -->
<key>regex</key>
<string>\S+</string>
<key>precision</key>
<string>low</string>
</dict>
<dict>
<!-- C++ namespace::identifier -->
<key>regex</key>
<string>([a-zA-Z0-9_]+::)+[a-zA-Z0-9_]+</string>
<key>precision</key>
<string>normal</string>
</dict>
<dict>
<!-- paths -->
<key>regex</key>
<string>\~?/?([[:letter:][:number:]._-]+/+)+[[:letter:][:number:]._-]+/?</string>
<key>precision</key>
<string>normal</string>
</dict>
<dict>
<!-- quoted string -->
<key>regex</key>
<string>@?"(?:[^"\\]|\\.)*"</string>
<key>precision</key>
<string>normal</string>
</dict>
<dict>
<!-- java/python include paths -->
<key>regex</key>
<string>([[:letter:][:number:]._]+\.)+[[:letter:][:number:]._]+</string>
<key>precision</key>
<string>normal</string>
</dict>
<dict>
<!-- mailto url -->
<key>regex</key>
<string>\bmailto:([a-z0-9A-Z_]+@)?([a-zA-Z0-9\-]+\.)*[a-zA-Z0-9\-]+\b</string>
<key>precision</key>
<string>normal</string>
</dict>
<dict>
<!-- objc selector -->
<key>regex</key>
<string>@selector\([^)]+\)</string>
<key>precision</key>
<string>high</string>
</dict>
<dict>
<!-- email addr -->
<key>regex</key>
<string>\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,4}\b</string>
<key>precision</key>
<string>high</string>
</dict>
<dict>
<!-- http url -->
<key>regex</key>
<string>https?://([a-z0-9A-Z]+(:[a-zA-Z0-9]+)?@)?([a-z0-9A-Z]+\.)+[A-Za-z]+((:[0-9]+)?)(/[a-zA-Z0-9;/\.\-_+%?&amp;@=#\(\)]*)?</string>
<key>precision</key>
<string>very_high</string>
</dict>
<dict>
<!-- ssh url -->
<key>regex</key>
<string>\bssh:([a-z0-9A-Z_]+@)?([a-zA-Z0-9\-]+\.)*[a-zA-Z0-9\-]+\b</string>
<key>precision</key>
<string>very_high</string>
</dict>
<dict>
<key>regex</key>
<string>\btelnet:([a-z0-9A-Z_]+@)?([a-zA-Z0-9\-]+\.)*[a-zA-Z0-9\-]+\b</string>
<key>precision</key>
<string>very_high</string>
</dict>
</array>
</dict>
</plist>