@codingame/monaco-editor-wrapper 1.14.9 → 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 (98) 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/cpp.tmLanguage.js +50 -15
  8. package/dist/cpptools.js +44 -3
  9. package/dist/cram.js +257 -0
  10. package/dist/dart3.js +37 -1
  11. package/dist/directives.tmLanguage.js +20 -0
  12. package/dist/dune-project.js +65 -0
  13. package/dist/dune-project2.js +481 -0
  14. package/dist/dune-workspace.js +65 -0
  15. package/dist/dune-workspace2.js +298 -0
  16. package/dist/dune.js +65 -0
  17. package/dist/dune2.js +2962 -0
  18. package/dist/erlang.js +4 -4
  19. package/dist/features/extensionConfigurations.js +11 -1
  20. package/dist/fsharp.tmLanguage.js +24 -4
  21. package/dist/index.js +38 -1
  22. package/dist/interpolations.tmLanguage.js +20 -0
  23. package/dist/java2.js +6 -0
  24. package/dist/json.js +1 -1
  25. package/dist/jsonc.js +1 -1
  26. package/dist/lua2.js +1089 -125
  27. package/dist/main.js +825 -426
  28. package/dist/markdown-svelte-css.js +37 -0
  29. package/dist/markdown-svelte-js.js +37 -0
  30. package/dist/markdown-svelte.js +59 -0
  31. package/dist/markdown-vue.js +59 -0
  32. package/dist/menhir-action.js +51 -0
  33. package/dist/menhir.js +597 -0
  34. package/dist/merlin.js +23 -23
  35. package/dist/monaco.d.ts +1 -1
  36. package/dist/oasis.js +99 -0
  37. package/dist/ocaml-dune-project.js +38 -0
  38. package/dist/ocaml-dune.js +53 -0
  39. package/dist/ocaml-markdown-codeblock.js +1 -1
  40. package/dist/ocaml-ocaml.js +88 -0
  41. package/dist/ocaml-ocamllex.js +12 -0
  42. package/dist/ocaml.META.js +29 -0
  43. package/dist/ocaml.interface.js +114 -0
  44. package/dist/ocaml.interface2.js +292 -0
  45. package/dist/ocaml.js +40 -8
  46. package/dist/ocaml.menhir.js +81 -0
  47. package/dist/ocaml.oasis.js +18 -0
  48. package/dist/ocaml.ocamlbuild.js +45 -0
  49. package/dist/ocaml.ocamlformat.js +8 -0
  50. package/dist/ocaml.ocamllex.js +60 -0
  51. package/dist/ocaml.opam-install.js +49 -0
  52. package/dist/ocaml.opam.js +69 -0
  53. package/dist/ocaml2.js +600 -2676
  54. package/dist/ocaml3.js +89 -105
  55. package/dist/ocamlbuild.js +142 -192
  56. package/dist/ocamldoc.js +54 -0
  57. package/dist/ocamlformat.js +206 -0
  58. package/dist/ocamllex.js +133 -0
  59. package/dist/omnisharp.js +2 -2
  60. package/dist/opam-install.js +40 -0
  61. package/dist/opam.js +100 -109
  62. package/dist/postcss.src.yaml.js +393 -0
  63. package/dist/pug-svelte-dotblock.js +69 -0
  64. package/dist/pug-svelte-tags.js +215 -0
  65. package/dist/pug-svelte.js +307 -0
  66. package/dist/reason-markdown-codeblock.js +1 -1
  67. package/dist/reason.js +0 -4
  68. package/dist/scalameta.js +5 -3
  69. package/dist/sql.tmLanguage.js +21 -5
  70. package/dist/svelte.js +118 -0
  71. package/dist/svelte.svelte-vscode-svelte.js +46 -0
  72. package/dist/svelte.svelte-vscode.js +373 -0
  73. package/dist/svelte.tmLanguage.src.yaml.js +1099 -0
  74. package/dist/theme-defaults~light_vs.js +2 -1
  75. package/dist/tools/EditorOpenHandlerRegistry.d.ts +8 -0
  76. package/dist/typescript-language-features.js +16 -0
  77. package/dist/typescript.js +20 -1
  78. package/dist/typescriptreact.js +20 -1
  79. package/dist/vetur.js +407 -0
  80. package/dist/vscode-R.js +55 -0
  81. package/dist/vscode-python.js +6 -6
  82. package/dist/vue-generated.js +1301 -0
  83. package/dist/vue-html.js +99 -0
  84. package/dist/vue-html.tmLanguage.js +573 -0
  85. package/dist/vue-postcss.js +72 -0
  86. package/dist/vue-sugarss.js +60 -0
  87. package/dist/vue-sugarss2.js +396 -0
  88. package/dist/vue.js +106 -0
  89. package/package.json +52 -6
  90. package/stats.html +1 -1
  91. package/dist/ocaml-hover-info.js +0 -34
  92. package/dist/ocaml-hover-type.js +0 -24
  93. package/dist/ocaml-reason.js +0 -100
  94. package/dist/reason-hover-info.js +0 -34
  95. package/dist/reason-hover-signature.js +0 -21
  96. package/dist/reason-hover-type.js +0 -21
  97. package/dist/services/MultiEditorStandaloneCodeEditorService.d.ts +0 -9
  98. package/dist/services/TextModelService.d.ts +0 -25
@@ -0,0 +1,206 @@
1
+ var name = "OCamlFormat";
2
+ var scopeName = "source.ocaml.ocamlformat";
3
+ var fileTypes = [
4
+ ".ocamlformat"
5
+ ];
6
+ var patterns = [
7
+ {
8
+ include: "#comments"
9
+ },
10
+ {
11
+ include: "#options"
12
+ },
13
+ {
14
+ include: "#values"
15
+ },
16
+ {
17
+ comment: "equals sign",
18
+ name: "punctuation.separator.key-value.ocamlformat",
19
+ match: "="
20
+ }
21
+ ];
22
+ var repository = {
23
+ comments: {
24
+ comment: "line comment",
25
+ name: "comment.line.ocamlformat",
26
+ begin: "#",
27
+ end: "$"
28
+ },
29
+ options: {
30
+ patterns: [
31
+ {
32
+ name: "keyword.other.ocamlformat",
33
+ match: "\\b(align-cases|align-constructors-decl|align-variants-decl|assignment-operator)\\b"
34
+ },
35
+ {
36
+ name: "keyword.other.ocamlformat",
37
+ match: "\\b(break-before-in|break-cases|break-collection-expressions|break-collection|break-fun-decl|break-fun-sig|break-infix-before-func|break-infix|break-separators|break-sequences|break-string-literals|break-struct)\\b"
38
+ },
39
+ {
40
+ name: "keyword.other.ocamlformat",
41
+ match: "\\b(cases-exp-indent|cases-matching-exp-indent|comment-check)\\b"
42
+ },
43
+ {
44
+ name: "keyword.other.ocamlformat",
45
+ match: "\\b(disable|disambiguate-non-breaking-match|doc-comments-padding|doc-comments-tag-only|doc-comments-val|doc-comments|dock-collection-brackets)\\b"
46
+ },
47
+ {
48
+ name: "keyword.other.ocamlformat",
49
+ match: "\\b(escape-chars|escape-strings|exp-grouping|extension-indent|extension-sugar)\\b"
50
+ },
51
+ {
52
+ name: "keyword.other.ocamlformat",
53
+ match: "\\b(field-space|function-indent-nested|function-indent)\\b"
54
+ },
55
+ {
56
+ name: "keyword.other.ocamlformat",
57
+ match: "\\b(if-then-else|indent-after-in|indicate-multiline-delimiters|indicate-nested-or-patterns|infix-precedence)\\b"
58
+ },
59
+ {
60
+ name: "keyword.other.ocamlformat",
61
+ match: "\\b(leading-nested-match-parens|let-and|let-binding-indent|let-binding-spacing|let-module|let-open)\\b"
62
+ },
63
+ {
64
+ name: "keyword.other.ocamlformat",
65
+ match: "\\b(m|margin|match-indent-nested|match-indent|max-indent|module-item-spacing|max-iters)\\b"
66
+ },
67
+ {
68
+ name: "keyword.other.ocamlformat",
69
+ match: "\\b(n|nested-match|no-align-cases|no-align-constructors-decl|no-align-variants-decl|no-break-infix-before-func|no-break-sequences|no-disable|no-disambiguate-non-breaking-match|no-dock-collection-brackets|no-leading-nested-match-parens|no-ocp-indent-compat|no-parens-ite|no-parse-docstrings|no-space-around-arrays|no-space-around-lists|no-space-around-records|no-space-around-variants|no-wrap-comments|no-wrap-fun-args)\\b"
70
+ },
71
+ {
72
+ name: "keyword.other.ocamlformat",
73
+ match: "\\b(ocp-indent-compat)\\b"
74
+ },
75
+ {
76
+ name: "keyword.other.ocamlformat",
77
+ match: "\\b(p|profile|parens-ite|parens-tuple-patterns|parens-tuple|parse-docstrings)\\b"
78
+ },
79
+ {
80
+ name: "keyword.other.ocamlformat",
81
+ match: "\\b(q|quiet)\\b"
82
+ },
83
+ {
84
+ name: "keyword.other.ocamlformat",
85
+ match: "\\b(sequence-blank-line|sequence-style|single-case|space-around-arrays|space-around-lists|space-around-records|space-around-variants|stritem-extension-indent)\\b"
86
+ },
87
+ {
88
+ name: "keyword.other.ocamlformat",
89
+ match: "\\b(type-decl-indent|type-decl)\\b"
90
+ },
91
+ {
92
+ name: "keyword.other.ocamlformat",
93
+ match: "\\b(version)\\b"
94
+ },
95
+ {
96
+ name: "keyword.other.ocamlformat",
97
+ match: "\\b(wrap-comments|wrap-fun-args)\\b"
98
+ }
99
+ ]
100
+ },
101
+ values: {
102
+ patterns: [
103
+ {
104
+ comment: "boolean literal",
105
+ name: "string.other.ocamlformat",
106
+ match: "\\b(true|false)\\b"
107
+ },
108
+ {
109
+ comment: "numeric literal",
110
+ name: "constant.numeric.decimal.ocamlformat",
111
+ match: "\\b([[:digit:]]+(\\.[[:digit:]]*)*)\\b"
112
+ },
113
+ {
114
+ name: "string.other.ocamlformat",
115
+ match: "\\b(after-when-possible|after|align|all|always|auto)\\b"
116
+ },
117
+ {
118
+ name: "string.other.ocamlformat",
119
+ match: "\\b(before-except-val|before|begin-line)\\b"
120
+ },
121
+ {
122
+ name: "string.other.ocamlformat",
123
+ match: "\\b(closing-on-separate-line|compact|conventional)\\b"
124
+ },
125
+ {
126
+ name: "string.other.ocamlformat",
127
+ match: "\\b(decimal|default|double-semicolon)\\b"
128
+ },
129
+ {
130
+ name: "string.other.ocamlformat",
131
+ match: "\\b(end-line)\\b"
132
+ },
133
+ {
134
+ name: "string.other.ocamlformat",
135
+ match: "\\b(fit-or-vertical|fit|force)\\b"
136
+ },
137
+ {
138
+ name: "string.other.ocamlformat",
139
+ match: "\\b(hexadecimal)\\b"
140
+ },
141
+ {
142
+ name: "string.other.ocamlformat",
143
+ match: "\\b(indent)\\b"
144
+ },
145
+ {
146
+ name: "string.other.ocamlformat",
147
+ match: "\\b(janestreet)\\b"
148
+ },
149
+ {
150
+ name: "string.other.ocamlformat",
151
+ match: "\\b(k-r|keyword-first)\\b"
152
+ },
153
+ {
154
+ name: "string.other.ocamlformat",
155
+ match: "\\b(long|loose)\\b"
156
+ },
157
+ {
158
+ name: "string.other.ocamlformat",
159
+ match: "\\b(multi-line-only)\\b"
160
+ },
161
+ {
162
+ name: "string.other.ocamlformat",
163
+ match: "\\b(natural|nested|never|no|normal)\\b"
164
+ },
165
+ {
166
+ name: "string.other.ocamlformat",
167
+ match: "\\b(ocamlformat)\\b"
168
+ },
169
+ {
170
+ name: "string.other.ocamlformat",
171
+ match: "\\b(parens|preserve-one|preserve)\\b"
172
+ },
173
+ {
174
+ name: "string.other.ocamlformat",
175
+ match: "\\b(separator|short|smart|space|sparse)\\b"
176
+ },
177
+ {
178
+ name: "string.other.ocamlformat",
179
+ match: "\\b(terminator|tight-decl|tight|toplevel)\\b"
180
+ },
181
+ {
182
+ name: "string.other.ocamlformat",
183
+ match: "\\b(unsafe-no|unset)\\b"
184
+ },
185
+ {
186
+ name: "string.other.ocamlformat",
187
+ match: "\\b(wrap)\\b"
188
+ }
189
+ ]
190
+ }
191
+ };
192
+ var information_for_contributors = [
193
+ "This file has been converted from https://github.com/ocamllabs/vscode-ocaml-platform/blob/master/",
194
+ "If you want to provide a fix or improvement, please create a pull request against the original repository.",
195
+ "Once accepted there, we are happy to receive an update request."
196
+ ];
197
+ var ocamlformat = {
198
+ name: name,
199
+ scopeName: scopeName,
200
+ fileTypes: fileTypes,
201
+ patterns: patterns,
202
+ repository: repository,
203
+ information_for_contributors: information_for_contributors
204
+ };
205
+
206
+ export { ocamlformat as default, fileTypes, information_for_contributors, name, patterns, repository, scopeName };
@@ -0,0 +1,133 @@
1
+ var name = "OCamllex";
2
+ var scopeName = "source.ocaml.ocamllex";
3
+ var fileTypes = [
4
+ "mll"
5
+ ];
6
+ var foldingStartMarker = "{";
7
+ var foldingStopMarker = "}";
8
+ var keyEquivalent = "^~O";
9
+ var patterns = [
10
+ {
11
+ include: "source.ocaml#comments"
12
+ },
13
+ {
14
+ include: "source.ocaml#strings"
15
+ },
16
+ {
17
+ include: "source.ocaml#characters"
18
+ },
19
+ {
20
+ include: "#rules"
21
+ },
22
+ {
23
+ include: "#keywords"
24
+ },
25
+ {
26
+ include: "#actions"
27
+ },
28
+ {
29
+ include: "#regex"
30
+ },
31
+ {
32
+ match: "(’|‘|“|”)",
33
+ name: "invalid.illegal.unrecognized-character.ocamllex"
34
+ }
35
+ ];
36
+ var repository = {
37
+ rules: {
38
+ match: "\\b(rule|and)[[:space:]]+([[:lower:]][[:word:]']*('|\\b))",
39
+ captures: {
40
+ "1": {
41
+ name: "keyword.other.ocamllex"
42
+ },
43
+ "2": {
44
+ name: "entity.name.function.rule.ocamllex"
45
+ }
46
+ }
47
+ },
48
+ keywords: {
49
+ patterns: [
50
+ {
51
+ comment: "ocamllex reserved keywords",
52
+ name: "keyword.other.ocamllex",
53
+ match: "\\b(let|as|rule|and|parse|shortest|refill)\\b(?!')"
54
+ },
55
+ {
56
+ comment: "assignment operator",
57
+ match: "=",
58
+ name: "keyword.operator.symbol.ocamllex"
59
+ }
60
+ ]
61
+ },
62
+ actions: {
63
+ patterns: [
64
+ {
65
+ comment: "embedded ocaml source",
66
+ begin: "{",
67
+ beginCaptures: [
68
+ {
69
+ name: "keyword.other.ocamllex"
70
+ }
71
+ ],
72
+ end: "}",
73
+ endCaptures: [
74
+ {
75
+ name: "keyword.other.ocamllex"
76
+ }
77
+ ],
78
+ patterns: [
79
+ {
80
+ include: "source.ocaml"
81
+ }
82
+ ]
83
+ }
84
+ ]
85
+ },
86
+ regex: {
87
+ patterns: [
88
+ {
89
+ comment: "regex character set",
90
+ name: "punctuation.character-set.ocamllex",
91
+ match: "\\[|\\]"
92
+ },
93
+ {
94
+ comment: "regex group",
95
+ name: "punctuation.group.ocamllex",
96
+ match: "\\(|\\)"
97
+ },
98
+ {
99
+ comment: "regex operators",
100
+ name: "keyword.operator.ocamllex",
101
+ match: "\\^|#|\\*|\\+|\\?|\\||-"
102
+ },
103
+ {
104
+ comment: "end-of-file token",
105
+ name: "constant.language.eof.ocamllex",
106
+ match: "\\beof\\b"
107
+ },
108
+ {
109
+ comment: "reference to regex pattern",
110
+ name: "entity.name.type.reference.ocamllex",
111
+ match: "\\b[[:alpha:]][[:word:]']*('|\\b)"
112
+ }
113
+ ]
114
+ }
115
+ };
116
+ var information_for_contributors = [
117
+ "This file has been converted from https://github.com/ocamllabs/vscode-ocaml-platform/blob/master/",
118
+ "If you want to provide a fix or improvement, please create a pull request against the original repository.",
119
+ "Once accepted there, we are happy to receive an update request."
120
+ ];
121
+ var ocamllex = {
122
+ name: name,
123
+ scopeName: scopeName,
124
+ fileTypes: fileTypes,
125
+ foldingStartMarker: foldingStartMarker,
126
+ foldingStopMarker: foldingStopMarker,
127
+ keyEquivalent: keyEquivalent,
128
+ patterns: patterns,
129
+ repository: repository,
130
+ information_for_contributors: information_for_contributors
131
+ };
132
+
133
+ export { ocamllex as default, fileTypes, foldingStartMarker, foldingStopMarker, information_for_contributors, keyEquivalent, name, patterns, repository, scopeName };
package/dist/omnisharp.js CHANGED
@@ -375,12 +375,12 @@ var omnisharp = [
375
375
  "omnisharp.sdkPath": {
376
376
  "type": "string",
377
377
  "scope": 3,
378
- "description": "Specifies the path to a .NET SDK installation to use for project loading instead of the highest version installed. Applies when \"useModernNet\" is set to true. Example: \"/home/username/dotnet/sdks/6.0.300\"."
378
+ "description": "Specifies the path to a .NET SDK installation to use for project loading instead of the highest version installed. Applies when \"useModernNet\" is set to true. Example: /home/username/dotnet/sdks/6.0.300."
379
379
  },
380
380
  "omnisharp.sdkVersion": {
381
381
  "type": "string",
382
382
  "scope": 3,
383
- "description": "Specifies the version of the .NET SDK to use for project loading instead of the highest version installed. Applies when \"useModernNet\" is set to true. Example: \"6.0.300\"."
383
+ "description": "Specifies the version of the .NET SDK to use for project loading instead of the highest version installed. Applies when \"useModernNet\" is set to true. Example: 6.0.300."
384
384
  },
385
385
  "omnisharp.sdkIncludePrereleases": {
386
386
  "type": "boolean",
@@ -0,0 +1,40 @@
1
+ var scopeName = "source.ocaml.opam-install";
2
+ var fileTypes = [
3
+ "install"
4
+ ];
5
+ var patterns = [
6
+ {
7
+ name: "comment.line.opam-install",
8
+ begin: "#",
9
+ end: "$"
10
+ },
11
+ {
12
+ match: "^[[:space:]]*(lib|lib_root|libexec|libexec_root|bin|sbin|toplevel|share|share_root|etc|doc|stublibs|man|misc)[[:space:]]*(:)",
13
+ captures: {
14
+ "1": {
15
+ name: "entity.name.tag.opam-install"
16
+ },
17
+ "2": {
18
+ name: "keyword.operator.opam-install"
19
+ }
20
+ }
21
+ },
22
+ {
23
+ name: "string.quoted.double.opam-install",
24
+ begin: "\"",
25
+ end: "\""
26
+ }
27
+ ];
28
+ var information_for_contributors = [
29
+ "This file has been converted from https://github.com/ocamllabs/vscode-ocaml-platform/blob/master/",
30
+ "If you want to provide a fix or improvement, please create a pull request against the original repository.",
31
+ "Once accepted there, we are happy to receive an update request."
32
+ ];
33
+ var opamInstall = {
34
+ scopeName: scopeName,
35
+ fileTypes: fileTypes,
36
+ patterns: patterns,
37
+ information_for_contributors: information_for_contributors
38
+ };
39
+
40
+ export { opamInstall as default, fileTypes, information_for_contributors, patterns, scopeName };
package/dist/opam.js CHANGED
@@ -4,137 +4,128 @@ var fileTypes = [
4
4
  ];
5
5
  var patterns = [
6
6
  {
7
- include: "#directive"
7
+ include: "#comments"
8
+ },
9
+ {
10
+ include: "#fields"
11
+ },
12
+ {
13
+ include: "#values"
8
14
  }
9
15
  ];
10
16
  var repository = {
11
- directive: {
17
+ comments: {
12
18
  patterns: [
13
19
  {
14
- begin: "\\b(depends)\\b",
15
- end: "(?<=\\])",
16
- beginCaptures: {
17
- "1": {
18
- name: "storage.type"
19
- }
20
- },
21
- patterns: [
22
- {
23
- match: "\\G(:)",
24
- name: "keyword.other"
25
- },
26
- {
27
- begin: "\\[",
28
- end: "\\]",
29
- patterns: [
30
- {
31
- begin: "(\")",
32
- end: "(\")",
33
- beginCaptures: {
34
- "1": {
35
- name: "comment.line"
36
- }
37
- },
38
- endCaptures: {
39
- "1": {
40
- name: "comment.line"
41
- }
42
- },
43
- patterns: [
44
- {
45
- match: "\\b([[:alpha:]][[:word:]]*)\\b[[:space:]]*(\\.)?",
46
- captures: {
47
- "1": {
48
- name: "entity.name.class"
49
- },
50
- "2": {
51
- name: "keyword.other"
52
- }
53
- }
54
- }
55
- ]
56
- }
57
- ]
58
- }
59
- ]
20
+ comment: "block comment",
21
+ name: "comment.block.opam",
22
+ begin: "\\(\\*",
23
+ end: "\\*\\)"
60
24
  },
61
25
  {
62
- end: "(?=[:])",
26
+ comment: "line comment",
27
+ name: "comment.line.opam",
28
+ begin: "#",
29
+ end: "$"
30
+ }
31
+ ]
32
+ },
33
+ fields: {
34
+ comment: "labeled field",
35
+ match: "^([[:word:]-]*[[:alpha:]][[:word:]-]*)(:)",
36
+ captures: {
37
+ "1": {
38
+ name: "entity.name.tag.opam"
39
+ },
40
+ "2": {
41
+ name: "keyword.operator.opam"
42
+ }
43
+ }
44
+ },
45
+ values: {
46
+ patterns: [
47
+ {
48
+ comment: "boolean literal",
49
+ name: "constant.language.opam",
50
+ match: "\\b(true|false)\\b"
51
+ },
52
+ {
53
+ comment: "integer literal",
54
+ name: "constant.numeric.decimal.opam",
55
+ match: "(\\b|\\-?)[[:digit:]]+\\b"
56
+ },
57
+ {
58
+ comment: "double-quote string literal",
59
+ name: "string.quoted.double.opam",
60
+ begin: "\"",
61
+ end: "\"",
63
62
  patterns: [
64
63
  {
65
- begin: "(\")",
66
- end: "(\")",
67
- beginCaptures: {
68
- "1": {
69
- name: "keyword.other"
70
- }
71
- },
72
- endCaptures: {
73
- "1": {
74
- name: "keyword.other"
75
- }
76
- },
77
- patterns: [
78
- {
79
- match: "(?<![\\-\\+])(?:(\\b[[:word:]]+\\b)|([*]+))[[:space:]]*([\\./])?",
80
- captures: {
81
- "1": {
82
- name: "string.double"
83
- },
84
- "2": {
85
- name: "constant.language"
86
- },
87
- "3": {
88
- name: "keyword.other"
89
- }
90
- }
91
- }
92
- ]
93
- },
94
- {
95
- match: "\\b([[:alpha:]][[:word:]]*)\\b([\\-])?",
96
- captures: {
97
- "1": {
98
- name: "constant.language"
99
- },
100
- "2": {
101
- name: "keyword.other"
102
- }
103
- }
64
+ include: "#string-elements"
104
65
  }
105
66
  ]
106
67
  },
107
68
  {
108
- begin: "(:)",
109
- end: "$",
110
- beginCaptures: {
111
- "1": {
112
- name: "keyword.other"
113
- }
114
- },
69
+ comment: "triple-double-quote string literal",
70
+ name: "string.quoted.triple-double.opam",
71
+ begin: "\"\"\"",
72
+ end: "\"\"\"",
115
73
  patterns: [
116
74
  {
117
- begin: "(\")",
118
- end: "(\")",
119
- contentName: "variable.parameter",
120
- beginCaptures: {
121
- "1": {
122
- name: "comment.line"
123
- }
124
- },
125
- endCaptures: {
126
- "1": {
127
- name: "comment.line"
128
- }
129
- }
75
+ include: "#string-elements"
130
76
  }
131
77
  ]
78
+ },
79
+ {
80
+ comment: "operator",
81
+ name: "keyword.operator.opam",
82
+ match: "[!=<>\\|&?:]+"
83
+ },
84
+ {
85
+ comment: "identifier",
86
+ match: "\\b([[:word:]+-]+)\\b",
87
+ name: "variable.parameter.opam"
88
+ }
89
+ ]
90
+ },
91
+ "string-elements": {
92
+ patterns: [
93
+ {
94
+ comment: "escaped backslash",
95
+ name: "constant.character.escape.opam",
96
+ match: "\\\\\\\\"
97
+ },
98
+ {
99
+ comment: "escaped quote or whitespace",
100
+ name: "constant.character.escape.opam",
101
+ match: "\\\\[\"ntbr\\n]"
102
+ },
103
+ {
104
+ comment: "character from decimal ASCII code",
105
+ name: "constant.character.escape.opam",
106
+ match: "\\\\[[:digit:]]{3}"
107
+ },
108
+ {
109
+ comment: "character from hexadecimal ASCII code",
110
+ name: "constant.character.escape.opam",
111
+ match: "\\\\x[[:xdigit:]]{2}"
112
+ },
113
+ {
114
+ comment: "variable interpolation",
115
+ name: "constant.variable.opam",
116
+ begin: "%\\{",
117
+ end: "}\\%"
118
+ },
119
+ {
120
+ comment: "unknown escape sequence",
121
+ name: "invalid.illegal.unknown-escape.opam",
122
+ match: "\\\\."
132
123
  }
133
124
  ]
134
125
  }
135
126
  };
136
127
  var information_for_contributors = [
137
- "This file has been converted from https://github.com/reasonml-editor/vscode-reasonml/blob/master/",
128
+ "This file has been converted from https://github.com/ocamllabs/vscode-ocaml-platform/blob/master/",
138
129
  "If you want to provide a fix or improvement, please create a pull request against the original repository.",
139
130
  "Once accepted there, we are happy to receive an update request."
140
131
  ];