vala-662f4145.js 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. import{g as s}from"./index-fe76da25.js";function l(t,r){for(var n=0;n<r.length;n++){const e=r[n];if(typeof e!="string"&&!Array.isArray(e)){for(const a in e)if(a!=="default"&&!(a in t)){const o=Object.getOwnPropertyDescriptor(e,a);o&&Object.defineProperty(t,a,o.get?o:{enumerable:!0,get:()=>e[a]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var c={exports:{}};(function(t,r){ace.define("ace/snippets/vala",["require","exports","module"],function(n,e,a){e.snippets=[{content:`case \${1:condition}:
  2. $0
  3. break;
  4. `,name:"case",scope:"vala",tabTrigger:"case"},{content:`/**
  5. * \${6}
  6. */
  7. \${1:public} class \${2:MethodName}\${3: : GLib.Object} {
  8. /**
  9. * \${7}
  10. */
  11. public \${2}(\${4}) {
  12. \${5}
  13. }
  14. $0
  15. }`,name:"class",scope:"vala",tabTrigger:"class"},{content:`(\${1}) => {
  16. \${0}
  17. }
  18. `,name:"closure",scope:"vala",tabTrigger:"=>"},{content:`/*
  19. * $0
  20. */`,name:"Comment (multiline)",scope:"vala",tabTrigger:"/*"},{content:`Console.WriteLine($1);
  21. $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 {
  22. $0
  23. } while ($1);
  24. `,name:"do while",scope:"vala",tabTrigger:"dowhile"},{content:`/**
  25. * $0
  26. */`,name:"DocBlock",scope:"vala",tabTrigger:"/**"},{content:`else if ($1) {
  27. $0
  28. }
  29. `,name:"else if (elseif)",scope:"vala",tabTrigger:"elseif"},{content:`else {
  30. $0
  31. }`,name:"else",scope:"vala",tabTrigger:"else"},{content:`enum {$1:EnumName} {
  32. $0
  33. }`,name:"enum",scope:"vala",tabTrigger:"enum"},{content:`public errordomain \${1:Error} {
  34. $0
  35. }`,name:"error domain",scope:"vala",tabTrigger:"errordomain"},{content:`for ($1;$2;$3) {
  36. $0
  37. }`,name:"for",scope:"vala",tabTrigger:"for"},{content:`foreach ($1 in $2) {
  38. $0
  39. }`,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) {
  40. $0
  41. }`,name:"if",scope:"vala",tabTrigger:"if"},{content:`interface \${1:InterfaceName}{$2: : SuperInterface} {
  42. $0
  43. }`,name:"interface",scope:"vala",tabTrigger:"interface"},{content:`public static int main(string [] argv) {
  44. \${0}
  45. return 0;
  46. }`,name:"Main function",scope:"vala",tabTrigger:"main"},{content:`namespace $1 {
  47. $0
  48. }
  49. `,name:"namespace (ns)",scope:"vala",tabTrigger:"ns"},{content:"stdout.printf($0);",name:"printf",scope:"vala",tabTrigger:"printf"},{content:`\${1:public} \${2:Type} \${3:Name} {
  50. set {
  51. $0
  52. }
  53. get {
  54. }
  55. }`,name:"property (prop)",scope:"vala",tabTrigger:"prop"},{content:`\${1:public} \${2:Type} \${3:Name} {
  56. get {
  57. $0
  58. }
  59. }`,name:"read-only property (roprop)",scope:"vala",tabTrigger:"roprop"},{content:'@"${1:\\$var}"',name:"String template (@)",scope:"vala",tabTrigger:"@"},{content:`struct \${1:StructName} {
  60. $0
  61. }`,name:"struct",scope:"vala",tabTrigger:"struct"},{content:`switch ($1) {
  62. $0
  63. }`,name:"switch",scope:"vala",tabTrigger:"switch"},{content:`try {
  64. $2
  65. } catch (\${1:Error} e) {
  66. $0
  67. }`,name:"try/catch",scope:"vala",tabTrigger:"try"},{content:'"""$0""";',name:'Verbatim string (""")',scope:"vala",tabTrigger:"verbatim"},{content:`while ($1) {
  68. $0
  69. }`,name:"while",scope:"vala",tabTrigger:"while"}],e.scope=""}),function(){ace.require(["ace/snippets/vala"],function(n){t&&(t.exports=n)})}()})(c);var i=c.exports;const p=s(i),$=l({__proto__:null,default:p},[i]);export{$ as v};