@codingame/monaco-editor-wrapper 1.15.0 → 2.1.1

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 (58) 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 +490 -391
  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/monaco.d.ts +1 -1
  20. package/dist/oasis.js +99 -0
  21. package/dist/ocaml-dune-project.js +38 -0
  22. package/dist/ocaml-dune.js +53 -0
  23. package/dist/ocaml-markdown-codeblock.js +1 -1
  24. package/dist/ocaml-ocaml.js +88 -0
  25. package/dist/ocaml-ocamllex.js +12 -0
  26. package/dist/ocaml.META.js +29 -0
  27. package/dist/ocaml.interface.js +114 -0
  28. package/dist/ocaml.interface2.js +292 -0
  29. package/dist/ocaml.js +40 -8
  30. package/dist/ocaml.menhir.js +81 -0
  31. package/dist/ocaml.oasis.js +18 -0
  32. package/dist/ocaml.ocamlbuild.js +45 -0
  33. package/dist/ocaml.ocamlformat.js +8 -0
  34. package/dist/ocaml.ocamllex.js +60 -0
  35. package/dist/ocaml.opam-install.js +49 -0
  36. package/dist/ocaml.opam.js +69 -0
  37. package/dist/ocaml2.js +600 -2676
  38. package/dist/ocaml3.js +89 -105
  39. package/dist/ocamlbuild.js +142 -192
  40. package/dist/ocamldoc.js +54 -0
  41. package/dist/ocamlformat.js +206 -0
  42. package/dist/ocamllex.js +133 -0
  43. package/dist/opam-install.js +40 -0
  44. package/dist/opam.js +100 -109
  45. package/dist/reason-markdown-codeblock.js +1 -1
  46. package/dist/reason.js +0 -4
  47. package/dist/scalameta.js +1 -1
  48. package/dist/tools/EditorOpenHandlerRegistry.d.ts +8 -0
  49. package/package.json +47 -3
  50. package/stats.html +1 -1
  51. package/dist/ocaml-hover-info.js +0 -34
  52. package/dist/ocaml-hover-type.js +0 -24
  53. package/dist/ocaml-reason.js +0 -100
  54. package/dist/reason-hover-info.js +0 -34
  55. package/dist/reason-hover-signature.js +0 -21
  56. package/dist/reason-hover-type.js +0 -21
  57. package/dist/services/MultiEditorStandaloneCodeEditorService.d.ts +0 -9
  58. package/dist/services/TextModelService.d.ts +0 -25
package/dist/merlin.js CHANGED
@@ -20,30 +20,25 @@ var repository = {
20
20
  comment: {
21
21
  begin: "#",
22
22
  end: "$",
23
- name: "comment.line"
23
+ name: "comment.line.merlin"
24
24
  },
25
25
  directory: {
26
26
  begin: "\\b(B|S)\\b",
27
27
  end: "$",
28
28
  beginCaptures: {
29
29
  "1": {
30
- name: "keyword.other"
30
+ name: "keyword.other.merlin"
31
31
  }
32
32
  },
33
+ name: "string.other.merlin",
33
34
  patterns: [
34
35
  {
35
- match: "(?<![\\-\\+])(?:(\\b[-[:word:]]+\\b)|([\\.*]+))[[:space:]]*([\\./])?",
36
- captures: {
37
- "1": {
38
- name: "string.double"
39
- },
40
- "2": {
41
- name: "constant.language"
42
- },
43
- "3": {
44
- name: "keyword.other"
45
- }
46
- }
36
+ match: "[:./ \\\\]",
37
+ name: "keyword.other.path.merlin"
38
+ },
39
+ {
40
+ match: "[*?]",
41
+ name: "keyword.other.glob.merlin"
47
42
  }
48
43
  ]
49
44
  },
@@ -52,21 +47,26 @@ var repository = {
52
47
  end: "$",
53
48
  beginCaptures: {
54
49
  "1": {
55
- name: "keyword.other"
50
+ name: "keyword.other.merlin"
56
51
  }
57
52
  },
58
53
  patterns: [
54
+ {
55
+ begin: "\"",
56
+ end: "\"",
57
+ name: "string.quoted.double.merlin"
58
+ },
59
59
  {
60
60
  match: "([\\-\\+])\\b(?:([[:digit:]]+)|([[:lower:]][[:word:]]*))\\b",
61
61
  captures: {
62
62
  "1": {
63
- name: "keyword.other"
63
+ name: "keyword.other.merlin"
64
64
  },
65
65
  "2": {
66
- name: "constant.language"
66
+ name: "constant.language.merlin"
67
67
  },
68
68
  "3": {
69
- name: "variable.parameter"
69
+ name: "variable.parameter.merlin"
70
70
  }
71
71
  }
72
72
  }
@@ -77,18 +77,18 @@ var repository = {
77
77
  end: "$",
78
78
  beginCaptures: {
79
79
  "1": {
80
- name: "storage.type"
80
+ name: "storage.type.merlin"
81
81
  }
82
82
  },
83
83
  patterns: [
84
84
  {
85
- match: "(?<![\\-\\+])\\b([[:lower:]][[:word:]]*)\\b[[:space:]]*(\\.)?",
85
+ match: "(?<![\\-\\+])\\b([[:lower:]][-[:word:]]*)\\b[[:space:]]*(\\.)?",
86
86
  captures: {
87
87
  "1": {
88
- name: "entity.name.class"
88
+ name: "entity.name.class.merlin"
89
89
  },
90
90
  "2": {
91
- name: "keyword.other"
91
+ name: "keyword.other.merlin"
92
92
  }
93
93
  }
94
94
  }
@@ -96,7 +96,7 @@ var repository = {
96
96
  }
97
97
  };
98
98
  var information_for_contributors = [
99
- "This file has been converted from https://github.com/reasonml-editor/vscode-reasonml/blob/master/",
99
+ "This file has been converted from https://github.com/ocamllabs/vscode-ocaml-platform/blob/master/",
100
100
  "If you want to provide a fix or improvement, please create a pull request against the original repository.",
101
101
  "Once accepted there, we are happy to receive an update request."
102
102
  ];
package/dist/monaco.d.ts CHANGED
@@ -1,7 +1,6 @@
1
1
  import * as monaco from 'monaco-editor';
2
2
  import './languages';
3
3
  import './theme';
4
- import { EditorOpenHandler } from './services/MultiEditorStandaloneCodeEditorService';
5
4
  import './worker';
6
5
  import 'monaco-editor/esm/vs/editor/editor.all';
7
6
  import 'monaco-editor/esm/vs/editor/standalone/browser/accessibilityHelp/accessibilityHelp';
@@ -12,6 +11,7 @@ import 'monaco-editor/esm/vs/editor/standalone/browser/quickAccess/standaloneGot
12
11
  import 'monaco-editor/esm/vs/editor/standalone/browser/quickAccess/standaloneGotoSymbolQuickAccess';
13
12
  import 'monaco-editor/esm/vs/editor/standalone/browser/quickAccess/standaloneCommandsQuickAccess';
14
13
  import 'monaco-editor/esm/vs/editor/standalone/browser/referenceSearch/standaloneReferenceSearch';
14
+ import { EditorOpenHandler } from './tools/EditorOpenHandlerRegistry';
15
15
  declare function createEditor(domElement: HTMLElement, options?: monaco.editor.IStandaloneEditorConstructionOptions): monaco.editor.IStandaloneCodeEditor;
16
16
  declare function registerTextModelContentProvider(scheme: string, provider: monaco.extra.ITextModelContentProvider): monaco.IDisposable;
17
17
  declare function registerEditorOpenHandler(handler: EditorOpenHandler): monaco.IDisposable;
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 };