@codingame/monaco-vscode-standalone-languages 23.1.0 → 23.2.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.
- package/index.js +48 -82
- package/package.json +2 -2
- package/_.contribution.js +0 -74
- package/abap/abap.contribution.js +0 -19
- package/abap/abap.js +0 -1406
- package/apex/apex.contribution.js +0 -20
- package/apex/apex.js +0 -338
- package/azcli/azcli.contribution.js +0 -19
- package/azcli/azcli.js +0 -76
- package/bat/bat.contribution.js +0 -19
- package/bat/bat.js +0 -108
- package/bicep/bicep.contribution.js +0 -19
- package/bicep/bicep.js +0 -117
- package/cameligo/cameligo.contribution.js +0 -19
- package/cameligo/cameligo.js +0 -182
- package/clojure/clojure.contribution.js +0 -19
- package/clojure/clojure.js +0 -769
- package/coffee/coffee.contribution.js +0 -20
- package/coffee/coffee.js +0 -240
- package/cpp/cpp.contribution.js +0 -29
- package/cpp/cpp.js +0 -397
- package/csharp/csharp.contribution.js +0 -19
- package/csharp/csharp.js +0 -334
- package/csp/csp.contribution.js +0 -19
- package/csp/csp.js +0 -61
- package/css/css.contribution.js +0 -20
- package/css/css.js +0 -193
- package/cypher/cypher.contribution.js +0 -19
- package/cypher/cypher.js +0 -271
- package/dart/dart.contribution.js +0 -20
- package/dart/dart.js +0 -289
- package/dockerfile/dockerfile.contribution.js +0 -20
- package/dockerfile/dockerfile.js +0 -138
- package/ecl/ecl.contribution.js +0 -19
- package/ecl/ecl.js +0 -464
- package/elixir/elixir.contribution.js +0 -19
- package/elixir/elixir.js +0 -577
- package/flow9/flow9.contribution.js +0 -19
- package/flow9/flow9.js +0 -150
- package/freemarker2/freemarker2.contribution.js +0 -73
- package/freemarker2/freemarker2.js +0 -1016
- package/fsharp/fsharp.contribution.js +0 -19
- package/fsharp/fsharp.js +0 -225
- package/go/go.contribution.js +0 -19
- package/go/go.js +0 -226
- package/graphql/graphql.contribution.js +0 -20
- package/graphql/graphql.js +0 -159
- package/handlebars/handlebars.contribution.js +0 -20
- package/handlebars/handlebars.js +0 -439
- package/hcl/hcl.contribution.js +0 -19
- package/hcl/hcl.js +0 -191
- package/html/html.contribution.js +0 -20
- package/html/html.js +0 -328
- package/ini/ini.contribution.js +0 -20
- package/ini/ini.js +0 -79
- package/java/java.contribution.js +0 -20
- package/java/java.js +0 -240
- package/javascript/javascript.contribution.js +0 -22
- package/javascript/javascript.js +0 -77
- package/julia/julia.contribution.js +0 -19
- package/julia/julia.js +0 -519
- package/kotlin/kotlin.contribution.js +0 -20
- package/kotlin/kotlin.js +0 -261
- package/less/less.contribution.js +0 -20
- package/less/less.js +0 -169
- package/lexon/lexon.contribution.js +0 -19
- package/lexon/lexon.js +0 -165
- package/liquid/liquid.contribution.js +0 -20
- package/liquid/liquid.js +0 -260
- package/lua/lua.contribution.js +0 -19
- package/lua/lua.js +0 -170
- package/m3/m3.contribution.js +0 -19
- package/m3/m3.js +0 -218
- package/markdown/markdown.contribution.js +0 -19
- package/markdown/markdown.js +0 -237
- package/mdx/mdx.contribution.js +0 -19
- package/mdx/mdx.js +0 -184
- package/mips/mips.contribution.js +0 -20
- package/mips/mips.js +0 -206
- package/msdax/msdax.contribution.js +0 -19
- package/msdax/msdax.js +0 -383
- package/mysql/mysql.contribution.js +0 -19
- package/mysql/mysql.js +0 -886
- package/objective-c/objective-c.contribution.js +0 -19
- package/objective-c/objective-c.js +0 -191
- package/pascal/pascal.contribution.js +0 -20
- package/pascal/pascal.js +0 -259
- package/pascaligo/pascaligo.contribution.js +0 -19
- package/pascaligo/pascaligo.js +0 -172
- package/perl/perl.contribution.js +0 -19
- package/perl/perl.js +0 -634
- package/pgsql/pgsql.contribution.js +0 -19
- package/pgsql/pgsql.js +0 -859
- package/php/php.contribution.js +0 -20
- package/php/php.js +0 -508
- package/pla/pla.contribution.js +0 -18
- package/pla/pla.js +0 -145
- package/postiats/postiats.contribution.js +0 -19
- package/postiats/postiats.js +0 -915
- package/powerquery/powerquery.contribution.js +0 -19
- package/powerquery/powerquery.js +0 -898
- package/powershell/powershell.contribution.js +0 -19
- package/powershell/powershell.js +0 -247
- package/protobuf/protobuf.contribution.js +0 -19
- package/protobuf/protobuf.js +0 -428
- package/pug/pug.contribution.js +0 -19
- package/pug/pug.js +0 -410
- package/python/python.contribution.js +0 -20
- package/python/python.js +0 -320
- package/qsharp/qsharp.contribution.js +0 -19
- package/qsharp/qsharp.js +0 -309
- package/r/r.contribution.js +0 -19
- package/r/r.js +0 -251
- package/razor/razor.contribution.js +0 -20
- package/razor/razor.js +0 -570
- package/redis/redis.contribution.js +0 -19
- package/redis/redis.js +0 -310
- package/redshift/redshift.contribution.js +0 -19
- package/redshift/redshift.js +0 -817
- package/restructuredtext/restructuredtext.contribution.js +0 -19
- package/restructuredtext/restructuredtext.js +0 -182
- package/ruby/ruby.contribution.js +0 -20
- package/ruby/ruby.js +0 -519
- package/rust/rust.contribution.js +0 -19
- package/rust/rust.js +0 -351
- package/sb/sb.contribution.js +0 -19
- package/sb/sb.js +0 -123
- package/scala/scala.contribution.js +0 -20
- package/scala/scala.js +0 -378
- package/scheme/scheme.contribution.js +0 -19
- package/scheme/scheme.js +0 -116
- package/scss/scss.contribution.js +0 -20
- package/scss/scss.js +0 -268
- package/shell/shell.contribution.js +0 -19
- package/shell/shell.js +0 -229
- package/solidity/solidity.contribution.js +0 -19
- package/solidity/solidity.js +0 -1375
- package/sophia/sophia.contribution.js +0 -19
- package/sophia/sophia.js +0 -207
- package/sparql/sparql.contribution.js +0 -19
- package/sparql/sparql.js +0 -209
- package/sql/sql.contribution.js +0 -19
- package/sql/sql.js +0 -861
- package/st/st.contribution.js +0 -19
- package/st/st.js +0 -424
- package/swift/swift.contribution.js +0 -20
- package/swift/swift.js +0 -320
- package/systemverilog/systemverilog.contribution.js +0 -29
- package/systemverilog/systemverilog.js +0 -584
- package/tcl/tcl.contribution.js +0 -19
- package/tcl/tcl.js +0 -240
- package/twig/twig.contribution.js +0 -20
- package/twig/twig.js +0 -400
- package/typescript/typescript.contribution.js +0 -20
- package/typescript/typescript.js +0 -362
- package/typespec/typespec.contribution.js +0 -19
- package/typespec/typespec.js +0 -135
- package/vb/vb.contribution.js +0 -19
- package/vb/vb.js +0 -380
- package/wgsl/wgsl.contribution.js +0 -19
- package/wgsl/wgsl.js +0 -461
- package/xml/xml.contribution.js +0 -39
- package/xml/xml.js +0 -114
- package/yaml/yaml.contribution.js +0 -20
- package/yaml/yaml.js +0 -225
package/php/php.contribution.js
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { registerLanguage } from '../_.contribution.js';
|
|
2
|
-
|
|
3
|
-
/*!-----------------------------------------------------------------------------
|
|
4
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
5
|
-
* Version: 0.54.0(undefined)
|
|
6
|
-
* Released under the MIT license
|
|
7
|
-
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
|
8
|
-
*-----------------------------------------------------------------------------*/
|
|
9
|
-
|
|
10
|
-
registerLanguage({
|
|
11
|
-
id: "php",
|
|
12
|
-
extensions: [".php", ".php4", ".php5", ".phtml", ".ctp"],
|
|
13
|
-
aliases: ["PHP", "php"],
|
|
14
|
-
mimetypes: ["application/x-php"],
|
|
15
|
-
loader: () => {
|
|
16
|
-
{
|
|
17
|
-
return import('./php.js');
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
});
|
package/php/php.js
DELETED
|
@@ -1,508 +0,0 @@
|
|
|
1
|
-
/*!-----------------------------------------------------------------------------
|
|
2
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* Version: 0.54.0(undefined)
|
|
4
|
-
* Released under the MIT license
|
|
5
|
-
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
|
6
|
-
*-----------------------------------------------------------------------------*/
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
// src/basic-languages/php/php.ts
|
|
10
|
-
var conf = {
|
|
11
|
-
wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\@\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,
|
|
12
|
-
comments: {
|
|
13
|
-
lineComment: "//",
|
|
14
|
-
blockComment: ["/*", "*/"]
|
|
15
|
-
},
|
|
16
|
-
brackets: [
|
|
17
|
-
["{", "}"],
|
|
18
|
-
["[", "]"],
|
|
19
|
-
["(", ")"]
|
|
20
|
-
],
|
|
21
|
-
autoClosingPairs: [
|
|
22
|
-
{ open: "{", close: "}", notIn: ["string"] },
|
|
23
|
-
{ open: "[", close: "]", notIn: ["string"] },
|
|
24
|
-
{ open: "(", close: ")", notIn: ["string"] },
|
|
25
|
-
{ open: '"', close: '"', notIn: ["string"] },
|
|
26
|
-
{ open: "'", close: "'", notIn: ["string", "comment"] }
|
|
27
|
-
],
|
|
28
|
-
folding: {
|
|
29
|
-
markers: {
|
|
30
|
-
start: new RegExp("^\\s*(#|//)region\\b"),
|
|
31
|
-
end: new RegExp("^\\s*(#|//)endregion\\b")
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
};
|
|
35
|
-
var language = {
|
|
36
|
-
defaultToken: "",
|
|
37
|
-
tokenPostfix: "",
|
|
38
|
-
// ignoreCase: true,
|
|
39
|
-
// The main tokenizer for our languages
|
|
40
|
-
tokenizer: {
|
|
41
|
-
root: [
|
|
42
|
-
[/<\?((php)|=)?/, { token: "@rematch", switchTo: "@phpInSimpleState.root" }],
|
|
43
|
-
[/<!DOCTYPE/, "metatag.html", "@doctype"],
|
|
44
|
-
[/<!--/, "comment.html", "@comment"],
|
|
45
|
-
[/(<)(\w+)(\/>)/, ["delimiter.html", "tag.html", "delimiter.html"]],
|
|
46
|
-
[/(<)(script)/, ["delimiter.html", { token: "tag.html", next: "@script" }]],
|
|
47
|
-
[/(<)(style)/, ["delimiter.html", { token: "tag.html", next: "@style" }]],
|
|
48
|
-
[/(<)([:\w]+)/, ["delimiter.html", { token: "tag.html", next: "@otherTag" }]],
|
|
49
|
-
[/(<\/)(\w+)/, ["delimiter.html", { token: "tag.html", next: "@otherTag" }]],
|
|
50
|
-
[/</, "delimiter.html"],
|
|
51
|
-
[/[^<]+/]
|
|
52
|
-
// text
|
|
53
|
-
],
|
|
54
|
-
doctype: [
|
|
55
|
-
[/<\?((php)|=)?/, { token: "@rematch", switchTo: "@phpInSimpleState.comment" }],
|
|
56
|
-
[/[^>]+/, "metatag.content.html"],
|
|
57
|
-
[/>/, "metatag.html", "@pop"]
|
|
58
|
-
],
|
|
59
|
-
comment: [
|
|
60
|
-
[/<\?((php)|=)?/, { token: "@rematch", switchTo: "@phpInSimpleState.comment" }],
|
|
61
|
-
[/-->/, "comment.html", "@pop"],
|
|
62
|
-
[/[^-]+/, "comment.content.html"],
|
|
63
|
-
[/./, "comment.content.html"]
|
|
64
|
-
],
|
|
65
|
-
otherTag: [
|
|
66
|
-
[/<\?((php)|=)?/, { token: "@rematch", switchTo: "@phpInSimpleState.otherTag" }],
|
|
67
|
-
[/\/?>/, "delimiter.html", "@pop"],
|
|
68
|
-
[/"([^"]*)"/, "attribute.value"],
|
|
69
|
-
[/'([^']*)'/, "attribute.value"],
|
|
70
|
-
[/[\w\-]+/, "attribute.name"],
|
|
71
|
-
[/=/, "delimiter"],
|
|
72
|
-
[/[ \t\r\n]+/]
|
|
73
|
-
// whitespace
|
|
74
|
-
],
|
|
75
|
-
// -- BEGIN <script> tags handling
|
|
76
|
-
// After <script
|
|
77
|
-
script: [
|
|
78
|
-
[/<\?((php)|=)?/, { token: "@rematch", switchTo: "@phpInSimpleState.script" }],
|
|
79
|
-
[/type/, "attribute.name", "@scriptAfterType"],
|
|
80
|
-
[/"([^"]*)"/, "attribute.value"],
|
|
81
|
-
[/'([^']*)'/, "attribute.value"],
|
|
82
|
-
[/[\w\-]+/, "attribute.name"],
|
|
83
|
-
[/=/, "delimiter"],
|
|
84
|
-
[
|
|
85
|
-
/>/,
|
|
86
|
-
{
|
|
87
|
-
token: "delimiter.html",
|
|
88
|
-
next: "@scriptEmbedded.text/javascript",
|
|
89
|
-
nextEmbedded: "text/javascript"
|
|
90
|
-
}
|
|
91
|
-
],
|
|
92
|
-
[/[ \t\r\n]+/],
|
|
93
|
-
// whitespace
|
|
94
|
-
[
|
|
95
|
-
/(<\/)(script\s*)(>)/,
|
|
96
|
-
["delimiter.html", "tag.html", { token: "delimiter.html", next: "@pop" }]
|
|
97
|
-
]
|
|
98
|
-
],
|
|
99
|
-
// After <script ... type
|
|
100
|
-
scriptAfterType: [
|
|
101
|
-
[
|
|
102
|
-
/<\?((php)|=)?/,
|
|
103
|
-
{
|
|
104
|
-
token: "@rematch",
|
|
105
|
-
switchTo: "@phpInSimpleState.scriptAfterType"
|
|
106
|
-
}
|
|
107
|
-
],
|
|
108
|
-
[/=/, "delimiter", "@scriptAfterTypeEquals"],
|
|
109
|
-
[
|
|
110
|
-
/>/,
|
|
111
|
-
{
|
|
112
|
-
token: "delimiter.html",
|
|
113
|
-
next: "@scriptEmbedded.text/javascript",
|
|
114
|
-
nextEmbedded: "text/javascript"
|
|
115
|
-
}
|
|
116
|
-
],
|
|
117
|
-
// cover invalid e.g. <script type>
|
|
118
|
-
[/[ \t\r\n]+/],
|
|
119
|
-
// whitespace
|
|
120
|
-
[/<\/script\s*>/, { token: "@rematch", next: "@pop" }]
|
|
121
|
-
],
|
|
122
|
-
// After <script ... type =
|
|
123
|
-
scriptAfterTypeEquals: [
|
|
124
|
-
[
|
|
125
|
-
/<\?((php)|=)?/,
|
|
126
|
-
{
|
|
127
|
-
token: "@rematch",
|
|
128
|
-
switchTo: "@phpInSimpleState.scriptAfterTypeEquals"
|
|
129
|
-
}
|
|
130
|
-
],
|
|
131
|
-
[
|
|
132
|
-
/"([^"]*)"/,
|
|
133
|
-
{
|
|
134
|
-
token: "attribute.value",
|
|
135
|
-
switchTo: "@scriptWithCustomType.$1"
|
|
136
|
-
}
|
|
137
|
-
],
|
|
138
|
-
[
|
|
139
|
-
/'([^']*)'/,
|
|
140
|
-
{
|
|
141
|
-
token: "attribute.value",
|
|
142
|
-
switchTo: "@scriptWithCustomType.$1"
|
|
143
|
-
}
|
|
144
|
-
],
|
|
145
|
-
[
|
|
146
|
-
/>/,
|
|
147
|
-
{
|
|
148
|
-
token: "delimiter.html",
|
|
149
|
-
next: "@scriptEmbedded.text/javascript",
|
|
150
|
-
nextEmbedded: "text/javascript"
|
|
151
|
-
}
|
|
152
|
-
],
|
|
153
|
-
// cover invalid e.g. <script type=>
|
|
154
|
-
[/[ \t\r\n]+/],
|
|
155
|
-
// whitespace
|
|
156
|
-
[/<\/script\s*>/, { token: "@rematch", next: "@pop" }]
|
|
157
|
-
],
|
|
158
|
-
// After <script ... type = $S2
|
|
159
|
-
scriptWithCustomType: [
|
|
160
|
-
[
|
|
161
|
-
/<\?((php)|=)?/,
|
|
162
|
-
{
|
|
163
|
-
token: "@rematch",
|
|
164
|
-
switchTo: "@phpInSimpleState.scriptWithCustomType.$S2"
|
|
165
|
-
}
|
|
166
|
-
],
|
|
167
|
-
[
|
|
168
|
-
/>/,
|
|
169
|
-
{
|
|
170
|
-
token: "delimiter.html",
|
|
171
|
-
next: "@scriptEmbedded.$S2",
|
|
172
|
-
nextEmbedded: "$S2"
|
|
173
|
-
}
|
|
174
|
-
],
|
|
175
|
-
[/"([^"]*)"/, "attribute.value"],
|
|
176
|
-
[/'([^']*)'/, "attribute.value"],
|
|
177
|
-
[/[\w\-]+/, "attribute.name"],
|
|
178
|
-
[/=/, "delimiter"],
|
|
179
|
-
[/[ \t\r\n]+/],
|
|
180
|
-
// whitespace
|
|
181
|
-
[/<\/script\s*>/, { token: "@rematch", next: "@pop" }]
|
|
182
|
-
],
|
|
183
|
-
scriptEmbedded: [
|
|
184
|
-
[
|
|
185
|
-
/<\?((php)|=)?/,
|
|
186
|
-
{
|
|
187
|
-
token: "@rematch",
|
|
188
|
-
switchTo: "@phpInEmbeddedState.scriptEmbedded.$S2",
|
|
189
|
-
nextEmbedded: "@pop"
|
|
190
|
-
}
|
|
191
|
-
],
|
|
192
|
-
[/<\/script/, { token: "@rematch", next: "@pop", nextEmbedded: "@pop" }]
|
|
193
|
-
],
|
|
194
|
-
// -- END <script> tags handling
|
|
195
|
-
// -- BEGIN <style> tags handling
|
|
196
|
-
// After <style
|
|
197
|
-
style: [
|
|
198
|
-
[/<\?((php)|=)?/, { token: "@rematch", switchTo: "@phpInSimpleState.style" }],
|
|
199
|
-
[/type/, "attribute.name", "@styleAfterType"],
|
|
200
|
-
[/"([^"]*)"/, "attribute.value"],
|
|
201
|
-
[/'([^']*)'/, "attribute.value"],
|
|
202
|
-
[/[\w\-]+/, "attribute.name"],
|
|
203
|
-
[/=/, "delimiter"],
|
|
204
|
-
[
|
|
205
|
-
/>/,
|
|
206
|
-
{
|
|
207
|
-
token: "delimiter.html",
|
|
208
|
-
next: "@styleEmbedded.text/css",
|
|
209
|
-
nextEmbedded: "text/css"
|
|
210
|
-
}
|
|
211
|
-
],
|
|
212
|
-
[/[ \t\r\n]+/],
|
|
213
|
-
// whitespace
|
|
214
|
-
[
|
|
215
|
-
/(<\/)(style\s*)(>)/,
|
|
216
|
-
["delimiter.html", "tag.html", { token: "delimiter.html", next: "@pop" }]
|
|
217
|
-
]
|
|
218
|
-
],
|
|
219
|
-
// After <style ... type
|
|
220
|
-
styleAfterType: [
|
|
221
|
-
[
|
|
222
|
-
/<\?((php)|=)?/,
|
|
223
|
-
{
|
|
224
|
-
token: "@rematch",
|
|
225
|
-
switchTo: "@phpInSimpleState.styleAfterType"
|
|
226
|
-
}
|
|
227
|
-
],
|
|
228
|
-
[/=/, "delimiter", "@styleAfterTypeEquals"],
|
|
229
|
-
[
|
|
230
|
-
/>/,
|
|
231
|
-
{
|
|
232
|
-
token: "delimiter.html",
|
|
233
|
-
next: "@styleEmbedded.text/css",
|
|
234
|
-
nextEmbedded: "text/css"
|
|
235
|
-
}
|
|
236
|
-
],
|
|
237
|
-
// cover invalid e.g. <style type>
|
|
238
|
-
[/[ \t\r\n]+/],
|
|
239
|
-
// whitespace
|
|
240
|
-
[/<\/style\s*>/, { token: "@rematch", next: "@pop" }]
|
|
241
|
-
],
|
|
242
|
-
// After <style ... type =
|
|
243
|
-
styleAfterTypeEquals: [
|
|
244
|
-
[
|
|
245
|
-
/<\?((php)|=)?/,
|
|
246
|
-
{
|
|
247
|
-
token: "@rematch",
|
|
248
|
-
switchTo: "@phpInSimpleState.styleAfterTypeEquals"
|
|
249
|
-
}
|
|
250
|
-
],
|
|
251
|
-
[
|
|
252
|
-
/"([^"]*)"/,
|
|
253
|
-
{
|
|
254
|
-
token: "attribute.value",
|
|
255
|
-
switchTo: "@styleWithCustomType.$1"
|
|
256
|
-
}
|
|
257
|
-
],
|
|
258
|
-
[
|
|
259
|
-
/'([^']*)'/,
|
|
260
|
-
{
|
|
261
|
-
token: "attribute.value",
|
|
262
|
-
switchTo: "@styleWithCustomType.$1"
|
|
263
|
-
}
|
|
264
|
-
],
|
|
265
|
-
[
|
|
266
|
-
/>/,
|
|
267
|
-
{
|
|
268
|
-
token: "delimiter.html",
|
|
269
|
-
next: "@styleEmbedded.text/css",
|
|
270
|
-
nextEmbedded: "text/css"
|
|
271
|
-
}
|
|
272
|
-
],
|
|
273
|
-
// cover invalid e.g. <style type=>
|
|
274
|
-
[/[ \t\r\n]+/],
|
|
275
|
-
// whitespace
|
|
276
|
-
[/<\/style\s*>/, { token: "@rematch", next: "@pop" }]
|
|
277
|
-
],
|
|
278
|
-
// After <style ... type = $S2
|
|
279
|
-
styleWithCustomType: [
|
|
280
|
-
[
|
|
281
|
-
/<\?((php)|=)?/,
|
|
282
|
-
{
|
|
283
|
-
token: "@rematch",
|
|
284
|
-
switchTo: "@phpInSimpleState.styleWithCustomType.$S2"
|
|
285
|
-
}
|
|
286
|
-
],
|
|
287
|
-
[
|
|
288
|
-
/>/,
|
|
289
|
-
{
|
|
290
|
-
token: "delimiter.html",
|
|
291
|
-
next: "@styleEmbedded.$S2",
|
|
292
|
-
nextEmbedded: "$S2"
|
|
293
|
-
}
|
|
294
|
-
],
|
|
295
|
-
[/"([^"]*)"/, "attribute.value"],
|
|
296
|
-
[/'([^']*)'/, "attribute.value"],
|
|
297
|
-
[/[\w\-]+/, "attribute.name"],
|
|
298
|
-
[/=/, "delimiter"],
|
|
299
|
-
[/[ \t\r\n]+/],
|
|
300
|
-
// whitespace
|
|
301
|
-
[/<\/style\s*>/, { token: "@rematch", next: "@pop" }]
|
|
302
|
-
],
|
|
303
|
-
styleEmbedded: [
|
|
304
|
-
[
|
|
305
|
-
/<\?((php)|=)?/,
|
|
306
|
-
{
|
|
307
|
-
token: "@rematch",
|
|
308
|
-
switchTo: "@phpInEmbeddedState.styleEmbedded.$S2",
|
|
309
|
-
nextEmbedded: "@pop"
|
|
310
|
-
}
|
|
311
|
-
],
|
|
312
|
-
[/<\/style/, { token: "@rematch", next: "@pop", nextEmbedded: "@pop" }]
|
|
313
|
-
],
|
|
314
|
-
// -- END <style> tags handling
|
|
315
|
-
phpInSimpleState: [
|
|
316
|
-
[/<\?((php)|=)?/, "metatag.php"],
|
|
317
|
-
[/\?>/, { token: "metatag.php", switchTo: "@$S2.$S3" }],
|
|
318
|
-
{ include: "phpRoot" }
|
|
319
|
-
],
|
|
320
|
-
phpInEmbeddedState: [
|
|
321
|
-
[/<\?((php)|=)?/, "metatag.php"],
|
|
322
|
-
[
|
|
323
|
-
/\?>/,
|
|
324
|
-
{
|
|
325
|
-
token: "metatag.php",
|
|
326
|
-
switchTo: "@$S2.$S3",
|
|
327
|
-
nextEmbedded: "$S3"
|
|
328
|
-
}
|
|
329
|
-
],
|
|
330
|
-
{ include: "phpRoot" }
|
|
331
|
-
],
|
|
332
|
-
phpRoot: [
|
|
333
|
-
[
|
|
334
|
-
/[a-zA-Z_]\w*/,
|
|
335
|
-
{
|
|
336
|
-
cases: {
|
|
337
|
-
"@phpKeywords": { token: "keyword.php" },
|
|
338
|
-
"@phpCompileTimeConstants": { token: "constant.php" },
|
|
339
|
-
"@default": "identifier.php"
|
|
340
|
-
}
|
|
341
|
-
}
|
|
342
|
-
],
|
|
343
|
-
[
|
|
344
|
-
/[$a-zA-Z_]\w*/,
|
|
345
|
-
{
|
|
346
|
-
cases: {
|
|
347
|
-
"@phpPreDefinedVariables": {
|
|
348
|
-
token: "variable.predefined.php"
|
|
349
|
-
},
|
|
350
|
-
"@default": "variable.php"
|
|
351
|
-
}
|
|
352
|
-
}
|
|
353
|
-
],
|
|
354
|
-
// brackets
|
|
355
|
-
[/[{}]/, "delimiter.bracket.php"],
|
|
356
|
-
[/[\[\]]/, "delimiter.array.php"],
|
|
357
|
-
[/[()]/, "delimiter.parenthesis.php"],
|
|
358
|
-
// whitespace
|
|
359
|
-
[/[ \t\r\n]+/],
|
|
360
|
-
// comments
|
|
361
|
-
[/(#|\/\/)$/, "comment.php"],
|
|
362
|
-
[/(#|\/\/)/, "comment.php", "@phpLineComment"],
|
|
363
|
-
// block comments
|
|
364
|
-
[/\/\*/, "comment.php", "@phpComment"],
|
|
365
|
-
// strings
|
|
366
|
-
[/"/, "string.php", "@phpDoubleQuoteString"],
|
|
367
|
-
[/'/, "string.php", "@phpSingleQuoteString"],
|
|
368
|
-
// delimiters
|
|
369
|
-
[/[\+\-\*\%\&\|\^\~\!\=\<\>\/\?\;\:\.\,\@]/, "delimiter.php"],
|
|
370
|
-
// numbers
|
|
371
|
-
[/\d*\d+[eE]([\-+]?\d+)?/, "number.float.php"],
|
|
372
|
-
[/\d*\.\d+([eE][\-+]?\d+)?/, "number.float.php"],
|
|
373
|
-
[/0[xX][0-9a-fA-F']*[0-9a-fA-F]/, "number.hex.php"],
|
|
374
|
-
[/0[0-7']*[0-7]/, "number.octal.php"],
|
|
375
|
-
[/0[bB][0-1']*[0-1]/, "number.binary.php"],
|
|
376
|
-
[/\d[\d']*/, "number.php"],
|
|
377
|
-
[/\d/, "number.php"]
|
|
378
|
-
],
|
|
379
|
-
phpComment: [
|
|
380
|
-
[/\*\//, "comment.php", "@pop"],
|
|
381
|
-
[/[^*]+/, "comment.php"],
|
|
382
|
-
[/./, "comment.php"]
|
|
383
|
-
],
|
|
384
|
-
phpLineComment: [
|
|
385
|
-
[/\?>/, { token: "@rematch", next: "@pop" }],
|
|
386
|
-
[/.$/, "comment.php", "@pop"],
|
|
387
|
-
[/[^?]+$/, "comment.php", "@pop"],
|
|
388
|
-
[/[^?]+/, "comment.php"],
|
|
389
|
-
[/./, "comment.php"]
|
|
390
|
-
],
|
|
391
|
-
phpDoubleQuoteString: [
|
|
392
|
-
[/[^\\"]+/, "string.php"],
|
|
393
|
-
[/@escapes/, "string.escape.php"],
|
|
394
|
-
[/\\./, "string.escape.invalid.php"],
|
|
395
|
-
[/"/, "string.php", "@pop"]
|
|
396
|
-
],
|
|
397
|
-
phpSingleQuoteString: [
|
|
398
|
-
[/[^\\']+/, "string.php"],
|
|
399
|
-
[/@escapes/, "string.escape.php"],
|
|
400
|
-
[/\\./, "string.escape.invalid.php"],
|
|
401
|
-
[/'/, "string.php", "@pop"]
|
|
402
|
-
]
|
|
403
|
-
},
|
|
404
|
-
phpKeywords: [
|
|
405
|
-
"abstract",
|
|
406
|
-
"and",
|
|
407
|
-
"array",
|
|
408
|
-
"as",
|
|
409
|
-
"break",
|
|
410
|
-
"callable",
|
|
411
|
-
"case",
|
|
412
|
-
"catch",
|
|
413
|
-
"cfunction",
|
|
414
|
-
"class",
|
|
415
|
-
"clone",
|
|
416
|
-
"const",
|
|
417
|
-
"continue",
|
|
418
|
-
"declare",
|
|
419
|
-
"default",
|
|
420
|
-
"do",
|
|
421
|
-
"else",
|
|
422
|
-
"elseif",
|
|
423
|
-
"enddeclare",
|
|
424
|
-
"endfor",
|
|
425
|
-
"endforeach",
|
|
426
|
-
"endif",
|
|
427
|
-
"endswitch",
|
|
428
|
-
"endwhile",
|
|
429
|
-
"extends",
|
|
430
|
-
"false",
|
|
431
|
-
"final",
|
|
432
|
-
"for",
|
|
433
|
-
"foreach",
|
|
434
|
-
"function",
|
|
435
|
-
"global",
|
|
436
|
-
"goto",
|
|
437
|
-
"if",
|
|
438
|
-
"implements",
|
|
439
|
-
"interface",
|
|
440
|
-
"instanceof",
|
|
441
|
-
"insteadof",
|
|
442
|
-
"namespace",
|
|
443
|
-
"new",
|
|
444
|
-
"null",
|
|
445
|
-
"object",
|
|
446
|
-
"old_function",
|
|
447
|
-
"or",
|
|
448
|
-
"private",
|
|
449
|
-
"protected",
|
|
450
|
-
"public",
|
|
451
|
-
"resource",
|
|
452
|
-
"static",
|
|
453
|
-
"switch",
|
|
454
|
-
"throw",
|
|
455
|
-
"trait",
|
|
456
|
-
"try",
|
|
457
|
-
"true",
|
|
458
|
-
"use",
|
|
459
|
-
"var",
|
|
460
|
-
"while",
|
|
461
|
-
"xor",
|
|
462
|
-
"die",
|
|
463
|
-
"echo",
|
|
464
|
-
"empty",
|
|
465
|
-
"exit",
|
|
466
|
-
"eval",
|
|
467
|
-
"include",
|
|
468
|
-
"include_once",
|
|
469
|
-
"isset",
|
|
470
|
-
"list",
|
|
471
|
-
"require",
|
|
472
|
-
"require_once",
|
|
473
|
-
"return",
|
|
474
|
-
"print",
|
|
475
|
-
"unset",
|
|
476
|
-
"yield",
|
|
477
|
-
"__construct"
|
|
478
|
-
],
|
|
479
|
-
phpCompileTimeConstants: [
|
|
480
|
-
"__CLASS__",
|
|
481
|
-
"__DIR__",
|
|
482
|
-
"__FILE__",
|
|
483
|
-
"__LINE__",
|
|
484
|
-
"__NAMESPACE__",
|
|
485
|
-
"__METHOD__",
|
|
486
|
-
"__FUNCTION__",
|
|
487
|
-
"__TRAIT__"
|
|
488
|
-
],
|
|
489
|
-
phpPreDefinedVariables: [
|
|
490
|
-
"$GLOBALS",
|
|
491
|
-
"$_SERVER",
|
|
492
|
-
"$_GET",
|
|
493
|
-
"$_POST",
|
|
494
|
-
"$_FILES",
|
|
495
|
-
"$_REQUEST",
|
|
496
|
-
"$_SESSION",
|
|
497
|
-
"$_ENV",
|
|
498
|
-
"$_COOKIE",
|
|
499
|
-
"$php_errormsg",
|
|
500
|
-
"$HTTP_RAW_POST_DATA",
|
|
501
|
-
"$http_response_header",
|
|
502
|
-
"$argc",
|
|
503
|
-
"$argv"
|
|
504
|
-
],
|
|
505
|
-
escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/
|
|
506
|
-
};
|
|
507
|
-
|
|
508
|
-
export { conf, language };
|
package/pla/pla.contribution.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { registerLanguage } from '../_.contribution.js';
|
|
2
|
-
|
|
3
|
-
/*!-----------------------------------------------------------------------------
|
|
4
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
5
|
-
* Version: 0.54.0(undefined)
|
|
6
|
-
* Released under the MIT license
|
|
7
|
-
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
|
8
|
-
*-----------------------------------------------------------------------------*/
|
|
9
|
-
|
|
10
|
-
registerLanguage({
|
|
11
|
-
id: "pla",
|
|
12
|
-
extensions: [".pla"],
|
|
13
|
-
loader: () => {
|
|
14
|
-
{
|
|
15
|
-
return import('./pla.js');
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
});
|
package/pla/pla.js
DELETED
|
@@ -1,145 +0,0 @@
|
|
|
1
|
-
/*!-----------------------------------------------------------------------------
|
|
2
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* Version: 0.54.0(undefined)
|
|
4
|
-
* Released under the MIT license
|
|
5
|
-
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
|
6
|
-
*-----------------------------------------------------------------------------*/
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
// src/basic-languages/pla/pla.ts
|
|
10
|
-
var conf = {
|
|
11
|
-
comments: {
|
|
12
|
-
lineComment: "#"
|
|
13
|
-
},
|
|
14
|
-
brackets: [
|
|
15
|
-
["[", "]"],
|
|
16
|
-
["<", ">"],
|
|
17
|
-
["(", ")"]
|
|
18
|
-
],
|
|
19
|
-
autoClosingPairs: [
|
|
20
|
-
{ open: "[", close: "]" },
|
|
21
|
-
{ open: "<", close: ">" },
|
|
22
|
-
{ open: "(", close: ")" }
|
|
23
|
-
],
|
|
24
|
-
surroundingPairs: [
|
|
25
|
-
{ open: "[", close: "]" },
|
|
26
|
-
{ open: "<", close: ">" },
|
|
27
|
-
{ open: "(", close: ")" }
|
|
28
|
-
]
|
|
29
|
-
};
|
|
30
|
-
var language = {
|
|
31
|
-
defaultToken: "",
|
|
32
|
-
tokenPostfix: ".pla",
|
|
33
|
-
brackets: [
|
|
34
|
-
{ open: "[", close: "]", token: "delimiter.square" },
|
|
35
|
-
{ open: "<", close: ">", token: "delimiter.angle" },
|
|
36
|
-
{ open: "(", close: ")", token: "delimiter.parenthesis" }
|
|
37
|
-
],
|
|
38
|
-
keywords: [
|
|
39
|
-
".i",
|
|
40
|
-
".o",
|
|
41
|
-
".mv",
|
|
42
|
-
".ilb",
|
|
43
|
-
".ob",
|
|
44
|
-
".label",
|
|
45
|
-
".type",
|
|
46
|
-
".phase",
|
|
47
|
-
".pair",
|
|
48
|
-
".symbolic",
|
|
49
|
-
".symbolic-output",
|
|
50
|
-
".kiss",
|
|
51
|
-
".p",
|
|
52
|
-
".e",
|
|
53
|
-
".end"
|
|
54
|
-
],
|
|
55
|
-
// regular expressions
|
|
56
|
-
comment: /#.*$/,
|
|
57
|
-
identifier: /[a-zA-Z]+[a-zA-Z0-9_\-]*/,
|
|
58
|
-
plaContent: /[01\-~\|]+/,
|
|
59
|
-
// The main tokenizer for our languages
|
|
60
|
-
tokenizer: {
|
|
61
|
-
root: [
|
|
62
|
-
// comments and whitespace
|
|
63
|
-
{ include: "@whitespace" },
|
|
64
|
-
[/@comment/, "comment"],
|
|
65
|
-
// keyword
|
|
66
|
-
[
|
|
67
|
-
/\.([a-zA-Z_\-]+)/,
|
|
68
|
-
{
|
|
69
|
-
cases: {
|
|
70
|
-
"@eos": { token: "keyword.$1" },
|
|
71
|
-
"@keywords": {
|
|
72
|
-
cases: {
|
|
73
|
-
".type": { token: "keyword.$1", next: "@type" },
|
|
74
|
-
"@default": { token: "keyword.$1", next: "@keywordArg" }
|
|
75
|
-
}
|
|
76
|
-
},
|
|
77
|
-
"@default": { token: "keyword.$1" }
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
],
|
|
81
|
-
// identifiers
|
|
82
|
-
[/@identifier/, "identifier"],
|
|
83
|
-
// PLA row
|
|
84
|
-
[/@plaContent/, "string"]
|
|
85
|
-
],
|
|
86
|
-
whitespace: [[/[ \t\r\n]+/, ""]],
|
|
87
|
-
type: [{ include: "@whitespace" }, [/\w+/, { token: "type", next: "@pop" }]],
|
|
88
|
-
keywordArg: [
|
|
89
|
-
// whitespace
|
|
90
|
-
[
|
|
91
|
-
/[ \t\r\n]+/,
|
|
92
|
-
{
|
|
93
|
-
cases: {
|
|
94
|
-
"@eos": { token: "", next: "@pop" },
|
|
95
|
-
"@default": ""
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
],
|
|
99
|
-
// comments
|
|
100
|
-
[/@comment/, "comment", "@pop"],
|
|
101
|
-
// brackets
|
|
102
|
-
[
|
|
103
|
-
/[<>()\[\]]/,
|
|
104
|
-
{
|
|
105
|
-
cases: {
|
|
106
|
-
"@eos": { token: "@brackets", next: "@pop" },
|
|
107
|
-
"@default": "@brackets"
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
],
|
|
111
|
-
// numbers
|
|
112
|
-
[
|
|
113
|
-
/\-?\d+/,
|
|
114
|
-
{
|
|
115
|
-
cases: {
|
|
116
|
-
"@eos": { token: "number", next: "@pop" },
|
|
117
|
-
"@default": "number"
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
],
|
|
121
|
-
// identifiers
|
|
122
|
-
[
|
|
123
|
-
/@identifier/,
|
|
124
|
-
{
|
|
125
|
-
cases: {
|
|
126
|
-
"@eos": { token: "identifier", next: "@pop" },
|
|
127
|
-
"@default": "identifier"
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
],
|
|
131
|
-
// delimiter
|
|
132
|
-
[
|
|
133
|
-
/[;=]/,
|
|
134
|
-
{
|
|
135
|
-
cases: {
|
|
136
|
-
"@eos": { token: "delimiter", next: "@pop" },
|
|
137
|
-
"@default": "delimiter"
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
]
|
|
141
|
-
]
|
|
142
|
-
}
|
|
143
|
-
};
|
|
144
|
-
|
|
145
|
-
export { conf, language };
|