@codingame/monaco-editor-wrapper 2.0.0 → 2.1.0

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 (54) hide show
  1. package/dist/COBOL.tmLanguage.js +2 -2
  2. package/dist/META.js +100 -0
  3. package/dist/atd.js +114 -0
  4. package/dist/atd2.js +110 -0
  5. package/dist/cobol-snippets.js +2 -2117
  6. package/dist/cobol2.js +46 -0
  7. package/dist/cram.js +257 -0
  8. package/dist/dune-project.js +65 -0
  9. package/dist/dune-project2.js +481 -0
  10. package/dist/dune-workspace.js +65 -0
  11. package/dist/dune-workspace2.js +298 -0
  12. package/dist/dune.js +65 -0
  13. package/dist/dune2.js +2962 -0
  14. package/dist/index.js +31 -1
  15. package/dist/main.js +359 -61
  16. package/dist/menhir-action.js +51 -0
  17. package/dist/menhir.js +597 -0
  18. package/dist/merlin.js +23 -23
  19. package/dist/oasis.js +99 -0
  20. package/dist/ocaml-dune-project.js +38 -0
  21. package/dist/ocaml-dune.js +53 -0
  22. package/dist/ocaml-markdown-codeblock.js +1 -1
  23. package/dist/ocaml-ocaml.js +88 -0
  24. package/dist/ocaml-ocamllex.js +12 -0
  25. package/dist/ocaml.META.js +29 -0
  26. package/dist/ocaml.interface.js +114 -0
  27. package/dist/ocaml.interface2.js +292 -0
  28. package/dist/ocaml.js +40 -8
  29. package/dist/ocaml.menhir.js +81 -0
  30. package/dist/ocaml.oasis.js +18 -0
  31. package/dist/ocaml.ocamlbuild.js +45 -0
  32. package/dist/ocaml.ocamlformat.js +8 -0
  33. package/dist/ocaml.ocamllex.js +60 -0
  34. package/dist/ocaml.opam-install.js +49 -0
  35. package/dist/ocaml.opam.js +69 -0
  36. package/dist/ocaml2.js +600 -2676
  37. package/dist/ocaml3.js +89 -105
  38. package/dist/ocamlbuild.js +142 -192
  39. package/dist/ocamldoc.js +54 -0
  40. package/dist/ocamlformat.js +206 -0
  41. package/dist/ocamllex.js +133 -0
  42. package/dist/opam-install.js +40 -0
  43. package/dist/opam.js +100 -109
  44. package/dist/reason-markdown-codeblock.js +1 -1
  45. package/dist/reason.js +0 -4
  46. package/dist/scalameta.js +1 -1
  47. package/package.json +1 -1
  48. package/stats.html +1 -1
  49. package/dist/ocaml-hover-info.js +0 -34
  50. package/dist/ocaml-hover-type.js +0 -24
  51. package/dist/ocaml-reason.js +0 -100
  52. package/dist/reason-hover-info.js +0 -34
  53. package/dist/reason-hover-signature.js +0 -21
  54. package/dist/reason-hover-type.js +0 -21
package/dist/oasis.js ADDED
@@ -0,0 +1,99 @@
1
+ var scopeName = "source.ocaml.oasis";
2
+ var fileTypes = [
3
+ "_oasis"
4
+ ];
5
+ var patterns = [
6
+ {
7
+ include: "#comments"
8
+ },
9
+ {
10
+ include: "#fields"
11
+ },
12
+ {
13
+ include: "#sections"
14
+ },
15
+ {
16
+ include: "#conditionals"
17
+ },
18
+ {
19
+ include: "#substitution"
20
+ }
21
+ ];
22
+ var repository = {
23
+ comments: {
24
+ comment: "line comment",
25
+ name: "comment.line.oasis",
26
+ begin: "#",
27
+ end: "$"
28
+ },
29
+ fields: {
30
+ comment: "labeled field",
31
+ match: "^[[:space:]]*([[:word:]]+)(:|\\+:|\\$:)",
32
+ captures: {
33
+ "1": {
34
+ name: "entity.name.tag.oasis"
35
+ },
36
+ "2": {
37
+ name: "keyword.operator.oasis"
38
+ }
39
+ }
40
+ },
41
+ sections: {
42
+ comment: "labeled section",
43
+ begin: "^[[:space:]]*(Flag|Library|Object|Executable|Document|Test|SourceRepository)",
44
+ beginCaptures: {
45
+ "1": {
46
+ name: "keyword.other.oasis"
47
+ }
48
+ },
49
+ end: "$",
50
+ contentName: "string.other.oasis"
51
+ },
52
+ conditionals: {
53
+ patterns: [
54
+ {
55
+ comment: "if condition",
56
+ name: "keyword.other.oasis",
57
+ match: "\\b(if|else)\\b"
58
+ },
59
+ {
60
+ comment: "operators",
61
+ name: "keyword.operator.oasis",
62
+ match: "(!|&&|\\|\\|)"
63
+ },
64
+ {
65
+ comment: "boolean",
66
+ name: "constant.language.oasis",
67
+ match: "\\b(true|false)\\b"
68
+ },
69
+ {
70
+ comment: "tests",
71
+ begin: "\\b(os_type|system|architecture|ccomp_type|ocaml_version|flag)\\(",
72
+ end: "\\)",
73
+ beginCaptures: {
74
+ "1": {
75
+ name: "entity.name.function.oasis"
76
+ }
77
+ }
78
+ }
79
+ ]
80
+ },
81
+ substitution: {
82
+ match: "\\$[[:word:]]+",
83
+ name: "constant.language.oasis"
84
+ }
85
+ };
86
+ var information_for_contributors = [
87
+ "This file has been converted from https://github.com/ocamllabs/vscode-ocaml-platform/blob/master/",
88
+ "If you want to provide a fix or improvement, please create a pull request against the original repository.",
89
+ "Once accepted there, we are happy to receive an update request."
90
+ ];
91
+ var oasis = {
92
+ scopeName: scopeName,
93
+ fileTypes: fileTypes,
94
+ patterns: patterns,
95
+ repository: repository,
96
+ information_for_contributors: information_for_contributors
97
+ };
98
+
99
+ export { oasis as default, fileTypes, information_for_contributors, patterns, repository, scopeName };
@@ -0,0 +1,38 @@
1
+ var lang = {
2
+ prefix: "lang",
3
+ body: [
4
+ "(lang $1 $2)"
5
+ ]
6
+ };
7
+ var name = {
8
+ prefix: "name",
9
+ body: [
10
+ "(name $1)"
11
+ ]
12
+ };
13
+ var using = {
14
+ prefix: "using",
15
+ body: [
16
+ "(using $1 $2)"
17
+ ]
18
+ };
19
+ var info = {
20
+ prefix: "info",
21
+ body: [
22
+ "(license $1)\n(authors \"$2\")\n(maintainers \"$3\")\n(source (${4|uri,github|} $5))\n(bug_reports \"$6\")\n(homepage \"$7\")\n(documentation \"$8\")"
23
+ ]
24
+ };
25
+ var ocamlDuneProject = {
26
+ lang: lang,
27
+ name: name,
28
+ using: using,
29
+ info: info,
30
+ "package": {
31
+ prefix: "package",
32
+ body: [
33
+ "(package\n (name $1)\n (synopsis \"$2\")\n (description \"$3\")\n (depends $4))"
34
+ ]
35
+ }
36
+ };
37
+
38
+ export { ocamlDuneProject as default, info, lang, name, using };
@@ -0,0 +1,53 @@
1
+ var env = {
2
+ prefix: "env",
3
+ body: [
4
+ "(env\n ($1 $2))"
5
+ ]
6
+ };
7
+ var executable = {
8
+ prefix: "executable",
9
+ body: [
10
+ "(executable\n (name $1)\n (public_name $2)\n (libraries $3))"
11
+ ]
12
+ };
13
+ var executables = {
14
+ prefix: "executables",
15
+ body: [
16
+ "(executables\n (names $1)\n (public_names $2)\n (libraries $3))"
17
+ ]
18
+ };
19
+ var install = {
20
+ prefix: "install",
21
+ body: [
22
+ "(install\n (section $1)\n (files ($2.exe as $3)))"
23
+ ]
24
+ };
25
+ var library = {
26
+ prefix: "library",
27
+ body: [
28
+ "(library\n (name $1)\n (public_name $2)\n (libraries $3))"
29
+ ]
30
+ };
31
+ var rule = {
32
+ prefix: "rule",
33
+ body: [
34
+ "(rule\n (alias $1)\n (deps $2)\n (targets $3)\n (action $4))"
35
+ ]
36
+ };
37
+ var test = {
38
+ prefix: "test",
39
+ body: [
40
+ "(test\n (name $1)\n (libraries $2))"
41
+ ]
42
+ };
43
+ var ocamlDune = {
44
+ env: env,
45
+ executable: executable,
46
+ executables: executables,
47
+ install: install,
48
+ library: library,
49
+ rule: rule,
50
+ test: test
51
+ };
52
+
53
+ export { ocamlDune as default, env, executable, executables, install, library, rule, test };
@@ -26,7 +26,7 @@ var repository = {
26
26
  };
27
27
  var scopeName = "markdown.ocaml.codeblock";
28
28
  var information_for_contributors = [
29
- "This file has been converted from https://github.com/reasonml-editor/vscode-reasonml/blob/master/",
29
+ "This file has been converted from https://github.com/ocamllabs/vscode-ocaml-platform/blob/master/",
30
30
  "If you want to provide a fix or improvement, please create a pull request against the original repository.",
31
31
  "Once accepted there, we are happy to receive an update request."
32
32
  ];
@@ -0,0 +1,88 @@
1
+ var lambda = {
2
+ prefix: "fun",
3
+ body: [
4
+ "fun (${1:pattern}) -> ${2:${1:pattern}}"
5
+ ]
6
+ };
7
+ var val = {
8
+ prefix: "val",
9
+ body: [
10
+ "val ${1:name} : $0"
11
+ ]
12
+ };
13
+ var sig = {
14
+ prefix: "sig",
15
+ body: [
16
+ "sig\n ${1}\nend$0"
17
+ ]
18
+ };
19
+ var struct = {
20
+ prefix: "struct",
21
+ body: [
22
+ "struct\n ${1}\nend$0"
23
+ ]
24
+ };
25
+ var module = {
26
+ prefix: "module",
27
+ body: [
28
+ "module ${1:M} = struct\n ${2}\nend$0"
29
+ ]
30
+ };
31
+ var match = {
32
+ prefix: "match",
33
+ body: [
34
+ "match ${1:scrutinee} with\n| ${2:pattern} -> ${3:${2:pattern}}"
35
+ ]
36
+ };
37
+ var ocamlOcaml = {
38
+ lambda: lambda,
39
+ "let .. in": {
40
+ prefix: "let",
41
+ body: [
42
+ "let ${1:pattern} = ${2:()} in$0"
43
+ ]
44
+ },
45
+ "function": {
46
+ prefix: "func",
47
+ body: [
48
+ "function\n| $0"
49
+ ]
50
+ },
51
+ "variant pattern": {
52
+ prefix: "|",
53
+ body: [
54
+ "| ${1:_} -> $0"
55
+ ]
56
+ },
57
+ "let (toplevel)": {
58
+ prefix: "let",
59
+ body: [
60
+ "let ${1:pattern} = $0"
61
+ ]
62
+ },
63
+ val: val,
64
+ sig: sig,
65
+ struct: struct,
66
+ module: module,
67
+ "module signature": {
68
+ prefix: "module",
69
+ body: [
70
+ "module ${1:M} : sig\n ${2}\nend$0"
71
+ ]
72
+ },
73
+ "module type": {
74
+ prefix: "module",
75
+ body: [
76
+ "module type ${1:M} = sig\n ${2}\nend$0"
77
+ ]
78
+ },
79
+ match: match,
80
+ "type declaration": {
81
+ prefix: "type",
82
+ body: [
83
+ "type ${1:name} = $0"
84
+ ]
85
+ }
86
+ };
87
+
88
+ export { ocamlOcaml as default, lambda, match, module, sig, struct, val };
@@ -0,0 +1,12 @@
1
+ var rule = {
2
+ prefix: "rule",
3
+ body: [
4
+ "rule ${1:pattern} = parse",
5
+ "| $0"
6
+ ]
7
+ };
8
+ var ocamlOcamllex = {
9
+ rule: rule
10
+ };
11
+
12
+ export { ocamlOcamllex as default, rule };
@@ -0,0 +1,29 @@
1
+ var comments = {
2
+ lineComment: "#"
3
+ };
4
+ var brackets = [
5
+ [
6
+ "(",
7
+ ")"
8
+ ]
9
+ ];
10
+ var autoClosingPairs = [
11
+ {
12
+ open: "(",
13
+ close: ")"
14
+ },
15
+ {
16
+ open: "\"",
17
+ close: "\"",
18
+ notIn: [
19
+ "string"
20
+ ]
21
+ }
22
+ ];
23
+ var ocaml_META = {
24
+ comments: comments,
25
+ brackets: brackets,
26
+ autoClosingPairs: autoClosingPairs
27
+ };
28
+
29
+ export { autoClosingPairs, brackets, comments, ocaml_META as default };
@@ -0,0 +1,114 @@
1
+ var autoClosingPairs = [
2
+ {
3
+ open: "{",
4
+ close: "}"
5
+ },
6
+ {
7
+ open: "[",
8
+ close: "]"
9
+ },
10
+ {
11
+ open: "(",
12
+ close: ")"
13
+ },
14
+ {
15
+ open: "\"",
16
+ close: "\"",
17
+ notIn: [
18
+ "string"
19
+ ]
20
+ },
21
+ {
22
+ open: "(*",
23
+ close: "*",
24
+ notIn: [
25
+ "string"
26
+ ]
27
+ },
28
+ {
29
+ open: "[|",
30
+ close: "|",
31
+ notIn: [
32
+ "string"
33
+ ]
34
+ }
35
+ ];
36
+ var brackets = [
37
+ [
38
+ "{",
39
+ "}"
40
+ ],
41
+ [
42
+ "[",
43
+ "]"
44
+ ],
45
+ [
46
+ "(",
47
+ ")"
48
+ ],
49
+ [
50
+ "[|",
51
+ "|]"
52
+ ]
53
+ ];
54
+ var comments = {
55
+ blockComment: [
56
+ "(*",
57
+ "*)"
58
+ ]
59
+ };
60
+ var surroundingPairs = [
61
+ [
62
+ "{",
63
+ "}"
64
+ ],
65
+ [
66
+ "[",
67
+ "]"
68
+ ],
69
+ [
70
+ "(",
71
+ ")"
72
+ ],
73
+ [
74
+ "'",
75
+ "'"
76
+ ],
77
+ [
78
+ "\"",
79
+ "\""
80
+ ]
81
+ ];
82
+ var indentationRules = {
83
+ decreaseIndentPattern: "^\\s*(end|done|with|in|else)\\b|^\\s*;;",
84
+ increaseIndentPattern: "\\b(begin|object)\\s*$|\\blet [a-zA-Z0-9_-]+( [^ ]+)* =\\s*$|method!?[ \\t]+.*=[ \\t]*$|->[ \\t]*$|\\b(for|while)(_lwt)?[ \\t]+.*[ \\t]+do[ \\t]*$|(\\btry(_lwt)?$|\\bif\\s+.*\\sthen$|\\belse|[:=]\\s*sig|=\\s*struct)\\s*$",
85
+ indentNextLinePattern: "(?!\\bif.*then.*(else.*|(;|[ \\t]in)[ \\t]*$))\\bif|\\bthen[ \\t]*$|\\belse[ \\t]*$$"
86
+ };
87
+ var onEnterRules = [
88
+ {
89
+ beforeText: "\\(\\*\\*",
90
+ afterText: "\\*\\)",
91
+ action: {
92
+ indent: "none",
93
+ appendText: " "
94
+ }
95
+ },
96
+ {
97
+ beforeText: "\\(\\*",
98
+ afterText: "\\*\\)",
99
+ action: {
100
+ indent: "none",
101
+ appendText: " "
102
+ }
103
+ }
104
+ ];
105
+ var ocaml_interface = {
106
+ autoClosingPairs: autoClosingPairs,
107
+ brackets: brackets,
108
+ comments: comments,
109
+ surroundingPairs: surroundingPairs,
110
+ indentationRules: indentationRules,
111
+ onEnterRules: onEnterRules
112
+ };
113
+
114
+ export { autoClosingPairs, brackets, comments, ocaml_interface as default, indentationRules, onEnterRules, surroundingPairs };