Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

added snippets

  • Loading branch information...
commit 8026e30cdd2a2d7487b5d79d9986d62f92bee392 1 parent 2b737cd
@NorthIsUp authored
View
93 Default.tmLanguage
@@ -0,0 +1,93 @@
+<?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>comment</key>
+ <string>Some comment</string>
+ <key>fileTypes</key>
+ <array>
+ <string>*</string>
+ </array>
+ <key>name</key>
+ <string>Default:adam</string>
+ <key>patterns</key>
+ <key>repository</key>
+ <dict>
+ <key>color-values</key>
+ <dict>
+ <key>patterns</key>
+ <array>
+ <dict>
+ <key>comment</key>
+ <string>http://www.w3.org/TR/CSS21/syndata.html#value-def-color</string>
+ <key>match</key>
+ <string>\b(aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow)\b</string>
+ <key>name</key>
+ <string>support.constant.color.w3c-standard-color-name.css</string>
+ </dict>
+ <dict>
+ <key>comment</key>
+ <string>These colours are mostly recognised but will not validate. ref: http://www.w3schools.com/css/css_colornames.asp</string>
+ <key>match</key>
+ <string>\b(aliceblue|antiquewhite|aquamarine|azure|beige|bisque|blanchedalmond|blueviolet|brown|burlywood|cadetblue|chartreuse|chocolate|coral|cornflowerblue|cornsilk|crimson|cyan|darkblue|darkcyan|darkgoldenrod|darkgray|darkgreen|darkgrey|darkkhaki|darkmagenta|darkolivegreen|darkorange|darkorchid|darkred|darksalmon|darkseagreen|darkslateblue|darkslategray|darkslategrey|darkturquoise|darkviolet|deeppink|deepskyblue|dimgray|dimgrey|dodgerblue|firebrick|floralwhite|forestgreen|gainsboro|ghostwhite|gold|goldenrod|greenyellow|grey|honeydew|hotpink|indianred|indigo|ivory|khaki|lavender|lavenderblush|lawngreen|lemonchiffon|lightblue|lightcoral|lightcyan|lightgoldenrodyellow|lightgray|lightgreen|lightgrey|lightpink|lightsalmon|lightseagreen|lightskyblue|lightslategray|lightslategrey|lightsteelblue|lightyellow|limegreen|linen|magenta|mediumaquamarine|mediumblue|mediumorchid|mediumpurple|mediumseagreen|mediumslateblue|mediumspringgreen|mediumturquoise|mediumvioletred|midnightblue|mintcream|mistyrose|moccasin|navajowhite|oldlace|olivedrab|orangered|orchid|palegoldenrod|palegreen|paleturquoise|palevioletred|papayawhip|peachpuff|peru|pink|plum|powderblue|rosybrown|royalblue|saddlebrown|salmon|sandybrown|seagreen|seashell|sienna|skyblue|slateblue|slategray|slategrey|snow|springgreen|steelblue|tan|thistle|tomato|turquoise|violet|wheat|whitesmoke|yellowgreen)\b</string>
+ <key>name</key>
+ <string>invalid.deprecated.color.w3c-non-standard-color-name.css</string>
+ </dict>
+ <dict>
+ <key>begin</key>
+ <string>(hsla?|rgba?)\s*(\()</string>
+ <key>beginCaptures</key>
+ <dict>
+ <key>1</key>
+ <dict>
+ <key>name</key>
+ <string>support.function.misc.css</string>
+ </dict>
+ <key>2</key>
+ <dict>
+ <key>name</key>
+ <string>punctuation.section.function.css</string>
+ </dict>
+ </dict>
+ <key>end</key>
+ <string>(\))</string>
+ <key>endCaptures</key>
+ <dict>
+ <key>1</key>
+ <dict>
+ <key>name</key>
+ <string>punctuation.section.function.css</string>
+ </dict>
+ </dict>
+ <key>patterns</key>
+ <array>
+ <dict>
+ <key>match</key>
+ <string>(?x)\b
+ (0*((1?[0-9]{1,2})|(2([0-4][0-9]|5[0-5])))\s*,\s*){2}
+ (0*((1?[0-9]{1,2})|(2([0-4][0-9]|5[0-5])))\b)
+ (\s*,\s*((0?\.[0-9]+)|[0-1]))?
+ </string>
+ <key>name</key>
+ <string>constant.other.color.rgb-value.css</string>
+ </dict>
+ <dict>
+ <key>match</key>
+ <string>\b([0-9]{1,2}|100)\s*%,\s*([0-9]{1,2}|100)\s*%,\s*([0-9]{1,2}|100)\s*%</string>
+ <key>name</key>
+ <string>constant.other.color.rgb-percentage.css</string>
+ </dict>
+ <dict>
+ <key>include</key>
+ <string>#numeric-values</string>
+ </dict>
+ </array>
+ </dict>
+ </array>
+ </dict>
+ <key>scopeName</key>
+ <string>source.python</string>
+ <key>uuid</key>
+ <string>79cd0f1c-2b37-11e1-86b0-68a86d02ebde</string>
+</dict>
+
View
4 Markdown.sublime-build
@@ -0,0 +1,4 @@
+{
+ "osx": { "cmd": ["open", "-a", "Mou", "$file"] },
+ "selector": "text.html.markdown"
+}
View
9 snippets/current_dir.sublime-snippet
@@ -0,0 +1,9 @@
+<snippet>
+ <content><![CDATA[
+${1:${TM_FILENAME/(.*)\..*/${1}_dir/g}} = os.path.abspath(os.path.dirname(__file__))
+]]></content>
+ <!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
+ <tabTrigger>pwd</tabTrigger>
+ <!-- Optional: Set a scope to limit where the snippet will trigger -->
+ <scope>source.python</scope>
+</snippet>
View
11 snippets/python_test_function.sublime-snippet
@@ -0,0 +1,11 @@
+<snippet>
+ <content><![CDATA[def test_${1:something}(self):
+ ${0:pass}
+
+]]></content>
+ <tabTrigger>test</tabTrigger>
+ <scope>source.python</scope>
+ <description>New test template</description>
+</snippet>
+
+
View
17 snippets/python_unittest2.sublime-snippet
@@ -0,0 +1,17 @@
+<snippet>
+ <content><![CDATA[class Test${1:Name}(unittest2.TestCase):
+ ${2/.+/"""/}${2:docstring for $1}${2/.+/"""\n/}${2/.+/\t/}def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def test_${3:something}(self):
+ ${0:pass}
+]]></content>
+ <tabTrigger>testcase</tabTrigger>
+ <scope>source.python</scope>
+ <description>New unittest2 template</description>
+</snippet>
+
+
Please sign in to comment.
Something went wrong with that request. Please try again.