add mode for textmate snippets

This commit is contained in:
nightwing 2013-01-03 01:35:21 +04:00
commit cfa3171ac4
4 changed files with 107 additions and 0 deletions

View file

@ -119,6 +119,7 @@ var docs = {
"docs/tcl.tcl": "Tcl",
"docs/tex.tex": "Tex",
"docs/textile.textile": {name: "Textile", wrapped: true},
"docs/tmSnippet.tmSnippet": "tmSnippet",
"docs/typescript.ts": "Typescript",
"docs/vbscript.vbs": "VBScript",
"docs/xml.xml": "XML",

View file

@ -0,0 +1,19 @@
$$------------------------------------
tabTrigger: t
name: Heading 3
scope: language
content: -----------------------------
\begin{${1:documnet}}
${2:$TM_SELECTED_TEXT:some latex}
${3:$TM_SELECTED_TEXT/a/b/c}
${4:${TM_SELECTED_TEXT/(.)/\\u$1/g:7}}
\end{$1}
$0\\$$
$$------------------------------------
tabTrigger: ^3
name: Heading 3
scope: language
content: -----------------------------
${TM_CURRENT_LINE/./^/g}
$$------------------------------------

View file

@ -91,6 +91,7 @@ var modesByName = {
tex: ["Tex" , "tex"],
text: ["Text" , "txt"],
textile: ["Textile" , "textile"],
tm_snippet: ["tmSnippet" , "tmSnippet"],
typescript: ["Typescript" , "typescript|ts|str"],
vbscript: ["VBScript" , "vbs"],
xml: ["XML" , "xml|rdf|rss|wsdl|xslt|atom|mathml|mml|xul|xbl"],