@codingame/monaco-editor-wrapper 1.3.0 → 1.4.3

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 (51) hide show
  1. package/dist/JavaScript.tmLanguage.js +22 -1
  2. package/dist/JavaScriptReact.tmLanguage.js +22 -1
  3. package/dist/TypeScript.tmLanguage.js +22 -1
  4. package/dist/TypeScriptReact.tmLanguage.js +22 -1
  5. package/dist/angular.js +56 -0
  6. package/dist/buildtarget.js +53 -0
  7. package/dist/clojure.tmLanguage.js +11 -15
  8. package/dist/cobol2.js +80 -0
  9. package/dist/cpptools.js +2320 -0
  10. package/dist/csharp.tmLanguage.js +5 -5
  11. package/dist/d2.js +2 -66
  12. package/dist/d3.js +526 -0
  13. package/dist/dart3.js +966 -0
  14. package/dist/dcf.js +3 -3
  15. package/dist/elixir3.js +40 -0
  16. package/dist/erlang2.js +92 -0
  17. package/dist/features/extensionConfigurations.d.ts +1 -0
  18. package/dist/features/extensionConfigurations.js +79 -9162
  19. package/dist/fsharp.tmLanguage.js +10 -1
  20. package/dist/haskell2.js +16 -0
  21. package/dist/java2.js +704 -0
  22. package/dist/javascript.js +83 -2
  23. package/dist/javascriptreact.js +83 -2
  24. package/dist/jsx-tags.js +51 -2
  25. package/dist/jvm-bytecode-verbose.js +1231 -0
  26. package/dist/jvm-bytecode.js +565 -0
  27. package/dist/languages/extensions/extensionConfigurationLoader.d.ts +3 -0
  28. package/dist/languages/extensions/grammarLoader.d.ts +2 -101920
  29. package/dist/languages/extensions/languageConfigurationLoader.d.ts +3 -0
  30. package/dist/languages/extensions/snippetLoader.d.ts +3 -5606
  31. package/dist/lua2.js +1511 -0
  32. package/dist/main.js +154 -98
  33. package/dist/ocaml3.js +145 -0
  34. package/dist/omnisharp.js +522 -0
  35. package/dist/pascal2.js +26 -0
  36. package/dist/postgresql.js +75 -0
  37. package/dist/rmd.js +8 -1
  38. package/dist/scalameta.js +177 -0
  39. package/dist/solargraph.js +192 -0
  40. package/dist/sql.js +9 -2
  41. package/dist/tasty.js +72 -0
  42. package/dist/typescript-language-features.js +998 -0
  43. package/dist/typescript.js +83 -2
  44. package/dist/typescriptreact.js +83 -2
  45. package/dist/verilog2.js +94 -0
  46. package/dist/vscode-R.js +519 -0
  47. package/dist/vscode-groovy.js +28 -0
  48. package/dist/vscode-python.js +677 -0
  49. package/package.json +13 -12
  50. package/stats.html +205 -795
  51. package/dist/languages/extensions/configurationLoader.d.ts +0 -1318
@@ -104,13 +104,94 @@ var folding = {
104
104
  end: "^\\s*//\\s*#?endregion\\b"
105
105
  }
106
106
  };
107
+ var wordPattern = {
108
+ pattern: "(-?\\d*\\.\\d\\w*)|([^\\`\\~\\!\\@\\%\\^\\&\\*\\(\\)\\-\\=\\+\\[\\{\\]\\}\\\\\\|\\;\\:\\'\\\"\\,\\.\\<\\>/\\?\\s]+)"
109
+ };
110
+ var indentationRules = {
111
+ decreaseIndentPattern: {
112
+ pattern: "^((?!.*?/\\*).*\\*/)?\\s*[\\}\\]].*$"
113
+ },
114
+ increaseIndentPattern: {
115
+ pattern: "^((?!//).)*(\\{([^}\"'`/]*|(\\t|[ ])*//.*)|\\([^)\"'`/]*|\\[[^\\]\"'`/]*)$"
116
+ },
117
+ unIndentedLinePattern: {
118
+ pattern: "^(\\t|[ ])*[ ]\\*[^/]*\\*/\\s*$|^(\\t|[ ])*[ ]\\*/\\s*$|^(\\t|[ ])*[ ]\\*([ ]([^\\*]|\\*(?!/))*)?$"
119
+ }
120
+ };
121
+ var onEnterRules = [
122
+ {
123
+ beforeText: {
124
+ pattern: "^\\s*/\\*\\*(?!/)([^\\*]|\\*(?!/))*$"
125
+ },
126
+ afterText: {
127
+ pattern: "^\\s*\\*/$"
128
+ },
129
+ action: {
130
+ indent: "indentOutdent",
131
+ appendText: " * "
132
+ }
133
+ },
134
+ {
135
+ beforeText: {
136
+ pattern: "^\\s*/\\*\\*(?!/)([^\\*]|\\*(?!/))*$"
137
+ },
138
+ action: {
139
+ indent: "none",
140
+ appendText: " * "
141
+ }
142
+ },
143
+ {
144
+ beforeText: {
145
+ pattern: "^(\\t|[ ])*[ ]\\*([ ]([^\\*]|\\*(?!/))*)?$"
146
+ },
147
+ previousLineText: {
148
+ pattern: "(?=^(\\s*(/\\*\\*|\\*)).*)(?=(?!(\\s*\\*/)))"
149
+ },
150
+ action: {
151
+ indent: "none",
152
+ appendText: "* "
153
+ }
154
+ },
155
+ {
156
+ beforeText: {
157
+ pattern: "^(\\t|[ ])*[ ]\\*/\\s*$"
158
+ },
159
+ action: {
160
+ indent: "none",
161
+ removeText: 1
162
+ }
163
+ },
164
+ {
165
+ beforeText: {
166
+ pattern: "^(\\t|[ ])*[ ]\\*[^/]*\\*/\\s*$"
167
+ },
168
+ action: {
169
+ indent: "none",
170
+ removeText: 1
171
+ }
172
+ },
173
+ {
174
+ beforeText: {
175
+ pattern: "^\\s*(\\bcase\\s.+:|\\bdefault:)$"
176
+ },
177
+ afterText: {
178
+ pattern: "^(?!\\s*(\\bcase\\b|\\bdefault\\b))"
179
+ },
180
+ action: {
181
+ indent: "indent"
182
+ }
183
+ }
184
+ ];
107
185
  var javascript = {
108
186
  comments: comments,
109
187
  brackets: brackets,
110
188
  autoClosingPairs: autoClosingPairs,
111
189
  surroundingPairs: surroundingPairs,
112
190
  autoCloseBefore: autoCloseBefore,
113
- folding: folding
191
+ folding: folding,
192
+ wordPattern: wordPattern,
193
+ indentationRules: indentationRules,
194
+ onEnterRules: onEnterRules
114
195
  };
115
196
 
116
- export { autoCloseBefore, autoClosingPairs, brackets, comments, javascript as default, folding, surroundingPairs };
197
+ export { autoCloseBefore, autoClosingPairs, brackets, comments, javascript as default, folding, indentationRules, onEnterRules, surroundingPairs, wordPattern };
@@ -104,13 +104,94 @@ var folding = {
104
104
  end: "^\\s*//\\s*#?endregion\\b"
105
105
  }
106
106
  };
107
+ var wordPattern = {
108
+ pattern: "(-?\\d*\\.\\d\\w*)|([^\\`\\~\\!\\@\\%\\^\\&\\*\\(\\)\\-\\=\\+\\[\\{\\]\\}\\\\\\|\\;\\:\\'\\\"\\,\\.\\<\\>/\\?\\s]+)"
109
+ };
110
+ var indentationRules = {
111
+ decreaseIndentPattern: {
112
+ pattern: "^((?!.*?/\\*).*\\*/)?\\s*[\\}\\]].*$"
113
+ },
114
+ increaseIndentPattern: {
115
+ pattern: "^((?!//).)*(\\{([^}\"'`/]*|(\\t|[ ])*//.*)|\\([^)\"'`/]*|\\[[^\\]\"'`/]*)$"
116
+ },
117
+ unIndentedLinePattern: {
118
+ pattern: "^(\\t|[ ])*[ ]\\*[^/]*\\*/\\s*$|^(\\t|[ ])*[ ]\\*/\\s*$|^(\\t|[ ])*[ ]\\*([ ]([^\\*]|\\*(?!/))*)?$"
119
+ }
120
+ };
121
+ var onEnterRules = [
122
+ {
123
+ beforeText: {
124
+ pattern: "^\\s*/\\*\\*(?!/)([^\\*]|\\*(?!/))*$"
125
+ },
126
+ afterText: {
127
+ pattern: "^\\s*\\*/$"
128
+ },
129
+ action: {
130
+ indent: "indentOutdent",
131
+ appendText: " * "
132
+ }
133
+ },
134
+ {
135
+ beforeText: {
136
+ pattern: "^\\s*/\\*\\*(?!/)([^\\*]|\\*(?!/))*$"
137
+ },
138
+ action: {
139
+ indent: "none",
140
+ appendText: " * "
141
+ }
142
+ },
143
+ {
144
+ beforeText: {
145
+ pattern: "^(\\t|[ ])*[ ]\\*([ ]([^\\*]|\\*(?!/))*)?$"
146
+ },
147
+ previousLineText: {
148
+ pattern: "(?=^(\\s*(/\\*\\*|\\*)).*)(?=(?!(\\s*\\*/)))"
149
+ },
150
+ action: {
151
+ indent: "none",
152
+ appendText: "* "
153
+ }
154
+ },
155
+ {
156
+ beforeText: {
157
+ pattern: "^(\\t|[ ])*[ ]\\*/\\s*$"
158
+ },
159
+ action: {
160
+ indent: "none",
161
+ removeText: 1
162
+ }
163
+ },
164
+ {
165
+ beforeText: {
166
+ pattern: "^(\\t|[ ])*[ ]\\*[^/]*\\*/\\s*$"
167
+ },
168
+ action: {
169
+ indent: "none",
170
+ removeText: 1
171
+ }
172
+ },
173
+ {
174
+ beforeText: {
175
+ pattern: "^\\s*(\\bcase\\s.+:|\\bdefault:)$"
176
+ },
177
+ afterText: {
178
+ pattern: "^(?!\\s*(\\bcase\\b|\\bdefault\\b))"
179
+ },
180
+ action: {
181
+ indent: "indent"
182
+ }
183
+ }
184
+ ];
107
185
  var javascriptreact = {
108
186
  comments: comments,
109
187
  brackets: brackets,
110
188
  autoClosingPairs: autoClosingPairs,
111
189
  surroundingPairs: surroundingPairs,
112
190
  autoCloseBefore: autoCloseBefore,
113
- folding: folding
191
+ folding: folding,
192
+ wordPattern: wordPattern,
193
+ indentationRules: indentationRules,
194
+ onEnterRules: onEnterRules
114
195
  };
115
196
 
116
- export { autoCloseBefore, autoClosingPairs, brackets, comments, javascriptreact as default, folding, surroundingPairs };
197
+ export { autoCloseBefore, autoClosingPairs, brackets, comments, javascriptreact as default, folding, indentationRules, onEnterRules, surroundingPairs, wordPattern };
package/dist/jsx-tags.js CHANGED
@@ -98,12 +98,61 @@ var surroundingPairs = [
98
98
  "\""
99
99
  ]
100
100
  ];
101
+ var wordPattern = {
102
+ pattern: "(-?\\d*\\.\\d\\w*)|([^\\`\\~\\!\\@\\$\\^\\&\\*\\(\\)\\=\\+\\[\\{\\]\\}\\\\\\|\\;\\:'\"\\,\\.\\<\\>\\/\\s]+)"
103
+ };
104
+ var onEnterRules = [
105
+ {
106
+ beforeText: {
107
+ pattern: "<(?!(?:area|base|br|col|embed|hr|img|input|keygen|link|menuitem|meta|param|source|track|wbr))([_:\\w][_:\\w\\-.\\d]*)([^/>]*(?!/)>)[^<]*$",
108
+ flags: "i"
109
+ },
110
+ afterText: {
111
+ pattern: "^<\\/([_:\\w][_:\\w-.\\d]*)\\s*>$",
112
+ flags: "i"
113
+ },
114
+ action: {
115
+ indent: "indentOutdent"
116
+ }
117
+ },
118
+ {
119
+ beforeText: {
120
+ pattern: "<(?!(?:area|base|br|col|embed|hr|img|input|keygen|link|menuitem|meta|param|source|track|wbr))([_:\\w][_:\\w\\-.\\d]*)([^/>]*(?!/)>)[^<]*$",
121
+ flags: "i"
122
+ },
123
+ action: {
124
+ indent: "indent"
125
+ }
126
+ },
127
+ {
128
+ beforeText: {
129
+ pattern: "^>$"
130
+ },
131
+ afterText: {
132
+ pattern: "/^<\\/([_:\\w][_:\\w-.\\d]*)\\s*>$",
133
+ flags: "i"
134
+ },
135
+ action: {
136
+ indent: "indentOutdent"
137
+ }
138
+ },
139
+ {
140
+ beforeText: {
141
+ pattern: "^>$"
142
+ },
143
+ action: {
144
+ indent: "indent"
145
+ }
146
+ }
147
+ ];
101
148
  var jsxTags = {
102
149
  comments: comments,
103
150
  brackets: brackets,
104
151
  colorizedBracketPairs: colorizedBracketPairs,
105
152
  autoClosingPairs: autoClosingPairs,
106
- surroundingPairs: surroundingPairs
153
+ surroundingPairs: surroundingPairs,
154
+ wordPattern: wordPattern,
155
+ onEnterRules: onEnterRules
107
156
  };
108
157
 
109
- export { autoClosingPairs, brackets, colorizedBracketPairs, comments, jsxTags as default, surroundingPairs };
158
+ export { autoClosingPairs, brackets, colorizedBracketPairs, comments, jsxTags as default, onEnterRules, surroundingPairs, wordPattern };