@codingame/monaco-editor-wrapper 1.2.1 → 1.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (95) hide show
  1. package/dist/COBOL Copybook2.js +2017 -0
  2. package/dist/COBOL2.js +2017 -0
  3. package/dist/JavaScript.tmLanguage.js +22 -1
  4. package/dist/JavaScriptReact.tmLanguage.js +22 -1
  5. package/dist/SQL.plist.js +482 -0
  6. package/dist/TypeScript.tmLanguage.js +22 -1
  7. package/dist/TypeScriptReact.tmLanguage.js +22 -1
  8. package/dist/angular.js +56 -0
  9. package/dist/bsv2.js +49 -0
  10. package/dist/buildtarget.js +53 -0
  11. package/dist/c2.js +18 -0
  12. package/dist/clojure.tmLanguage.js +11 -15
  13. package/dist/cobol2.js +80 -0
  14. package/dist/coffeescript2.js +18 -0
  15. package/dist/configuration/hack.d.ts +2 -0
  16. package/dist/cpp2.js +18 -0
  17. package/dist/cpptools.js +2320 -0
  18. package/dist/csharp.tmLanguage.js +5 -5
  19. package/dist/csharp2.js +508 -0
  20. package/dist/d2.js +2 -66
  21. package/dist/d3.js +526 -0
  22. package/dist/dart3.js +966 -0
  23. package/dist/dcf.js +3 -3
  24. package/dist/diet3.js +92 -0
  25. package/dist/elixir3.js +40 -0
  26. package/dist/erlang2.js +92 -0
  27. package/dist/extensionConfigurations.js +1418 -1171
  28. package/dist/features/cssContribution.js +10 -0
  29. package/dist/features/extensionConfigurations.d.ts +1 -0
  30. package/dist/features/extensionConfigurations.js +145 -0
  31. package/dist/features/htmlContribution.js +10 -0
  32. package/dist/features/jsonContribution.js +84 -0
  33. package/dist/features/typescriptContribution.d.ts +4 -0
  34. package/dist/features/typescriptContribution.js +64 -0
  35. package/dist/fsharp.tmLanguage.js +10 -1
  36. package/dist/fsharp2.js +18 -0
  37. package/dist/groovy2.js +229 -0
  38. package/dist/haskell2.js +16 -0
  39. package/dist/html (eex).js +31 -0
  40. package/dist/java2.js +704 -0
  41. package/dist/javascript.js +83 -2
  42. package/dist/javascript2.js +196 -0
  43. package/dist/javascriptreact.js +83 -2
  44. package/dist/javascriptreact2.js +196 -0
  45. package/dist/jsonContribution.js +40 -46
  46. package/dist/jsx-tags.js +51 -2
  47. package/dist/jvm-bytecode-verbose.js +1231 -0
  48. package/dist/jvm-bytecode.js +565 -0
  49. package/dist/kotlin2.js +117 -0
  50. package/dist/kotlinscript2.js +117 -0
  51. package/dist/languages/extensions/configurationLoader.d.ts +1 -13
  52. package/dist/languages/extensions/extensionConfigurationLoader.d.ts +3 -0
  53. package/dist/languages/extensions/grammarLoader.d.ts +2 -101920
  54. package/dist/languages/extensions/languageConfigurationLoader.d.ts +3 -0
  55. package/dist/languages/extensions/snippetLoader.d.ts +3 -5606
  56. package/dist/languages/monarch/list.d.ts +7 -0
  57. package/dist/languages/textMate/TextMateTokensProvider.d.ts +11 -0
  58. package/dist/lua2.js +1511 -0
  59. package/dist/main.js +155 -98
  60. package/dist/markdown-basics.js +103 -0
  61. package/dist/markdown2.js +103 -0
  62. package/dist/ocaml3.js +145 -0
  63. package/dist/omnisharp.js +522 -0
  64. package/dist/pascal2.js +26 -0
  65. package/dist/pgsql-sql.js +21 -0
  66. package/dist/pgsql.js +21 -0
  67. package/dist/php2.js +265 -0
  68. package/dist/postgresql.js +75 -0
  69. package/dist/powershell2.js +18 -0
  70. package/dist/r.tmLanguage.js +572 -0
  71. package/dist/reason2.js +100 -0
  72. package/dist/rmd.js +8 -1
  73. package/dist/scalameta.js +177 -0
  74. package/dist/services/functional.d.ts +1 -0
  75. package/dist/services/lyfecycle.d.ts +13 -0
  76. package/dist/solargraph.js +192 -0
  77. package/dist/sql.js +9 -2
  78. package/dist/sql2.js +21 -0
  79. package/dist/swift2.js +183 -0
  80. package/dist/systemverilog2.js +208 -0
  81. package/dist/tasty.js +72 -0
  82. package/dist/tcl2.js +151 -0
  83. package/dist/typescript-basics.js +312 -0
  84. package/dist/typescript-language-features.js +998 -0
  85. package/dist/typescript.js +83 -2
  86. package/dist/typescript2.js +312 -0
  87. package/dist/typescriptreact.js +83 -2
  88. package/dist/typescriptreact2.js +312 -0
  89. package/dist/vb2.js +88 -0
  90. package/dist/verilog2.js +94 -0
  91. package/dist/vscode-R.js +519 -0
  92. package/dist/vscode-groovy.js +28 -0
  93. package/dist/vscode-python.js +677 -0
  94. package/package.json +11 -11
  95. package/stats.html +205 -795
package/dist/swift2.js ADDED
@@ -0,0 +1,183 @@
1
+ var print = {
2
+ prefix: "print",
3
+ body: "print(\"$1\")\n$0",
4
+ description: "print(\"...\")"
5
+ };
6
+ var guard = {
7
+ prefix: "guard",
8
+ body: [
9
+ "guard ${1:condition} else {",
10
+ "\t$0",
11
+ "}"
12
+ ],
13
+ description: "guard statement"
14
+ };
15
+ var func = {
16
+ prefix: "func",
17
+ body: [
18
+ "func ${1:name}(${2:parameters}) -> ${3:Type} {",
19
+ "\t$0",
20
+ "}"
21
+ ],
22
+ description: "function declaration"
23
+ };
24
+ var struct = {
25
+ prefix: "struct",
26
+ body: [
27
+ "struct ${1:Name} {",
28
+ "",
29
+ "\t$0",
30
+ "}"
31
+ ],
32
+ description: "struct declaration"
33
+ };
34
+ var protocol = {
35
+ prefix: "protocol",
36
+ body: [
37
+ "protocol ${1:Name} {",
38
+ "",
39
+ "\t$0",
40
+ "}"
41
+ ],
42
+ description: "protocol declaration"
43
+ };
44
+ var extension = {
45
+ prefix: "extension",
46
+ body: [
47
+ "extension ${1:Type} {",
48
+ "",
49
+ "\t$0",
50
+ "}"
51
+ ],
52
+ description: "extension declaration"
53
+ };
54
+ var swift = {
55
+ print: print,
56
+ "print value": {
57
+ prefix: "printv",
58
+ body: "print(\"\\($1)\")\n$0",
59
+ description: "print(\"\\(...)\")"
60
+ },
61
+ "while": {
62
+ prefix: "while",
63
+ body: [
64
+ "while ${1:condition} {",
65
+ "\t$0",
66
+ "}"
67
+ ],
68
+ description: "while statement"
69
+ },
70
+ "repeat-while": {
71
+ prefix: "repeat",
72
+ body: [
73
+ "repeat {",
74
+ "\t$0",
75
+ "} while ${1:condition}"
76
+ ],
77
+ description: "repeat-while statement"
78
+ },
79
+ "for": {
80
+ prefix: "for",
81
+ body: [
82
+ "for ${1:item} in ${2:collection} {",
83
+ "\t$0",
84
+ "}"
85
+ ],
86
+ description: "for-in statement"
87
+ },
88
+ "if": {
89
+ prefix: "if",
90
+ body: [
91
+ "if ${1:condition} {",
92
+ "\t$0",
93
+ "}"
94
+ ],
95
+ description: "if statement"
96
+ },
97
+ "else if": {
98
+ prefix: "elif",
99
+ body: [
100
+ "else if ${1:condition} {",
101
+ "\t$0",
102
+ "}"
103
+ ],
104
+ description: "else clause with a nested if statement"
105
+ },
106
+ "else": {
107
+ prefix: "else",
108
+ body: [
109
+ "else {",
110
+ "\t$0",
111
+ "}"
112
+ ],
113
+ description: "else clause"
114
+ },
115
+ "if let": {
116
+ prefix: "iflet",
117
+ body: [
118
+ "if let ${1:value} = ${2:optional} {",
119
+ "\t$0",
120
+ "}"
121
+ ],
122
+ description: "if statement with optional binding"
123
+ },
124
+ guard: guard,
125
+ "guard let": {
126
+ prefix: "guardlet",
127
+ body: [
128
+ "guard let ${1:value} = ${2:optional} else {",
129
+ "\t$0",
130
+ "}"
131
+ ],
132
+ description: "guard statement with optional binding"
133
+ },
134
+ "switch": {
135
+ prefix: "switch",
136
+ body: [
137
+ "switch ${1:value} {",
138
+ "case ${2:pattern}:",
139
+ "\t$0",
140
+ "default:",
141
+ "\t",
142
+ "}"
143
+ ],
144
+ description: "switch statement"
145
+ },
146
+ "do": {
147
+ prefix: "do",
148
+ body: [
149
+ "do {",
150
+ "\t$0",
151
+ "} catch ${1:error} {",
152
+ "\t$2",
153
+ "}"
154
+ ],
155
+ description: "do statement"
156
+ },
157
+ func: func,
158
+ struct: struct,
159
+ "enum": {
160
+ prefix: "enum",
161
+ body: [
162
+ "enum ${1:Name} {",
163
+ "",
164
+ "\tcase $0",
165
+ "}"
166
+ ],
167
+ description: "enum declaration"
168
+ },
169
+ "class": {
170
+ prefix: "class",
171
+ body: [
172
+ "class ${1:Name} {",
173
+ "",
174
+ "\t$0",
175
+ "}"
176
+ ],
177
+ description: "class declaration"
178
+ },
179
+ protocol: protocol,
180
+ extension: extension
181
+ };
182
+
183
+ export { swift as default, extension, func, guard, print, protocol, struct };
@@ -0,0 +1,208 @@
1
+ var bit = {
2
+ prefix: "bit",
3
+ body: "bit ${1:bit_name} = ${2:value};"
4
+ };
5
+ var int = {
6
+ prefix: "int",
7
+ body: "int ${1:int_name} = ${2:value};"
8
+ };
9
+ var shortint = {
10
+ prefix: "shortint",
11
+ body: "shortint ${1:name} = ${2:value};"
12
+ };
13
+ var longint = {
14
+ prefix: "longint",
15
+ body: "longint ${1:name} = ${2:value};"
16
+ };
17
+ var byte = {
18
+ prefix: "byte",
19
+ body: "byte ${1:byte:_name} = ${2:value};"
20
+ };
21
+ var logic = {
22
+ prefix: "logic",
23
+ body: "logic ${1:logic_name} = ${2:value};"
24
+ };
25
+ var packed = {
26
+ prefix: "packed",
27
+ body: "packed"
28
+ };
29
+ var task = {
30
+ prefix: "task",
31
+ body: [
32
+ "task ${1:automatic} ${2:taskName}(${3:arguments});",
33
+ "\t$0",
34
+ "endtask //$1"
35
+ ],
36
+ description: "task name; ... endtask"
37
+ };
38
+ var modport = {
39
+ prefix: "modport",
40
+ body: [
41
+ "modport ${1:identifier} (",
42
+ "input ${2:input_ports},",
43
+ "output ${3:output_ports}",
44
+ ");"
45
+ ],
46
+ description: "modport name (input ports_in, output ports_out); "
47
+ };
48
+ var display = {
49
+ prefix: "display",
50
+ body: [
51
+ "\\$display(\"$1\"$2);$0"
52
+ ],
53
+ description: "$display(\"...\", params...)"
54
+ };
55
+ var queue = {
56
+ prefix: "queue",
57
+ body: "${1:data_type} ${2:queue_name}[\\$];",
58
+ description: "insert queue."
59
+ };
60
+ var mailbox = {
61
+ prefix: "mailbox",
62
+ body: [
63
+ "mailbox mbx",
64
+ "${1:mbx = new();}"
65
+ ],
66
+ description: "insert mailbox instance"
67
+ };
68
+ var assert = {
69
+ prefix: "assert",
70
+ body: [
71
+ "assert (${1:condition}) $2",
72
+ "else ${3:error_process}"
73
+ ],
74
+ description: "insert assert() ... else ..."
75
+ };
76
+ var systemverilog = {
77
+ "always_ff block": {
78
+ prefix: "always_ff",
79
+ body: [
80
+ "always_ff @( ${1:clock} ) begin : ${2:blockName}",
81
+ "\t$0",
82
+ "end"
83
+ ],
84
+ description: "Insert an always_ff block"
85
+ },
86
+ "always_comb block": {
87
+ prefix: "always_comb",
88
+ body: [
89
+ "always_comb begin : ${1:blockName}",
90
+ "\t$0",
91
+ "end"
92
+ ],
93
+ description: "Insert an always_comb block"
94
+ },
95
+ "always_latch block": {
96
+ prefix: "always_latch",
97
+ body: [
98
+ "always_latch begin : ${1:blockName}",
99
+ "\t$0",
100
+ "end"
101
+ ],
102
+ description: "Insert an always_latch block"
103
+ },
104
+ bit: bit,
105
+ int: int,
106
+ shortint: shortint,
107
+ longint: longint,
108
+ byte: byte,
109
+ logic: logic,
110
+ packed: packed,
111
+ "this": {
112
+ prefix: "this",
113
+ body: "this"
114
+ },
115
+ "typedef struct packed": {
116
+ prefix: "typedef struct packed",
117
+ body: [
118
+ "typedef struct packed {",
119
+ "\t$0",
120
+ "} ${1:struct_name};"
121
+ ],
122
+ description: "typedef struct packed { ... } name"
123
+ },
124
+ "class": {
125
+ prefix: "class",
126
+ body: [
127
+ "class ${1:className};",
128
+ "\tfunction new();",
129
+ "\t\t$0",
130
+ "\tendfunction //new()",
131
+ "endclass //$1"
132
+ ],
133
+ description: "class name; ... endclass"
134
+ },
135
+ "class extends": {
136
+ prefix: "class extends",
137
+ body: [
138
+ "class ${1:className} extends ${2:superClass};",
139
+ "\tfunction new();",
140
+ "\t\t$0",
141
+ "\tendfunction //new()",
142
+ "endclass //$1 extends $2"
143
+ ],
144
+ description: "class name extends super; ... endclass"
145
+ },
146
+ task: task,
147
+ "package": {
148
+ prefix: "package",
149
+ body: [
150
+ "package ${1:package_name}",
151
+ "\t$2",
152
+ "endpackage"
153
+ ],
154
+ description: "package name; ... endpackage"
155
+ },
156
+ "import": {
157
+ prefix: "import",
158
+ body: "import ${1:name}::${2:scope};",
159
+ description: "import name::scope"
160
+ },
161
+ "interface": {
162
+ prefix: "interface",
163
+ body: [
164
+ "interface ${1:interfacename};",
165
+ "\t$0",
166
+ "endinterface //$1"
167
+ ],
168
+ description: "interface name; ... endinterface"
169
+ },
170
+ modport: modport,
171
+ display: display,
172
+ "typedef enum": {
173
+ prefix: "typedef enum",
174
+ body: [
175
+ "typedef enum ${1:data_type} { $0 } ${2:name};"
176
+ ],
177
+ description: "typedef enum (data_type) { ... } name"
178
+ },
179
+ "enum": {
180
+ prefix: [
181
+ "en",
182
+ "enum"
183
+ ],
184
+ body: [
185
+ "enum ${1:data_type} { $0 } ${2:name}"
186
+ ],
187
+ description: "enum (data_type) { ... } name"
188
+ },
189
+ queue: queue,
190
+ mailbox: mailbox,
191
+ "associative array": {
192
+ prefix: "AA",
193
+ body: "${1:data_type} ${2:name}[${3:index_type}];$0",
194
+ description: "insert Associative array(AA)."
195
+ },
196
+ assert: assert,
197
+ "fork-join": {
198
+ prefix: "fork join",
199
+ body: [
200
+ "fork",
201
+ "\t$0",
202
+ "join"
203
+ ],
204
+ description: "fork ... join"
205
+ }
206
+ };
207
+
208
+ export { assert, bit, byte, systemverilog as default, display, int, logic, longint, mailbox, modport, packed, queue, shortint, task };
package/dist/tasty.js ADDED
@@ -0,0 +1,72 @@
1
+ var $schema = "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json";
2
+ var name = "TASTy";
3
+ var extensions = [
4
+ ".tasty-decoded"
5
+ ];
6
+ var scopeName = "source.tasty";
7
+ var patterns = [
8
+ {
9
+ include: "#trees"
10
+ },
11
+ {
12
+ include: "#keywords"
13
+ },
14
+ {
15
+ include: "#lines"
16
+ }
17
+ ];
18
+ var repository = {
19
+ trees: {
20
+ patterns: [
21
+ {
22
+ name: "constant.language.tasty",
23
+ match: "\\b(UNITconst|FALSEconst|TRUEconst|NULLconst|BYTEconst|SHORTconst|CHARconst|INTconst|LONGconst|FLOATconst|DOUBLEconst|STRINGconst)\\b"
24
+ },
25
+ {
26
+ name: "keyword.control.tasty",
27
+ match: "\\b(IF|WHILE|TRY|RETURN|THROW|NEW)\\b"
28
+ },
29
+ {
30
+ name: "support.function",
31
+ match: "\\b(VALDEF|DEFDEF|TYPEDEF)\\b"
32
+ }
33
+ ]
34
+ },
35
+ keywords: {
36
+ patterns: [
37
+ {
38
+ name: "constant.language",
39
+ match: "\\b(Names|Trees)\\b"
40
+ },
41
+ {
42
+ name: "entity.name.type",
43
+ match: "\\b[A-Z]+[a-z]*\\b"
44
+ }
45
+ ]
46
+ },
47
+ lines: {
48
+ patterns: [
49
+ {
50
+ comment: "Position indicator",
51
+ name: "comment.line",
52
+ match: "[0-9]+:"
53
+ }
54
+ ]
55
+ }
56
+ };
57
+ var information_for_contributors = [
58
+ "This file has been converted from https://github.com/scalameta/metals-vscode/blob/master/",
59
+ "If you want to provide a fix or improvement, please create a pull request against the original repository.",
60
+ "Once accepted there, we are happy to receive an update request."
61
+ ];
62
+ var tasty = {
63
+ $schema: $schema,
64
+ name: name,
65
+ extensions: extensions,
66
+ scopeName: scopeName,
67
+ patterns: patterns,
68
+ repository: repository,
69
+ information_for_contributors: information_for_contributors
70
+ };
71
+
72
+ export { $schema, tasty as default, extensions, information_for_contributors, name, patterns, repository, scopeName };
package/dist/tcl2.js ADDED
@@ -0,0 +1,151 @@
1
+ var foreach = {
2
+ prefix: "foreach",
3
+ body: [
4
+ "foreach ${1:var} ${2:list} {",
5
+ "\t$0",
6
+ "}"
7
+ ],
8
+ description: "Foreach Loop"
9
+ };
10
+ var elseif = {
11
+ prefix: "elseif",
12
+ body: [
13
+ "elseif {${1:var}} {",
14
+ "\t$0",
15
+ "}"
16
+ ],
17
+ description: "ElseIf Condition"
18
+ };
19
+ var proc = {
20
+ prefix: "proc",
21
+ body: [
22
+ "proc ${1:name} {${2:args}} {",
23
+ "\t$0",
24
+ "}"
25
+ ],
26
+ description: "Proc Block"
27
+ };
28
+ var tk_chooseDirectory = {
29
+ prefix: "tk_chooseDirectory",
30
+ body: [
31
+ "tk_chooseDirectory ${-initialdir dirname -mustexist boolean -title titleString}"
32
+ ],
33
+ description: "Choose Directory"
34
+ };
35
+ var tk_getOpenFile = {
36
+ prefix: "tk_getOpenFile",
37
+ body: [
38
+ "tk_getOpenFile -filetypes {",
39
+ "\t\t{{Text Files} {.txt} }",
40
+ "\t\t{{All Files} * }",
41
+ "\t}"
42
+ ],
43
+ description: "Open File Dialog"
44
+ };
45
+ var tk_getSaveFile = {
46
+ prefix: "tk_getSaveFile",
47
+ body: [
48
+ "tk_getSaveFile -filetypes {",
49
+ "\t\t{{Text Files} {.txt} }",
50
+ "\t\t{{All Files} * }",
51
+ "\t}"
52
+ ],
53
+ description: "Save File Dialog"
54
+ };
55
+ var tk_messageBox = {
56
+ prefix: "tk_messageBox",
57
+ body: [
58
+ "tk_messageBox ${-message msg}"
59
+ ],
60
+ description: "Message Box"
61
+ };
62
+ var tcl = {
63
+ "for": {
64
+ prefix: "for",
65
+ body: [
66
+ "for {set ${1:index} ${2:0}} {\\$${1:index} < ${3:length}} {incr ${1:index}} {",
67
+ "\t$0",
68
+ "}"
69
+ ],
70
+ description: "For Loop"
71
+ },
72
+ foreach: foreach,
73
+ "if": {
74
+ prefix: "if",
75
+ body: [
76
+ "if {${1:var}} {",
77
+ "\t$0",
78
+ "}"
79
+ ],
80
+ description: "If Condition"
81
+ },
82
+ elseif: elseif,
83
+ "else": {
84
+ prefix: "else",
85
+ body: [
86
+ "else {",
87
+ "\t$0",
88
+ "}"
89
+ ],
90
+ description: "Else Block"
91
+ },
92
+ proc: proc,
93
+ "while": {
94
+ prefix: "while",
95
+ body: [
96
+ "while {${1:var}} {",
97
+ "\t$0",
98
+ "}"
99
+ ],
100
+ description: "While Loop"
101
+ },
102
+ "catch": {
103
+ prefix: "catch",
104
+ body: [
105
+ "catch {${1:body}} ${2:var}"
106
+ ],
107
+ description: "Catch Block"
108
+ },
109
+ "try": {
110
+ prefix: "try",
111
+ body: [
112
+ "try {",
113
+ "\t$1",
114
+ "} finally {",
115
+ "\t$0",
116
+ "}"
117
+ ],
118
+ description: "Try Block"
119
+ },
120
+ "switch": {
121
+ prefix: "switch",
122
+ body: [
123
+ "switch ${1:var} {",
124
+ "\t${2:case} {$3}",
125
+ "\tdefault {$0}",
126
+ "}"
127
+ ],
128
+ description: "Switch Block"
129
+ },
130
+ "oo::class create": {
131
+ prefix: "oo::class create",
132
+ body: [
133
+ "oo::class create ${1:name} {",
134
+ "\t${2:superclass s}",
135
+ "\tconstructor {} {",
136
+ "\t\t$3",
137
+ "\t}",
138
+ "\tmethod ${4:m} {} {",
139
+ "\t\t$0",
140
+ "\t}",
141
+ "}"
142
+ ],
143
+ description: "Class Create"
144
+ },
145
+ tk_chooseDirectory: tk_chooseDirectory,
146
+ tk_getOpenFile: tk_getOpenFile,
147
+ tk_getSaveFile: tk_getSaveFile,
148
+ tk_messageBox: tk_messageBox
149
+ };
150
+
151
+ export { tcl as default, elseif, foreach, proc, tk_chooseDirectory, tk_getOpenFile, tk_getSaveFile, tk_messageBox };