awa
This commit is contained in:
1
_internal/editor/esm/vs/basic-languages/pla/pla.contribution.d.ts
vendored
Normal file
1
_internal/editor/esm/vs/basic-languages/pla/pla.contribution.d.ts
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export {}
|
||||
@@ -0,0 +1,23 @@
|
||||
/*!-----------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Version: 0.54.0(7c2310116c57517348bbd868a21139f32454be22)
|
||||
* Released under the MIT license
|
||||
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
||||
*-----------------------------------------------------------------------------*/
|
||||
|
||||
|
||||
// src/basic-languages/pla/pla.contribution.ts
|
||||
import { registerLanguage } from "../_.contribution.js";
|
||||
registerLanguage({
|
||||
id: "pla",
|
||||
extensions: [".pla"],
|
||||
loader: () => {
|
||||
if (false) {
|
||||
return new Promise((resolve, reject) => {
|
||||
__require(["vs/basic-languages/pla/pla"], resolve, reject);
|
||||
});
|
||||
} else {
|
||||
return import("./pla.js");
|
||||
}
|
||||
}
|
||||
});
|
||||
147
_internal/editor/esm/vs/basic-languages/pla/pla.js
Normal file
147
_internal/editor/esm/vs/basic-languages/pla/pla.js
Normal file
@@ -0,0 +1,147 @@
|
||||
/*!-----------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Version: 0.54.0(7c2310116c57517348bbd868a21139f32454be22)
|
||||
* Released under the MIT license
|
||||
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
||||
*-----------------------------------------------------------------------------*/
|
||||
|
||||
|
||||
// src/basic-languages/pla/pla.ts
|
||||
var conf = {
|
||||
comments: {
|
||||
lineComment: "#"
|
||||
},
|
||||
brackets: [
|
||||
["[", "]"],
|
||||
["<", ">"],
|
||||
["(", ")"]
|
||||
],
|
||||
autoClosingPairs: [
|
||||
{ open: "[", close: "]" },
|
||||
{ open: "<", close: ">" },
|
||||
{ open: "(", close: ")" }
|
||||
],
|
||||
surroundingPairs: [
|
||||
{ open: "[", close: "]" },
|
||||
{ open: "<", close: ">" },
|
||||
{ open: "(", close: ")" }
|
||||
]
|
||||
};
|
||||
var language = {
|
||||
defaultToken: "",
|
||||
tokenPostfix: ".pla",
|
||||
brackets: [
|
||||
{ open: "[", close: "]", token: "delimiter.square" },
|
||||
{ open: "<", close: ">", token: "delimiter.angle" },
|
||||
{ open: "(", close: ")", token: "delimiter.parenthesis" }
|
||||
],
|
||||
keywords: [
|
||||
".i",
|
||||
".o",
|
||||
".mv",
|
||||
".ilb",
|
||||
".ob",
|
||||
".label",
|
||||
".type",
|
||||
".phase",
|
||||
".pair",
|
||||
".symbolic",
|
||||
".symbolic-output",
|
||||
".kiss",
|
||||
".p",
|
||||
".e",
|
||||
".end"
|
||||
],
|
||||
// regular expressions
|
||||
comment: /#.*$/,
|
||||
identifier: /[a-zA-Z]+[a-zA-Z0-9_\-]*/,
|
||||
plaContent: /[01\-~\|]+/,
|
||||
// The main tokenizer for our languages
|
||||
tokenizer: {
|
||||
root: [
|
||||
// comments and whitespace
|
||||
{ include: "@whitespace" },
|
||||
[/@comment/, "comment"],
|
||||
// keyword
|
||||
[
|
||||
/\.([a-zA-Z_\-]+)/,
|
||||
{
|
||||
cases: {
|
||||
"@eos": { token: "keyword.$1" },
|
||||
"@keywords": {
|
||||
cases: {
|
||||
".type": { token: "keyword.$1", next: "@type" },
|
||||
"@default": { token: "keyword.$1", next: "@keywordArg" }
|
||||
}
|
||||
},
|
||||
"@default": { token: "keyword.$1" }
|
||||
}
|
||||
}
|
||||
],
|
||||
// identifiers
|
||||
[/@identifier/, "identifier"],
|
||||
// PLA row
|
||||
[/@plaContent/, "string"]
|
||||
],
|
||||
whitespace: [[/[ \t\r\n]+/, ""]],
|
||||
type: [{ include: "@whitespace" }, [/\w+/, { token: "type", next: "@pop" }]],
|
||||
keywordArg: [
|
||||
// whitespace
|
||||
[
|
||||
/[ \t\r\n]+/,
|
||||
{
|
||||
cases: {
|
||||
"@eos": { token: "", next: "@pop" },
|
||||
"@default": ""
|
||||
}
|
||||
}
|
||||
],
|
||||
// comments
|
||||
[/@comment/, "comment", "@pop"],
|
||||
// brackets
|
||||
[
|
||||
/[<>()\[\]]/,
|
||||
{
|
||||
cases: {
|
||||
"@eos": { token: "@brackets", next: "@pop" },
|
||||
"@default": "@brackets"
|
||||
}
|
||||
}
|
||||
],
|
||||
// numbers
|
||||
[
|
||||
/\-?\d+/,
|
||||
{
|
||||
cases: {
|
||||
"@eos": { token: "number", next: "@pop" },
|
||||
"@default": "number"
|
||||
}
|
||||
}
|
||||
],
|
||||
// identifiers
|
||||
[
|
||||
/@identifier/,
|
||||
{
|
||||
cases: {
|
||||
"@eos": { token: "identifier", next: "@pop" },
|
||||
"@default": "identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
// delimiter
|
||||
[
|
||||
/[;=]/,
|
||||
{
|
||||
cases: {
|
||||
"@eos": { token: "delimiter", next: "@pop" },
|
||||
"@default": "delimiter"
|
||||
}
|
||||
}
|
||||
]
|
||||
]
|
||||
}
|
||||
};
|
||||
export {
|
||||
conf,
|
||||
language
|
||||
};
|
||||
Reference in New Issue
Block a user