diff options
author | hubzilla <git@macgirvin.com> | 2016-06-10 20:03:08 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-06-10 20:03:08 +1000 |
commit | beb55235c68feadabe3b647ebe14ae2cab94a2f8 (patch) | |
tree | 8a6d552f8658dd64e361e462b78734138624955b /library/ace/snippets/dart.js | |
parent | cf415a4312f3a926c3b080fb49042752441f23b4 (diff) | |
parent | 7a242f829fac2b434726c2bbdca5dbf658404c76 (diff) | |
download | volse-hubzilla-beb55235c68feadabe3b647ebe14ae2cab94a2f8.tar.gz volse-hubzilla-beb55235c68feadabe3b647ebe14ae2cab94a2f8.tar.bz2 volse-hubzilla-beb55235c68feadabe3b647ebe14ae2cab94a2f8.zip |
Merge pull request #410 from anaqreon/wiki
Wiki module: first iteration
Diffstat (limited to 'library/ace/snippets/dart.js')
-rw-r--r-- | library/ace/snippets/dart.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/library/ace/snippets/dart.js b/library/ace/snippets/dart.js new file mode 100644 index 000000000..63c63c9fc --- /dev/null +++ b/library/ace/snippets/dart.js @@ -0,0 +1 @@ +ace.define("ace/snippets/dart",["require","exports","module"],function(e,t,n){"use strict";t.snippetText="snippet lib\n library ${1};\n ${2}\nsnippet im\n import '${1}';\n ${2}\nsnippet pa\n part '${1}';\n ${2}\nsnippet pao\n part of ${1};\n ${2}\nsnippet main\n void main() {\n ${1:/* code */}\n }\nsnippet st\n static ${1}\nsnippet fi\n final ${1}\nsnippet re\n return ${1}\nsnippet br\n break;\nsnippet th\n throw ${1}\nsnippet cl\n class ${1:`Filename(\"\", \"untitled\")`} ${2}\nsnippet imp\n implements ${1}\nsnippet ext\n extends ${1}\nsnippet if\n if (${1:true}) {\n ${2}\n }\nsnippet ife\n if (${1:true}) {\n ${2}\n } else {\n ${3}\n }\nsnippet el\n else\nsnippet sw\n switch (${1}) {\n ${2}\n }\nsnippet cs\n case ${1}:\n ${2}\nsnippet de\n default:\n ${1}\nsnippet for\n for (var ${2:i} = 0, len = ${1:things}.length; $2 < len; ${3:++}$2) {\n ${4:$1[$2]}\n }\nsnippet fore\n for (final ${2:item} in ${1:itemList}) {\n ${3:/* code */}\n }\nsnippet wh\n while (${1:/* condition */}) {\n ${2:/* code */}\n }\nsnippet dowh\n do {\n ${2:/* code */}\n } while (${1:/* condition */});\nsnippet as\n assert(${1:/* condition */});\nsnippet try\n try {\n ${2}\n } catch (${1:Exception e}) {\n }\nsnippet tryf\n try {\n ${2}\n } catch (${1:Exception e}) {\n } finally {\n }\n",t.scope="dart"})
\ No newline at end of file |