@codingame/monaco-editor-wrapper 3.5.0 → 3.5.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/vue.js CHANGED
@@ -1,18 +1,21 @@
1
1
  var comments = {
2
- lineComment: "//",
3
2
  blockComment: [
4
- "/*",
5
- "*/"
3
+ "<!--",
4
+ "-->"
6
5
  ]
7
6
  };
8
7
  var brackets = [
9
8
  [
10
- "{",
11
- "}"
9
+ "<!--",
10
+ "-->"
11
+ ],
12
+ [
13
+ "<",
14
+ ">"
12
15
  ],
13
16
  [
14
- "[",
15
- "]"
17
+ "{",
18
+ "}"
16
19
  ],
17
20
  [
18
21
  "(",
@@ -32,19 +35,20 @@ var autoClosingPairs = [
32
35
  open: "(",
33
36
  close: ")"
34
37
  },
38
+ {
39
+ open: "'",
40
+ close: "'"
41
+ },
35
42
  {
36
43
  open: "\"",
37
- close: "\"",
38
- notIn: [
39
- "string"
40
- ]
44
+ close: "\""
41
45
  },
42
46
  {
43
- open: "'",
44
- close: "'",
47
+ open: "<!--",
48
+ close: "-->",
45
49
  notIn: [
46
- "string",
47
- "comment"
50
+ "comment",
51
+ "string"
48
52
  ]
49
53
  },
50
54
  {
@@ -63,44 +67,85 @@ var autoClosingPairs = [
63
67
  ]
64
68
  }
65
69
  ];
70
+ var autoCloseBefore = ";:.,=}])><`'\" \n\t";
66
71
  var surroundingPairs = [
67
- [
68
- "{",
69
- "}"
70
- ],
71
- [
72
- "[",
73
- "]"
74
- ],
75
- [
76
- "(",
77
- ")"
78
- ],
79
- [
80
- "\"",
81
- "\""
82
- ],
83
- [
84
- "'",
85
- "'"
86
- ],
72
+ {
73
+ open: "'",
74
+ close: "'"
75
+ },
76
+ {
77
+ open: "\"",
78
+ close: "\""
79
+ },
80
+ {
81
+ open: "{",
82
+ close: "}"
83
+ },
84
+ {
85
+ open: "[",
86
+ close: "]"
87
+ },
88
+ {
89
+ open: "(",
90
+ close: ")"
91
+ },
92
+ {
93
+ open: "<",
94
+ close: ">"
95
+ },
87
96
  [
88
97
  "`",
89
98
  "`"
90
99
  ]
91
100
  ];
101
+ var colorizedBracketPairs = [
102
+ ];
92
103
  var folding = {
93
104
  markers: {
94
- start: "^<(template|style|script)[^>]*>",
95
- end: "^</(template|style|script)>"
105
+ start: "^\\s*<!--\\s*#region\\b.*-->",
106
+ end: "^\\s*<!--\\s*#endregion\\b.*-->"
96
107
  }
97
108
  };
109
+ var wordPattern = "(-?\\d*\\.\\d\\w*)|([^\\`\\~\\!\\@\\$\\^\\&\\*\\(\\)\\=\\+\\[\\{\\]\\}\\\\\\|\\;\\:\\'\\\"\\,\\.\\<\\>\\/\\s]+)";
110
+ var onEnterRules = [
111
+ {
112
+ beforeText: {
113
+ pattern: "<(?!(?:area|base|br|col|embed|hr|img|input|keygen|link|menuitem|meta|param|source|track|wbr|script|style))([_:\\w][_:\\w-.\\d]*)(?:(?:[^'\"/>]|\"[^\"]*\"|'[^']*')*?(?!\\/)>)[^<]*$",
114
+ flags: "i"
115
+ },
116
+ afterText: {
117
+ pattern: "^<\\/([_:\\w][_:\\w-.\\d]*)\\s*>",
118
+ flags: "i"
119
+ },
120
+ action: {
121
+ indent: "indentOutdent"
122
+ }
123
+ },
124
+ {
125
+ beforeText: {
126
+ pattern: "<(?!(?:area|base|br|col|embed|hr|img|input|keygen|link|menuitem|meta|param|source|track|wbr|script|style))([_:\\w][_:\\w-.\\d]*)(?:(?:[^'\"/>]|\"[^\"]*\"|'[^']*')*?(?!\\/)>)[^<]*$",
127
+ flags: "i"
128
+ },
129
+ action: {
130
+ indent: "indent"
131
+ }
132
+ }
133
+ ];
134
+ var indentationRules = {
135
+ increaseIndentPattern: "<(?!\\?|(?:area|base|br|col|frame|hr|html|img|input|keygen|link|menuitem|meta|param|source|track|wbr|script|style)\\b|[^>]*\\/>)([-_\\.A-Za-z0-9]+)(?=\\s|>)\\b[^>]*>(?!\\s*\\()(?!.*<\\/\\1>)|<!--(?!.*-->)|\\{[^}\"']*$",
136
+ decreaseIndentPattern: "^\\s*(<\\/(?!html)[-_\\.A-Za-z0-9]+\\b[^>]*>|-->|\\})"
137
+ };
98
138
  var vue = {
99
139
  comments: comments,
100
140
  brackets: brackets,
101
141
  autoClosingPairs: autoClosingPairs,
142
+ autoCloseBefore: autoCloseBefore,
102
143
  surroundingPairs: surroundingPairs,
103
- folding: folding
144
+ colorizedBracketPairs: colorizedBracketPairs,
145
+ folding: folding,
146
+ wordPattern: wordPattern,
147
+ onEnterRules: onEnterRules,
148
+ indentationRules: indentationRules
104
149
  };
105
150
 
106
- export { autoClosingPairs, brackets, comments, vue as default, folding, surroundingPairs };
151
+ export { autoCloseBefore, autoClosingPairs, brackets, colorizedBracketPairs, comments, vue as default, folding, indentationRules, onEnterRules, surroundingPairs, wordPattern };