123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199 |
- ace.define("ace/snippets/vala",["require","exports","module"], function(require, exports, module){"use strict";
- exports.snippets = [
- {
- "content": "case ${1:condition}:\n\t$0\n\tbreak;\n",
- "name": "case",
- "scope": "vala",
- "tabTrigger": "case"
- },
- {
- "content": "/**\n * ${6}\n */\n${1:public} class ${2:MethodName}${3: : GLib.Object} {\n\n\t/**\n\t * ${7}\n\t */\n\tpublic ${2}(${4}) {\n\t\t${5}\n\t}\n\n\t$0\n}",
- "name": "class",
- "scope": "vala",
- "tabTrigger": "class"
- },
- {
- "content": "(${1}) => {\n\t${0}\n}\n",
- "name": "closure",
- "scope": "vala",
- "tabTrigger": "=>"
- },
- {
- "content": "/*\n * $0\n */",
- "name": "Comment (multiline)",
- "scope": "vala",
- "tabTrigger": "/*"
- },
- {
- "content": "Console.WriteLine($1);\n$0",
- "name": "Console.WriteLine (writeline)",
- "scope": "vala",
- "tabTrigger": "writeline"
- },
- {
- "content": "[DBus(name = \"$0\")]",
- "name": "DBus annotation",
- "scope": "vala",
- "tabTrigger": "[DBus"
- },
- {
- "content": "delegate ${1:void} ${2:DelegateName}($0);",
- "name": "delegate",
- "scope": "vala",
- "tabTrigger": "delegate"
- },
- {
- "content": "do {\n\t$0\n} while ($1);\n",
- "name": "do while",
- "scope": "vala",
- "tabTrigger": "dowhile"
- },
- {
- "content": "/**\n * $0\n */",
- "name": "DocBlock",
- "scope": "vala",
- "tabTrigger": "/**"
- },
- {
- "content": "else if ($1) {\n\t$0\n}\n",
- "name": "else if (elseif)",
- "scope": "vala",
- "tabTrigger": "elseif"
- },
- {
- "content": "else {\n\t$0\n}",
- "name": "else",
- "scope": "vala",
- "tabTrigger": "else"
- },
- {
- "content": "enum {$1:EnumName} {\n\t$0\n}",
- "name": "enum",
- "scope": "vala",
- "tabTrigger": "enum"
- },
- {
- "content": "public errordomain ${1:Error} {\n\t$0\n}",
- "name": "error domain",
- "scope": "vala",
- "tabTrigger": "errordomain"
- },
- {
- "content": "for ($1;$2;$3) {\n\t$0\n}",
- "name": "for",
- "scope": "vala",
- "tabTrigger": "for"
- },
- {
- "content": "foreach ($1 in $2) {\n\t$0\n}",
- "name": "foreach",
- "scope": "vala",
- "tabTrigger": "foreach"
- },
- {
- "content": "Gee.ArrayList<${1:G}>($0);",
- "name": "Gee.ArrayList",
- "scope": "vala",
- "tabTrigger": "ArrayList"
- },
- {
- "content": "Gee.HashMap<${1:K},${2:V}>($0);",
- "name": "Gee.HashMap",
- "scope": "vala",
- "tabTrigger": "HashMap"
- },
- {
- "content": "Gee.HashSet<${1:G}>($0);",
- "name": "Gee.HashSet",
- "scope": "vala",
- "tabTrigger": "HashSet"
- },
- {
- "content": "if ($1) {\n\t$0\n}",
- "name": "if",
- "scope": "vala",
- "tabTrigger": "if"
- },
- {
- "content": "interface ${1:InterfaceName}{$2: : SuperInterface} {\n\t$0\n}",
- "name": "interface",
- "scope": "vala",
- "tabTrigger": "interface"
- },
- {
- "content": "public static int main(string [] argv) {\n\t${0}\n\treturn 0;\n}",
- "name": "Main function",
- "scope": "vala",
- "tabTrigger": "main"
- },
- {
- "content": "namespace $1 {\n\t$0\n}\n",
- "name": "namespace (ns)",
- "scope": "vala",
- "tabTrigger": "ns"
- },
- {
- "content": "stdout.printf($0);",
- "name": "printf",
- "scope": "vala",
- "tabTrigger": "printf"
- },
- {
- "content": "${1:public} ${2:Type} ${3:Name} {\n\tset {\n\t\t$0\n\t}\n\tget {\n\n\t}\n}",
- "name": "property (prop)",
- "scope": "vala",
- "tabTrigger": "prop"
- },
- {
- "content": "${1:public} ${2:Type} ${3:Name} {\n\tget {\n\t\t$0\n\t}\n}",
- "name": "read-only property (roprop)",
- "scope": "vala",
- "tabTrigger": "roprop"
- },
- {
- "content": "@\"${1:\\$var}\"",
- "name": "String template (@)",
- "scope": "vala",
- "tabTrigger": "@"
- },
- {
- "content": "struct ${1:StructName} {\n\t$0\n}",
- "name": "struct",
- "scope": "vala",
- "tabTrigger": "struct"
- },
- {
- "content": "switch ($1) {\n\t$0\n}",
- "name": "switch",
- "scope": "vala",
- "tabTrigger": "switch"
- },
- {
- "content": "try {\n\t$2\n} catch (${1:Error} e) {\n\t$0\n}",
- "name": "try/catch",
- "scope": "vala",
- "tabTrigger": "try"
- },
- {
- "content": "\"\"\"$0\"\"\";",
- "name": "Verbatim string (\"\"\")",
- "scope": "vala",
- "tabTrigger": "verbatim"
- },
- {
- "content": "while ($1) {\n\t$0\n}",
- "name": "while",
- "scope": "vala",
- "tabTrigger": "while"
- }
- ];
- exports.scope = "";
- }); (function() {
- ace.require(["ace/snippets/vala"], function(m) {
- if (typeof module == "object" && typeof exports == "object" && module) {
- module.exports = m;
- }
- });
- })();
-
|