@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.
- package/dist/COBOL.tmLanguage.js +2 -2
- package/dist/META.js +100 -0
- package/dist/atd.js +114 -0
- package/dist/atd2.js +110 -0
- package/dist/cobol-snippets.js +2 -2117
- package/dist/cobol2.js +46 -0
- package/dist/cram.js +257 -0
- package/dist/dune-project.js +65 -0
- package/dist/dune-project2.js +481 -0
- package/dist/dune-workspace.js +65 -0
- package/dist/dune-workspace2.js +298 -0
- package/dist/dune.js +65 -0
- package/dist/dune2.js +2962 -0
- package/dist/index.js +31 -1
- package/dist/main.js +490 -391
- package/dist/menhir-action.js +51 -0
- package/dist/menhir.js +597 -0
- package/dist/merlin.js +23 -23
- package/dist/monaco.d.ts +1 -1
- package/dist/oasis.js +99 -0
- package/dist/ocaml-dune-project.js +38 -0
- package/dist/ocaml-dune.js +53 -0
- package/dist/ocaml-markdown-codeblock.js +1 -1
- package/dist/ocaml-ocaml.js +88 -0
- package/dist/ocaml-ocamllex.js +12 -0
- package/dist/ocaml.META.js +29 -0
- package/dist/ocaml.interface.js +114 -0
- package/dist/ocaml.interface2.js +292 -0
- package/dist/ocaml.js +40 -8
- package/dist/ocaml.menhir.js +81 -0
- package/dist/ocaml.oasis.js +18 -0
- package/dist/ocaml.ocamlbuild.js +45 -0
- package/dist/ocaml.ocamlformat.js +8 -0
- package/dist/ocaml.ocamllex.js +60 -0
- package/dist/ocaml.opam-install.js +49 -0
- package/dist/ocaml.opam.js +69 -0
- package/dist/ocaml2.js +600 -2676
- package/dist/ocaml3.js +89 -105
- package/dist/ocamlbuild.js +142 -192
- package/dist/ocamldoc.js +54 -0
- package/dist/ocamlformat.js +206 -0
- package/dist/ocamllex.js +133 -0
- package/dist/opam-install.js +40 -0
- package/dist/opam.js +100 -109
- package/dist/reason-markdown-codeblock.js +1 -1
- package/dist/reason.js +0 -4
- package/dist/scalameta.js +1 -1
- package/dist/tools/EditorOpenHandlerRegistry.d.ts +8 -0
- package/package.json +47 -3
- package/stats.html +1 -1
- package/dist/ocaml-hover-info.js +0 -34
- package/dist/ocaml-hover-type.js +0 -24
- package/dist/ocaml-reason.js +0 -100
- package/dist/reason-hover-info.js +0 -34
- package/dist/reason-hover-signature.js +0 -21
- package/dist/reason-hover-type.js +0 -21
- package/dist/services/MultiEditorStandaloneCodeEditorService.d.ts +0 -9
- package/dist/services/TextModelService.d.ts +0 -25
package/dist/ocaml3.js
CHANGED
|
@@ -1,141 +1,125 @@
|
|
|
1
1
|
var ocaml = [
|
|
2
2
|
{
|
|
3
|
-
"
|
|
4
|
-
"title": "Reason configuration",
|
|
3
|
+
"title": "OCaml Platform",
|
|
5
4
|
"properties": {
|
|
6
|
-
"
|
|
7
|
-
"type": "
|
|
8
|
-
"default":
|
|
9
|
-
"description": "
|
|
10
|
-
"scope": 3
|
|
11
|
-
},
|
|
12
|
-
"reason.codelens.enabled": {
|
|
13
|
-
"type": "boolean",
|
|
14
|
-
"default": false,
|
|
15
|
-
"description": "Specifies whether the code lens is shown.",
|
|
16
|
-
"scope": 3
|
|
17
|
-
},
|
|
18
|
-
"reason.debounce.linter": {
|
|
19
|
-
"oneOf": [
|
|
20
|
-
{
|
|
21
|
-
"type": "integer"
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
"enum": [
|
|
25
|
-
"Infinity"
|
|
26
|
-
]
|
|
27
|
-
}
|
|
28
|
-
],
|
|
29
|
-
"default": 500,
|
|
30
|
-
"description": "How long to idle (in milliseconds) after keypresses before refreshing linter diagnostics. Smaller values refresh diagnostics more quickly.",
|
|
31
|
-
"scope": 3
|
|
32
|
-
},
|
|
33
|
-
"reason.diagnostics.tools": {
|
|
34
|
-
"type": "array",
|
|
35
|
-
"items": {
|
|
36
|
-
"enum": [
|
|
37
|
-
"merlin",
|
|
38
|
-
"bsb"
|
|
39
|
-
]
|
|
40
|
-
},
|
|
41
|
-
"default": [
|
|
42
|
-
"merlin"
|
|
43
|
-
],
|
|
44
|
-
"maxItems": 2,
|
|
45
|
-
"uniqueItems": true,
|
|
46
|
-
"description": "Specifies which tool or tools will be used to get diagnostics. If you choose both \"merlin\" and \"bsb\", merlin will be used while editing and bsb when saving.",
|
|
5
|
+
"ocaml.sandbox": {
|
|
6
|
+
"type": "object",
|
|
7
|
+
"default": null,
|
|
8
|
+
"description": "Determines where to find the sandbox for a given project",
|
|
47
9
|
"scope": 3
|
|
48
10
|
},
|
|
49
|
-
"
|
|
11
|
+
"ocaml.server.extraEnv": {
|
|
50
12
|
"type": [
|
|
51
|
-
"
|
|
52
|
-
|
|
13
|
+
"null",
|
|
14
|
+
"object"
|
|
53
15
|
],
|
|
54
16
|
"default": null,
|
|
55
|
-
"
|
|
17
|
+
"markdownDescription": "Extra environment variables that will be passed to OCaml LSP executable. Useful for debugging purposes mostly.",
|
|
56
18
|
"scope": 3
|
|
57
19
|
},
|
|
58
|
-
"
|
|
59
|
-
"type": "
|
|
60
|
-
"default":
|
|
61
|
-
"description": "
|
|
20
|
+
"ocaml.dune.autoDetect": {
|
|
21
|
+
"type": "boolean",
|
|
22
|
+
"default": true,
|
|
23
|
+
"description": "Controls whether dune tasks should be automatically detected.",
|
|
62
24
|
"scope": 3
|
|
63
25
|
},
|
|
64
|
-
"
|
|
26
|
+
"ocaml.trace.server": {
|
|
27
|
+
"description": "Controls the logging output of the language server. Valid settings are `off`, `messages`, or `verbose`.",
|
|
65
28
|
"type": "string",
|
|
66
|
-
"
|
|
67
|
-
|
|
29
|
+
"enum": [
|
|
30
|
+
"off",
|
|
31
|
+
"messages",
|
|
32
|
+
"verbose"
|
|
33
|
+
],
|
|
34
|
+
"default": "off",
|
|
68
35
|
"scope": 3
|
|
69
36
|
},
|
|
70
|
-
"
|
|
71
|
-
"type": "
|
|
72
|
-
"default":
|
|
73
|
-
"description": "
|
|
37
|
+
"ocaml.useOcamlEnv": {
|
|
38
|
+
"type": "boolean",
|
|
39
|
+
"default": true,
|
|
40
|
+
"description": "Controls whether to use ocaml-env for opam commands from OCaml for Windows.",
|
|
74
41
|
"scope": 3
|
|
75
42
|
},
|
|
76
|
-
"
|
|
77
|
-
"
|
|
78
|
-
"
|
|
79
|
-
|
|
43
|
+
"ocaml.terminal.shell.linux": {
|
|
44
|
+
"description": "The path of the shell that the sandbox terminal uses on Linux",
|
|
45
|
+
"type": [
|
|
46
|
+
"string",
|
|
47
|
+
"null"
|
|
48
|
+
],
|
|
49
|
+
"default": null,
|
|
80
50
|
"scope": 3
|
|
81
51
|
},
|
|
82
|
-
"
|
|
83
|
-
"
|
|
84
|
-
"
|
|
85
|
-
|
|
52
|
+
"ocaml.terminal.shell.osx": {
|
|
53
|
+
"description": "The path of the shell that the sandbox terminal uses on macOS",
|
|
54
|
+
"type": [
|
|
55
|
+
"string",
|
|
56
|
+
"null"
|
|
57
|
+
],
|
|
58
|
+
"default": null,
|
|
86
59
|
"scope": 3
|
|
87
60
|
},
|
|
88
|
-
"
|
|
89
|
-
"
|
|
90
|
-
"
|
|
91
|
-
|
|
61
|
+
"ocaml.terminal.shell.windows": {
|
|
62
|
+
"description": "The path of the shell that the sandbox terminal uses on Windows",
|
|
63
|
+
"type": [
|
|
64
|
+
"string",
|
|
65
|
+
"null"
|
|
66
|
+
],
|
|
67
|
+
"default": null,
|
|
92
68
|
"scope": 3
|
|
93
69
|
},
|
|
94
|
-
"
|
|
95
|
-
"
|
|
96
|
-
"
|
|
97
|
-
|
|
70
|
+
"ocaml.terminal.shellArgs.linux": {
|
|
71
|
+
"description": "The command line arguments that the sandbox terminal uses on Linux",
|
|
72
|
+
"type": [
|
|
73
|
+
"array",
|
|
74
|
+
"null"
|
|
75
|
+
],
|
|
76
|
+
"items": "string",
|
|
77
|
+
"default": null,
|
|
98
78
|
"scope": 3
|
|
99
79
|
},
|
|
100
|
-
"
|
|
101
|
-
"
|
|
102
|
-
"
|
|
103
|
-
|
|
80
|
+
"ocaml.terminal.shellArgs.osx": {
|
|
81
|
+
"description": "The command line arguments that the sandbox terminal uses on macOS",
|
|
82
|
+
"type": [
|
|
83
|
+
"array",
|
|
84
|
+
"null"
|
|
85
|
+
],
|
|
86
|
+
"items": "string",
|
|
87
|
+
"default": null,
|
|
104
88
|
"scope": 3
|
|
105
89
|
},
|
|
106
|
-
"
|
|
107
|
-
"
|
|
108
|
-
"
|
|
109
|
-
|
|
90
|
+
"ocaml.terminal.shellArgs.windows": {
|
|
91
|
+
"description": "The command line arguments that the sandbox terminal uses on Window",
|
|
92
|
+
"type": [
|
|
93
|
+
"array",
|
|
94
|
+
"null"
|
|
95
|
+
],
|
|
96
|
+
"items": "string",
|
|
97
|
+
"default": null,
|
|
110
98
|
"scope": 3
|
|
111
99
|
},
|
|
112
|
-
"
|
|
113
|
-
"
|
|
114
|
-
"
|
|
115
|
-
|
|
100
|
+
"ocaml.repl.path": {
|
|
101
|
+
"description": "The path of the REPL that the extension uses",
|
|
102
|
+
"type": [
|
|
103
|
+
"string",
|
|
104
|
+
"null"
|
|
105
|
+
],
|
|
106
|
+
"default": null,
|
|
116
107
|
"scope": 3
|
|
117
108
|
},
|
|
118
|
-
"
|
|
119
|
-
"
|
|
120
|
-
"
|
|
121
|
-
|
|
109
|
+
"ocaml.repl.args": {
|
|
110
|
+
"description": "The REPL arguments that the extension uses",
|
|
111
|
+
"type": [
|
|
112
|
+
"array",
|
|
113
|
+
"null"
|
|
114
|
+
],
|
|
115
|
+
"items": "string",
|
|
116
|
+
"default": null,
|
|
122
117
|
"scope": 3
|
|
123
118
|
},
|
|
124
|
-
"
|
|
125
|
-
"type": "
|
|
126
|
-
"
|
|
127
|
-
|
|
128
|
-
"ocaml",
|
|
129
|
-
"reason"
|
|
130
|
-
]
|
|
131
|
-
},
|
|
132
|
-
"default": [
|
|
133
|
-
"ocaml",
|
|
134
|
-
"reason"
|
|
135
|
-
],
|
|
136
|
-
"maxItems": 2,
|
|
137
|
-
"uniqueItems": true,
|
|
138
|
-
"description": "The list of languages enable support for in the language server.",
|
|
119
|
+
"ocaml.repl.useUtop": {
|
|
120
|
+
"type": "boolean",
|
|
121
|
+
"default": true,
|
|
122
|
+
"description": "Controls whether to use Utop for the REPL if it is installed in the current switch.",
|
|
139
123
|
"scope": 3
|
|
140
124
|
}
|
|
141
125
|
}
|
package/dist/ocamlbuild.js
CHANGED
|
@@ -4,227 +4,177 @@ var fileTypes = [
|
|
|
4
4
|
];
|
|
5
5
|
var patterns = [
|
|
6
6
|
{
|
|
7
|
-
include: "#
|
|
7
|
+
include: "#comments"
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
include: "#lines"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
comment: "comma separator",
|
|
14
|
+
name: "keyword.other.ocamlbuild punctuation.comma punctuation.separator.comma",
|
|
15
|
+
match: ","
|
|
8
16
|
}
|
|
9
17
|
];
|
|
10
18
|
var repository = {
|
|
11
|
-
|
|
19
|
+
comments: {
|
|
20
|
+
comment: "line comment",
|
|
21
|
+
name: "comment.line.ocamlbuild",
|
|
22
|
+
begin: "#",
|
|
23
|
+
end: "$"
|
|
24
|
+
},
|
|
25
|
+
lines: {
|
|
26
|
+
begin: "^[[:space:]]*",
|
|
27
|
+
end: "(:)|$",
|
|
28
|
+
endCaptures: {
|
|
29
|
+
"1": {
|
|
30
|
+
name: "keyword.operator.ocamlbuild"
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
patterns: [
|
|
34
|
+
{
|
|
35
|
+
include: "#expressions"
|
|
36
|
+
}
|
|
37
|
+
]
|
|
38
|
+
},
|
|
39
|
+
expressions: {
|
|
40
|
+
comment: "glob expressions",
|
|
12
41
|
patterns: [
|
|
13
42
|
{
|
|
14
|
-
begin: "",
|
|
15
|
-
end: "
|
|
43
|
+
begin: "<",
|
|
44
|
+
end: ">",
|
|
45
|
+
beginCaptures: [
|
|
46
|
+
{
|
|
47
|
+
name: "keyword.operator.ocamlbuild"
|
|
48
|
+
}
|
|
49
|
+
],
|
|
50
|
+
endCaptures: [
|
|
51
|
+
{
|
|
52
|
+
name: "keyword.operator.ocamlbuild"
|
|
53
|
+
}
|
|
54
|
+
],
|
|
55
|
+
name: "string.quoted.double.ocamlbuild",
|
|
16
56
|
patterns: [
|
|
17
57
|
{
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
58
|
+
include: "#patterns"
|
|
59
|
+
}
|
|
60
|
+
]
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
comment: "quoted string",
|
|
64
|
+
name: "string.quoted.double.ocamlbuild",
|
|
65
|
+
begin: "\"",
|
|
66
|
+
end: "\""
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
comment: "boolean",
|
|
70
|
+
name: "constant.language.ocamlbuild",
|
|
71
|
+
match: "\\b(true|false)\\b"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
comment: "operators",
|
|
75
|
+
name: "keyword.operator.ocamlbuild",
|
|
76
|
+
match: "\\b(or|and|not)\\b"
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
include: "#variables"
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
include: "$self"
|
|
83
|
+
}
|
|
84
|
+
]
|
|
85
|
+
},
|
|
86
|
+
patterns: {
|
|
87
|
+
comment: "glob patterns",
|
|
88
|
+
patterns: [
|
|
89
|
+
{
|
|
90
|
+
name: "keyword.operator.ocamlbuild",
|
|
91
|
+
match: "\\?"
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
name: "constant.language.ocamlbuild",
|
|
95
|
+
match: "\\*"
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
begin: "{",
|
|
99
|
+
end: "}",
|
|
100
|
+
beginCaptures: [
|
|
47
101
|
{
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
102
|
+
name: "keyword.operator.ocamlbuild"
|
|
103
|
+
}
|
|
104
|
+
],
|
|
105
|
+
endCaptures: [
|
|
106
|
+
{
|
|
107
|
+
name: "keyword.operator.ocamlbuild"
|
|
108
|
+
}
|
|
109
|
+
],
|
|
110
|
+
patterns: [
|
|
51
111
|
{
|
|
52
|
-
|
|
53
|
-
|
|
112
|
+
name: "keyword.operator.ocamlbuild",
|
|
113
|
+
match: ","
|
|
54
114
|
},
|
|
55
115
|
{
|
|
56
|
-
|
|
57
|
-
end: "\"",
|
|
58
|
-
applyEndPatternLast: true,
|
|
59
|
-
name: "string.double"
|
|
116
|
+
include: "#patterns"
|
|
60
117
|
}
|
|
61
118
|
]
|
|
62
119
|
},
|
|
63
120
|
{
|
|
64
|
-
begin: "
|
|
65
|
-
end: "
|
|
66
|
-
beginCaptures:
|
|
121
|
+
begin: "\\[\\^?",
|
|
122
|
+
end: "\\]",
|
|
123
|
+
beginCaptures: [
|
|
124
|
+
{
|
|
125
|
+
name: "keyword.operator.ocamlbuild"
|
|
126
|
+
}
|
|
127
|
+
],
|
|
128
|
+
endCaptures: [
|
|
129
|
+
{
|
|
130
|
+
name: "keyword.operator.ocamlbuild"
|
|
131
|
+
}
|
|
132
|
+
]
|
|
133
|
+
}
|
|
134
|
+
]
|
|
135
|
+
},
|
|
136
|
+
variables: {
|
|
137
|
+
comment: "pattern variables",
|
|
138
|
+
patterns: [
|
|
139
|
+
{
|
|
140
|
+
match: "(%)\\([^:)]*\\)",
|
|
141
|
+
captures: {
|
|
67
142
|
"1": {
|
|
68
|
-
name: "keyword.
|
|
143
|
+
name: "keyword.operator.ocamlbuild"
|
|
69
144
|
}
|
|
70
145
|
},
|
|
71
146
|
patterns: [
|
|
72
147
|
{
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
endCaptures: {
|
|
84
|
-
"1": {
|
|
85
|
-
name: "keyword.other"
|
|
86
|
-
}
|
|
87
|
-
},
|
|
88
|
-
patterns: [
|
|
89
|
-
{
|
|
90
|
-
match: "(?<![\\-\\+])\\b([[:alpha:]][[:word:]]*)\\b[[:space:]]*(\\.)?",
|
|
91
|
-
captures: {
|
|
92
|
-
"1": {
|
|
93
|
-
name: "entity.name.class"
|
|
94
|
-
},
|
|
95
|
-
"2": {
|
|
96
|
-
name: "keyword.other"
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
]
|
|
101
|
-
},
|
|
102
|
-
{
|
|
103
|
-
begin: "\\b(package)\\b(\\()",
|
|
104
|
-
end: "(\\))",
|
|
105
|
-
beginCaptures: {
|
|
106
|
-
"1": {
|
|
107
|
-
name: "storage.type"
|
|
108
|
-
},
|
|
109
|
-
"2": {
|
|
110
|
-
name: "keyword.other"
|
|
111
|
-
}
|
|
112
|
-
},
|
|
113
|
-
endCaptures: {
|
|
114
|
-
"1": {
|
|
115
|
-
name: "keyword.other"
|
|
116
|
-
}
|
|
117
|
-
},
|
|
118
|
-
patterns: [
|
|
119
|
-
{
|
|
120
|
-
match: "(?<![\\-\\+])\\b([[:lower:]][[:word:]]*)\\b[[:space:]]*(\\.)?",
|
|
121
|
-
captures: {
|
|
122
|
-
"1": {
|
|
123
|
-
name: "entity.name.class"
|
|
124
|
-
},
|
|
125
|
-
"2": {
|
|
126
|
-
name: "keyword.other"
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
]
|
|
131
|
-
},
|
|
132
|
-
{
|
|
133
|
-
begin: "\\b(warn[[:word:]]*)\\b(\\()",
|
|
134
|
-
end: "(\\))",
|
|
135
|
-
beginCaptures: {
|
|
136
|
-
"1": {
|
|
137
|
-
name: "keyword.other"
|
|
138
|
-
},
|
|
139
|
-
"2": {
|
|
140
|
-
name: "keyword.other"
|
|
141
|
-
}
|
|
142
|
-
},
|
|
143
|
-
endCaptures: {
|
|
144
|
-
"1": {
|
|
145
|
-
name: "keyword.other"
|
|
146
|
-
}
|
|
147
|
-
},
|
|
148
|
-
patterns: [
|
|
149
|
-
{
|
|
150
|
-
match: "\\b([[:upper:]][[:word:]]*)\\b",
|
|
151
|
-
name: "constant.language"
|
|
152
|
-
},
|
|
153
|
-
{
|
|
154
|
-
match: "([\\-\\+])\\b(?:([[:digit:]]+)|([[:lower:]][[:word:]]*))\\b",
|
|
155
|
-
captures: {
|
|
156
|
-
"1": {
|
|
157
|
-
name: "keyword.other"
|
|
158
|
-
},
|
|
159
|
-
"2": {
|
|
160
|
-
name: "constant.language"
|
|
161
|
-
},
|
|
162
|
-
"3": {
|
|
163
|
-
name: "variable.parameter"
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
]
|
|
168
|
-
},
|
|
169
|
-
{
|
|
170
|
-
match: "([\\-\\+])?\\b(?:([[:digit:]]+)|([[:lower:]][[:word:]]*))\\b",
|
|
171
|
-
captures: {
|
|
172
|
-
"1": {
|
|
173
|
-
name: "keyword.other"
|
|
174
|
-
},
|
|
175
|
-
"2": {
|
|
176
|
-
name: "constant.language"
|
|
177
|
-
},
|
|
178
|
-
"3": {
|
|
179
|
-
name: "variable.parameter"
|
|
180
|
-
},
|
|
181
|
-
"4": {
|
|
182
|
-
name: "keyword.other"
|
|
183
|
-
}
|
|
184
|
-
},
|
|
185
|
-
endCaptures: {
|
|
186
|
-
"1": {
|
|
187
|
-
name: "keyword.other"
|
|
188
|
-
}
|
|
189
|
-
}
|
|
148
|
+
include: "#expressions"
|
|
149
|
+
}
|
|
150
|
+
]
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
begin: "(%)\\([^:]*(:)",
|
|
154
|
+
end: "\\)",
|
|
155
|
+
beginCaptures: {
|
|
156
|
+
"1": {
|
|
157
|
+
name: "keyword.operator.ocamlbuild"
|
|
190
158
|
},
|
|
159
|
+
"2": {
|
|
160
|
+
name: "keyword.operator.ocamlbuild"
|
|
161
|
+
}
|
|
162
|
+
},
|
|
163
|
+
patterns: [
|
|
191
164
|
{
|
|
192
|
-
|
|
193
|
-
end: "(\\))",
|
|
194
|
-
beginCaptures: {
|
|
195
|
-
"1": {
|
|
196
|
-
name: "keyword.other"
|
|
197
|
-
}
|
|
198
|
-
},
|
|
199
|
-
endCaptures: {
|
|
200
|
-
"1": {
|
|
201
|
-
name: "keyword.other"
|
|
202
|
-
}
|
|
203
|
-
},
|
|
204
|
-
patterns: [
|
|
205
|
-
{
|
|
206
|
-
match: "([\\-\\+])\\b(?:([[:digit:]]+)|([[:lower:]][[:word:]]*))\\b",
|
|
207
|
-
captures: {
|
|
208
|
-
"1": {
|
|
209
|
-
name: "keyword.other"
|
|
210
|
-
},
|
|
211
|
-
"2": {
|
|
212
|
-
name: "constant.language"
|
|
213
|
-
},
|
|
214
|
-
"3": {
|
|
215
|
-
name: "variable.parameter"
|
|
216
|
-
}
|
|
217
|
-
}
|
|
218
|
-
}
|
|
219
|
-
]
|
|
165
|
+
include: "#expressions"
|
|
220
166
|
}
|
|
221
167
|
]
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
name: "keyword.operator.ocamlbuild",
|
|
171
|
+
match: "%"
|
|
222
172
|
}
|
|
223
173
|
]
|
|
224
174
|
}
|
|
225
175
|
};
|
|
226
176
|
var information_for_contributors = [
|
|
227
|
-
"This file has been converted from https://github.com/
|
|
177
|
+
"This file has been converted from https://github.com/ocamllabs/vscode-ocaml-platform/blob/master/",
|
|
228
178
|
"If you want to provide a fix or improvement, please create a pull request against the original repository.",
|
|
229
179
|
"Once accepted there, we are happy to receive an update request."
|
|
230
180
|
];
|
package/dist/ocamldoc.js
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
var scopeName = "source.ocaml.ocamldoc";
|
|
2
|
+
var name = "comment.other.ocamldoc";
|
|
3
|
+
var fileTypes = [
|
|
4
|
+
"mld"
|
|
5
|
+
];
|
|
6
|
+
var patterns = [
|
|
7
|
+
{
|
|
8
|
+
name: "comment.other.ocamldoc",
|
|
9
|
+
begin: "",
|
|
10
|
+
end: "",
|
|
11
|
+
patterns: [
|
|
12
|
+
{
|
|
13
|
+
include: "#markup"
|
|
14
|
+
}
|
|
15
|
+
]
|
|
16
|
+
}
|
|
17
|
+
];
|
|
18
|
+
var repository = {
|
|
19
|
+
markup: {
|
|
20
|
+
patterns: [
|
|
21
|
+
{
|
|
22
|
+
comment: "ocamldoc documentation tag",
|
|
23
|
+
name: "keyword.doc-tag.ocamldoc",
|
|
24
|
+
match: "\\@[[:lower:]]+"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
comment: "embedded ocaml source",
|
|
28
|
+
begin: "(?<!\\\\)\\[",
|
|
29
|
+
end: "(?<!\\\\)\\]",
|
|
30
|
+
contentName: "source.embedded.ocamldoc",
|
|
31
|
+
patterns: [
|
|
32
|
+
{
|
|
33
|
+
include: "source.ocaml"
|
|
34
|
+
}
|
|
35
|
+
]
|
|
36
|
+
}
|
|
37
|
+
]
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
var information_for_contributors = [
|
|
41
|
+
"This file has been converted from https://github.com/ocamllabs/vscode-ocaml-platform/blob/master/",
|
|
42
|
+
"If you want to provide a fix or improvement, please create a pull request against the original repository.",
|
|
43
|
+
"Once accepted there, we are happy to receive an update request."
|
|
44
|
+
];
|
|
45
|
+
var ocamldoc = {
|
|
46
|
+
scopeName: scopeName,
|
|
47
|
+
name: name,
|
|
48
|
+
fileTypes: fileTypes,
|
|
49
|
+
patterns: patterns,
|
|
50
|
+
repository: repository,
|
|
51
|
+
information_for_contributors: information_for_contributors
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
export { ocamldoc as default, fileTypes, information_for_contributors, name, patterns, repository, scopeName };
|