Add technical; snippet support
This commit is contained in:
2
.env.docker
Normal file
2
.env.docker
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
EXTOLLO_LOGGING_LEVEL=3
|
||||||
|
COREID_BASE=https://coreid.garrettmills.dev
|
||||||
1
.idea/extollo.iml
generated
1
.idea/extollo.iml
generated
@@ -3,6 +3,7 @@
|
|||||||
<component name="NewModuleRootManager">
|
<component name="NewModuleRootManager">
|
||||||
<content url="file://$MODULE_DIR$">
|
<content url="file://$MODULE_DIR$">
|
||||||
<excludeFolder url="file://$MODULE_DIR$/exbuild" />
|
<excludeFolder url="file://$MODULE_DIR$/exbuild" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/lib" />
|
||||||
</content>
|
</content>
|
||||||
<orderEntry type="inheritedJdk" />
|
<orderEntry type="inheritedJdk" />
|
||||||
<orderEntry type="sourceFolder" forTests="false" />
|
<orderEntry type="sourceFolder" forTests="false" />
|
||||||
|
|||||||
1
.idea/vcs.xml
generated
1
.idea/vcs.xml
generated
@@ -2,6 +2,5 @@
|
|||||||
<project version="4">
|
<project version="4">
|
||||||
<component name="VcsDirectoryMappings">
|
<component name="VcsDirectoryMappings">
|
||||||
<mapping directory="" vcs="Git" />
|
<mapping directory="" vcs="Git" />
|
||||||
<mapping directory="$PROJECT_DIR$/../extollo_lib" vcs="Git" />
|
|
||||||
</component>
|
</component>
|
||||||
</project>
|
</project>
|
||||||
19
Dockerfile
Normal file
19
Dockerfile
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
FROM node:16
|
||||||
|
|
||||||
|
RUN yarn global add pnpm
|
||||||
|
|
||||||
|
RUN mkdir /app
|
||||||
|
|
||||||
|
COPY lib/ /app
|
||||||
|
|
||||||
|
RUN rm -f /app/.env
|
||||||
|
|
||||||
|
COPY .env.docker /app/.env
|
||||||
|
COPY package.json /app
|
||||||
|
COPY pnpm-lock.yaml /app
|
||||||
|
|
||||||
|
RUN cd /app && pnpm install
|
||||||
|
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
|
CMD ["node", "index.js"]
|
||||||
19
artillery.yml
Normal file
19
artillery.yml
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
config:
|
||||||
|
target: http://localhost:8000
|
||||||
|
phases:
|
||||||
|
- duration: 240
|
||||||
|
arrivalRate: 40
|
||||||
|
rampTo: 100
|
||||||
|
#rampTo: 200
|
||||||
|
name: Ramp up load
|
||||||
|
|
||||||
|
scenarios:
|
||||||
|
- name: "Load homepage"
|
||||||
|
flow:
|
||||||
|
- get:
|
||||||
|
url: "/"
|
||||||
|
- name: "Load technical"
|
||||||
|
flow:
|
||||||
|
- get:
|
||||||
|
url: "/technical"
|
||||||
|
|
||||||
@@ -8,7 +8,7 @@
|
|||||||
"lib": "lib"
|
"lib": "lib"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@extollo/lib": "^0.9.1",
|
"@extollo/lib": "^0.9.21",
|
||||||
"copyfiles": "^2.4.1",
|
"copyfiles": "^2.4.1",
|
||||||
"rimraf": "^3.0.2",
|
"rimraf": "^3.0.2",
|
||||||
"ts-expose-internals": "^4.5.4",
|
"ts-expose-internals": "^4.5.4",
|
||||||
|
|||||||
130
pnpm-lock.yaml
generated
130
pnpm-lock.yaml
generated
@@ -2,7 +2,7 @@ lockfileVersion: 5.3
|
|||||||
|
|
||||||
specifiers:
|
specifiers:
|
||||||
'@extollo/cc': ^0.6.0
|
'@extollo/cc': ^0.6.0
|
||||||
'@extollo/lib': ^0.9.1
|
'@extollo/lib': ^0.9.21
|
||||||
copyfiles: ^2.4.1
|
copyfiles: ^2.4.1
|
||||||
rimraf: ^3.0.2
|
rimraf: ^3.0.2
|
||||||
ts-expose-internals: ^4.5.4
|
ts-expose-internals: ^4.5.4
|
||||||
@@ -12,7 +12,7 @@ specifiers:
|
|||||||
zod: ^3.11.6
|
zod: ^3.11.6
|
||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
'@extollo/lib': 0.9.1
|
'@extollo/lib': 0.9.21
|
||||||
copyfiles: 2.4.1
|
copyfiles: 2.4.1
|
||||||
rimraf: 3.0.2
|
rimraf: 3.0.2
|
||||||
ts-expose-internals: 4.5.4
|
ts-expose-internals: 4.5.4
|
||||||
@@ -37,7 +37,7 @@ packages:
|
|||||||
core-js: 3.21.1
|
core-js: 3.21.1
|
||||||
fs-extra: 10.0.1
|
fs-extra: 10.0.1
|
||||||
graceful-fs: 4.2.9
|
graceful-fs: 4.2.9
|
||||||
inquirer: 8.2.2
|
inquirer: 8.2.0
|
||||||
regenerator-runtime: 0.13.9
|
regenerator-runtime: 0.13.9
|
||||||
source-map-support: 0.5.21
|
source-map-support: 0.5.21
|
||||||
terminal-link: 3.0.0
|
terminal-link: 3.0.0
|
||||||
@@ -110,8 +110,8 @@ packages:
|
|||||||
- supports-color
|
- supports-color
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/@extollo/lib/0.9.1:
|
/@extollo/lib/0.9.21:
|
||||||
resolution: {integrity: sha512-HPYwlKO0SHZsTQBQh5zTA8oErIEncdFWKr3LGs3LmL7Dq8rWN7dQ1qK2qk809Fc7FBqWeiZKuOsRA8yLkhr6Kg==}
|
resolution: {integrity: sha512-JKgUQWS9/lEho9ardayvZO8pkE4ZoPs4xuo6KAQDqp7wq4PjGjrGBKeHX7ViHeaFm/XelskaG9eu9Ox9RvirFQ==}
|
||||||
dependencies:
|
dependencies:
|
||||||
'@atao60/fse-cli': 0.1.7
|
'@atao60/fse-cli': 0.1.7
|
||||||
'@extollo/ui': 0.1.0_@types+node@14.18.12
|
'@extollo/ui': 0.1.0_@types+node@14.18.12
|
||||||
@@ -181,11 +181,11 @@ packages:
|
|||||||
- '@types/node'
|
- '@types/node'
|
||||||
dev: false
|
dev: false
|
||||||
|
|
||||||
/@mapbox/node-pre-gyp/1.0.8:
|
/@mapbox/node-pre-gyp/1.0.9:
|
||||||
resolution: {integrity: sha512-CMGKi28CF+qlbXh26hDe6NxCd7amqeAzEqnS6IHeO6LoaKyM/n+Xw3HT1COdq8cuioOdlKdqn/hCmqPUOMOywg==}
|
resolution: {integrity: sha512-aDF3S3rK9Q2gey/WAttUlISduDItz5BU3306M9Eyv6/oS40aMprnopshtlKTykxRNIBEZuRMaZAnbrQ4QtKGyw==}
|
||||||
hasBin: true
|
hasBin: true
|
||||||
dependencies:
|
dependencies:
|
||||||
detect-libc: 1.0.3
|
detect-libc: 2.0.1
|
||||||
https-proxy-agent: 5.0.0
|
https-proxy-agent: 5.0.0
|
||||||
make-dir: 3.1.0
|
make-dir: 3.1.0
|
||||||
node-fetch: 2.6.7
|
node-fetch: 2.6.7
|
||||||
@@ -322,13 +322,13 @@ packages:
|
|||||||
/@types/bcrypt/5.0.0:
|
/@types/bcrypt/5.0.0:
|
||||||
resolution: {integrity: sha512-agtcFKaruL8TmcvqbndlqHPSJgsolhf/qPWchFlgnW1gECTN/nKbFcoFnvKAQRFfKbh+BO6A3SWdJu9t+xF3Lw==}
|
resolution: {integrity: sha512-agtcFKaruL8TmcvqbndlqHPSJgsolhf/qPWchFlgnW1gECTN/nKbFcoFnvKAQRFfKbh+BO6A3SWdJu9t+xF3Lw==}
|
||||||
dependencies:
|
dependencies:
|
||||||
'@types/node': 14.18.12
|
'@types/node': 17.0.23
|
||||||
dev: false
|
dev: false
|
||||||
|
|
||||||
/@types/busboy/0.2.4:
|
/@types/busboy/0.2.4:
|
||||||
resolution: {integrity: sha512-f+ZCVjlcN8JW/zf3iR0GqO4gjOUlltMTtZjn+YR1mlK+MVu6esTiIecO0/GQlmYQPQLdBnc7+5vG3Xb+SkvFLw==}
|
resolution: {integrity: sha512-f+ZCVjlcN8JW/zf3iR0GqO4gjOUlltMTtZjn+YR1mlK+MVu6esTiIecO0/GQlmYQPQLdBnc7+5vG3Xb+SkvFLw==}
|
||||||
dependencies:
|
dependencies:
|
||||||
'@types/node': 14.18.12
|
'@types/node': 17.0.23
|
||||||
dev: false
|
dev: false
|
||||||
|
|
||||||
/@types/cli-color/2.0.2:
|
/@types/cli-color/2.0.2:
|
||||||
@@ -354,13 +354,13 @@ packages:
|
|||||||
/@types/ioredis/4.28.10:
|
/@types/ioredis/4.28.10:
|
||||||
resolution: {integrity: sha512-69LyhUgrXdgcNDv7ogs1qXZomnfOEnSmrmMFqKgt1XMJxmoOSG/u3wYy13yACIfKuMJ8IhKgHafDO3sx19zVQQ==}
|
resolution: {integrity: sha512-69LyhUgrXdgcNDv7ogs1qXZomnfOEnSmrmMFqKgt1XMJxmoOSG/u3wYy13yACIfKuMJ8IhKgHafDO3sx19zVQQ==}
|
||||||
dependencies:
|
dependencies:
|
||||||
'@types/node': 14.18.12
|
'@types/node': 17.0.23
|
||||||
dev: false
|
dev: false
|
||||||
|
|
||||||
/@types/jsonwebtoken/8.5.8:
|
/@types/jsonwebtoken/8.5.8:
|
||||||
resolution: {integrity: sha512-zm6xBQpFDIDM6o9r6HSgDeIcLy82TKWctCXEPbJJcXb5AKmi5BNNdLXneixK4lplX3PqIVcwLBCGE/kAGnlD4A==}
|
resolution: {integrity: sha512-zm6xBQpFDIDM6o9r6HSgDeIcLy82TKWctCXEPbJJcXb5AKmi5BNNdLXneixK4lplX3PqIVcwLBCGE/kAGnlD4A==}
|
||||||
dependencies:
|
dependencies:
|
||||||
'@types/node': 14.18.12
|
'@types/node': 17.0.23
|
||||||
dev: false
|
dev: false
|
||||||
|
|
||||||
/@types/mime-types/2.1.1:
|
/@types/mime-types/2.1.1:
|
||||||
@@ -389,7 +389,7 @@ packages:
|
|||||||
/@types/pg/8.6.5:
|
/@types/pg/8.6.5:
|
||||||
resolution: {integrity: sha512-tOkGtAqRVkHa/PVZicq67zuujI4Oorfglsr2IbKofDwBSysnaqSx7W1mDqFqdkGE6Fbgh+PZAl0r/BWON/mozw==}
|
resolution: {integrity: sha512-tOkGtAqRVkHa/PVZicq67zuujI4Oorfglsr2IbKofDwBSysnaqSx7W1mDqFqdkGE6Fbgh+PZAl0r/BWON/mozw==}
|
||||||
dependencies:
|
dependencies:
|
||||||
'@types/node': 14.18.12
|
'@types/node': 17.0.23
|
||||||
pg-protocol: 1.5.0
|
pg-protocol: 1.5.0
|
||||||
pg-types: 2.2.0
|
pg-types: 2.2.0
|
||||||
dev: false
|
dev: false
|
||||||
@@ -411,13 +411,13 @@ packages:
|
|||||||
/@types/ssh2-streams/0.1.9:
|
/@types/ssh2-streams/0.1.9:
|
||||||
resolution: {integrity: sha512-I2J9jKqfmvXLR5GomDiCoHrEJ58hAOmFrekfFqmCFd+A6gaEStvWnPykoWUwld1PNg4G5ag1LwdA+Lz1doRJqg==}
|
resolution: {integrity: sha512-I2J9jKqfmvXLR5GomDiCoHrEJ58hAOmFrekfFqmCFd+A6gaEStvWnPykoWUwld1PNg4G5ag1LwdA+Lz1doRJqg==}
|
||||||
dependencies:
|
dependencies:
|
||||||
'@types/node': 14.18.12
|
'@types/node': 17.0.23
|
||||||
dev: false
|
dev: false
|
||||||
|
|
||||||
/@types/ssh2/0.5.52:
|
/@types/ssh2/0.5.52:
|
||||||
resolution: {integrity: sha512-lbLLlXxdCZOSJMCInKH2+9V/77ET2J6NPQHpFI0kda61Dd1KglJs+fPQBchizmzYSOJBgdTajhPqBO1xxLywvg==}
|
resolution: {integrity: sha512-lbLLlXxdCZOSJMCInKH2+9V/77ET2J6NPQHpFI0kda61Dd1KglJs+fPQBchizmzYSOJBgdTajhPqBO1xxLywvg==}
|
||||||
dependencies:
|
dependencies:
|
||||||
'@types/node': 14.18.12
|
'@types/node': 17.0.23
|
||||||
'@types/ssh2-streams': 0.1.9
|
'@types/ssh2-streams': 0.1.9
|
||||||
dev: false
|
dev: false
|
||||||
|
|
||||||
@@ -454,7 +454,7 @@ packages:
|
|||||||
resolution: {integrity: sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==}
|
resolution: {integrity: sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==}
|
||||||
engines: {node: '>= 6.0.0'}
|
engines: {node: '>= 6.0.0'}
|
||||||
dependencies:
|
dependencies:
|
||||||
debug: 4.3.4
|
debug: 4.3.3
|
||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
- supports-color
|
- supports-color
|
||||||
dev: false
|
dev: false
|
||||||
@@ -566,7 +566,7 @@ packages:
|
|||||||
engines: {node: '>= 10.0.0'}
|
engines: {node: '>= 10.0.0'}
|
||||||
requiresBuild: true
|
requiresBuild: true
|
||||||
dependencies:
|
dependencies:
|
||||||
'@mapbox/node-pre-gyp': 1.0.8
|
'@mapbox/node-pre-gyp': 1.0.9
|
||||||
node-addon-api: 3.2.1
|
node-addon-api: 3.2.1
|
||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
- encoding
|
- encoding
|
||||||
@@ -841,18 +841,6 @@ packages:
|
|||||||
dependencies:
|
dependencies:
|
||||||
ms: 2.1.2
|
ms: 2.1.2
|
||||||
|
|
||||||
/debug/4.3.4:
|
|
||||||
resolution: {integrity: sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==}
|
|
||||||
engines: {node: '>=6.0'}
|
|
||||||
peerDependencies:
|
|
||||||
supports-color: '*'
|
|
||||||
peerDependenciesMeta:
|
|
||||||
supports-color:
|
|
||||||
optional: true
|
|
||||||
dependencies:
|
|
||||||
ms: 2.1.2
|
|
||||||
dev: false
|
|
||||||
|
|
||||||
/defaults/1.0.3:
|
/defaults/1.0.3:
|
||||||
resolution: {integrity: sha1-xlYFHpgX2f8I7YgUd/P+QBnz730=}
|
resolution: {integrity: sha1-xlYFHpgX2f8I7YgUd/P+QBnz730=}
|
||||||
dependencies:
|
dependencies:
|
||||||
@@ -867,10 +855,9 @@ packages:
|
|||||||
engines: {node: '>=0.10'}
|
engines: {node: '>=0.10'}
|
||||||
dev: false
|
dev: false
|
||||||
|
|
||||||
/detect-libc/1.0.3:
|
/detect-libc/2.0.1:
|
||||||
resolution: {integrity: sha1-+hN8S9aY7fVc1c0CrFWfkaTEups=}
|
resolution: {integrity: sha512-463v3ZeIrcWtdgIg6vI6XUncguvr2TnGl4SzDXinkt9mSLpBJKXT3mW6xT3VQdDN11+WVs29pgvivTc4Lp8v+w==}
|
||||||
engines: {node: '>=0.10'}
|
engines: {node: '>=8'}
|
||||||
hasBin: true
|
|
||||||
dev: false
|
dev: false
|
||||||
|
|
||||||
/dicer/0.3.0:
|
/dicer/0.3.0:
|
||||||
@@ -906,7 +893,7 @@ packages:
|
|||||||
/ecdsa-sig-formatter/1.0.11:
|
/ecdsa-sig-formatter/1.0.11:
|
||||||
resolution: {integrity: sha512-nagl3RYrbNv6kQkeJIpt6NJZy8twLB/2vtz6yN9Z4vRKHN4/QZJIEbqohALSgwKdnksuY3k5Addp5lg8sVoVcQ==}
|
resolution: {integrity: sha512-nagl3RYrbNv6kQkeJIpt6NJZy8twLB/2vtz6yN9Z4vRKHN4/QZJIEbqohALSgwKdnksuY3k5Addp5lg8sVoVcQ==}
|
||||||
dependencies:
|
dependencies:
|
||||||
safe-buffer: 5.2.1
|
safe-buffer: 5.1.2
|
||||||
dev: false
|
dev: false
|
||||||
|
|
||||||
/emoji-regex/8.0.0:
|
/emoji-regex/8.0.0:
|
||||||
@@ -1081,7 +1068,7 @@ packages:
|
|||||||
console-control-strings: 1.1.0
|
console-control-strings: 1.1.0
|
||||||
has-unicode: 2.0.1
|
has-unicode: 2.0.1
|
||||||
object-assign: 4.1.1
|
object-assign: 4.1.1
|
||||||
signal-exit: 3.0.7
|
signal-exit: 3.0.6
|
||||||
string-width: 4.2.3
|
string-width: 4.2.3
|
||||||
strip-ansi: 6.0.1
|
strip-ansi: 6.0.1
|
||||||
wide-align: 1.1.5
|
wide-align: 1.1.5
|
||||||
@@ -1143,7 +1130,7 @@ packages:
|
|||||||
engines: {node: '>=0.4.7'}
|
engines: {node: '>=0.4.7'}
|
||||||
hasBin: true
|
hasBin: true
|
||||||
dependencies:
|
dependencies:
|
||||||
minimist: 1.2.6
|
minimist: 1.2.5
|
||||||
neo-async: 2.6.2
|
neo-async: 2.6.2
|
||||||
source-map: 0.6.1
|
source-map: 0.6.1
|
||||||
wordwrap: 1.0.0
|
wordwrap: 1.0.0
|
||||||
@@ -1182,7 +1169,7 @@ packages:
|
|||||||
engines: {node: '>= 6'}
|
engines: {node: '>= 6'}
|
||||||
dependencies:
|
dependencies:
|
||||||
agent-base: 6.0.2
|
agent-base: 6.0.2
|
||||||
debug: 4.3.4
|
debug: 4.3.3
|
||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
- supports-color
|
- supports-color
|
||||||
dev: false
|
dev: false
|
||||||
@@ -1235,26 +1222,6 @@ packages:
|
|||||||
strip-ansi: 6.0.0
|
strip-ansi: 6.0.0
|
||||||
through: 2.3.8
|
through: 2.3.8
|
||||||
|
|
||||||
/inquirer/8.2.2:
|
|
||||||
resolution: {integrity: sha512-pG7I/si6K/0X7p1qU+rfWnpTE1UIkTONN1wxtzh0d+dHXtT/JG6qBgLxoyHVsQa8cFABxAPh0pD6uUUHiAoaow==}
|
|
||||||
engines: {node: '>=12.0.0'}
|
|
||||||
dependencies:
|
|
||||||
ansi-escapes: 4.3.2
|
|
||||||
chalk: 4.1.2
|
|
||||||
cli-cursor: 3.1.0
|
|
||||||
cli-width: 3.0.0
|
|
||||||
external-editor: 3.1.0
|
|
||||||
figures: 3.2.0
|
|
||||||
lodash: 4.17.21
|
|
||||||
mute-stream: 0.0.8
|
|
||||||
ora: 5.4.1
|
|
||||||
run-async: 2.4.1
|
|
||||||
rxjs: 7.5.5
|
|
||||||
string-width: 4.2.3
|
|
||||||
strip-ansi: 6.0.1
|
|
||||||
through: 2.3.8
|
|
||||||
dev: false
|
|
||||||
|
|
||||||
/interpret/1.4.0:
|
/interpret/1.4.0:
|
||||||
resolution: {integrity: sha512-agE4QfB2Lkp9uICn7BAqoscw4SZP9kTE2hxiFI3jBPmXJfdqiahTbUuKGsMoN2GtqL9AxhYioAcVvgsb1HvRbA==}
|
resolution: {integrity: sha512-agE4QfB2Lkp9uICn7BAqoscw4SZP9kTE2hxiFI3jBPmXJfdqiahTbUuKGsMoN2GtqL9AxhYioAcVvgsb1HvRbA==}
|
||||||
engines: {node: '>= 0.10'}
|
engines: {node: '>= 0.10'}
|
||||||
@@ -1264,7 +1231,7 @@ packages:
|
|||||||
engines: {node: '>=6'}
|
engines: {node: '>=6'}
|
||||||
dependencies:
|
dependencies:
|
||||||
cluster-key-slot: 1.1.0
|
cluster-key-slot: 1.1.0
|
||||||
debug: 4.3.4
|
debug: 4.3.3
|
||||||
denque: 1.5.1
|
denque: 1.5.1
|
||||||
lodash.defaults: 4.2.0
|
lodash.defaults: 4.2.0
|
||||||
lodash.flatten: 4.4.0
|
lodash.flatten: 4.4.0
|
||||||
@@ -1391,7 +1358,7 @@ packages:
|
|||||||
lodash.isplainobject: 4.0.6
|
lodash.isplainobject: 4.0.6
|
||||||
lodash.isstring: 4.0.1
|
lodash.isstring: 4.0.1
|
||||||
lodash.once: 4.1.1
|
lodash.once: 4.1.1
|
||||||
ms: 2.1.3
|
ms: 2.1.2
|
||||||
semver: 5.7.1
|
semver: 5.7.1
|
||||||
dev: false
|
dev: false
|
||||||
|
|
||||||
@@ -1407,14 +1374,14 @@ packages:
|
|||||||
dependencies:
|
dependencies:
|
||||||
buffer-equal-constant-time: 1.0.1
|
buffer-equal-constant-time: 1.0.1
|
||||||
ecdsa-sig-formatter: 1.0.11
|
ecdsa-sig-formatter: 1.0.11
|
||||||
safe-buffer: 5.2.1
|
safe-buffer: 5.1.2
|
||||||
dev: false
|
dev: false
|
||||||
|
|
||||||
/jws/3.2.2:
|
/jws/3.2.2:
|
||||||
resolution: {integrity: sha512-YHlZCB6lMTllWDtSPHz/ZXTsi8S00usEV6v1tjq8tOUZzw7DpSDWVXjXDre6ed1w/pd495ODpHZYSdkRTsa0HA==}
|
resolution: {integrity: sha512-YHlZCB6lMTllWDtSPHz/ZXTsi8S00usEV6v1tjq8tOUZzw7DpSDWVXjXDre6ed1w/pd495ODpHZYSdkRTsa0HA==}
|
||||||
dependencies:
|
dependencies:
|
||||||
jwa: 1.4.1
|
jwa: 1.4.1
|
||||||
safe-buffer: 5.2.1
|
safe-buffer: 5.1.2
|
||||||
dev: false
|
dev: false
|
||||||
|
|
||||||
/kind-of/6.0.3:
|
/kind-of/6.0.3:
|
||||||
@@ -1552,19 +1519,9 @@ packages:
|
|||||||
dependencies:
|
dependencies:
|
||||||
brace-expansion: 1.1.11
|
brace-expansion: 1.1.11
|
||||||
|
|
||||||
/minimatch/3.1.2:
|
|
||||||
resolution: {integrity: sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==}
|
|
||||||
dependencies:
|
|
||||||
brace-expansion: 1.1.11
|
|
||||||
dev: false
|
|
||||||
|
|
||||||
/minimist/1.2.5:
|
/minimist/1.2.5:
|
||||||
resolution: {integrity: sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==}
|
resolution: {integrity: sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==}
|
||||||
|
|
||||||
/minimist/1.2.6:
|
|
||||||
resolution: {integrity: sha512-Jsjnk4bw3YJqYzbdyBiNsPWHPfO++UGG749Cxs6peCu5Xg4nrena6OVxOYxrQTqww0Jmwt+Ref8rggumkTLz9Q==}
|
|
||||||
dev: false
|
|
||||||
|
|
||||||
/minipass/3.1.6:
|
/minipass/3.1.6:
|
||||||
resolution: {integrity: sha512-rty5kpw9/z8SX9dmxblFA6edItUmwJgMeYDZRrwlIVN27i8gysGbznJwUggw2V/FVqFSDdWy040ZPS811DYAqQ==}
|
resolution: {integrity: sha512-rty5kpw9/z8SX9dmxblFA6edItUmwJgMeYDZRrwlIVN27i8gysGbznJwUggw2V/FVqFSDdWy040ZPS811DYAqQ==}
|
||||||
engines: {node: '>=8'}
|
engines: {node: '>=8'}
|
||||||
@@ -1588,10 +1545,6 @@ packages:
|
|||||||
/ms/2.1.2:
|
/ms/2.1.2:
|
||||||
resolution: {integrity: sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==}
|
resolution: {integrity: sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==}
|
||||||
|
|
||||||
/ms/2.1.3:
|
|
||||||
resolution: {integrity: sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==}
|
|
||||||
dev: false
|
|
||||||
|
|
||||||
/mute-stream/0.0.8:
|
/mute-stream/0.0.8:
|
||||||
resolution: {integrity: sha512-nnbWWOkoWyUsTjKrhgD0dcz22mdkSnpYqbEjIm2nhwhuxlSkpywJmBo8h0ZqJdkp73mb90SssHkN4rsRaBAfAA==}
|
resolution: {integrity: sha512-nnbWWOkoWyUsTjKrhgD0dcz22mdkSnpYqbEjIm2nhwhuxlSkpywJmBo8h0ZqJdkp73mb90SssHkN4rsRaBAfAA==}
|
||||||
|
|
||||||
@@ -1867,7 +1820,7 @@ packages:
|
|||||||
jstransformer: 1.0.0
|
jstransformer: 1.0.0
|
||||||
pug-error: 2.0.0
|
pug-error: 2.0.0
|
||||||
pug-walk: 2.0.0
|
pug-walk: 2.0.0
|
||||||
resolve: 1.22.0
|
resolve: 1.21.0
|
||||||
dev: false
|
dev: false
|
||||||
|
|
||||||
/pug-lexer/5.0.1:
|
/pug-lexer/5.0.1:
|
||||||
@@ -2007,15 +1960,6 @@ packages:
|
|||||||
path-parse: 1.0.7
|
path-parse: 1.0.7
|
||||||
supports-preserve-symlinks-flag: 1.0.0
|
supports-preserve-symlinks-flag: 1.0.0
|
||||||
|
|
||||||
/resolve/1.22.0:
|
|
||||||
resolution: {integrity: sha512-Hhtrw0nLeSrFQ7phPp4OOcVjLPIeMnRlr5mcnVuMe7M/7eBn98A3hmFRLoFo3DLZkivSYwhRUJTyPyWAk56WLw==}
|
|
||||||
hasBin: true
|
|
||||||
dependencies:
|
|
||||||
is-core-module: 2.8.1
|
|
||||||
path-parse: 1.0.7
|
|
||||||
supports-preserve-symlinks-flag: 1.0.0
|
|
||||||
dev: false
|
|
||||||
|
|
||||||
/restore-cursor/3.1.0:
|
/restore-cursor/3.1.0:
|
||||||
resolution: {integrity: sha512-l+sSefzHpj5qimhFSE5a8nufZYAM3sBSVMAPtYkmC+4EH2anSGaEMXSD0izRQbu9nfyQ9y5JrVmp7E8oZrUjvA==}
|
resolution: {integrity: sha512-l+sSefzHpj5qimhFSE5a8nufZYAM3sBSVMAPtYkmC+4EH2anSGaEMXSD0izRQbu9nfyQ9y5JrVmp7E8oZrUjvA==}
|
||||||
engines: {node: '>=8'}
|
engines: {node: '>=8'}
|
||||||
@@ -2051,19 +1995,9 @@ packages:
|
|||||||
dependencies:
|
dependencies:
|
||||||
tslib: 2.3.1
|
tslib: 2.3.1
|
||||||
|
|
||||||
/rxjs/7.5.5:
|
|
||||||
resolution: {integrity: sha512-sy+H0pQofO95VDmFLzyaw9xNJU4KTRSwQIGM6+iG3SypAtCiLDzpeG8sJrNCWn2Up9km+KhkvTdbkrdy+yzZdw==}
|
|
||||||
dependencies:
|
|
||||||
tslib: 2.3.1
|
|
||||||
dev: false
|
|
||||||
|
|
||||||
/safe-buffer/5.1.2:
|
/safe-buffer/5.1.2:
|
||||||
resolution: {integrity: sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==}
|
resolution: {integrity: sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==}
|
||||||
|
|
||||||
/safe-buffer/5.2.1:
|
|
||||||
resolution: {integrity: sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==}
|
|
||||||
dev: false
|
|
||||||
|
|
||||||
/safer-buffer/2.1.2:
|
/safer-buffer/2.1.2:
|
||||||
resolution: {integrity: sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==}
|
resolution: {integrity: sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==}
|
||||||
|
|
||||||
@@ -2108,10 +2042,6 @@ packages:
|
|||||||
/signal-exit/3.0.6:
|
/signal-exit/3.0.6:
|
||||||
resolution: {integrity: sha512-sDl4qMFpijcGw22U5w63KmD3cZJfBuFlVNbVMKje2keoKML7X2UzWbc4XrmEbDwg0NXJc3yv4/ox7b+JWb57kQ==}
|
resolution: {integrity: sha512-sDl4qMFpijcGw22U5w63KmD3cZJfBuFlVNbVMKje2keoKML7X2UzWbc4XrmEbDwg0NXJc3yv4/ox7b+JWb57kQ==}
|
||||||
|
|
||||||
/signal-exit/3.0.7:
|
|
||||||
resolution: {integrity: sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==}
|
|
||||||
dev: false
|
|
||||||
|
|
||||||
/slash/3.0.0:
|
/slash/3.0.0:
|
||||||
resolution: {integrity: sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==}
|
resolution: {integrity: sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==}
|
||||||
engines: {node: '>=8'}
|
engines: {node: '>=8'}
|
||||||
@@ -2507,7 +2437,7 @@ packages:
|
|||||||
lodash: 4.17.21
|
lodash: 4.17.21
|
||||||
lunr: 2.3.9
|
lunr: 2.3.9
|
||||||
marked: 2.0.7
|
marked: 2.0.7
|
||||||
minimatch: 3.1.2
|
minimatch: 3.0.4
|
||||||
progress: 2.0.3
|
progress: 2.0.3
|
||||||
shelljs: 0.8.5
|
shelljs: 0.8.5
|
||||||
shiki: 0.9.15
|
shiki: 0.9.15
|
||||||
|
|||||||
@@ -2,4 +2,8 @@ import { env } from '@extollo/lib'
|
|||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: env('APP_NAME', 'Garrett Mills'),
|
name: env('APP_NAME', 'Garrett Mills'),
|
||||||
|
|
||||||
|
analytics: {
|
||||||
|
optOutCookie: env('ANALYTICS_OPT_OUT_COOKIE', 'analytics.opt-out'),
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,7 +8,6 @@ import {
|
|||||||
CacheQueue,
|
CacheQueue,
|
||||||
BusConnectorConfig, QueueConfig, SyncQueue
|
BusConnectorConfig, QueueConfig, SyncQueue
|
||||||
} from "@extollo/lib"
|
} from "@extollo/lib"
|
||||||
import {LogRequest} from "../http/middlewares/LogRequest.middleware";
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
debug: env('DEBUG_MODE', false),
|
debug: env('DEBUG_MODE', false),
|
||||||
@@ -60,7 +59,7 @@ export default {
|
|||||||
|
|
||||||
middleware: {
|
middleware: {
|
||||||
global: {
|
global: {
|
||||||
pre: [LogRequest],
|
pre: [],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import {Controller, view, Injectable, SecurityContext, Inject, Collection} from '@extollo/lib'
|
import {Controller, view, Injectable, SecurityContext, Inject, Collection, Config, Routing} from '@extollo/lib'
|
||||||
import {WorkItem} from '../../models/WorkItem.model'
|
import {WorkItem} from '../../models/WorkItem.model'
|
||||||
import {FeedPost} from '../../models/FeedPost.model'
|
import {FeedPost} from '../../models/FeedPost.model'
|
||||||
|
|
||||||
@@ -7,6 +7,12 @@ export class Home extends Controller {
|
|||||||
@Inject()
|
@Inject()
|
||||||
protected readonly security!: SecurityContext
|
protected readonly security!: SecurityContext
|
||||||
|
|
||||||
|
@Inject()
|
||||||
|
protected readonly config!: Config
|
||||||
|
|
||||||
|
@Inject()
|
||||||
|
protected readonly routing!: Routing
|
||||||
|
|
||||||
public async welcome() {
|
public async welcome() {
|
||||||
const workItems = await this.getWorkItems()
|
const workItems = await this.getWorkItems()
|
||||||
const feedPosts = await this.getFeedPosts()
|
const feedPosts = await this.getFeedPosts()
|
||||||
@@ -31,6 +37,42 @@ export class Home extends Controller {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public technical() {
|
||||||
|
const isOptOut = this.request.cookies.has(this.config.get('app.analytics.optOutCookie'))
|
||||||
|
|
||||||
|
return view('technical', {
|
||||||
|
isOptOut,
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
public optOutPrompt() {
|
||||||
|
return view('message', {
|
||||||
|
title: 'Analytics Opt-Out',
|
||||||
|
message: 'This will set a cookie to disable analytics recording in your browser on all <code>*.garrettmills.dev</code> sites. Continue?',
|
||||||
|
buttonAction: this.routing.getNamedPath('opt-out').toRemote,
|
||||||
|
buttonMethod: 'post',
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
public optOut() {
|
||||||
|
this.request.cookies.set(
|
||||||
|
this.config.get('app.analytics.optOutCookie'),
|
||||||
|
true,
|
||||||
|
{
|
||||||
|
expires: new Date(Date.now() + (1000 * 60 * 60 * 24 * 365 * 100)),
|
||||||
|
secure: true,
|
||||||
|
httpOnly: true,
|
||||||
|
path: '/',
|
||||||
|
},
|
||||||
|
)
|
||||||
|
|
||||||
|
return view('message', {
|
||||||
|
title: 'Analytics Opt-Out',
|
||||||
|
message: 'You have been opted-out of analytics recording.',
|
||||||
|
buttonAction: this.routing.getNamedPath('home').toRemote,
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
protected async getFeedPosts(all = false): Promise<Collection<FeedPost>> {
|
protected async getFeedPosts(all = false): Promise<Collection<FeedPost>> {
|
||||||
const query = FeedPost.query<FeedPost>()
|
const query = FeedPost.query<FeedPost>()
|
||||||
.orderByDescending('posted_at')
|
.orderByDescending('posted_at')
|
||||||
|
|||||||
38
src/app/http/controllers/Snippets.controller.ts
Normal file
38
src/app/http/controllers/Snippets.controller.ts
Normal file
@@ -0,0 +1,38 @@
|
|||||||
|
import {Controller, http, HTTPStatus, Inject, Injectable, Logging, view} from '@extollo/lib'
|
||||||
|
import {Snippet} from '../../models/Snippet.model'
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Snippets Controller
|
||||||
|
* ------------------------------------
|
||||||
|
* Put some description here.
|
||||||
|
*/
|
||||||
|
@Injectable()
|
||||||
|
export class Snippets extends Controller {
|
||||||
|
@Inject()
|
||||||
|
protected readonly logging!: Logging
|
||||||
|
|
||||||
|
public async viewSnippet() {
|
||||||
|
const slug = this.request.safe('slug').string()
|
||||||
|
const snippet = await Snippet.query<Snippet>()
|
||||||
|
.where('slug', '=', slug)
|
||||||
|
.first()
|
||||||
|
|
||||||
|
if ( !snippet ) {
|
||||||
|
return http(HTTPStatus.http404, 'Snippet URL is invalid.')
|
||||||
|
}
|
||||||
|
|
||||||
|
const needsAccessKey = snippet?.accessKey && snippet.accessKey !== this.request.input('accessKey')
|
||||||
|
const needsConfirm = snippet?.singleAccessOnly && !this.request.input('confirmSingleAccess')
|
||||||
|
|
||||||
|
if ( snippet?.singleAccessOnly && !needsAccessKey && !needsConfirm ) {
|
||||||
|
await snippet.delete()
|
||||||
|
}
|
||||||
|
|
||||||
|
return view('snippet', {
|
||||||
|
snippet,
|
||||||
|
needsAccessKey,
|
||||||
|
needsConfirm,
|
||||||
|
accessKey: this.request.input('accessKey'),
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
import {Inject, Injectable, Logging, Middleware} from '@extollo/lib'
|
|
||||||
|
|
||||||
@Injectable()
|
|
||||||
export class LogRequest extends Middleware {
|
|
||||||
@Inject()
|
|
||||||
protected readonly logging!: Logging
|
|
||||||
|
|
||||||
public async apply() {
|
|
||||||
this.logging.info(`Incoming request: ${this.request.method} @ ${this.request.path}`)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
39
src/app/http/middlewares/PageView.middleware.ts
Normal file
39
src/app/http/middlewares/PageView.middleware.ts
Normal file
@@ -0,0 +1,39 @@
|
|||||||
|
import {make, Middleware, Injectable, Inject, SecurityContext, Logging, Config} from '@extollo/lib'
|
||||||
|
import * as PageViewModule from '../../models/PageView.model'
|
||||||
|
|
||||||
|
/**
|
||||||
|
* PageView Middleware
|
||||||
|
* --------------------------------------------
|
||||||
|
* Record the page view to the analytics table.
|
||||||
|
*/
|
||||||
|
@Injectable()
|
||||||
|
export class PageView extends Middleware {
|
||||||
|
@Inject()
|
||||||
|
protected readonly security!: SecurityContext
|
||||||
|
|
||||||
|
@Inject()
|
||||||
|
protected readonly logging!: Logging
|
||||||
|
|
||||||
|
@Inject()
|
||||||
|
protected readonly config!: Config
|
||||||
|
|
||||||
|
public async apply() {
|
||||||
|
if ( this.request.cookies.has(this.config.get('app.analytics.optOutCookie')) ) {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
const view = make<PageViewModule.PageView>(PageViewModule.PageView)
|
||||||
|
const user = this.security.getUser()
|
||||||
|
|
||||||
|
// hostname
|
||||||
|
view.ip = `${this.request.address.address}:${this.request.address.port}`
|
||||||
|
view.method = this.request.method
|
||||||
|
view.endpoint = this.request.path
|
||||||
|
view.userId = user ? Number(user.getIdentifier()) : undefined
|
||||||
|
view.xhr = this.request.isXHR
|
||||||
|
|
||||||
|
this.logging.debug(this.request)
|
||||||
|
|
||||||
|
await view.save()
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,14 +1,39 @@
|
|||||||
import {Route, SessionAuthMiddleware} from '@extollo/lib'
|
import {Route, SessionAuthMiddleware} from '@extollo/lib'
|
||||||
import {Home} from '../controllers/Home.controller'
|
import {Home} from '../controllers/Home.controller'
|
||||||
|
import {PageView} from '../middlewares/PageView.middleware'
|
||||||
|
import {Snippets} from '../controllers/Snippets.controller'
|
||||||
|
|
||||||
Route.group('/', () => {
|
Route
|
||||||
Route.get('/')
|
.group('/', () => {
|
||||||
.calls<Home>(Home, home => home.welcome)
|
Route.get('/')
|
||||||
|
.calls<Home>(Home, home => home.welcome)
|
||||||
|
.alias('home')
|
||||||
|
|
||||||
Route.get('/feed')
|
Route.get('/technical')
|
||||||
.calls<Home>(Home, home => home.feed)
|
.calls<Home>(Home, home => home.technical)
|
||||||
.alias('feed')
|
|
||||||
}).pre(SessionAuthMiddleware)
|
Route.get('/analytics/opt-out')
|
||||||
|
.calls<Home>(Home, home => home.optOutPrompt)
|
||||||
|
.alias('opt-out-prompt')
|
||||||
|
|
||||||
|
Route.post('/analytics/opt-out')
|
||||||
|
.calls<Home>(Home, home => home.optOut)
|
||||||
|
.alias('opt-out')
|
||||||
|
|
||||||
|
Route.get('/feed')
|
||||||
|
.calls<Home>(Home, home => home.feed)
|
||||||
|
.alias('feed')
|
||||||
|
|
||||||
|
Route.get('/snippet/:slug')
|
||||||
|
.calls<Snippets>(Snippets, snippets => snippets.viewSnippet)
|
||||||
|
|
||||||
|
Route.get('/test')
|
||||||
|
.handledBy(() => {
|
||||||
|
return 'Hello, World!'
|
||||||
|
})
|
||||||
|
})
|
||||||
|
.pre(SessionAuthMiddleware)
|
||||||
|
.pre(PageView)
|
||||||
|
|
||||||
// Route.group('', () => {
|
// Route.group('', () => {
|
||||||
// Route.get('/dash')
|
// Route.get('/dash')
|
||||||
|
|||||||
@@ -0,0 +1,65 @@
|
|||||||
|
import {DatabaseService, FieldType, Inject, Injectable, Migration, raw} from '@extollo/lib'
|
||||||
|
|
||||||
|
/**
|
||||||
|
* CreatePageViewsTableMigration
|
||||||
|
* ----------------------------------
|
||||||
|
* Table to record analytics data
|
||||||
|
*/
|
||||||
|
@Injectable()
|
||||||
|
export default class CreatePageViewsTableMigration extends Migration {
|
||||||
|
@Inject()
|
||||||
|
protected readonly db!: DatabaseService
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Apply the migration.
|
||||||
|
*/
|
||||||
|
async up(): Promise<void> {
|
||||||
|
const schema = this.db.get().schema()
|
||||||
|
const table = await schema.table('page_views')
|
||||||
|
|
||||||
|
table.primaryKey('page_view_id').required()
|
||||||
|
|
||||||
|
table.column('visited_at')
|
||||||
|
.type(FieldType.timestamp)
|
||||||
|
.default(raw('NOW()'))
|
||||||
|
.required()
|
||||||
|
|
||||||
|
table.column('hostname')
|
||||||
|
.type(FieldType.varchar)
|
||||||
|
.nullable()
|
||||||
|
|
||||||
|
table.column('ip')
|
||||||
|
.type(FieldType.varchar)
|
||||||
|
.nullable()
|
||||||
|
|
||||||
|
table.column('method')
|
||||||
|
.type(FieldType.varchar)
|
||||||
|
.required()
|
||||||
|
|
||||||
|
table.column('endpoint')
|
||||||
|
.type(FieldType.varchar)
|
||||||
|
.required()
|
||||||
|
|
||||||
|
table.column('user_id')
|
||||||
|
.type(FieldType.bigint)
|
||||||
|
.nullable()
|
||||||
|
|
||||||
|
table.column('xhr')
|
||||||
|
.type(FieldType.bool)
|
||||||
|
.default(false)
|
||||||
|
|
||||||
|
await schema.commit(table)
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Undo the migration.
|
||||||
|
*/
|
||||||
|
async down(): Promise<void> {
|
||||||
|
const schema = this.db.get().schema()
|
||||||
|
const table = await schema.table('page_views')
|
||||||
|
|
||||||
|
table.dropIfExists()
|
||||||
|
|
||||||
|
await schema.commit(table)
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,60 @@
|
|||||||
|
import {DatabaseService, FieldType, Inject, Injectable, Migration} from '@extollo/lib'
|
||||||
|
|
||||||
|
/**
|
||||||
|
* CreateSnippetsTableMigration
|
||||||
|
* ----------------------------------
|
||||||
|
* Create table to store code snippets and gists.
|
||||||
|
*/
|
||||||
|
@Injectable()
|
||||||
|
export default class CreateSnippetsTableMigration extends Migration {
|
||||||
|
@Inject()
|
||||||
|
protected readonly db!: DatabaseService
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Apply the migration.
|
||||||
|
*/
|
||||||
|
async up(): Promise<void> {
|
||||||
|
const schema = this.db.get().schema()
|
||||||
|
const table = await schema.table('snippets')
|
||||||
|
|
||||||
|
table.primaryKey('snippet_id').required()
|
||||||
|
|
||||||
|
table.column('slug')
|
||||||
|
.type(FieldType.varchar)
|
||||||
|
.required()
|
||||||
|
|
||||||
|
table.column('users_only')
|
||||||
|
.type(FieldType.bool)
|
||||||
|
.default(false)
|
||||||
|
|
||||||
|
table.column('single_access_only')
|
||||||
|
.type(FieldType.bool)
|
||||||
|
.default(false)
|
||||||
|
|
||||||
|
table.column('access_key')
|
||||||
|
.type(FieldType.varchar)
|
||||||
|
.nullable()
|
||||||
|
|
||||||
|
table.column('syntax')
|
||||||
|
.type(FieldType.varchar)
|
||||||
|
.nullable()
|
||||||
|
|
||||||
|
table.column('body')
|
||||||
|
.type(FieldType.text)
|
||||||
|
.default('')
|
||||||
|
|
||||||
|
await schema.commit(table)
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Undo the migration.
|
||||||
|
*/
|
||||||
|
async down(): Promise<void> {
|
||||||
|
const schema = this.db.get().schema()
|
||||||
|
const table = await schema.table('snippets')
|
||||||
|
|
||||||
|
table.dropIfExists()
|
||||||
|
|
||||||
|
await schema.commit(table)
|
||||||
|
}
|
||||||
|
}
|
||||||
30
src/app/models/PageView.model.ts
Normal file
30
src/app/models/PageView.model.ts
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
import {Field, FieldType, HTTPMethod, Model} from '@extollo/lib'
|
||||||
|
|
||||||
|
export class PageView extends Model<PageView> {
|
||||||
|
protected static table = 'page_views'
|
||||||
|
protected static key = 'page_view_id'
|
||||||
|
|
||||||
|
@Field(FieldType.serial, 'page_view_id')
|
||||||
|
public pageViewId?: number
|
||||||
|
|
||||||
|
@Field(FieldType.timestamp, 'visited_at')
|
||||||
|
public visitedAt = new Date()
|
||||||
|
|
||||||
|
@Field(FieldType.varchar)
|
||||||
|
public hostname?: string
|
||||||
|
|
||||||
|
@Field(FieldType.varchar)
|
||||||
|
public ip?: string
|
||||||
|
|
||||||
|
@Field(FieldType.varchar)
|
||||||
|
public method: HTTPMethod = 'get'
|
||||||
|
|
||||||
|
@Field(FieldType.varchar)
|
||||||
|
public endpoint!: string
|
||||||
|
|
||||||
|
@Field(FieldType.bigint, 'user_id')
|
||||||
|
public userId?: number
|
||||||
|
|
||||||
|
@Field(FieldType.bool)
|
||||||
|
public xhr = false
|
||||||
|
}
|
||||||
33
src/app/models/Snippet.model.ts
Normal file
33
src/app/models/Snippet.model.ts
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
import {Field, FieldType, Injectable, Model} from '@extollo/lib'
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Snippet Model
|
||||||
|
* -----------------------------------
|
||||||
|
* A code snippet or gist for display on the website.
|
||||||
|
*/
|
||||||
|
@Injectable()
|
||||||
|
export class Snippet extends Model<Snippet> {
|
||||||
|
protected static table = 'snippets'
|
||||||
|
protected static key = 'snippet_id'
|
||||||
|
|
||||||
|
@Field(FieldType.serial, 'snippet_id')
|
||||||
|
public snippetId?: number
|
||||||
|
|
||||||
|
@Field(FieldType.varchar)
|
||||||
|
public slug!: string
|
||||||
|
|
||||||
|
@Field(FieldType.bool, 'users_only')
|
||||||
|
public usersOnly = false
|
||||||
|
|
||||||
|
@Field(FieldType.bool, 'single_access_only')
|
||||||
|
public singleAccessOnly = false
|
||||||
|
|
||||||
|
@Field(FieldType.varchar, 'access_key')
|
||||||
|
public accessKey?: string
|
||||||
|
|
||||||
|
@Field(FieldType.varchar)
|
||||||
|
public syntax?: string
|
||||||
|
|
||||||
|
@Field(FieldType.text)
|
||||||
|
public body = ''
|
||||||
|
}
|
||||||
1401
src/app/resources/assets/monaco/package/CHANGELOG.md
Normal file
1401
src/app/resources/assets/monaco/package/CHANGELOG.md
Normal file
File diff suppressed because it is too large
Load Diff
21
src/app/resources/assets/monaco/package/LICENSE
Normal file
21
src/app/resources/assets/monaco/package/LICENSE
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
The MIT License (MIT)
|
||||||
|
|
||||||
|
Copyright (c) 2016 - present Microsoft Corporation
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
SOFTWARE.
|
||||||
96
src/app/resources/assets/monaco/package/README.md
Normal file
96
src/app/resources/assets/monaco/package/README.md
Normal file
@@ -0,0 +1,96 @@
|
|||||||
|
# Monaco Editor
|
||||||
|
|
||||||
|
[](https://dev.azure.com/ms/monaco-editor/_build/latest?definitionId=3)
|
||||||
|
|
||||||
|
The Monaco Editor is the code editor which powers [VS Code](https://github.com/microsoft/vscode), with the features better described [here](https://code.visualstudio.com/docs/editor/editingevolved).
|
||||||
|
|
||||||
|
Please note that this repository contains no source code for the code editor, it only contains the scripts to package everything together and ship the `monaco-editor` npm module.
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
## Try it out
|
||||||
|
|
||||||
|
Try the editor out [on our website](https://microsoft.github.io/monaco-editor/index.html).
|
||||||
|
|
||||||
|
## Installing
|
||||||
|
|
||||||
|
```
|
||||||
|
$ npm install monaco-editor
|
||||||
|
```
|
||||||
|
|
||||||
|
You will get:
|
||||||
|
|
||||||
|
- inside `esm`: ESM version of the editor (compatible with e.g. webpack)
|
||||||
|
- inside `dev`: AMD bundled, not minified
|
||||||
|
- inside `min`: AMD bundled, and minified
|
||||||
|
- inside `min-maps`: source maps for `min`
|
||||||
|
- `monaco.d.ts`: this specifies the API of the editor (this is what is actually versioned, everything else is considered private and might break with any release).
|
||||||
|
|
||||||
|
It is recommended to develop against the `dev` version, and in production to use the `min` version.
|
||||||
|
|
||||||
|
## Documentation
|
||||||
|
|
||||||
|
- Learn how to integrate the editor with these [complete samples](./samples/).
|
||||||
|
- [Integrate the AMD version](./docs/integrate-amd.md).
|
||||||
|
- [Integrate the ESM version](./docs/integrate-esm.md)
|
||||||
|
- Learn how to use the editor API and try out your own customizations in the [playground](https://microsoft.github.io/monaco-editor/playground.html).
|
||||||
|
- Explore the [API docs](https://microsoft.github.io/monaco-editor/api/index.html) or read them straight from [`monaco.d.ts`](https://github.com/microsoft/monaco-editor/blob/main/website/typedoc/monaco.d.ts).
|
||||||
|
- Read [this guide](https://github.com/microsoft/monaco-editor/wiki/Accessibility-Guide-for-Integrators) to ensure the editor is accessible to all your users!
|
||||||
|
- Create a Monarch tokenizer for a new programming language [in the Monarch playground](https://microsoft.github.io/monaco-editor/monarch.html).
|
||||||
|
- Ask questions on [StackOverflow](https://stackoverflow.com/questions/tagged/monaco-editor)! Search open and closed issues, there are a lot of tips in there!
|
||||||
|
|
||||||
|
## Issues
|
||||||
|
|
||||||
|
Create [issues](https://github.com/microsoft/monaco-editor/issues) in this repository for anything related to the Monaco Editor. Always mention **the version** of the editor when creating issues and **the browser** you're having trouble in. Please search for existing issues to avoid duplicates.
|
||||||
|
|
||||||
|
## FAQ
|
||||||
|
|
||||||
|
❓ **What is the relationship between VS Code and the Monaco Editor?**
|
||||||
|
|
||||||
|
The Monaco Editor is generated straight from VS Code's sources with some shims around services the code needs to make it run in a web browser outside of its home.
|
||||||
|
|
||||||
|
❓ **What is the relationship between VS Code's version and the Monaco Editor's version?**
|
||||||
|
|
||||||
|
None. The Monaco Editor is a library and it reflects directly the source code.
|
||||||
|
|
||||||
|
❓ **I've written an extension for VS Code, will it work on the Monaco Editor in a browser?**
|
||||||
|
|
||||||
|
No.
|
||||||
|
|
||||||
|
> Note: If the extension is fully based on the [LSP](https://microsoft.github.io/language-server-protocol/) and if the language server is authored in JavaScript, then it would be possible.
|
||||||
|
|
||||||
|
❓ **Why all these web workers and why should I care?**
|
||||||
|
|
||||||
|
Language services create web workers to compute heavy stuff outside of the UI thread. They cost hardly anything in terms of resource overhead and you shouldn't worry too much about them, as long as you get them to work (see above the cross-domain case).
|
||||||
|
|
||||||
|
❓ **What is this `loader.js`? Can I use `require.js`?**
|
||||||
|
|
||||||
|
It is an AMD loader that we use in VS Code. Yes.
|
||||||
|
|
||||||
|
❓ **I see the warning "Could not create web worker". What should I do?**
|
||||||
|
|
||||||
|
HTML5 does not allow pages loaded on `file://` to create web workers. Please load the editor with a web server on `http://` or `https://` schemes.
|
||||||
|
|
||||||
|
❓ **Is the editor supported in mobile browsers or mobile web app frameworks?**
|
||||||
|
|
||||||
|
No.
|
||||||
|
|
||||||
|
❓ **Why doesn't the editor support TextMate grammars?**
|
||||||
|
|
||||||
|
- Please see https://github.com/bolinfest/monaco-tm which puts together `monaco-editor`, `vscode-oniguruma` and `vscode-textmate` to get TM grammar support in the editor.
|
||||||
|
|
||||||
|
❓ **What about IE 11 support?**
|
||||||
|
|
||||||
|
- The Monaco Editor no longer supports IE 11. The last version that was tested on IE 11 is `0.18.1`.
|
||||||
|
|
||||||
|
## Development setup
|
||||||
|
|
||||||
|
Please see [CONTRIBUTING](./CONTRIBUTING.md)
|
||||||
|
|
||||||
|
## Code of Conduct
|
||||||
|
|
||||||
|
This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.
|
||||||
|
|
||||||
|
## License
|
||||||
|
|
||||||
|
Licensed under the [MIT](https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt) License.
|
||||||
448
src/app/resources/assets/monaco/package/ThirdPartyNotices.txt
Normal file
448
src/app/resources/assets/monaco/package/ThirdPartyNotices.txt
Normal file
File diff suppressed because one or more lines are too long
7556
src/app/resources/assets/monaco/package/dev/bundleInfo.json
Normal file
7556
src/app/resources/assets/monaco/package/dev/bundleInfo.json
Normal file
File diff suppressed because it is too large
Load Diff
3697
src/app/resources/assets/monaco/package/dev/nls.metadata.json
Normal file
3697
src/app/resources/assets/monaco/package/dev/nls.metadata.json
Normal file
File diff suppressed because it is too large
Load Diff
Binary file not shown.
14842
src/app/resources/assets/monaco/package/dev/vs/base/worker/workerMain.js
Normal file
14842
src/app/resources/assets/monaco/package/dev/vs/base/worker/workerMain.js
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,351 @@
|
|||||||
|
/*!-----------------------------------------------------------------------------
|
||||||
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||||
|
* Version: 0.33.0(4b1abad427e58dbedc1215d99a0902ffc885fcd4)
|
||||||
|
* Released under the MIT license
|
||||||
|
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
||||||
|
*-----------------------------------------------------------------------------*/
|
||||||
|
define("vs/basic-languages/apex/apex", ["require"],(require)=>{
|
||||||
|
var moduleExports = (() => {
|
||||||
|
var __defProp = Object.defineProperty;
|
||||||
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||||
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||||
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||||
|
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
||||||
|
var __export = (target, all) => {
|
||||||
|
for (var name in all)
|
||||||
|
__defProp(target, name, { get: all[name], enumerable: true });
|
||||||
|
};
|
||||||
|
var __reExport = (target, module, copyDefault, desc) => {
|
||||||
|
if (module && typeof module === "object" || typeof module === "function") {
|
||||||
|
for (let key of __getOwnPropNames(module))
|
||||||
|
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
||||||
|
__defProp(target, key, { get: () => module[key], enumerable: !(desc = __getOwnPropDesc(module, key)) || desc.enumerable });
|
||||||
|
}
|
||||||
|
return target;
|
||||||
|
};
|
||||||
|
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
||||||
|
return (module, temp) => {
|
||||||
|
return cache && cache.get(module) || (temp = __reExport(__markAsModule({}), module, 1), cache && cache.set(module, temp), temp);
|
||||||
|
};
|
||||||
|
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
||||||
|
|
||||||
|
// src/basic-languages/apex/apex.ts
|
||||||
|
var apex_exports = {};
|
||||||
|
__export(apex_exports, {
|
||||||
|
conf: () => conf,
|
||||||
|
language: () => language
|
||||||
|
});
|
||||||
|
var conf = {
|
||||||
|
wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,
|
||||||
|
comments: {
|
||||||
|
lineComment: "//",
|
||||||
|
blockComment: ["/*", "*/"]
|
||||||
|
},
|
||||||
|
brackets: [
|
||||||
|
["{", "}"],
|
||||||
|
["[", "]"],
|
||||||
|
["(", ")"]
|
||||||
|
],
|
||||||
|
autoClosingPairs: [
|
||||||
|
{ open: "{", close: "}" },
|
||||||
|
{ open: "[", close: "]" },
|
||||||
|
{ open: "(", close: ")" },
|
||||||
|
{ open: '"', close: '"' },
|
||||||
|
{ open: "'", close: "'" }
|
||||||
|
],
|
||||||
|
surroundingPairs: [
|
||||||
|
{ open: "{", close: "}" },
|
||||||
|
{ open: "[", close: "]" },
|
||||||
|
{ open: "(", close: ")" },
|
||||||
|
{ open: '"', close: '"' },
|
||||||
|
{ open: "'", close: "'" },
|
||||||
|
{ open: "<", close: ">" }
|
||||||
|
],
|
||||||
|
folding: {
|
||||||
|
markers: {
|
||||||
|
start: new RegExp("^\\s*//\\s*(?:(?:#?region\\b)|(?:<editor-fold\\b))"),
|
||||||
|
end: new RegExp("^\\s*//\\s*(?:(?:#?endregion\\b)|(?:</editor-fold>))")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
var keywords = [
|
||||||
|
"abstract",
|
||||||
|
"activate",
|
||||||
|
"and",
|
||||||
|
"any",
|
||||||
|
"array",
|
||||||
|
"as",
|
||||||
|
"asc",
|
||||||
|
"assert",
|
||||||
|
"autonomous",
|
||||||
|
"begin",
|
||||||
|
"bigdecimal",
|
||||||
|
"blob",
|
||||||
|
"boolean",
|
||||||
|
"break",
|
||||||
|
"bulk",
|
||||||
|
"by",
|
||||||
|
"case",
|
||||||
|
"cast",
|
||||||
|
"catch",
|
||||||
|
"char",
|
||||||
|
"class",
|
||||||
|
"collect",
|
||||||
|
"commit",
|
||||||
|
"const",
|
||||||
|
"continue",
|
||||||
|
"convertcurrency",
|
||||||
|
"decimal",
|
||||||
|
"default",
|
||||||
|
"delete",
|
||||||
|
"desc",
|
||||||
|
"do",
|
||||||
|
"double",
|
||||||
|
"else",
|
||||||
|
"end",
|
||||||
|
"enum",
|
||||||
|
"exception",
|
||||||
|
"exit",
|
||||||
|
"export",
|
||||||
|
"extends",
|
||||||
|
"false",
|
||||||
|
"final",
|
||||||
|
"finally",
|
||||||
|
"float",
|
||||||
|
"for",
|
||||||
|
"from",
|
||||||
|
"future",
|
||||||
|
"get",
|
||||||
|
"global",
|
||||||
|
"goto",
|
||||||
|
"group",
|
||||||
|
"having",
|
||||||
|
"hint",
|
||||||
|
"if",
|
||||||
|
"implements",
|
||||||
|
"import",
|
||||||
|
"in",
|
||||||
|
"inner",
|
||||||
|
"insert",
|
||||||
|
"instanceof",
|
||||||
|
"int",
|
||||||
|
"interface",
|
||||||
|
"into",
|
||||||
|
"join",
|
||||||
|
"last_90_days",
|
||||||
|
"last_month",
|
||||||
|
"last_n_days",
|
||||||
|
"last_week",
|
||||||
|
"like",
|
||||||
|
"limit",
|
||||||
|
"list",
|
||||||
|
"long",
|
||||||
|
"loop",
|
||||||
|
"map",
|
||||||
|
"merge",
|
||||||
|
"native",
|
||||||
|
"new",
|
||||||
|
"next_90_days",
|
||||||
|
"next_month",
|
||||||
|
"next_n_days",
|
||||||
|
"next_week",
|
||||||
|
"not",
|
||||||
|
"null",
|
||||||
|
"nulls",
|
||||||
|
"number",
|
||||||
|
"object",
|
||||||
|
"of",
|
||||||
|
"on",
|
||||||
|
"or",
|
||||||
|
"outer",
|
||||||
|
"override",
|
||||||
|
"package",
|
||||||
|
"parallel",
|
||||||
|
"pragma",
|
||||||
|
"private",
|
||||||
|
"protected",
|
||||||
|
"public",
|
||||||
|
"retrieve",
|
||||||
|
"return",
|
||||||
|
"returning",
|
||||||
|
"rollback",
|
||||||
|
"savepoint",
|
||||||
|
"search",
|
||||||
|
"select",
|
||||||
|
"set",
|
||||||
|
"short",
|
||||||
|
"sort",
|
||||||
|
"stat",
|
||||||
|
"static",
|
||||||
|
"strictfp",
|
||||||
|
"super",
|
||||||
|
"switch",
|
||||||
|
"synchronized",
|
||||||
|
"system",
|
||||||
|
"testmethod",
|
||||||
|
"then",
|
||||||
|
"this",
|
||||||
|
"this_month",
|
||||||
|
"this_week",
|
||||||
|
"throw",
|
||||||
|
"throws",
|
||||||
|
"today",
|
||||||
|
"tolabel",
|
||||||
|
"tomorrow",
|
||||||
|
"transaction",
|
||||||
|
"transient",
|
||||||
|
"trigger",
|
||||||
|
"true",
|
||||||
|
"try",
|
||||||
|
"type",
|
||||||
|
"undelete",
|
||||||
|
"update",
|
||||||
|
"upsert",
|
||||||
|
"using",
|
||||||
|
"virtual",
|
||||||
|
"void",
|
||||||
|
"volatile",
|
||||||
|
"webservice",
|
||||||
|
"when",
|
||||||
|
"where",
|
||||||
|
"while",
|
||||||
|
"yesterday"
|
||||||
|
];
|
||||||
|
var uppercaseFirstLetter = (lowercase) => lowercase.charAt(0).toUpperCase() + lowercase.substr(1);
|
||||||
|
var keywordsWithCaseVariations = [];
|
||||||
|
keywords.forEach((lowercase) => {
|
||||||
|
keywordsWithCaseVariations.push(lowercase);
|
||||||
|
keywordsWithCaseVariations.push(lowercase.toUpperCase());
|
||||||
|
keywordsWithCaseVariations.push(uppercaseFirstLetter(lowercase));
|
||||||
|
});
|
||||||
|
var language = {
|
||||||
|
defaultToken: "",
|
||||||
|
tokenPostfix: ".apex",
|
||||||
|
keywords: keywordsWithCaseVariations,
|
||||||
|
operators: [
|
||||||
|
"=",
|
||||||
|
">",
|
||||||
|
"<",
|
||||||
|
"!",
|
||||||
|
"~",
|
||||||
|
"?",
|
||||||
|
":",
|
||||||
|
"==",
|
||||||
|
"<=",
|
||||||
|
">=",
|
||||||
|
"!=",
|
||||||
|
"&&",
|
||||||
|
"||",
|
||||||
|
"++",
|
||||||
|
"--",
|
||||||
|
"+",
|
||||||
|
"-",
|
||||||
|
"*",
|
||||||
|
"/",
|
||||||
|
"&",
|
||||||
|
"|",
|
||||||
|
"^",
|
||||||
|
"%",
|
||||||
|
"<<",
|
||||||
|
">>",
|
||||||
|
">>>",
|
||||||
|
"+=",
|
||||||
|
"-=",
|
||||||
|
"*=",
|
||||||
|
"/=",
|
||||||
|
"&=",
|
||||||
|
"|=",
|
||||||
|
"^=",
|
||||||
|
"%=",
|
||||||
|
"<<=",
|
||||||
|
">>=",
|
||||||
|
">>>="
|
||||||
|
],
|
||||||
|
symbols: /[=><!~?:&|+\-*\/\^%]+/,
|
||||||
|
escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
|
||||||
|
digits: /\d+(_+\d+)*/,
|
||||||
|
octaldigits: /[0-7]+(_+[0-7]+)*/,
|
||||||
|
binarydigits: /[0-1]+(_+[0-1]+)*/,
|
||||||
|
hexdigits: /[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/,
|
||||||
|
tokenizer: {
|
||||||
|
root: [
|
||||||
|
[
|
||||||
|
/[a-z_$][\w$]*/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"@keywords": { token: "keyword.$0" },
|
||||||
|
"@default": "identifier"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[
|
||||||
|
/[A-Z][\w\$]*/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"@keywords": { token: "keyword.$0" },
|
||||||
|
"@default": "type.identifier"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
{ include: "@whitespace" },
|
||||||
|
[/[{}()\[\]]/, "@brackets"],
|
||||||
|
[/[<>](?!@symbols)/, "@brackets"],
|
||||||
|
[
|
||||||
|
/@symbols/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"@operators": "delimiter",
|
||||||
|
"@default": ""
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/@\s*[a-zA-Z_\$][\w\$]*/, "annotation"],
|
||||||
|
[/(@digits)[eE]([\-+]?(@digits))?[fFdD]?/, "number.float"],
|
||||||
|
[/(@digits)\.(@digits)([eE][\-+]?(@digits))?[fFdD]?/, "number.float"],
|
||||||
|
[/(@digits)[fFdD]/, "number.float"],
|
||||||
|
[/(@digits)[lL]?/, "number"],
|
||||||
|
[/[;,.]/, "delimiter"],
|
||||||
|
[/"([^"\\]|\\.)*$/, "string.invalid"],
|
||||||
|
[/'([^'\\]|\\.)*$/, "string.invalid"],
|
||||||
|
[/"/, "string", '@string."'],
|
||||||
|
[/'/, "string", "@string.'"],
|
||||||
|
[/'[^\\']'/, "string"],
|
||||||
|
[/(')(@escapes)(')/, ["string", "string.escape", "string"]],
|
||||||
|
[/'/, "string.invalid"]
|
||||||
|
],
|
||||||
|
whitespace: [
|
||||||
|
[/[ \t\r\n]+/, ""],
|
||||||
|
[/\/\*\*(?!\/)/, "comment.doc", "@apexdoc"],
|
||||||
|
[/\/\*/, "comment", "@comment"],
|
||||||
|
[/\/\/.*$/, "comment"]
|
||||||
|
],
|
||||||
|
comment: [
|
||||||
|
[/[^\/*]+/, "comment"],
|
||||||
|
[/\*\//, "comment", "@pop"],
|
||||||
|
[/[\/*]/, "comment"]
|
||||||
|
],
|
||||||
|
apexdoc: [
|
||||||
|
[/[^\/*]+/, "comment.doc"],
|
||||||
|
[/\*\//, "comment.doc", "@pop"],
|
||||||
|
[/[\/*]/, "comment.doc"]
|
||||||
|
],
|
||||||
|
string: [
|
||||||
|
[/[^\\"']+/, "string"],
|
||||||
|
[/@escapes/, "string.escape"],
|
||||||
|
[/\\./, "string.escape.invalid"],
|
||||||
|
[
|
||||||
|
/["']/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"$#==$S2": { token: "string", next: "@pop" },
|
||||||
|
"@default": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
]
|
||||||
|
}
|
||||||
|
};
|
||||||
|
return __toCommonJS(apex_exports);
|
||||||
|
})();
|
||||||
|
return moduleExports;
|
||||||
|
});
|
||||||
@@ -0,0 +1,106 @@
|
|||||||
|
/*!-----------------------------------------------------------------------------
|
||||||
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||||
|
* Version: 0.33.0(4b1abad427e58dbedc1215d99a0902ffc885fcd4)
|
||||||
|
* Released under the MIT license
|
||||||
|
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
||||||
|
*-----------------------------------------------------------------------------*/
|
||||||
|
define("vs/basic-languages/azcli/azcli", ["require"],(require)=>{
|
||||||
|
var moduleExports = (() => {
|
||||||
|
var __defProp = Object.defineProperty;
|
||||||
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||||
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||||
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||||
|
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
||||||
|
var __export = (target, all) => {
|
||||||
|
for (var name in all)
|
||||||
|
__defProp(target, name, { get: all[name], enumerable: true });
|
||||||
|
};
|
||||||
|
var __reExport = (target, module, copyDefault, desc) => {
|
||||||
|
if (module && typeof module === "object" || typeof module === "function") {
|
||||||
|
for (let key of __getOwnPropNames(module))
|
||||||
|
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
||||||
|
__defProp(target, key, { get: () => module[key], enumerable: !(desc = __getOwnPropDesc(module, key)) || desc.enumerable });
|
||||||
|
}
|
||||||
|
return target;
|
||||||
|
};
|
||||||
|
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
||||||
|
return (module, temp) => {
|
||||||
|
return cache && cache.get(module) || (temp = __reExport(__markAsModule({}), module, 1), cache && cache.set(module, temp), temp);
|
||||||
|
};
|
||||||
|
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
||||||
|
|
||||||
|
// src/basic-languages/azcli/azcli.ts
|
||||||
|
var azcli_exports = {};
|
||||||
|
__export(azcli_exports, {
|
||||||
|
conf: () => conf,
|
||||||
|
language: () => language
|
||||||
|
});
|
||||||
|
var conf = {
|
||||||
|
comments: {
|
||||||
|
lineComment: "#"
|
||||||
|
}
|
||||||
|
};
|
||||||
|
var language = {
|
||||||
|
defaultToken: "keyword",
|
||||||
|
ignoreCase: true,
|
||||||
|
tokenPostfix: ".azcli",
|
||||||
|
str: /[^#\s]/,
|
||||||
|
tokenizer: {
|
||||||
|
root: [
|
||||||
|
{ include: "@comment" },
|
||||||
|
[
|
||||||
|
/\s-+@str*\s*/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"@eos": { token: "key.identifier", next: "@popall" },
|
||||||
|
"@default": { token: "key.identifier", next: "@type" }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[
|
||||||
|
/^-+@str*\s*/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"@eos": { token: "key.identifier", next: "@popall" },
|
||||||
|
"@default": { token: "key.identifier", next: "@type" }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
],
|
||||||
|
type: [
|
||||||
|
{ include: "@comment" },
|
||||||
|
[
|
||||||
|
/-+@str*\s*/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"@eos": { token: "key.identifier", next: "@popall" },
|
||||||
|
"@default": "key.identifier"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[
|
||||||
|
/@str+\s*/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"@eos": { token: "string", next: "@popall" },
|
||||||
|
"@default": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
],
|
||||||
|
comment: [
|
||||||
|
[
|
||||||
|
/#.*$/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"@eos": { token: "comment", next: "@popall" }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
]
|
||||||
|
}
|
||||||
|
};
|
||||||
|
return __toCommonJS(azcli_exports);
|
||||||
|
})();
|
||||||
|
return moduleExports;
|
||||||
|
});
|
||||||
@@ -0,0 +1,127 @@
|
|||||||
|
/*!-----------------------------------------------------------------------------
|
||||||
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||||
|
* Version: 0.33.0(4b1abad427e58dbedc1215d99a0902ffc885fcd4)
|
||||||
|
* Released under the MIT license
|
||||||
|
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
||||||
|
*-----------------------------------------------------------------------------*/
|
||||||
|
define("vs/basic-languages/bat/bat", ["require"],(require)=>{
|
||||||
|
var moduleExports = (() => {
|
||||||
|
var __defProp = Object.defineProperty;
|
||||||
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||||
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||||
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||||
|
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
||||||
|
var __export = (target, all) => {
|
||||||
|
for (var name in all)
|
||||||
|
__defProp(target, name, { get: all[name], enumerable: true });
|
||||||
|
};
|
||||||
|
var __reExport = (target, module, copyDefault, desc) => {
|
||||||
|
if (module && typeof module === "object" || typeof module === "function") {
|
||||||
|
for (let key of __getOwnPropNames(module))
|
||||||
|
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
||||||
|
__defProp(target, key, { get: () => module[key], enumerable: !(desc = __getOwnPropDesc(module, key)) || desc.enumerable });
|
||||||
|
}
|
||||||
|
return target;
|
||||||
|
};
|
||||||
|
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
||||||
|
return (module, temp) => {
|
||||||
|
return cache && cache.get(module) || (temp = __reExport(__markAsModule({}), module, 1), cache && cache.set(module, temp), temp);
|
||||||
|
};
|
||||||
|
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
||||||
|
|
||||||
|
// src/basic-languages/bat/bat.ts
|
||||||
|
var bat_exports = {};
|
||||||
|
__export(bat_exports, {
|
||||||
|
conf: () => conf,
|
||||||
|
language: () => language
|
||||||
|
});
|
||||||
|
var conf = {
|
||||||
|
comments: {
|
||||||
|
lineComment: "REM"
|
||||||
|
},
|
||||||
|
brackets: [
|
||||||
|
["{", "}"],
|
||||||
|
["[", "]"],
|
||||||
|
["(", ")"]
|
||||||
|
],
|
||||||
|
autoClosingPairs: [
|
||||||
|
{ open: "{", close: "}" },
|
||||||
|
{ open: "[", close: "]" },
|
||||||
|
{ open: "(", close: ")" },
|
||||||
|
{ open: '"', close: '"' }
|
||||||
|
],
|
||||||
|
surroundingPairs: [
|
||||||
|
{ open: "[", close: "]" },
|
||||||
|
{ open: "(", close: ")" },
|
||||||
|
{ open: '"', close: '"' }
|
||||||
|
],
|
||||||
|
folding: {
|
||||||
|
markers: {
|
||||||
|
start: new RegExp("^\\s*(::\\s*|REM\\s+)#region"),
|
||||||
|
end: new RegExp("^\\s*(::\\s*|REM\\s+)#endregion")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
var language = {
|
||||||
|
defaultToken: "",
|
||||||
|
ignoreCase: true,
|
||||||
|
tokenPostfix: ".bat",
|
||||||
|
brackets: [
|
||||||
|
{ token: "delimiter.bracket", open: "{", close: "}" },
|
||||||
|
{ token: "delimiter.parenthesis", open: "(", close: ")" },
|
||||||
|
{ token: "delimiter.square", open: "[", close: "]" }
|
||||||
|
],
|
||||||
|
keywords: /call|defined|echo|errorlevel|exist|for|goto|if|pause|set|shift|start|title|not|pushd|popd/,
|
||||||
|
symbols: /[=><!~?&|+\-*\/\^;\.,]+/,
|
||||||
|
escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
|
||||||
|
tokenizer: {
|
||||||
|
root: [
|
||||||
|
[/^(\s*)(rem(?:\s.*|))$/, ["", "comment"]],
|
||||||
|
[/(\@?)(@keywords)(?!\w)/, [{ token: "keyword" }, { token: "keyword.$2" }]],
|
||||||
|
[/[ \t\r\n]+/, ""],
|
||||||
|
[/setlocal(?!\w)/, "keyword.tag-setlocal"],
|
||||||
|
[/endlocal(?!\w)/, "keyword.tag-setlocal"],
|
||||||
|
[/[a-zA-Z_]\w*/, ""],
|
||||||
|
[/:\w*/, "metatag"],
|
||||||
|
[/%[^%]+%/, "variable"],
|
||||||
|
[/%%[\w]+(?!\w)/, "variable"],
|
||||||
|
[/[{}()\[\]]/, "@brackets"],
|
||||||
|
[/@symbols/, "delimiter"],
|
||||||
|
[/\d*\.\d+([eE][\-+]?\d+)?/, "number.float"],
|
||||||
|
[/0[xX][0-9a-fA-F_]*[0-9a-fA-F]/, "number.hex"],
|
||||||
|
[/\d+/, "number"],
|
||||||
|
[/[;,.]/, "delimiter"],
|
||||||
|
[/"/, "string", '@string."'],
|
||||||
|
[/'/, "string", "@string.'"]
|
||||||
|
],
|
||||||
|
string: [
|
||||||
|
[
|
||||||
|
/[^\\"'%]+/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"@eos": { token: "string", next: "@popall" },
|
||||||
|
"@default": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/@escapes/, "string.escape"],
|
||||||
|
[/\\./, "string.escape.invalid"],
|
||||||
|
[/%[\w ]+%/, "variable"],
|
||||||
|
[/%%[\w]+(?!\w)/, "variable"],
|
||||||
|
[
|
||||||
|
/["']/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"$#==$S2": { token: "string", next: "@pop" },
|
||||||
|
"@default": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/$/, "string", "@popall"]
|
||||||
|
]
|
||||||
|
}
|
||||||
|
};
|
||||||
|
return __toCommonJS(bat_exports);
|
||||||
|
})();
|
||||||
|
return moduleExports;
|
||||||
|
});
|
||||||
@@ -0,0 +1,147 @@
|
|||||||
|
/*!-----------------------------------------------------------------------------
|
||||||
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||||
|
* Version: 0.33.0(4b1abad427e58dbedc1215d99a0902ffc885fcd4)
|
||||||
|
* Released under the MIT license
|
||||||
|
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
||||||
|
*-----------------------------------------------------------------------------*/
|
||||||
|
define("vs/basic-languages/bicep/bicep", ["require"],(require)=>{
|
||||||
|
var moduleExports = (() => {
|
||||||
|
var __defProp = Object.defineProperty;
|
||||||
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||||
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||||
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||||
|
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
||||||
|
var __export = (target, all) => {
|
||||||
|
for (var name in all)
|
||||||
|
__defProp(target, name, { get: all[name], enumerable: true });
|
||||||
|
};
|
||||||
|
var __reExport = (target, module, copyDefault, desc) => {
|
||||||
|
if (module && typeof module === "object" || typeof module === "function") {
|
||||||
|
for (let key of __getOwnPropNames(module))
|
||||||
|
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
||||||
|
__defProp(target, key, { get: () => module[key], enumerable: !(desc = __getOwnPropDesc(module, key)) || desc.enumerable });
|
||||||
|
}
|
||||||
|
return target;
|
||||||
|
};
|
||||||
|
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
||||||
|
return (module, temp) => {
|
||||||
|
return cache && cache.get(module) || (temp = __reExport(__markAsModule({}), module, 1), cache && cache.set(module, temp), temp);
|
||||||
|
};
|
||||||
|
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
||||||
|
|
||||||
|
// src/basic-languages/bicep/bicep.ts
|
||||||
|
var bicep_exports = {};
|
||||||
|
__export(bicep_exports, {
|
||||||
|
conf: () => conf,
|
||||||
|
language: () => language
|
||||||
|
});
|
||||||
|
var bounded = (text) => `\\b${text}\\b`;
|
||||||
|
var identifierStart = "[_a-zA-Z]";
|
||||||
|
var identifierContinue = "[_a-zA-Z0-9]";
|
||||||
|
var identifier = bounded(`${identifierStart}${identifierContinue}*`);
|
||||||
|
var keywords = [
|
||||||
|
"targetScope",
|
||||||
|
"resource",
|
||||||
|
"module",
|
||||||
|
"param",
|
||||||
|
"var",
|
||||||
|
"output",
|
||||||
|
"for",
|
||||||
|
"in",
|
||||||
|
"if",
|
||||||
|
"existing"
|
||||||
|
];
|
||||||
|
var namedLiterals = ["true", "false", "null"];
|
||||||
|
var nonCommentWs = `[ \\t\\r\\n]`;
|
||||||
|
var numericLiteral = `[0-9]+`;
|
||||||
|
var conf = {
|
||||||
|
comments: {
|
||||||
|
lineComment: "//",
|
||||||
|
blockComment: ["/*", "*/"]
|
||||||
|
},
|
||||||
|
brackets: [
|
||||||
|
["{", "}"],
|
||||||
|
["[", "]"],
|
||||||
|
["(", ")"]
|
||||||
|
],
|
||||||
|
surroundingPairs: [
|
||||||
|
{ open: "{", close: "}" },
|
||||||
|
{ open: "[", close: "]" },
|
||||||
|
{ open: "(", close: ")" },
|
||||||
|
{ open: "'", close: "'" },
|
||||||
|
{ open: "'''", close: "'''" }
|
||||||
|
],
|
||||||
|
autoClosingPairs: [
|
||||||
|
{ open: "{", close: "}" },
|
||||||
|
{ open: "[", close: "]" },
|
||||||
|
{ open: "(", close: ")" },
|
||||||
|
{ open: "'", close: "'", notIn: ["string", "comment"] },
|
||||||
|
{ open: "'''", close: "'''", notIn: ["string", "comment"] }
|
||||||
|
],
|
||||||
|
autoCloseBefore: ":.,=}])' \n ",
|
||||||
|
indentationRules: {
|
||||||
|
increaseIndentPattern: new RegExp("^((?!\\/\\/).)*(\\{[^}\"'`]*|\\([^)\"'`]*|\\[[^\\]\"'`]*)$"),
|
||||||
|
decreaseIndentPattern: new RegExp("^((?!.*?\\/\\*).*\\*/)?\\s*[\\}\\]].*$")
|
||||||
|
}
|
||||||
|
};
|
||||||
|
var language = {
|
||||||
|
defaultToken: "",
|
||||||
|
tokenPostfix: ".bicep",
|
||||||
|
brackets: [
|
||||||
|
{ open: "{", close: "}", token: "delimiter.curly" },
|
||||||
|
{ open: "[", close: "]", token: "delimiter.square" },
|
||||||
|
{ open: "(", close: ")", token: "delimiter.parenthesis" }
|
||||||
|
],
|
||||||
|
symbols: /[=><!~?:&|+\-*/^%]+/,
|
||||||
|
keywords,
|
||||||
|
namedLiterals,
|
||||||
|
escapes: `\\\\(u{[0-9A-Fa-f]+}|n|r|t|\\\\|'|\\\${)`,
|
||||||
|
tokenizer: {
|
||||||
|
root: [{ include: "@expression" }, { include: "@whitespace" }],
|
||||||
|
stringVerbatim: [
|
||||||
|
{ regex: `(|'|'')[^']`, action: { token: "string" } },
|
||||||
|
{ regex: `'''`, action: { token: "string.quote", next: "@pop" } }
|
||||||
|
],
|
||||||
|
stringLiteral: [
|
||||||
|
{ regex: `\\\${`, action: { token: "delimiter.bracket", next: "@bracketCounting" } },
|
||||||
|
{ regex: `[^\\\\'$]+`, action: { token: "string" } },
|
||||||
|
{ regex: "@escapes", action: { token: "string.escape" } },
|
||||||
|
{ regex: `\\\\.`, action: { token: "string.escape.invalid" } },
|
||||||
|
{ regex: `'`, action: { token: "string", next: "@pop" } }
|
||||||
|
],
|
||||||
|
bracketCounting: [
|
||||||
|
{ regex: `{`, action: { token: "delimiter.bracket", next: "@bracketCounting" } },
|
||||||
|
{ regex: `}`, action: { token: "delimiter.bracket", next: "@pop" } },
|
||||||
|
{ include: "expression" }
|
||||||
|
],
|
||||||
|
comment: [
|
||||||
|
{ regex: `[^\\*]+`, action: { token: "comment" } },
|
||||||
|
{ regex: `\\*\\/`, action: { token: "comment", next: "@pop" } },
|
||||||
|
{ regex: `[\\/*]`, action: { token: "comment" } }
|
||||||
|
],
|
||||||
|
whitespace: [
|
||||||
|
{ regex: nonCommentWs },
|
||||||
|
{ regex: `\\/\\*`, action: { token: "comment", next: "@comment" } },
|
||||||
|
{ regex: `\\/\\/.*$`, action: { token: "comment" } }
|
||||||
|
],
|
||||||
|
expression: [
|
||||||
|
{ regex: `'''`, action: { token: "string.quote", next: "@stringVerbatim" } },
|
||||||
|
{ regex: `'`, action: { token: "string.quote", next: "@stringLiteral" } },
|
||||||
|
{ regex: numericLiteral, action: { token: "number" } },
|
||||||
|
{
|
||||||
|
regex: identifier,
|
||||||
|
action: {
|
||||||
|
cases: {
|
||||||
|
"@keywords": { token: "keyword" },
|
||||||
|
"@namedLiterals": { token: "keyword" },
|
||||||
|
"@default": { token: "identifier" }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
};
|
||||||
|
return __toCommonJS(bicep_exports);
|
||||||
|
})();
|
||||||
|
return moduleExports;
|
||||||
|
});
|
||||||
@@ -0,0 +1,200 @@
|
|||||||
|
/*!-----------------------------------------------------------------------------
|
||||||
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||||
|
* Version: 0.33.0(4b1abad427e58dbedc1215d99a0902ffc885fcd4)
|
||||||
|
* Released under the MIT license
|
||||||
|
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
||||||
|
*-----------------------------------------------------------------------------*/
|
||||||
|
define("vs/basic-languages/cameligo/cameligo", ["require"],(require)=>{
|
||||||
|
var moduleExports = (() => {
|
||||||
|
var __defProp = Object.defineProperty;
|
||||||
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||||
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||||
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||||
|
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
||||||
|
var __export = (target, all) => {
|
||||||
|
for (var name in all)
|
||||||
|
__defProp(target, name, { get: all[name], enumerable: true });
|
||||||
|
};
|
||||||
|
var __reExport = (target, module, copyDefault, desc) => {
|
||||||
|
if (module && typeof module === "object" || typeof module === "function") {
|
||||||
|
for (let key of __getOwnPropNames(module))
|
||||||
|
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
||||||
|
__defProp(target, key, { get: () => module[key], enumerable: !(desc = __getOwnPropDesc(module, key)) || desc.enumerable });
|
||||||
|
}
|
||||||
|
return target;
|
||||||
|
};
|
||||||
|
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
||||||
|
return (module, temp) => {
|
||||||
|
return cache && cache.get(module) || (temp = __reExport(__markAsModule({}), module, 1), cache && cache.set(module, temp), temp);
|
||||||
|
};
|
||||||
|
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
||||||
|
|
||||||
|
// src/basic-languages/cameligo/cameligo.ts
|
||||||
|
var cameligo_exports = {};
|
||||||
|
__export(cameligo_exports, {
|
||||||
|
conf: () => conf,
|
||||||
|
language: () => language
|
||||||
|
});
|
||||||
|
var conf = {
|
||||||
|
comments: {
|
||||||
|
lineComment: "//",
|
||||||
|
blockComment: ["(*", "*)"]
|
||||||
|
},
|
||||||
|
brackets: [
|
||||||
|
["{", "}"],
|
||||||
|
["[", "]"],
|
||||||
|
["(", ")"],
|
||||||
|
["<", ">"]
|
||||||
|
],
|
||||||
|
autoClosingPairs: [
|
||||||
|
{ open: "{", close: "}" },
|
||||||
|
{ open: "[", close: "]" },
|
||||||
|
{ open: "(", close: ")" },
|
||||||
|
{ open: "<", close: ">" },
|
||||||
|
{ open: "'", close: "'" },
|
||||||
|
{ open: '"', close: '"' },
|
||||||
|
{ open: "(*", close: "*)" }
|
||||||
|
],
|
||||||
|
surroundingPairs: [
|
||||||
|
{ open: "{", close: "}" },
|
||||||
|
{ open: "[", close: "]" },
|
||||||
|
{ open: "(", close: ")" },
|
||||||
|
{ open: "<", close: ">" },
|
||||||
|
{ open: "'", close: "'" },
|
||||||
|
{ open: '"', close: '"' },
|
||||||
|
{ open: "(*", close: "*)" }
|
||||||
|
]
|
||||||
|
};
|
||||||
|
var language = {
|
||||||
|
defaultToken: "",
|
||||||
|
tokenPostfix: ".cameligo",
|
||||||
|
ignoreCase: true,
|
||||||
|
brackets: [
|
||||||
|
{ open: "{", close: "}", token: "delimiter.curly" },
|
||||||
|
{ open: "[", close: "]", token: "delimiter.square" },
|
||||||
|
{ open: "(", close: ")", token: "delimiter.parenthesis" },
|
||||||
|
{ open: "<", close: ">", token: "delimiter.angle" }
|
||||||
|
],
|
||||||
|
keywords: [
|
||||||
|
"abs",
|
||||||
|
"assert",
|
||||||
|
"block",
|
||||||
|
"Bytes",
|
||||||
|
"case",
|
||||||
|
"Crypto",
|
||||||
|
"Current",
|
||||||
|
"else",
|
||||||
|
"failwith",
|
||||||
|
"false",
|
||||||
|
"for",
|
||||||
|
"fun",
|
||||||
|
"if",
|
||||||
|
"in",
|
||||||
|
"let",
|
||||||
|
"let%entry",
|
||||||
|
"let%init",
|
||||||
|
"List",
|
||||||
|
"list",
|
||||||
|
"Map",
|
||||||
|
"map",
|
||||||
|
"match",
|
||||||
|
"match%nat",
|
||||||
|
"mod",
|
||||||
|
"not",
|
||||||
|
"operation",
|
||||||
|
"Operation",
|
||||||
|
"of",
|
||||||
|
"record",
|
||||||
|
"Set",
|
||||||
|
"set",
|
||||||
|
"sender",
|
||||||
|
"skip",
|
||||||
|
"source",
|
||||||
|
"String",
|
||||||
|
"then",
|
||||||
|
"to",
|
||||||
|
"true",
|
||||||
|
"type",
|
||||||
|
"with"
|
||||||
|
],
|
||||||
|
typeKeywords: ["int", "unit", "string", "tz", "nat", "bool"],
|
||||||
|
operators: [
|
||||||
|
"=",
|
||||||
|
">",
|
||||||
|
"<",
|
||||||
|
"<=",
|
||||||
|
">=",
|
||||||
|
"<>",
|
||||||
|
":",
|
||||||
|
":=",
|
||||||
|
"and",
|
||||||
|
"mod",
|
||||||
|
"or",
|
||||||
|
"+",
|
||||||
|
"-",
|
||||||
|
"*",
|
||||||
|
"/",
|
||||||
|
"@",
|
||||||
|
"&",
|
||||||
|
"^",
|
||||||
|
"%",
|
||||||
|
"->",
|
||||||
|
"<-",
|
||||||
|
"&&",
|
||||||
|
"||"
|
||||||
|
],
|
||||||
|
symbols: /[=><:@\^&|+\-*\/\^%]+/,
|
||||||
|
tokenizer: {
|
||||||
|
root: [
|
||||||
|
[
|
||||||
|
/[a-zA-Z_][\w]*/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"@keywords": { token: "keyword.$0" },
|
||||||
|
"@default": "identifier"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
{ include: "@whitespace" },
|
||||||
|
[/[{}()\[\]]/, "@brackets"],
|
||||||
|
[/[<>](?!@symbols)/, "@brackets"],
|
||||||
|
[
|
||||||
|
/@symbols/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"@operators": "delimiter",
|
||||||
|
"@default": ""
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/\d*\.\d+([eE][\-+]?\d+)?/, "number.float"],
|
||||||
|
[/\$[0-9a-fA-F]{1,16}/, "number.hex"],
|
||||||
|
[/\d+/, "number"],
|
||||||
|
[/[;,.]/, "delimiter"],
|
||||||
|
[/'([^'\\]|\\.)*$/, "string.invalid"],
|
||||||
|
[/'/, "string", "@string"],
|
||||||
|
[/'[^\\']'/, "string"],
|
||||||
|
[/'/, "string.invalid"],
|
||||||
|
[/\#\d+/, "string"]
|
||||||
|
],
|
||||||
|
comment: [
|
||||||
|
[/[^\(\*]+/, "comment"],
|
||||||
|
[/\*\)/, "comment", "@pop"],
|
||||||
|
[/\(\*/, "comment"]
|
||||||
|
],
|
||||||
|
string: [
|
||||||
|
[/[^\\']+/, "string"],
|
||||||
|
[/\\./, "string.escape.invalid"],
|
||||||
|
[/'/, { token: "string.quote", bracket: "@close", next: "@pop" }]
|
||||||
|
],
|
||||||
|
whitespace: [
|
||||||
|
[/[ \t\r\n]+/, "white"],
|
||||||
|
[/\(\*/, "comment", "@comment"],
|
||||||
|
[/\/\/.*$/, "comment"]
|
||||||
|
]
|
||||||
|
}
|
||||||
|
};
|
||||||
|
return __toCommonJS(cameligo_exports);
|
||||||
|
})();
|
||||||
|
return moduleExports;
|
||||||
|
});
|
||||||
@@ -0,0 +1,786 @@
|
|||||||
|
/*!-----------------------------------------------------------------------------
|
||||||
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||||
|
* Version: 0.33.0(4b1abad427e58dbedc1215d99a0902ffc885fcd4)
|
||||||
|
* Released under the MIT license
|
||||||
|
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
||||||
|
*-----------------------------------------------------------------------------*/
|
||||||
|
define("vs/basic-languages/clojure/clojure", ["require"],(require)=>{
|
||||||
|
var moduleExports = (() => {
|
||||||
|
var __defProp = Object.defineProperty;
|
||||||
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||||
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||||
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||||
|
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
||||||
|
var __export = (target, all) => {
|
||||||
|
for (var name in all)
|
||||||
|
__defProp(target, name, { get: all[name], enumerable: true });
|
||||||
|
};
|
||||||
|
var __reExport = (target, module, copyDefault, desc) => {
|
||||||
|
if (module && typeof module === "object" || typeof module === "function") {
|
||||||
|
for (let key of __getOwnPropNames(module))
|
||||||
|
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
||||||
|
__defProp(target, key, { get: () => module[key], enumerable: !(desc = __getOwnPropDesc(module, key)) || desc.enumerable });
|
||||||
|
}
|
||||||
|
return target;
|
||||||
|
};
|
||||||
|
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
||||||
|
return (module, temp) => {
|
||||||
|
return cache && cache.get(module) || (temp = __reExport(__markAsModule({}), module, 1), cache && cache.set(module, temp), temp);
|
||||||
|
};
|
||||||
|
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
||||||
|
|
||||||
|
// src/basic-languages/clojure/clojure.ts
|
||||||
|
var clojure_exports = {};
|
||||||
|
__export(clojure_exports, {
|
||||||
|
conf: () => conf,
|
||||||
|
language: () => language
|
||||||
|
});
|
||||||
|
var conf = {
|
||||||
|
comments: {
|
||||||
|
lineComment: ";;"
|
||||||
|
},
|
||||||
|
brackets: [
|
||||||
|
["[", "]"],
|
||||||
|
["(", ")"],
|
||||||
|
["{", "}"]
|
||||||
|
],
|
||||||
|
autoClosingPairs: [
|
||||||
|
{ open: "[", close: "]" },
|
||||||
|
{ open: '"', close: '"' },
|
||||||
|
{ open: "(", close: ")" },
|
||||||
|
{ open: "{", close: "}" }
|
||||||
|
],
|
||||||
|
surroundingPairs: [
|
||||||
|
{ open: "[", close: "]" },
|
||||||
|
{ open: '"', close: '"' },
|
||||||
|
{ open: "(", close: ")" },
|
||||||
|
{ open: "{", close: "}" }
|
||||||
|
]
|
||||||
|
};
|
||||||
|
var language = {
|
||||||
|
defaultToken: "",
|
||||||
|
ignoreCase: true,
|
||||||
|
tokenPostfix: ".clj",
|
||||||
|
brackets: [
|
||||||
|
{ open: "[", close: "]", token: "delimiter.square" },
|
||||||
|
{ open: "(", close: ")", token: "delimiter.parenthesis" },
|
||||||
|
{ open: "{", close: "}", token: "delimiter.curly" }
|
||||||
|
],
|
||||||
|
constants: ["true", "false", "nil"],
|
||||||
|
numbers: /^(?:[+\-]?\d+(?:(?:N|(?:[eE][+\-]?\d+))|(?:\.?\d*(?:M|(?:[eE][+\-]?\d+))?)|\/\d+|[xX][0-9a-fA-F]+|r[0-9a-zA-Z]+)?(?=[\\\[\]\s"#'(),;@^`{}~]|$))/,
|
||||||
|
characters: /^(?:\\(?:backspace|formfeed|newline|return|space|tab|o[0-7]{3}|u[0-9A-Fa-f]{4}|x[0-9A-Fa-f]{4}|.)?(?=[\\\[\]\s"(),;@^`{}~]|$))/,
|
||||||
|
escapes: /^\\(?:["'\\bfnrt]|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
|
||||||
|
qualifiedSymbols: /^(?:(?:[^\\\/\[\]\d\s"#'(),;@^`{}~][^\\\[\]\s"(),;@^`{}~]*(?:\.[^\\\/\[\]\d\s"#'(),;@^`{}~][^\\\[\]\s"(),;@^`{}~]*)*\/)?(?:\/|[^\\\/\[\]\d\s"#'(),;@^`{}~][^\\\[\]\s"(),;@^`{}~]*)*(?=[\\\[\]\s"(),;@^`{}~]|$))/,
|
||||||
|
specialForms: [
|
||||||
|
".",
|
||||||
|
"catch",
|
||||||
|
"def",
|
||||||
|
"do",
|
||||||
|
"if",
|
||||||
|
"monitor-enter",
|
||||||
|
"monitor-exit",
|
||||||
|
"new",
|
||||||
|
"quote",
|
||||||
|
"recur",
|
||||||
|
"set!",
|
||||||
|
"throw",
|
||||||
|
"try",
|
||||||
|
"var"
|
||||||
|
],
|
||||||
|
coreSymbols: [
|
||||||
|
"*",
|
||||||
|
"*'",
|
||||||
|
"*1",
|
||||||
|
"*2",
|
||||||
|
"*3",
|
||||||
|
"*agent*",
|
||||||
|
"*allow-unresolved-vars*",
|
||||||
|
"*assert*",
|
||||||
|
"*clojure-version*",
|
||||||
|
"*command-line-args*",
|
||||||
|
"*compile-files*",
|
||||||
|
"*compile-path*",
|
||||||
|
"*compiler-options*",
|
||||||
|
"*data-readers*",
|
||||||
|
"*default-data-reader-fn*",
|
||||||
|
"*e",
|
||||||
|
"*err*",
|
||||||
|
"*file*",
|
||||||
|
"*flush-on-newline*",
|
||||||
|
"*fn-loader*",
|
||||||
|
"*in*",
|
||||||
|
"*math-context*",
|
||||||
|
"*ns*",
|
||||||
|
"*out*",
|
||||||
|
"*print-dup*",
|
||||||
|
"*print-length*",
|
||||||
|
"*print-level*",
|
||||||
|
"*print-meta*",
|
||||||
|
"*print-namespace-maps*",
|
||||||
|
"*print-readably*",
|
||||||
|
"*read-eval*",
|
||||||
|
"*reader-resolver*",
|
||||||
|
"*source-path*",
|
||||||
|
"*suppress-read*",
|
||||||
|
"*unchecked-math*",
|
||||||
|
"*use-context-classloader*",
|
||||||
|
"*verbose-defrecords*",
|
||||||
|
"*warn-on-reflection*",
|
||||||
|
"+",
|
||||||
|
"+'",
|
||||||
|
"-",
|
||||||
|
"-'",
|
||||||
|
"->",
|
||||||
|
"->>",
|
||||||
|
"->ArrayChunk",
|
||||||
|
"->Eduction",
|
||||||
|
"->Vec",
|
||||||
|
"->VecNode",
|
||||||
|
"->VecSeq",
|
||||||
|
"-cache-protocol-fn",
|
||||||
|
"-reset-methods",
|
||||||
|
"..",
|
||||||
|
"/",
|
||||||
|
"<",
|
||||||
|
"<=",
|
||||||
|
"=",
|
||||||
|
"==",
|
||||||
|
">",
|
||||||
|
">=",
|
||||||
|
"EMPTY-NODE",
|
||||||
|
"Inst",
|
||||||
|
"StackTraceElement->vec",
|
||||||
|
"Throwable->map",
|
||||||
|
"accessor",
|
||||||
|
"aclone",
|
||||||
|
"add-classpath",
|
||||||
|
"add-watch",
|
||||||
|
"agent",
|
||||||
|
"agent-error",
|
||||||
|
"agent-errors",
|
||||||
|
"aget",
|
||||||
|
"alength",
|
||||||
|
"alias",
|
||||||
|
"all-ns",
|
||||||
|
"alter",
|
||||||
|
"alter-meta!",
|
||||||
|
"alter-var-root",
|
||||||
|
"amap",
|
||||||
|
"ancestors",
|
||||||
|
"and",
|
||||||
|
"any?",
|
||||||
|
"apply",
|
||||||
|
"areduce",
|
||||||
|
"array-map",
|
||||||
|
"as->",
|
||||||
|
"aset",
|
||||||
|
"aset-boolean",
|
||||||
|
"aset-byte",
|
||||||
|
"aset-char",
|
||||||
|
"aset-double",
|
||||||
|
"aset-float",
|
||||||
|
"aset-int",
|
||||||
|
"aset-long",
|
||||||
|
"aset-short",
|
||||||
|
"assert",
|
||||||
|
"assoc",
|
||||||
|
"assoc!",
|
||||||
|
"assoc-in",
|
||||||
|
"associative?",
|
||||||
|
"atom",
|
||||||
|
"await",
|
||||||
|
"await-for",
|
||||||
|
"await1",
|
||||||
|
"bases",
|
||||||
|
"bean",
|
||||||
|
"bigdec",
|
||||||
|
"bigint",
|
||||||
|
"biginteger",
|
||||||
|
"binding",
|
||||||
|
"bit-and",
|
||||||
|
"bit-and-not",
|
||||||
|
"bit-clear",
|
||||||
|
"bit-flip",
|
||||||
|
"bit-not",
|
||||||
|
"bit-or",
|
||||||
|
"bit-set",
|
||||||
|
"bit-shift-left",
|
||||||
|
"bit-shift-right",
|
||||||
|
"bit-test",
|
||||||
|
"bit-xor",
|
||||||
|
"boolean",
|
||||||
|
"boolean-array",
|
||||||
|
"boolean?",
|
||||||
|
"booleans",
|
||||||
|
"bound-fn",
|
||||||
|
"bound-fn*",
|
||||||
|
"bound?",
|
||||||
|
"bounded-count",
|
||||||
|
"butlast",
|
||||||
|
"byte",
|
||||||
|
"byte-array",
|
||||||
|
"bytes",
|
||||||
|
"bytes?",
|
||||||
|
"case",
|
||||||
|
"cast",
|
||||||
|
"cat",
|
||||||
|
"char",
|
||||||
|
"char-array",
|
||||||
|
"char-escape-string",
|
||||||
|
"char-name-string",
|
||||||
|
"char?",
|
||||||
|
"chars",
|
||||||
|
"chunk",
|
||||||
|
"chunk-append",
|
||||||
|
"chunk-buffer",
|
||||||
|
"chunk-cons",
|
||||||
|
"chunk-first",
|
||||||
|
"chunk-next",
|
||||||
|
"chunk-rest",
|
||||||
|
"chunked-seq?",
|
||||||
|
"class",
|
||||||
|
"class?",
|
||||||
|
"clear-agent-errors",
|
||||||
|
"clojure-version",
|
||||||
|
"coll?",
|
||||||
|
"comment",
|
||||||
|
"commute",
|
||||||
|
"comp",
|
||||||
|
"comparator",
|
||||||
|
"compare",
|
||||||
|
"compare-and-set!",
|
||||||
|
"compile",
|
||||||
|
"complement",
|
||||||
|
"completing",
|
||||||
|
"concat",
|
||||||
|
"cond",
|
||||||
|
"cond->",
|
||||||
|
"cond->>",
|
||||||
|
"condp",
|
||||||
|
"conj",
|
||||||
|
"conj!",
|
||||||
|
"cons",
|
||||||
|
"constantly",
|
||||||
|
"construct-proxy",
|
||||||
|
"contains?",
|
||||||
|
"count",
|
||||||
|
"counted?",
|
||||||
|
"create-ns",
|
||||||
|
"create-struct",
|
||||||
|
"cycle",
|
||||||
|
"dec",
|
||||||
|
"dec'",
|
||||||
|
"decimal?",
|
||||||
|
"declare",
|
||||||
|
"dedupe",
|
||||||
|
"default-data-readers",
|
||||||
|
"definline",
|
||||||
|
"definterface",
|
||||||
|
"defmacro",
|
||||||
|
"defmethod",
|
||||||
|
"defmulti",
|
||||||
|
"defn",
|
||||||
|
"defn-",
|
||||||
|
"defonce",
|
||||||
|
"defprotocol",
|
||||||
|
"defrecord",
|
||||||
|
"defstruct",
|
||||||
|
"deftype",
|
||||||
|
"delay",
|
||||||
|
"delay?",
|
||||||
|
"deliver",
|
||||||
|
"denominator",
|
||||||
|
"deref",
|
||||||
|
"derive",
|
||||||
|
"descendants",
|
||||||
|
"destructure",
|
||||||
|
"disj",
|
||||||
|
"disj!",
|
||||||
|
"dissoc",
|
||||||
|
"dissoc!",
|
||||||
|
"distinct",
|
||||||
|
"distinct?",
|
||||||
|
"doall",
|
||||||
|
"dorun",
|
||||||
|
"doseq",
|
||||||
|
"dosync",
|
||||||
|
"dotimes",
|
||||||
|
"doto",
|
||||||
|
"double",
|
||||||
|
"double-array",
|
||||||
|
"double?",
|
||||||
|
"doubles",
|
||||||
|
"drop",
|
||||||
|
"drop-last",
|
||||||
|
"drop-while",
|
||||||
|
"eduction",
|
||||||
|
"empty",
|
||||||
|
"empty?",
|
||||||
|
"ensure",
|
||||||
|
"ensure-reduced",
|
||||||
|
"enumeration-seq",
|
||||||
|
"error-handler",
|
||||||
|
"error-mode",
|
||||||
|
"eval",
|
||||||
|
"even?",
|
||||||
|
"every-pred",
|
||||||
|
"every?",
|
||||||
|
"ex-data",
|
||||||
|
"ex-info",
|
||||||
|
"extend",
|
||||||
|
"extend-protocol",
|
||||||
|
"extend-type",
|
||||||
|
"extenders",
|
||||||
|
"extends?",
|
||||||
|
"false?",
|
||||||
|
"ffirst",
|
||||||
|
"file-seq",
|
||||||
|
"filter",
|
||||||
|
"filterv",
|
||||||
|
"find",
|
||||||
|
"find-keyword",
|
||||||
|
"find-ns",
|
||||||
|
"find-protocol-impl",
|
||||||
|
"find-protocol-method",
|
||||||
|
"find-var",
|
||||||
|
"first",
|
||||||
|
"flatten",
|
||||||
|
"float",
|
||||||
|
"float-array",
|
||||||
|
"float?",
|
||||||
|
"floats",
|
||||||
|
"flush",
|
||||||
|
"fn",
|
||||||
|
"fn?",
|
||||||
|
"fnext",
|
||||||
|
"fnil",
|
||||||
|
"for",
|
||||||
|
"force",
|
||||||
|
"format",
|
||||||
|
"frequencies",
|
||||||
|
"future",
|
||||||
|
"future-call",
|
||||||
|
"future-cancel",
|
||||||
|
"future-cancelled?",
|
||||||
|
"future-done?",
|
||||||
|
"future?",
|
||||||
|
"gen-class",
|
||||||
|
"gen-interface",
|
||||||
|
"gensym",
|
||||||
|
"get",
|
||||||
|
"get-in",
|
||||||
|
"get-method",
|
||||||
|
"get-proxy-class",
|
||||||
|
"get-thread-bindings",
|
||||||
|
"get-validator",
|
||||||
|
"group-by",
|
||||||
|
"halt-when",
|
||||||
|
"hash",
|
||||||
|
"hash-combine",
|
||||||
|
"hash-map",
|
||||||
|
"hash-ordered-coll",
|
||||||
|
"hash-set",
|
||||||
|
"hash-unordered-coll",
|
||||||
|
"ident?",
|
||||||
|
"identical?",
|
||||||
|
"identity",
|
||||||
|
"if-let",
|
||||||
|
"if-not",
|
||||||
|
"if-some",
|
||||||
|
"ifn?",
|
||||||
|
"import",
|
||||||
|
"in-ns",
|
||||||
|
"inc",
|
||||||
|
"inc'",
|
||||||
|
"indexed?",
|
||||||
|
"init-proxy",
|
||||||
|
"inst-ms",
|
||||||
|
"inst-ms*",
|
||||||
|
"inst?",
|
||||||
|
"instance?",
|
||||||
|
"int",
|
||||||
|
"int-array",
|
||||||
|
"int?",
|
||||||
|
"integer?",
|
||||||
|
"interleave",
|
||||||
|
"intern",
|
||||||
|
"interpose",
|
||||||
|
"into",
|
||||||
|
"into-array",
|
||||||
|
"ints",
|
||||||
|
"io!",
|
||||||
|
"isa?",
|
||||||
|
"iterate",
|
||||||
|
"iterator-seq",
|
||||||
|
"juxt",
|
||||||
|
"keep",
|
||||||
|
"keep-indexed",
|
||||||
|
"key",
|
||||||
|
"keys",
|
||||||
|
"keyword",
|
||||||
|
"keyword?",
|
||||||
|
"last",
|
||||||
|
"lazy-cat",
|
||||||
|
"lazy-seq",
|
||||||
|
"let",
|
||||||
|
"letfn",
|
||||||
|
"line-seq",
|
||||||
|
"list",
|
||||||
|
"list*",
|
||||||
|
"list?",
|
||||||
|
"load",
|
||||||
|
"load-file",
|
||||||
|
"load-reader",
|
||||||
|
"load-string",
|
||||||
|
"loaded-libs",
|
||||||
|
"locking",
|
||||||
|
"long",
|
||||||
|
"long-array",
|
||||||
|
"longs",
|
||||||
|
"loop",
|
||||||
|
"macroexpand",
|
||||||
|
"macroexpand-1",
|
||||||
|
"make-array",
|
||||||
|
"make-hierarchy",
|
||||||
|
"map",
|
||||||
|
"map-entry?",
|
||||||
|
"map-indexed",
|
||||||
|
"map?",
|
||||||
|
"mapcat",
|
||||||
|
"mapv",
|
||||||
|
"max",
|
||||||
|
"max-key",
|
||||||
|
"memfn",
|
||||||
|
"memoize",
|
||||||
|
"merge",
|
||||||
|
"merge-with",
|
||||||
|
"meta",
|
||||||
|
"method-sig",
|
||||||
|
"methods",
|
||||||
|
"min",
|
||||||
|
"min-key",
|
||||||
|
"mix-collection-hash",
|
||||||
|
"mod",
|
||||||
|
"munge",
|
||||||
|
"name",
|
||||||
|
"namespace",
|
||||||
|
"namespace-munge",
|
||||||
|
"nat-int?",
|
||||||
|
"neg-int?",
|
||||||
|
"neg?",
|
||||||
|
"newline",
|
||||||
|
"next",
|
||||||
|
"nfirst",
|
||||||
|
"nil?",
|
||||||
|
"nnext",
|
||||||
|
"not",
|
||||||
|
"not-any?",
|
||||||
|
"not-empty",
|
||||||
|
"not-every?",
|
||||||
|
"not=",
|
||||||
|
"ns",
|
||||||
|
"ns-aliases",
|
||||||
|
"ns-imports",
|
||||||
|
"ns-interns",
|
||||||
|
"ns-map",
|
||||||
|
"ns-name",
|
||||||
|
"ns-publics",
|
||||||
|
"ns-refers",
|
||||||
|
"ns-resolve",
|
||||||
|
"ns-unalias",
|
||||||
|
"ns-unmap",
|
||||||
|
"nth",
|
||||||
|
"nthnext",
|
||||||
|
"nthrest",
|
||||||
|
"num",
|
||||||
|
"number?",
|
||||||
|
"numerator",
|
||||||
|
"object-array",
|
||||||
|
"odd?",
|
||||||
|
"or",
|
||||||
|
"parents",
|
||||||
|
"partial",
|
||||||
|
"partition",
|
||||||
|
"partition-all",
|
||||||
|
"partition-by",
|
||||||
|
"pcalls",
|
||||||
|
"peek",
|
||||||
|
"persistent!",
|
||||||
|
"pmap",
|
||||||
|
"pop",
|
||||||
|
"pop!",
|
||||||
|
"pop-thread-bindings",
|
||||||
|
"pos-int?",
|
||||||
|
"pos?",
|
||||||
|
"pr",
|
||||||
|
"pr-str",
|
||||||
|
"prefer-method",
|
||||||
|
"prefers",
|
||||||
|
"primitives-classnames",
|
||||||
|
"print",
|
||||||
|
"print-ctor",
|
||||||
|
"print-dup",
|
||||||
|
"print-method",
|
||||||
|
"print-simple",
|
||||||
|
"print-str",
|
||||||
|
"printf",
|
||||||
|
"println",
|
||||||
|
"println-str",
|
||||||
|
"prn",
|
||||||
|
"prn-str",
|
||||||
|
"promise",
|
||||||
|
"proxy",
|
||||||
|
"proxy-call-with-super",
|
||||||
|
"proxy-mappings",
|
||||||
|
"proxy-name",
|
||||||
|
"proxy-super",
|
||||||
|
"push-thread-bindings",
|
||||||
|
"pvalues",
|
||||||
|
"qualified-ident?",
|
||||||
|
"qualified-keyword?",
|
||||||
|
"qualified-symbol?",
|
||||||
|
"quot",
|
||||||
|
"rand",
|
||||||
|
"rand-int",
|
||||||
|
"rand-nth",
|
||||||
|
"random-sample",
|
||||||
|
"range",
|
||||||
|
"ratio?",
|
||||||
|
"rational?",
|
||||||
|
"rationalize",
|
||||||
|
"re-find",
|
||||||
|
"re-groups",
|
||||||
|
"re-matcher",
|
||||||
|
"re-matches",
|
||||||
|
"re-pattern",
|
||||||
|
"re-seq",
|
||||||
|
"read",
|
||||||
|
"read-line",
|
||||||
|
"read-string",
|
||||||
|
"reader-conditional",
|
||||||
|
"reader-conditional?",
|
||||||
|
"realized?",
|
||||||
|
"record?",
|
||||||
|
"reduce",
|
||||||
|
"reduce-kv",
|
||||||
|
"reduced",
|
||||||
|
"reduced?",
|
||||||
|
"reductions",
|
||||||
|
"ref",
|
||||||
|
"ref-history-count",
|
||||||
|
"ref-max-history",
|
||||||
|
"ref-min-history",
|
||||||
|
"ref-set",
|
||||||
|
"refer",
|
||||||
|
"refer-clojure",
|
||||||
|
"reify",
|
||||||
|
"release-pending-sends",
|
||||||
|
"rem",
|
||||||
|
"remove",
|
||||||
|
"remove-all-methods",
|
||||||
|
"remove-method",
|
||||||
|
"remove-ns",
|
||||||
|
"remove-watch",
|
||||||
|
"repeat",
|
||||||
|
"repeatedly",
|
||||||
|
"replace",
|
||||||
|
"replicate",
|
||||||
|
"require",
|
||||||
|
"reset!",
|
||||||
|
"reset-meta!",
|
||||||
|
"reset-vals!",
|
||||||
|
"resolve",
|
||||||
|
"rest",
|
||||||
|
"restart-agent",
|
||||||
|
"resultset-seq",
|
||||||
|
"reverse",
|
||||||
|
"reversible?",
|
||||||
|
"rseq",
|
||||||
|
"rsubseq",
|
||||||
|
"run!",
|
||||||
|
"satisfies?",
|
||||||
|
"second",
|
||||||
|
"select-keys",
|
||||||
|
"send",
|
||||||
|
"send-off",
|
||||||
|
"send-via",
|
||||||
|
"seq",
|
||||||
|
"seq?",
|
||||||
|
"seqable?",
|
||||||
|
"seque",
|
||||||
|
"sequence",
|
||||||
|
"sequential?",
|
||||||
|
"set",
|
||||||
|
"set-agent-send-executor!",
|
||||||
|
"set-agent-send-off-executor!",
|
||||||
|
"set-error-handler!",
|
||||||
|
"set-error-mode!",
|
||||||
|
"set-validator!",
|
||||||
|
"set?",
|
||||||
|
"short",
|
||||||
|
"short-array",
|
||||||
|
"shorts",
|
||||||
|
"shuffle",
|
||||||
|
"shutdown-agents",
|
||||||
|
"simple-ident?",
|
||||||
|
"simple-keyword?",
|
||||||
|
"simple-symbol?",
|
||||||
|
"slurp",
|
||||||
|
"some",
|
||||||
|
"some->",
|
||||||
|
"some->>",
|
||||||
|
"some-fn",
|
||||||
|
"some?",
|
||||||
|
"sort",
|
||||||
|
"sort-by",
|
||||||
|
"sorted-map",
|
||||||
|
"sorted-map-by",
|
||||||
|
"sorted-set",
|
||||||
|
"sorted-set-by",
|
||||||
|
"sorted?",
|
||||||
|
"special-symbol?",
|
||||||
|
"spit",
|
||||||
|
"split-at",
|
||||||
|
"split-with",
|
||||||
|
"str",
|
||||||
|
"string?",
|
||||||
|
"struct",
|
||||||
|
"struct-map",
|
||||||
|
"subs",
|
||||||
|
"subseq",
|
||||||
|
"subvec",
|
||||||
|
"supers",
|
||||||
|
"swap!",
|
||||||
|
"swap-vals!",
|
||||||
|
"symbol",
|
||||||
|
"symbol?",
|
||||||
|
"sync",
|
||||||
|
"tagged-literal",
|
||||||
|
"tagged-literal?",
|
||||||
|
"take",
|
||||||
|
"take-last",
|
||||||
|
"take-nth",
|
||||||
|
"take-while",
|
||||||
|
"test",
|
||||||
|
"the-ns",
|
||||||
|
"thread-bound?",
|
||||||
|
"time",
|
||||||
|
"to-array",
|
||||||
|
"to-array-2d",
|
||||||
|
"trampoline",
|
||||||
|
"transduce",
|
||||||
|
"transient",
|
||||||
|
"tree-seq",
|
||||||
|
"true?",
|
||||||
|
"type",
|
||||||
|
"unchecked-add",
|
||||||
|
"unchecked-add-int",
|
||||||
|
"unchecked-byte",
|
||||||
|
"unchecked-char",
|
||||||
|
"unchecked-dec",
|
||||||
|
"unchecked-dec-int",
|
||||||
|
"unchecked-divide-int",
|
||||||
|
"unchecked-double",
|
||||||
|
"unchecked-float",
|
||||||
|
"unchecked-inc",
|
||||||
|
"unchecked-inc-int",
|
||||||
|
"unchecked-int",
|
||||||
|
"unchecked-long",
|
||||||
|
"unchecked-multiply",
|
||||||
|
"unchecked-multiply-int",
|
||||||
|
"unchecked-negate",
|
||||||
|
"unchecked-negate-int",
|
||||||
|
"unchecked-remainder-int",
|
||||||
|
"unchecked-short",
|
||||||
|
"unchecked-subtract",
|
||||||
|
"unchecked-subtract-int",
|
||||||
|
"underive",
|
||||||
|
"unquote",
|
||||||
|
"unquote-splicing",
|
||||||
|
"unreduced",
|
||||||
|
"unsigned-bit-shift-right",
|
||||||
|
"update",
|
||||||
|
"update-in",
|
||||||
|
"update-proxy",
|
||||||
|
"uri?",
|
||||||
|
"use",
|
||||||
|
"uuid?",
|
||||||
|
"val",
|
||||||
|
"vals",
|
||||||
|
"var-get",
|
||||||
|
"var-set",
|
||||||
|
"var?",
|
||||||
|
"vary-meta",
|
||||||
|
"vec",
|
||||||
|
"vector",
|
||||||
|
"vector-of",
|
||||||
|
"vector?",
|
||||||
|
"volatile!",
|
||||||
|
"volatile?",
|
||||||
|
"vreset!",
|
||||||
|
"vswap!",
|
||||||
|
"when",
|
||||||
|
"when-first",
|
||||||
|
"when-let",
|
||||||
|
"when-not",
|
||||||
|
"when-some",
|
||||||
|
"while",
|
||||||
|
"with-bindings",
|
||||||
|
"with-bindings*",
|
||||||
|
"with-in-str",
|
||||||
|
"with-loading-context",
|
||||||
|
"with-local-vars",
|
||||||
|
"with-meta",
|
||||||
|
"with-open",
|
||||||
|
"with-out-str",
|
||||||
|
"with-precision",
|
||||||
|
"with-redefs",
|
||||||
|
"with-redefs-fn",
|
||||||
|
"xml-seq",
|
||||||
|
"zero?",
|
||||||
|
"zipmap"
|
||||||
|
],
|
||||||
|
tokenizer: {
|
||||||
|
root: [
|
||||||
|
{ include: "@whitespace" },
|
||||||
|
[/@numbers/, "number"],
|
||||||
|
[/@characters/, "string"],
|
||||||
|
{ include: "@string" },
|
||||||
|
[/[()\[\]{}]/, "@brackets"],
|
||||||
|
[/\/#"(?:\.|(?:")|[^"\n])*"\/g/, "regexp"],
|
||||||
|
[/[#'@^`~]/, "meta"],
|
||||||
|
[
|
||||||
|
/@qualifiedSymbols/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"^:.+$": "constant",
|
||||||
|
"@specialForms": "keyword",
|
||||||
|
"@coreSymbols": "keyword",
|
||||||
|
"@constants": "constant",
|
||||||
|
"@default": "identifier"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
],
|
||||||
|
whitespace: [
|
||||||
|
[/[\s,]+/, "white"],
|
||||||
|
[/;.*$/, "comment"],
|
||||||
|
[/\(comment\b/, "comment", "@comment"]
|
||||||
|
],
|
||||||
|
comment: [
|
||||||
|
[/\(/, "comment", "@push"],
|
||||||
|
[/\)/, "comment", "@pop"],
|
||||||
|
[/[^()]/, "comment"]
|
||||||
|
],
|
||||||
|
string: [[/"/, "string", "@multiLineString"]],
|
||||||
|
multiLineString: [
|
||||||
|
[/"/, "string", "@popall"],
|
||||||
|
[/@escapes/, "string.escape"],
|
||||||
|
[/./, "string"]
|
||||||
|
]
|
||||||
|
}
|
||||||
|
};
|
||||||
|
return __toCommonJS(clojure_exports);
|
||||||
|
})();
|
||||||
|
return moduleExports;
|
||||||
|
});
|
||||||
@@ -0,0 +1,260 @@
|
|||||||
|
/*!-----------------------------------------------------------------------------
|
||||||
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||||
|
* Version: 0.33.0(4b1abad427e58dbedc1215d99a0902ffc885fcd4)
|
||||||
|
* Released under the MIT license
|
||||||
|
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
||||||
|
*-----------------------------------------------------------------------------*/
|
||||||
|
define("vs/basic-languages/coffee/coffee", ["require"],(require)=>{
|
||||||
|
var moduleExports = (() => {
|
||||||
|
var __defProp = Object.defineProperty;
|
||||||
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||||
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||||
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||||
|
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
||||||
|
var __export = (target, all) => {
|
||||||
|
for (var name in all)
|
||||||
|
__defProp(target, name, { get: all[name], enumerable: true });
|
||||||
|
};
|
||||||
|
var __reExport = (target, module, copyDefault, desc) => {
|
||||||
|
if (module && typeof module === "object" || typeof module === "function") {
|
||||||
|
for (let key of __getOwnPropNames(module))
|
||||||
|
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
||||||
|
__defProp(target, key, { get: () => module[key], enumerable: !(desc = __getOwnPropDesc(module, key)) || desc.enumerable });
|
||||||
|
}
|
||||||
|
return target;
|
||||||
|
};
|
||||||
|
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
||||||
|
return (module, temp) => {
|
||||||
|
return cache && cache.get(module) || (temp = __reExport(__markAsModule({}), module, 1), cache && cache.set(module, temp), temp);
|
||||||
|
};
|
||||||
|
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
||||||
|
|
||||||
|
// src/basic-languages/coffee/coffee.ts
|
||||||
|
var coffee_exports = {};
|
||||||
|
__export(coffee_exports, {
|
||||||
|
conf: () => conf,
|
||||||
|
language: () => language
|
||||||
|
});
|
||||||
|
var conf = {
|
||||||
|
wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\@\#%\^\&\*\(\)\=\$\-\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,
|
||||||
|
comments: {
|
||||||
|
blockComment: ["###", "###"],
|
||||||
|
lineComment: "#"
|
||||||
|
},
|
||||||
|
brackets: [
|
||||||
|
["{", "}"],
|
||||||
|
["[", "]"],
|
||||||
|
["(", ")"]
|
||||||
|
],
|
||||||
|
autoClosingPairs: [
|
||||||
|
{ open: "{", close: "}" },
|
||||||
|
{ open: "[", close: "]" },
|
||||||
|
{ open: "(", close: ")" },
|
||||||
|
{ open: '"', close: '"' },
|
||||||
|
{ open: "'", close: "'" }
|
||||||
|
],
|
||||||
|
surroundingPairs: [
|
||||||
|
{ open: "{", close: "}" },
|
||||||
|
{ open: "[", close: "]" },
|
||||||
|
{ open: "(", close: ")" },
|
||||||
|
{ open: '"', close: '"' },
|
||||||
|
{ open: "'", close: "'" }
|
||||||
|
],
|
||||||
|
folding: {
|
||||||
|
markers: {
|
||||||
|
start: new RegExp("^\\s*#region\\b"),
|
||||||
|
end: new RegExp("^\\s*#endregion\\b")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
var language = {
|
||||||
|
defaultToken: "",
|
||||||
|
ignoreCase: true,
|
||||||
|
tokenPostfix: ".coffee",
|
||||||
|
brackets: [
|
||||||
|
{ open: "{", close: "}", token: "delimiter.curly" },
|
||||||
|
{ open: "[", close: "]", token: "delimiter.square" },
|
||||||
|
{ open: "(", close: ")", token: "delimiter.parenthesis" }
|
||||||
|
],
|
||||||
|
regEx: /\/(?!\/\/)(?:[^\/\\]|\\.)*\/[igm]*/,
|
||||||
|
keywords: [
|
||||||
|
"and",
|
||||||
|
"or",
|
||||||
|
"is",
|
||||||
|
"isnt",
|
||||||
|
"not",
|
||||||
|
"on",
|
||||||
|
"yes",
|
||||||
|
"@",
|
||||||
|
"no",
|
||||||
|
"off",
|
||||||
|
"true",
|
||||||
|
"false",
|
||||||
|
"null",
|
||||||
|
"this",
|
||||||
|
"new",
|
||||||
|
"delete",
|
||||||
|
"typeof",
|
||||||
|
"in",
|
||||||
|
"instanceof",
|
||||||
|
"return",
|
||||||
|
"throw",
|
||||||
|
"break",
|
||||||
|
"continue",
|
||||||
|
"debugger",
|
||||||
|
"if",
|
||||||
|
"else",
|
||||||
|
"switch",
|
||||||
|
"for",
|
||||||
|
"while",
|
||||||
|
"do",
|
||||||
|
"try",
|
||||||
|
"catch",
|
||||||
|
"finally",
|
||||||
|
"class",
|
||||||
|
"extends",
|
||||||
|
"super",
|
||||||
|
"undefined",
|
||||||
|
"then",
|
||||||
|
"unless",
|
||||||
|
"until",
|
||||||
|
"loop",
|
||||||
|
"of",
|
||||||
|
"by",
|
||||||
|
"when"
|
||||||
|
],
|
||||||
|
symbols: /[=><!~?&%|+\-*\/\^\.,\:]+/,
|
||||||
|
escapes: /\\(?:[abfnrtv\\"'$]|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
|
||||||
|
tokenizer: {
|
||||||
|
root: [
|
||||||
|
[/\@[a-zA-Z_]\w*/, "variable.predefined"],
|
||||||
|
[
|
||||||
|
/[a-zA-Z_]\w*/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
this: "variable.predefined",
|
||||||
|
"@keywords": { token: "keyword.$0" },
|
||||||
|
"@default": ""
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/[ \t\r\n]+/, ""],
|
||||||
|
[/###/, "comment", "@comment"],
|
||||||
|
[/#.*$/, "comment"],
|
||||||
|
["///", { token: "regexp", next: "@hereregexp" }],
|
||||||
|
[/^(\s*)(@regEx)/, ["", "regexp"]],
|
||||||
|
[/(\()(\s*)(@regEx)/, ["@brackets", "", "regexp"]],
|
||||||
|
[/(\,)(\s*)(@regEx)/, ["delimiter", "", "regexp"]],
|
||||||
|
[/(\=)(\s*)(@regEx)/, ["delimiter", "", "regexp"]],
|
||||||
|
[/(\:)(\s*)(@regEx)/, ["delimiter", "", "regexp"]],
|
||||||
|
[/(\[)(\s*)(@regEx)/, ["@brackets", "", "regexp"]],
|
||||||
|
[/(\!)(\s*)(@regEx)/, ["delimiter", "", "regexp"]],
|
||||||
|
[/(\&)(\s*)(@regEx)/, ["delimiter", "", "regexp"]],
|
||||||
|
[/(\|)(\s*)(@regEx)/, ["delimiter", "", "regexp"]],
|
||||||
|
[/(\?)(\s*)(@regEx)/, ["delimiter", "", "regexp"]],
|
||||||
|
[/(\{)(\s*)(@regEx)/, ["@brackets", "", "regexp"]],
|
||||||
|
[/(\;)(\s*)(@regEx)/, ["", "", "regexp"]],
|
||||||
|
[
|
||||||
|
/}/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"$S2==interpolatedstring": {
|
||||||
|
token: "string",
|
||||||
|
next: "@pop"
|
||||||
|
},
|
||||||
|
"@default": "@brackets"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/[{}()\[\]]/, "@brackets"],
|
||||||
|
[/@symbols/, "delimiter"],
|
||||||
|
[/\d+[eE]([\-+]?\d+)?/, "number.float"],
|
||||||
|
[/\d+\.\d+([eE][\-+]?\d+)?/, "number.float"],
|
||||||
|
[/0[xX][0-9a-fA-F]+/, "number.hex"],
|
||||||
|
[/0[0-7]+(?!\d)/, "number.octal"],
|
||||||
|
[/\d+/, "number"],
|
||||||
|
[/[,.]/, "delimiter"],
|
||||||
|
[/"""/, "string", '@herestring."""'],
|
||||||
|
[/'''/, "string", "@herestring.'''"],
|
||||||
|
[
|
||||||
|
/"/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"@eos": "string",
|
||||||
|
"@default": { token: "string", next: '@string."' }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[
|
||||||
|
/'/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"@eos": "string",
|
||||||
|
"@default": { token: "string", next: "@string.'" }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
],
|
||||||
|
string: [
|
||||||
|
[/[^"'\#\\]+/, "string"],
|
||||||
|
[/@escapes/, "string.escape"],
|
||||||
|
[/\./, "string.escape.invalid"],
|
||||||
|
[/\./, "string.escape.invalid"],
|
||||||
|
[
|
||||||
|
/#{/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
'$S2=="': {
|
||||||
|
token: "string",
|
||||||
|
next: "root.interpolatedstring"
|
||||||
|
},
|
||||||
|
"@default": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[
|
||||||
|
/["']/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"$#==$S2": { token: "string", next: "@pop" },
|
||||||
|
"@default": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/#/, "string"]
|
||||||
|
],
|
||||||
|
herestring: [
|
||||||
|
[
|
||||||
|
/("""|''')/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"$1==$S2": { token: "string", next: "@pop" },
|
||||||
|
"@default": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/[^#\\'"]+/, "string"],
|
||||||
|
[/['"]+/, "string"],
|
||||||
|
[/@escapes/, "string.escape"],
|
||||||
|
[/\./, "string.escape.invalid"],
|
||||||
|
[/#{/, { token: "string.quote", next: "root.interpolatedstring" }],
|
||||||
|
[/#/, "string"]
|
||||||
|
],
|
||||||
|
comment: [
|
||||||
|
[/[^#]+/, "comment"],
|
||||||
|
[/###/, "comment", "@pop"],
|
||||||
|
[/#/, "comment"]
|
||||||
|
],
|
||||||
|
hereregexp: [
|
||||||
|
[/[^\\\/#]+/, "regexp"],
|
||||||
|
[/\\./, "regexp"],
|
||||||
|
[/#.*$/, "comment"],
|
||||||
|
["///[igm]*", { token: "regexp", next: "@pop" }],
|
||||||
|
[/\//, "regexp"]
|
||||||
|
]
|
||||||
|
}
|
||||||
|
};
|
||||||
|
return __toCommonJS(coffee_exports);
|
||||||
|
})();
|
||||||
|
return moduleExports;
|
||||||
|
});
|
||||||
@@ -0,0 +1,419 @@
|
|||||||
|
/*!-----------------------------------------------------------------------------
|
||||||
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||||
|
* Version: 0.33.0(4b1abad427e58dbedc1215d99a0902ffc885fcd4)
|
||||||
|
* Released under the MIT license
|
||||||
|
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
||||||
|
*-----------------------------------------------------------------------------*/
|
||||||
|
define("vs/basic-languages/cpp/cpp", ["require"],(require)=>{
|
||||||
|
var moduleExports = (() => {
|
||||||
|
var __defProp = Object.defineProperty;
|
||||||
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||||
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||||
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||||
|
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
||||||
|
var __export = (target, all) => {
|
||||||
|
for (var name in all)
|
||||||
|
__defProp(target, name, { get: all[name], enumerable: true });
|
||||||
|
};
|
||||||
|
var __reExport = (target, module, copyDefault, desc) => {
|
||||||
|
if (module && typeof module === "object" || typeof module === "function") {
|
||||||
|
for (let key of __getOwnPropNames(module))
|
||||||
|
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
||||||
|
__defProp(target, key, { get: () => module[key], enumerable: !(desc = __getOwnPropDesc(module, key)) || desc.enumerable });
|
||||||
|
}
|
||||||
|
return target;
|
||||||
|
};
|
||||||
|
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
||||||
|
return (module, temp) => {
|
||||||
|
return cache && cache.get(module) || (temp = __reExport(__markAsModule({}), module, 1), cache && cache.set(module, temp), temp);
|
||||||
|
};
|
||||||
|
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
||||||
|
|
||||||
|
// src/basic-languages/cpp/cpp.ts
|
||||||
|
var cpp_exports = {};
|
||||||
|
__export(cpp_exports, {
|
||||||
|
conf: () => conf,
|
||||||
|
language: () => language
|
||||||
|
});
|
||||||
|
var conf = {
|
||||||
|
comments: {
|
||||||
|
lineComment: "//",
|
||||||
|
blockComment: ["/*", "*/"]
|
||||||
|
},
|
||||||
|
brackets: [
|
||||||
|
["{", "}"],
|
||||||
|
["[", "]"],
|
||||||
|
["(", ")"]
|
||||||
|
],
|
||||||
|
autoClosingPairs: [
|
||||||
|
{ open: "[", close: "]" },
|
||||||
|
{ open: "{", close: "}" },
|
||||||
|
{ open: "(", close: ")" },
|
||||||
|
{ open: "'", close: "'", notIn: ["string", "comment"] },
|
||||||
|
{ open: '"', close: '"', notIn: ["string"] }
|
||||||
|
],
|
||||||
|
surroundingPairs: [
|
||||||
|
{ open: "{", close: "}" },
|
||||||
|
{ open: "[", close: "]" },
|
||||||
|
{ open: "(", close: ")" },
|
||||||
|
{ open: '"', close: '"' },
|
||||||
|
{ open: "'", close: "'" }
|
||||||
|
],
|
||||||
|
folding: {
|
||||||
|
markers: {
|
||||||
|
start: new RegExp("^\\s*#pragma\\s+region\\b"),
|
||||||
|
end: new RegExp("^\\s*#pragma\\s+endregion\\b")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
var language = {
|
||||||
|
defaultToken: "",
|
||||||
|
tokenPostfix: ".cpp",
|
||||||
|
brackets: [
|
||||||
|
{ token: "delimiter.curly", open: "{", close: "}" },
|
||||||
|
{ token: "delimiter.parenthesis", open: "(", close: ")" },
|
||||||
|
{ token: "delimiter.square", open: "[", close: "]" },
|
||||||
|
{ token: "delimiter.angle", open: "<", close: ">" }
|
||||||
|
],
|
||||||
|
keywords: [
|
||||||
|
"abstract",
|
||||||
|
"amp",
|
||||||
|
"array",
|
||||||
|
"auto",
|
||||||
|
"bool",
|
||||||
|
"break",
|
||||||
|
"case",
|
||||||
|
"catch",
|
||||||
|
"char",
|
||||||
|
"class",
|
||||||
|
"const",
|
||||||
|
"constexpr",
|
||||||
|
"const_cast",
|
||||||
|
"continue",
|
||||||
|
"cpu",
|
||||||
|
"decltype",
|
||||||
|
"default",
|
||||||
|
"delegate",
|
||||||
|
"delete",
|
||||||
|
"do",
|
||||||
|
"double",
|
||||||
|
"dynamic_cast",
|
||||||
|
"each",
|
||||||
|
"else",
|
||||||
|
"enum",
|
||||||
|
"event",
|
||||||
|
"explicit",
|
||||||
|
"export",
|
||||||
|
"extern",
|
||||||
|
"false",
|
||||||
|
"final",
|
||||||
|
"finally",
|
||||||
|
"float",
|
||||||
|
"for",
|
||||||
|
"friend",
|
||||||
|
"gcnew",
|
||||||
|
"generic",
|
||||||
|
"goto",
|
||||||
|
"if",
|
||||||
|
"in",
|
||||||
|
"initonly",
|
||||||
|
"inline",
|
||||||
|
"int",
|
||||||
|
"interface",
|
||||||
|
"interior_ptr",
|
||||||
|
"internal",
|
||||||
|
"literal",
|
||||||
|
"long",
|
||||||
|
"mutable",
|
||||||
|
"namespace",
|
||||||
|
"new",
|
||||||
|
"noexcept",
|
||||||
|
"nullptr",
|
||||||
|
"__nullptr",
|
||||||
|
"operator",
|
||||||
|
"override",
|
||||||
|
"partial",
|
||||||
|
"pascal",
|
||||||
|
"pin_ptr",
|
||||||
|
"private",
|
||||||
|
"property",
|
||||||
|
"protected",
|
||||||
|
"public",
|
||||||
|
"ref",
|
||||||
|
"register",
|
||||||
|
"reinterpret_cast",
|
||||||
|
"restrict",
|
||||||
|
"return",
|
||||||
|
"safe_cast",
|
||||||
|
"sealed",
|
||||||
|
"short",
|
||||||
|
"signed",
|
||||||
|
"sizeof",
|
||||||
|
"static",
|
||||||
|
"static_assert",
|
||||||
|
"static_cast",
|
||||||
|
"struct",
|
||||||
|
"switch",
|
||||||
|
"template",
|
||||||
|
"this",
|
||||||
|
"thread_local",
|
||||||
|
"throw",
|
||||||
|
"tile_static",
|
||||||
|
"true",
|
||||||
|
"try",
|
||||||
|
"typedef",
|
||||||
|
"typeid",
|
||||||
|
"typename",
|
||||||
|
"union",
|
||||||
|
"unsigned",
|
||||||
|
"using",
|
||||||
|
"virtual",
|
||||||
|
"void",
|
||||||
|
"volatile",
|
||||||
|
"wchar_t",
|
||||||
|
"where",
|
||||||
|
"while",
|
||||||
|
"_asm",
|
||||||
|
"_based",
|
||||||
|
"_cdecl",
|
||||||
|
"_declspec",
|
||||||
|
"_fastcall",
|
||||||
|
"_if_exists",
|
||||||
|
"_if_not_exists",
|
||||||
|
"_inline",
|
||||||
|
"_multiple_inheritance",
|
||||||
|
"_pascal",
|
||||||
|
"_single_inheritance",
|
||||||
|
"_stdcall",
|
||||||
|
"_virtual_inheritance",
|
||||||
|
"_w64",
|
||||||
|
"__abstract",
|
||||||
|
"__alignof",
|
||||||
|
"__asm",
|
||||||
|
"__assume",
|
||||||
|
"__based",
|
||||||
|
"__box",
|
||||||
|
"__builtin_alignof",
|
||||||
|
"__cdecl",
|
||||||
|
"__clrcall",
|
||||||
|
"__declspec",
|
||||||
|
"__delegate",
|
||||||
|
"__event",
|
||||||
|
"__except",
|
||||||
|
"__fastcall",
|
||||||
|
"__finally",
|
||||||
|
"__forceinline",
|
||||||
|
"__gc",
|
||||||
|
"__hook",
|
||||||
|
"__identifier",
|
||||||
|
"__if_exists",
|
||||||
|
"__if_not_exists",
|
||||||
|
"__inline",
|
||||||
|
"__int128",
|
||||||
|
"__int16",
|
||||||
|
"__int32",
|
||||||
|
"__int64",
|
||||||
|
"__int8",
|
||||||
|
"__interface",
|
||||||
|
"__leave",
|
||||||
|
"__m128",
|
||||||
|
"__m128d",
|
||||||
|
"__m128i",
|
||||||
|
"__m256",
|
||||||
|
"__m256d",
|
||||||
|
"__m256i",
|
||||||
|
"__m64",
|
||||||
|
"__multiple_inheritance",
|
||||||
|
"__newslot",
|
||||||
|
"__nogc",
|
||||||
|
"__noop",
|
||||||
|
"__nounwind",
|
||||||
|
"__novtordisp",
|
||||||
|
"__pascal",
|
||||||
|
"__pin",
|
||||||
|
"__pragma",
|
||||||
|
"__property",
|
||||||
|
"__ptr32",
|
||||||
|
"__ptr64",
|
||||||
|
"__raise",
|
||||||
|
"__restrict",
|
||||||
|
"__resume",
|
||||||
|
"__sealed",
|
||||||
|
"__single_inheritance",
|
||||||
|
"__stdcall",
|
||||||
|
"__super",
|
||||||
|
"__thiscall",
|
||||||
|
"__try",
|
||||||
|
"__try_cast",
|
||||||
|
"__typeof",
|
||||||
|
"__unaligned",
|
||||||
|
"__unhook",
|
||||||
|
"__uuidof",
|
||||||
|
"__value",
|
||||||
|
"__virtual_inheritance",
|
||||||
|
"__w64",
|
||||||
|
"__wchar_t"
|
||||||
|
],
|
||||||
|
operators: [
|
||||||
|
"=",
|
||||||
|
">",
|
||||||
|
"<",
|
||||||
|
"!",
|
||||||
|
"~",
|
||||||
|
"?",
|
||||||
|
":",
|
||||||
|
"==",
|
||||||
|
"<=",
|
||||||
|
">=",
|
||||||
|
"!=",
|
||||||
|
"&&",
|
||||||
|
"||",
|
||||||
|
"++",
|
||||||
|
"--",
|
||||||
|
"+",
|
||||||
|
"-",
|
||||||
|
"*",
|
||||||
|
"/",
|
||||||
|
"&",
|
||||||
|
"|",
|
||||||
|
"^",
|
||||||
|
"%",
|
||||||
|
"<<",
|
||||||
|
">>",
|
||||||
|
">>>",
|
||||||
|
"+=",
|
||||||
|
"-=",
|
||||||
|
"*=",
|
||||||
|
"/=",
|
||||||
|
"&=",
|
||||||
|
"|=",
|
||||||
|
"^=",
|
||||||
|
"%=",
|
||||||
|
"<<=",
|
||||||
|
">>=",
|
||||||
|
">>>="
|
||||||
|
],
|
||||||
|
symbols: /[=><!~?:&|+\-*\/\^%]+/,
|
||||||
|
escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
|
||||||
|
integersuffix: /([uU](ll|LL|l|L)|(ll|LL|l|L)?[uU]?)/,
|
||||||
|
floatsuffix: /[fFlL]?/,
|
||||||
|
encoding: /u|u8|U|L/,
|
||||||
|
tokenizer: {
|
||||||
|
root: [
|
||||||
|
[/@encoding?R\"(?:([^ ()\\\t]*))\(/, { token: "string.raw.begin", next: "@raw.$1" }],
|
||||||
|
[
|
||||||
|
/[a-zA-Z_]\w*/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"@keywords": { token: "keyword.$0" },
|
||||||
|
"@default": "identifier"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/^\s*#\s*include/, { token: "keyword.directive.include", next: "@include" }],
|
||||||
|
[/^\s*#\s*\w+/, "keyword.directive"],
|
||||||
|
{ include: "@whitespace" },
|
||||||
|
[/\[\s*\[/, { token: "annotation", next: "@annotation" }],
|
||||||
|
[/[{}()\[\]]/, "@brackets"],
|
||||||
|
[/[<>](?!@symbols)/, "@brackets"],
|
||||||
|
[
|
||||||
|
/@symbols/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"@operators": "delimiter",
|
||||||
|
"@default": ""
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/\d*\d+[eE]([\-+]?\d+)?(@floatsuffix)/, "number.float"],
|
||||||
|
[/\d*\.\d+([eE][\-+]?\d+)?(@floatsuffix)/, "number.float"],
|
||||||
|
[/0[xX][0-9a-fA-F']*[0-9a-fA-F](@integersuffix)/, "number.hex"],
|
||||||
|
[/0[0-7']*[0-7](@integersuffix)/, "number.octal"],
|
||||||
|
[/0[bB][0-1']*[0-1](@integersuffix)/, "number.binary"],
|
||||||
|
[/\d[\d']*\d(@integersuffix)/, "number"],
|
||||||
|
[/\d(@integersuffix)/, "number"],
|
||||||
|
[/[;,.]/, "delimiter"],
|
||||||
|
[/"([^"\\]|\\.)*$/, "string.invalid"],
|
||||||
|
[/"/, "string", "@string"],
|
||||||
|
[/'[^\\']'/, "string"],
|
||||||
|
[/(')(@escapes)(')/, ["string", "string.escape", "string"]],
|
||||||
|
[/'/, "string.invalid"]
|
||||||
|
],
|
||||||
|
whitespace: [
|
||||||
|
[/[ \t\r\n]+/, ""],
|
||||||
|
[/\/\*\*(?!\/)/, "comment.doc", "@doccomment"],
|
||||||
|
[/\/\*/, "comment", "@comment"],
|
||||||
|
[/\/\/.*\\$/, "comment", "@linecomment"],
|
||||||
|
[/\/\/.*$/, "comment"]
|
||||||
|
],
|
||||||
|
comment: [
|
||||||
|
[/[^\/*]+/, "comment"],
|
||||||
|
[/\*\//, "comment", "@pop"],
|
||||||
|
[/[\/*]/, "comment"]
|
||||||
|
],
|
||||||
|
linecomment: [
|
||||||
|
[/.*[^\\]$/, "comment", "@pop"],
|
||||||
|
[/[^]+/, "comment"]
|
||||||
|
],
|
||||||
|
doccomment: [
|
||||||
|
[/[^\/*]+/, "comment.doc"],
|
||||||
|
[/\*\//, "comment.doc", "@pop"],
|
||||||
|
[/[\/*]/, "comment.doc"]
|
||||||
|
],
|
||||||
|
string: [
|
||||||
|
[/[^\\"]+/, "string"],
|
||||||
|
[/@escapes/, "string.escape"],
|
||||||
|
[/\\./, "string.escape.invalid"],
|
||||||
|
[/"/, "string", "@pop"]
|
||||||
|
],
|
||||||
|
raw: [
|
||||||
|
[
|
||||||
|
/(.*)(\))(?:([^ ()\\\t"]*))(\")/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"$3==$S2": [
|
||||||
|
"string.raw",
|
||||||
|
"string.raw.end",
|
||||||
|
"string.raw.end",
|
||||||
|
{ token: "string.raw.end", next: "@pop" }
|
||||||
|
],
|
||||||
|
"@default": ["string.raw", "string.raw", "string.raw", "string.raw"]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/.*/, "string.raw"]
|
||||||
|
],
|
||||||
|
annotation: [
|
||||||
|
{ include: "@whitespace" },
|
||||||
|
[/using|alignas/, "keyword"],
|
||||||
|
[/[a-zA-Z0-9_]+/, "annotation"],
|
||||||
|
[/[,:]/, "delimiter"],
|
||||||
|
[/[()]/, "@brackets"],
|
||||||
|
[/\]\s*\]/, { token: "annotation", next: "@pop" }]
|
||||||
|
],
|
||||||
|
include: [
|
||||||
|
[
|
||||||
|
/(\s*)(<)([^<>]*)(>)/,
|
||||||
|
[
|
||||||
|
"",
|
||||||
|
"keyword.directive.include.begin",
|
||||||
|
"string.include.identifier",
|
||||||
|
{ token: "keyword.directive.include.end", next: "@pop" }
|
||||||
|
]
|
||||||
|
],
|
||||||
|
[
|
||||||
|
/(\s*)(")([^"]*)(")/,
|
||||||
|
[
|
||||||
|
"",
|
||||||
|
"keyword.directive.include.begin",
|
||||||
|
"string.include.identifier",
|
||||||
|
{ token: "keyword.directive.include.end", next: "@pop" }
|
||||||
|
]
|
||||||
|
]
|
||||||
|
]
|
||||||
|
}
|
||||||
|
};
|
||||||
|
return __toCommonJS(cpp_exports);
|
||||||
|
})();
|
||||||
|
return moduleExports;
|
||||||
|
});
|
||||||
@@ -0,0 +1,352 @@
|
|||||||
|
/*!-----------------------------------------------------------------------------
|
||||||
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||||
|
* Version: 0.33.0(4b1abad427e58dbedc1215d99a0902ffc885fcd4)
|
||||||
|
* Released under the MIT license
|
||||||
|
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
||||||
|
*-----------------------------------------------------------------------------*/
|
||||||
|
define("vs/basic-languages/csharp/csharp", ["require"],(require)=>{
|
||||||
|
var moduleExports = (() => {
|
||||||
|
var __defProp = Object.defineProperty;
|
||||||
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||||
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||||
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||||
|
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
||||||
|
var __export = (target, all) => {
|
||||||
|
for (var name in all)
|
||||||
|
__defProp(target, name, { get: all[name], enumerable: true });
|
||||||
|
};
|
||||||
|
var __reExport = (target, module, copyDefault, desc) => {
|
||||||
|
if (module && typeof module === "object" || typeof module === "function") {
|
||||||
|
for (let key of __getOwnPropNames(module))
|
||||||
|
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
||||||
|
__defProp(target, key, { get: () => module[key], enumerable: !(desc = __getOwnPropDesc(module, key)) || desc.enumerable });
|
||||||
|
}
|
||||||
|
return target;
|
||||||
|
};
|
||||||
|
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
||||||
|
return (module, temp) => {
|
||||||
|
return cache && cache.get(module) || (temp = __reExport(__markAsModule({}), module, 1), cache && cache.set(module, temp), temp);
|
||||||
|
};
|
||||||
|
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
||||||
|
|
||||||
|
// src/basic-languages/csharp/csharp.ts
|
||||||
|
var csharp_exports = {};
|
||||||
|
__export(csharp_exports, {
|
||||||
|
conf: () => conf,
|
||||||
|
language: () => language
|
||||||
|
});
|
||||||
|
var conf = {
|
||||||
|
wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\#\$\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,
|
||||||
|
comments: {
|
||||||
|
lineComment: "//",
|
||||||
|
blockComment: ["/*", "*/"]
|
||||||
|
},
|
||||||
|
brackets: [
|
||||||
|
["{", "}"],
|
||||||
|
["[", "]"],
|
||||||
|
["(", ")"]
|
||||||
|
],
|
||||||
|
autoClosingPairs: [
|
||||||
|
{ open: "{", close: "}" },
|
||||||
|
{ open: "[", close: "]" },
|
||||||
|
{ open: "(", close: ")" },
|
||||||
|
{ open: "'", close: "'", notIn: ["string", "comment"] },
|
||||||
|
{ open: '"', close: '"', notIn: ["string", "comment"] }
|
||||||
|
],
|
||||||
|
surroundingPairs: [
|
||||||
|
{ open: "{", close: "}" },
|
||||||
|
{ open: "[", close: "]" },
|
||||||
|
{ open: "(", close: ")" },
|
||||||
|
{ open: "<", close: ">" },
|
||||||
|
{ open: "'", close: "'" },
|
||||||
|
{ open: '"', close: '"' }
|
||||||
|
],
|
||||||
|
folding: {
|
||||||
|
markers: {
|
||||||
|
start: new RegExp("^\\s*#region\\b"),
|
||||||
|
end: new RegExp("^\\s*#endregion\\b")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
var language = {
|
||||||
|
defaultToken: "",
|
||||||
|
tokenPostfix: ".cs",
|
||||||
|
brackets: [
|
||||||
|
{ open: "{", close: "}", token: "delimiter.curly" },
|
||||||
|
{ open: "[", close: "]", token: "delimiter.square" },
|
||||||
|
{ open: "(", close: ")", token: "delimiter.parenthesis" },
|
||||||
|
{ open: "<", close: ">", token: "delimiter.angle" }
|
||||||
|
],
|
||||||
|
keywords: [
|
||||||
|
"extern",
|
||||||
|
"alias",
|
||||||
|
"using",
|
||||||
|
"bool",
|
||||||
|
"decimal",
|
||||||
|
"sbyte",
|
||||||
|
"byte",
|
||||||
|
"short",
|
||||||
|
"ushort",
|
||||||
|
"int",
|
||||||
|
"uint",
|
||||||
|
"long",
|
||||||
|
"ulong",
|
||||||
|
"char",
|
||||||
|
"float",
|
||||||
|
"double",
|
||||||
|
"object",
|
||||||
|
"dynamic",
|
||||||
|
"string",
|
||||||
|
"assembly",
|
||||||
|
"is",
|
||||||
|
"as",
|
||||||
|
"ref",
|
||||||
|
"out",
|
||||||
|
"this",
|
||||||
|
"base",
|
||||||
|
"new",
|
||||||
|
"typeof",
|
||||||
|
"void",
|
||||||
|
"checked",
|
||||||
|
"unchecked",
|
||||||
|
"default",
|
||||||
|
"delegate",
|
||||||
|
"var",
|
||||||
|
"const",
|
||||||
|
"if",
|
||||||
|
"else",
|
||||||
|
"switch",
|
||||||
|
"case",
|
||||||
|
"while",
|
||||||
|
"do",
|
||||||
|
"for",
|
||||||
|
"foreach",
|
||||||
|
"in",
|
||||||
|
"break",
|
||||||
|
"continue",
|
||||||
|
"goto",
|
||||||
|
"return",
|
||||||
|
"throw",
|
||||||
|
"try",
|
||||||
|
"catch",
|
||||||
|
"finally",
|
||||||
|
"lock",
|
||||||
|
"yield",
|
||||||
|
"from",
|
||||||
|
"let",
|
||||||
|
"where",
|
||||||
|
"join",
|
||||||
|
"on",
|
||||||
|
"equals",
|
||||||
|
"into",
|
||||||
|
"orderby",
|
||||||
|
"ascending",
|
||||||
|
"descending",
|
||||||
|
"select",
|
||||||
|
"group",
|
||||||
|
"by",
|
||||||
|
"namespace",
|
||||||
|
"partial",
|
||||||
|
"class",
|
||||||
|
"field",
|
||||||
|
"event",
|
||||||
|
"method",
|
||||||
|
"param",
|
||||||
|
"public",
|
||||||
|
"protected",
|
||||||
|
"internal",
|
||||||
|
"private",
|
||||||
|
"abstract",
|
||||||
|
"sealed",
|
||||||
|
"static",
|
||||||
|
"struct",
|
||||||
|
"readonly",
|
||||||
|
"volatile",
|
||||||
|
"virtual",
|
||||||
|
"override",
|
||||||
|
"params",
|
||||||
|
"get",
|
||||||
|
"set",
|
||||||
|
"add",
|
||||||
|
"remove",
|
||||||
|
"operator",
|
||||||
|
"true",
|
||||||
|
"false",
|
||||||
|
"implicit",
|
||||||
|
"explicit",
|
||||||
|
"interface",
|
||||||
|
"enum",
|
||||||
|
"null",
|
||||||
|
"async",
|
||||||
|
"await",
|
||||||
|
"fixed",
|
||||||
|
"sizeof",
|
||||||
|
"stackalloc",
|
||||||
|
"unsafe",
|
||||||
|
"nameof",
|
||||||
|
"when"
|
||||||
|
],
|
||||||
|
namespaceFollows: ["namespace", "using"],
|
||||||
|
parenFollows: ["if", "for", "while", "switch", "foreach", "using", "catch", "when"],
|
||||||
|
operators: [
|
||||||
|
"=",
|
||||||
|
"??",
|
||||||
|
"||",
|
||||||
|
"&&",
|
||||||
|
"|",
|
||||||
|
"^",
|
||||||
|
"&",
|
||||||
|
"==",
|
||||||
|
"!=",
|
||||||
|
"<=",
|
||||||
|
">=",
|
||||||
|
"<<",
|
||||||
|
"+",
|
||||||
|
"-",
|
||||||
|
"*",
|
||||||
|
"/",
|
||||||
|
"%",
|
||||||
|
"!",
|
||||||
|
"~",
|
||||||
|
"++",
|
||||||
|
"--",
|
||||||
|
"+=",
|
||||||
|
"-=",
|
||||||
|
"*=",
|
||||||
|
"/=",
|
||||||
|
"%=",
|
||||||
|
"&=",
|
||||||
|
"|=",
|
||||||
|
"^=",
|
||||||
|
"<<=",
|
||||||
|
">>=",
|
||||||
|
">>",
|
||||||
|
"=>"
|
||||||
|
],
|
||||||
|
symbols: /[=><!~?:&|+\-*\/\^%]+/,
|
||||||
|
escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
|
||||||
|
tokenizer: {
|
||||||
|
root: [
|
||||||
|
[
|
||||||
|
/\@?[a-zA-Z_]\w*/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"@namespaceFollows": {
|
||||||
|
token: "keyword.$0",
|
||||||
|
next: "@namespace"
|
||||||
|
},
|
||||||
|
"@keywords": {
|
||||||
|
token: "keyword.$0",
|
||||||
|
next: "@qualified"
|
||||||
|
},
|
||||||
|
"@default": { token: "identifier", next: "@qualified" }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
{ include: "@whitespace" },
|
||||||
|
[
|
||||||
|
/}/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"$S2==interpolatedstring": {
|
||||||
|
token: "string.quote",
|
||||||
|
next: "@pop"
|
||||||
|
},
|
||||||
|
"$S2==litinterpstring": {
|
||||||
|
token: "string.quote",
|
||||||
|
next: "@pop"
|
||||||
|
},
|
||||||
|
"@default": "@brackets"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/[{}()\[\]]/, "@brackets"],
|
||||||
|
[/[<>](?!@symbols)/, "@brackets"],
|
||||||
|
[
|
||||||
|
/@symbols/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"@operators": "delimiter",
|
||||||
|
"@default": ""
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/[0-9_]*\.[0-9_]+([eE][\-+]?\d+)?[fFdD]?/, "number.float"],
|
||||||
|
[/0[xX][0-9a-fA-F_]+/, "number.hex"],
|
||||||
|
[/0[bB][01_]+/, "number.hex"],
|
||||||
|
[/[0-9_]+/, "number"],
|
||||||
|
[/[;,.]/, "delimiter"],
|
||||||
|
[/"([^"\\]|\\.)*$/, "string.invalid"],
|
||||||
|
[/"/, { token: "string.quote", next: "@string" }],
|
||||||
|
[/\$\@"/, { token: "string.quote", next: "@litinterpstring" }],
|
||||||
|
[/\@"/, { token: "string.quote", next: "@litstring" }],
|
||||||
|
[/\$"/, { token: "string.quote", next: "@interpolatedstring" }],
|
||||||
|
[/'[^\\']'/, "string"],
|
||||||
|
[/(')(@escapes)(')/, ["string", "string.escape", "string"]],
|
||||||
|
[/'/, "string.invalid"]
|
||||||
|
],
|
||||||
|
qualified: [
|
||||||
|
[
|
||||||
|
/[a-zA-Z_][\w]*/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"@keywords": { token: "keyword.$0" },
|
||||||
|
"@default": "identifier"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/\./, "delimiter"],
|
||||||
|
["", "", "@pop"]
|
||||||
|
],
|
||||||
|
namespace: [
|
||||||
|
{ include: "@whitespace" },
|
||||||
|
[/[A-Z]\w*/, "namespace"],
|
||||||
|
[/[\.=]/, "delimiter"],
|
||||||
|
["", "", "@pop"]
|
||||||
|
],
|
||||||
|
comment: [
|
||||||
|
[/[^\/*]+/, "comment"],
|
||||||
|
["\\*/", "comment", "@pop"],
|
||||||
|
[/[\/*]/, "comment"]
|
||||||
|
],
|
||||||
|
string: [
|
||||||
|
[/[^\\"]+/, "string"],
|
||||||
|
[/@escapes/, "string.escape"],
|
||||||
|
[/\\./, "string.escape.invalid"],
|
||||||
|
[/"/, { token: "string.quote", next: "@pop" }]
|
||||||
|
],
|
||||||
|
litstring: [
|
||||||
|
[/[^"]+/, "string"],
|
||||||
|
[/""/, "string.escape"],
|
||||||
|
[/"/, { token: "string.quote", next: "@pop" }]
|
||||||
|
],
|
||||||
|
litinterpstring: [
|
||||||
|
[/[^"{]+/, "string"],
|
||||||
|
[/""/, "string.escape"],
|
||||||
|
[/{{/, "string.escape"],
|
||||||
|
[/}}/, "string.escape"],
|
||||||
|
[/{/, { token: "string.quote", next: "root.litinterpstring" }],
|
||||||
|
[/"/, { token: "string.quote", next: "@pop" }]
|
||||||
|
],
|
||||||
|
interpolatedstring: [
|
||||||
|
[/[^\\"{]+/, "string"],
|
||||||
|
[/@escapes/, "string.escape"],
|
||||||
|
[/\\./, "string.escape.invalid"],
|
||||||
|
[/{{/, "string.escape"],
|
||||||
|
[/}}/, "string.escape"],
|
||||||
|
[/{/, { token: "string.quote", next: "root.interpolatedstring" }],
|
||||||
|
[/"/, { token: "string.quote", next: "@pop" }]
|
||||||
|
],
|
||||||
|
whitespace: [
|
||||||
|
[/^[ \t\v\f]*#((r)|(load))(?=\s)/, "directive.csx"],
|
||||||
|
[/^[ \t\v\f]*#\w.*$/, "namespace.cpp"],
|
||||||
|
[/[ \t\v\f\r\n]+/, ""],
|
||||||
|
[/\/\*/, "comment", "@comment"],
|
||||||
|
[/\/\/.*$/, "comment"]
|
||||||
|
]
|
||||||
|
}
|
||||||
|
};
|
||||||
|
return __toCommonJS(csharp_exports);
|
||||||
|
})();
|
||||||
|
return moduleExports;
|
||||||
|
});
|
||||||
@@ -0,0 +1,89 @@
|
|||||||
|
/*!-----------------------------------------------------------------------------
|
||||||
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||||
|
* Version: 0.33.0(4b1abad427e58dbedc1215d99a0902ffc885fcd4)
|
||||||
|
* Released under the MIT license
|
||||||
|
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
||||||
|
*-----------------------------------------------------------------------------*/
|
||||||
|
define("vs/basic-languages/csp/csp", ["require"],(require)=>{
|
||||||
|
var moduleExports = (() => {
|
||||||
|
var __defProp = Object.defineProperty;
|
||||||
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||||
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||||
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||||
|
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
||||||
|
var __export = (target, all) => {
|
||||||
|
for (var name in all)
|
||||||
|
__defProp(target, name, { get: all[name], enumerable: true });
|
||||||
|
};
|
||||||
|
var __reExport = (target, module, copyDefault, desc) => {
|
||||||
|
if (module && typeof module === "object" || typeof module === "function") {
|
||||||
|
for (let key of __getOwnPropNames(module))
|
||||||
|
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
||||||
|
__defProp(target, key, { get: () => module[key], enumerable: !(desc = __getOwnPropDesc(module, key)) || desc.enumerable });
|
||||||
|
}
|
||||||
|
return target;
|
||||||
|
};
|
||||||
|
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
||||||
|
return (module, temp) => {
|
||||||
|
return cache && cache.get(module) || (temp = __reExport(__markAsModule({}), module, 1), cache && cache.set(module, temp), temp);
|
||||||
|
};
|
||||||
|
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
||||||
|
|
||||||
|
// src/basic-languages/csp/csp.ts
|
||||||
|
var csp_exports = {};
|
||||||
|
__export(csp_exports, {
|
||||||
|
conf: () => conf,
|
||||||
|
language: () => language
|
||||||
|
});
|
||||||
|
var conf = {
|
||||||
|
brackets: [],
|
||||||
|
autoClosingPairs: [],
|
||||||
|
surroundingPairs: []
|
||||||
|
};
|
||||||
|
var language = {
|
||||||
|
keywords: [],
|
||||||
|
typeKeywords: [],
|
||||||
|
tokenPostfix: ".csp",
|
||||||
|
operators: [],
|
||||||
|
symbols: /[=><!~?:&|+\-*\/\^%]+/,
|
||||||
|
escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
|
||||||
|
tokenizer: {
|
||||||
|
root: [
|
||||||
|
[/child-src/, "string.quote"],
|
||||||
|
[/connect-src/, "string.quote"],
|
||||||
|
[/default-src/, "string.quote"],
|
||||||
|
[/font-src/, "string.quote"],
|
||||||
|
[/frame-src/, "string.quote"],
|
||||||
|
[/img-src/, "string.quote"],
|
||||||
|
[/manifest-src/, "string.quote"],
|
||||||
|
[/media-src/, "string.quote"],
|
||||||
|
[/object-src/, "string.quote"],
|
||||||
|
[/script-src/, "string.quote"],
|
||||||
|
[/style-src/, "string.quote"],
|
||||||
|
[/worker-src/, "string.quote"],
|
||||||
|
[/base-uri/, "string.quote"],
|
||||||
|
[/plugin-types/, "string.quote"],
|
||||||
|
[/sandbox/, "string.quote"],
|
||||||
|
[/disown-opener/, "string.quote"],
|
||||||
|
[/form-action/, "string.quote"],
|
||||||
|
[/frame-ancestors/, "string.quote"],
|
||||||
|
[/report-uri/, "string.quote"],
|
||||||
|
[/report-to/, "string.quote"],
|
||||||
|
[/upgrade-insecure-requests/, "string.quote"],
|
||||||
|
[/block-all-mixed-content/, "string.quote"],
|
||||||
|
[/require-sri-for/, "string.quote"],
|
||||||
|
[/reflected-xss/, "string.quote"],
|
||||||
|
[/referrer/, "string.quote"],
|
||||||
|
[/policy-uri/, "string.quote"],
|
||||||
|
[/'self'/, "string.quote"],
|
||||||
|
[/'unsafe-inline'/, "string.quote"],
|
||||||
|
[/'unsafe-eval'/, "string.quote"],
|
||||||
|
[/'strict-dynamic'/, "string.quote"],
|
||||||
|
[/'unsafe-hashed-attributes'/, "string.quote"]
|
||||||
|
]
|
||||||
|
}
|
||||||
|
};
|
||||||
|
return __toCommonJS(csp_exports);
|
||||||
|
})();
|
||||||
|
return moduleExports;
|
||||||
|
});
|
||||||
@@ -0,0 +1,216 @@
|
|||||||
|
/*!-----------------------------------------------------------------------------
|
||||||
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||||
|
* Version: 0.33.0(4b1abad427e58dbedc1215d99a0902ffc885fcd4)
|
||||||
|
* Released under the MIT license
|
||||||
|
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
||||||
|
*-----------------------------------------------------------------------------*/
|
||||||
|
define("vs/basic-languages/css/css", ["require"],(require)=>{
|
||||||
|
var moduleExports = (() => {
|
||||||
|
var __defProp = Object.defineProperty;
|
||||||
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||||
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||||
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||||
|
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
||||||
|
var __export = (target, all) => {
|
||||||
|
for (var name in all)
|
||||||
|
__defProp(target, name, { get: all[name], enumerable: true });
|
||||||
|
};
|
||||||
|
var __reExport = (target, module, copyDefault, desc) => {
|
||||||
|
if (module && typeof module === "object" || typeof module === "function") {
|
||||||
|
for (let key of __getOwnPropNames(module))
|
||||||
|
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
||||||
|
__defProp(target, key, { get: () => module[key], enumerable: !(desc = __getOwnPropDesc(module, key)) || desc.enumerable });
|
||||||
|
}
|
||||||
|
return target;
|
||||||
|
};
|
||||||
|
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
||||||
|
return (module, temp) => {
|
||||||
|
return cache && cache.get(module) || (temp = __reExport(__markAsModule({}), module, 1), cache && cache.set(module, temp), temp);
|
||||||
|
};
|
||||||
|
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
||||||
|
|
||||||
|
// src/basic-languages/css/css.ts
|
||||||
|
var css_exports = {};
|
||||||
|
__export(css_exports, {
|
||||||
|
conf: () => conf,
|
||||||
|
language: () => language
|
||||||
|
});
|
||||||
|
var conf = {
|
||||||
|
wordPattern: /(#?-?\d*\.\d\w*%?)|((::|[@#.!:])?[\w-?]+%?)|::|[@#.!:]/g,
|
||||||
|
comments: {
|
||||||
|
blockComment: ["/*", "*/"]
|
||||||
|
},
|
||||||
|
brackets: [
|
||||||
|
["{", "}"],
|
||||||
|
["[", "]"],
|
||||||
|
["(", ")"]
|
||||||
|
],
|
||||||
|
autoClosingPairs: [
|
||||||
|
{ open: "{", close: "}", notIn: ["string", "comment"] },
|
||||||
|
{ open: "[", close: "]", notIn: ["string", "comment"] },
|
||||||
|
{ open: "(", close: ")", notIn: ["string", "comment"] },
|
||||||
|
{ open: '"', close: '"', notIn: ["string", "comment"] },
|
||||||
|
{ open: "'", close: "'", notIn: ["string", "comment"] }
|
||||||
|
],
|
||||||
|
surroundingPairs: [
|
||||||
|
{ open: "{", close: "}" },
|
||||||
|
{ open: "[", close: "]" },
|
||||||
|
{ open: "(", close: ")" },
|
||||||
|
{ open: '"', close: '"' },
|
||||||
|
{ open: "'", close: "'" }
|
||||||
|
],
|
||||||
|
folding: {
|
||||||
|
markers: {
|
||||||
|
start: new RegExp("^\\s*\\/\\*\\s*#region\\b\\s*(.*?)\\s*\\*\\/"),
|
||||||
|
end: new RegExp("^\\s*\\/\\*\\s*#endregion\\b.*\\*\\/")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
var language = {
|
||||||
|
defaultToken: "",
|
||||||
|
tokenPostfix: ".css",
|
||||||
|
ws: "[ \n\r\f]*",
|
||||||
|
identifier: "-?-?([a-zA-Z]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))([\\w\\-]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))*",
|
||||||
|
brackets: [
|
||||||
|
{ open: "{", close: "}", token: "delimiter.bracket" },
|
||||||
|
{ open: "[", close: "]", token: "delimiter.bracket" },
|
||||||
|
{ open: "(", close: ")", token: "delimiter.parenthesis" },
|
||||||
|
{ open: "<", close: ">", token: "delimiter.angle" }
|
||||||
|
],
|
||||||
|
tokenizer: {
|
||||||
|
root: [{ include: "@selector" }],
|
||||||
|
selector: [
|
||||||
|
{ include: "@comments" },
|
||||||
|
{ include: "@import" },
|
||||||
|
{ include: "@strings" },
|
||||||
|
[
|
||||||
|
"[@](keyframes|-webkit-keyframes|-moz-keyframes|-o-keyframes)",
|
||||||
|
{ token: "keyword", next: "@keyframedeclaration" }
|
||||||
|
],
|
||||||
|
["[@](page|content|font-face|-moz-document)", { token: "keyword" }],
|
||||||
|
["[@](charset|namespace)", { token: "keyword", next: "@declarationbody" }],
|
||||||
|
[
|
||||||
|
"(url-prefix)(\\()",
|
||||||
|
["attribute.value", { token: "delimiter.parenthesis", next: "@urldeclaration" }]
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"(url)(\\()",
|
||||||
|
["attribute.value", { token: "delimiter.parenthesis", next: "@urldeclaration" }]
|
||||||
|
],
|
||||||
|
{ include: "@selectorname" },
|
||||||
|
["[\\*]", "tag"],
|
||||||
|
["[>\\+,]", "delimiter"],
|
||||||
|
["\\[", { token: "delimiter.bracket", next: "@selectorattribute" }],
|
||||||
|
["{", { token: "delimiter.bracket", next: "@selectorbody" }]
|
||||||
|
],
|
||||||
|
selectorbody: [
|
||||||
|
{ include: "@comments" },
|
||||||
|
["[*_]?@identifier@ws:(?=(\\s|\\d|[^{;}]*[;}]))", "attribute.name", "@rulevalue"],
|
||||||
|
["}", { token: "delimiter.bracket", next: "@pop" }]
|
||||||
|
],
|
||||||
|
selectorname: [
|
||||||
|
["(\\.|#(?=[^{])|%|(@identifier)|:)+", "tag"]
|
||||||
|
],
|
||||||
|
selectorattribute: [{ include: "@term" }, ["]", { token: "delimiter.bracket", next: "@pop" }]],
|
||||||
|
term: [
|
||||||
|
{ include: "@comments" },
|
||||||
|
[
|
||||||
|
"(url-prefix)(\\()",
|
||||||
|
["attribute.value", { token: "delimiter.parenthesis", next: "@urldeclaration" }]
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"(url)(\\()",
|
||||||
|
["attribute.value", { token: "delimiter.parenthesis", next: "@urldeclaration" }]
|
||||||
|
],
|
||||||
|
{ include: "@functioninvocation" },
|
||||||
|
{ include: "@numbers" },
|
||||||
|
{ include: "@name" },
|
||||||
|
{ include: "@strings" },
|
||||||
|
["([<>=\\+\\-\\*\\/\\^\\|\\~,])", "delimiter"],
|
||||||
|
[",", "delimiter"]
|
||||||
|
],
|
||||||
|
rulevalue: [
|
||||||
|
{ include: "@comments" },
|
||||||
|
{ include: "@strings" },
|
||||||
|
{ include: "@term" },
|
||||||
|
["!important", "keyword"],
|
||||||
|
[";", "delimiter", "@pop"],
|
||||||
|
["(?=})", { token: "", next: "@pop" }]
|
||||||
|
],
|
||||||
|
warndebug: [["[@](warn|debug)", { token: "keyword", next: "@declarationbody" }]],
|
||||||
|
import: [["[@](import)", { token: "keyword", next: "@declarationbody" }]],
|
||||||
|
urldeclaration: [
|
||||||
|
{ include: "@strings" },
|
||||||
|
["[^)\r\n]+", "string"],
|
||||||
|
["\\)", { token: "delimiter.parenthesis", next: "@pop" }]
|
||||||
|
],
|
||||||
|
parenthizedterm: [
|
||||||
|
{ include: "@term" },
|
||||||
|
["\\)", { token: "delimiter.parenthesis", next: "@pop" }]
|
||||||
|
],
|
||||||
|
declarationbody: [
|
||||||
|
{ include: "@term" },
|
||||||
|
[";", "delimiter", "@pop"],
|
||||||
|
["(?=})", { token: "", next: "@pop" }]
|
||||||
|
],
|
||||||
|
comments: [
|
||||||
|
["\\/\\*", "comment", "@comment"],
|
||||||
|
["\\/\\/+.*", "comment"]
|
||||||
|
],
|
||||||
|
comment: [
|
||||||
|
["\\*\\/", "comment", "@pop"],
|
||||||
|
[/[^*/]+/, "comment"],
|
||||||
|
[/./, "comment"]
|
||||||
|
],
|
||||||
|
name: [["@identifier", "attribute.value"]],
|
||||||
|
numbers: [
|
||||||
|
["-?(\\d*\\.)?\\d+([eE][\\-+]?\\d+)?", { token: "attribute.value.number", next: "@units" }],
|
||||||
|
["#[0-9a-fA-F_]+(?!\\w)", "attribute.value.hex"]
|
||||||
|
],
|
||||||
|
units: [
|
||||||
|
[
|
||||||
|
"(em|ex|ch|rem|vmin|vmax|vw|vh|vm|cm|mm|in|px|pt|pc|deg|grad|rad|turn|s|ms|Hz|kHz|%)?",
|
||||||
|
"attribute.value.unit",
|
||||||
|
"@pop"
|
||||||
|
]
|
||||||
|
],
|
||||||
|
keyframedeclaration: [
|
||||||
|
["@identifier", "attribute.value"],
|
||||||
|
["{", { token: "delimiter.bracket", switchTo: "@keyframebody" }]
|
||||||
|
],
|
||||||
|
keyframebody: [
|
||||||
|
{ include: "@term" },
|
||||||
|
["{", { token: "delimiter.bracket", next: "@selectorbody" }],
|
||||||
|
["}", { token: "delimiter.bracket", next: "@pop" }]
|
||||||
|
],
|
||||||
|
functioninvocation: [
|
||||||
|
["@identifier\\(", { token: "attribute.value", next: "@functionarguments" }]
|
||||||
|
],
|
||||||
|
functionarguments: [
|
||||||
|
["\\$@identifier@ws:", "attribute.name"],
|
||||||
|
["[,]", "delimiter"],
|
||||||
|
{ include: "@term" },
|
||||||
|
["\\)", { token: "attribute.value", next: "@pop" }]
|
||||||
|
],
|
||||||
|
strings: [
|
||||||
|
['~?"', { token: "string", next: "@stringenddoublequote" }],
|
||||||
|
["~?'", { token: "string", next: "@stringendquote" }]
|
||||||
|
],
|
||||||
|
stringenddoublequote: [
|
||||||
|
["\\\\.", "string"],
|
||||||
|
['"', { token: "string", next: "@pop" }],
|
||||||
|
[/[^\\"]+/, "string"],
|
||||||
|
[".", "string"]
|
||||||
|
],
|
||||||
|
stringendquote: [
|
||||||
|
["\\\\.", "string"],
|
||||||
|
["'", { token: "string", next: "@pop" }],
|
||||||
|
[/[^\\']+/, "string"],
|
||||||
|
[".", "string"]
|
||||||
|
]
|
||||||
|
}
|
||||||
|
};
|
||||||
|
return __toCommonJS(css_exports);
|
||||||
|
})();
|
||||||
|
return moduleExports;
|
||||||
|
});
|
||||||
@@ -0,0 +1,302 @@
|
|||||||
|
/*!-----------------------------------------------------------------------------
|
||||||
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||||
|
* Version: 0.33.0(4b1abad427e58dbedc1215d99a0902ffc885fcd4)
|
||||||
|
* Released under the MIT license
|
||||||
|
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
||||||
|
*-----------------------------------------------------------------------------*/
|
||||||
|
define("vs/basic-languages/dart/dart", ["require"],(require)=>{
|
||||||
|
var moduleExports = (() => {
|
||||||
|
var __defProp = Object.defineProperty;
|
||||||
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||||
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||||
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||||
|
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
||||||
|
var __export = (target, all) => {
|
||||||
|
for (var name in all)
|
||||||
|
__defProp(target, name, { get: all[name], enumerable: true });
|
||||||
|
};
|
||||||
|
var __reExport = (target, module, copyDefault, desc) => {
|
||||||
|
if (module && typeof module === "object" || typeof module === "function") {
|
||||||
|
for (let key of __getOwnPropNames(module))
|
||||||
|
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
||||||
|
__defProp(target, key, { get: () => module[key], enumerable: !(desc = __getOwnPropDesc(module, key)) || desc.enumerable });
|
||||||
|
}
|
||||||
|
return target;
|
||||||
|
};
|
||||||
|
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
||||||
|
return (module, temp) => {
|
||||||
|
return cache && cache.get(module) || (temp = __reExport(__markAsModule({}), module, 1), cache && cache.set(module, temp), temp);
|
||||||
|
};
|
||||||
|
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
||||||
|
|
||||||
|
// src/basic-languages/dart/dart.ts
|
||||||
|
var dart_exports = {};
|
||||||
|
__export(dart_exports, {
|
||||||
|
conf: () => conf,
|
||||||
|
language: () => language
|
||||||
|
});
|
||||||
|
var conf = {
|
||||||
|
comments: {
|
||||||
|
lineComment: "//",
|
||||||
|
blockComment: ["/*", "*/"]
|
||||||
|
},
|
||||||
|
brackets: [
|
||||||
|
["{", "}"],
|
||||||
|
["[", "]"],
|
||||||
|
["(", ")"]
|
||||||
|
],
|
||||||
|
autoClosingPairs: [
|
||||||
|
{ open: "{", close: "}" },
|
||||||
|
{ open: "[", close: "]" },
|
||||||
|
{ open: "(", close: ")" },
|
||||||
|
{ open: "'", close: "'", notIn: ["string", "comment"] },
|
||||||
|
{ open: '"', close: '"', notIn: ["string"] },
|
||||||
|
{ open: "`", close: "`", notIn: ["string", "comment"] },
|
||||||
|
{ open: "/**", close: " */", notIn: ["string"] }
|
||||||
|
],
|
||||||
|
surroundingPairs: [
|
||||||
|
{ open: "{", close: "}" },
|
||||||
|
{ open: "[", close: "]" },
|
||||||
|
{ open: "(", close: ")" },
|
||||||
|
{ open: "<", close: ">" },
|
||||||
|
{ open: "'", close: "'" },
|
||||||
|
{ open: "(", close: ")" },
|
||||||
|
{ open: '"', close: '"' },
|
||||||
|
{ open: "`", close: "`" }
|
||||||
|
],
|
||||||
|
folding: {
|
||||||
|
markers: {
|
||||||
|
start: /^\s*\s*#?region\b/,
|
||||||
|
end: /^\s*\s*#?endregion\b/
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
var language = {
|
||||||
|
defaultToken: "invalid",
|
||||||
|
tokenPostfix: ".dart",
|
||||||
|
keywords: [
|
||||||
|
"abstract",
|
||||||
|
"dynamic",
|
||||||
|
"implements",
|
||||||
|
"show",
|
||||||
|
"as",
|
||||||
|
"else",
|
||||||
|
"import",
|
||||||
|
"static",
|
||||||
|
"assert",
|
||||||
|
"enum",
|
||||||
|
"in",
|
||||||
|
"super",
|
||||||
|
"async",
|
||||||
|
"export",
|
||||||
|
"interface",
|
||||||
|
"switch",
|
||||||
|
"await",
|
||||||
|
"extends",
|
||||||
|
"is",
|
||||||
|
"sync",
|
||||||
|
"break",
|
||||||
|
"external",
|
||||||
|
"library",
|
||||||
|
"this",
|
||||||
|
"case",
|
||||||
|
"factory",
|
||||||
|
"mixin",
|
||||||
|
"throw",
|
||||||
|
"catch",
|
||||||
|
"false",
|
||||||
|
"new",
|
||||||
|
"true",
|
||||||
|
"class",
|
||||||
|
"final",
|
||||||
|
"null",
|
||||||
|
"try",
|
||||||
|
"const",
|
||||||
|
"finally",
|
||||||
|
"on",
|
||||||
|
"typedef",
|
||||||
|
"continue",
|
||||||
|
"for",
|
||||||
|
"operator",
|
||||||
|
"var",
|
||||||
|
"covariant",
|
||||||
|
"Function",
|
||||||
|
"part",
|
||||||
|
"void",
|
||||||
|
"default",
|
||||||
|
"get",
|
||||||
|
"rethrow",
|
||||||
|
"while",
|
||||||
|
"deferred",
|
||||||
|
"hide",
|
||||||
|
"return",
|
||||||
|
"with",
|
||||||
|
"do",
|
||||||
|
"if",
|
||||||
|
"set",
|
||||||
|
"yield"
|
||||||
|
],
|
||||||
|
typeKeywords: ["int", "double", "String", "bool"],
|
||||||
|
operators: [
|
||||||
|
"+",
|
||||||
|
"-",
|
||||||
|
"*",
|
||||||
|
"/",
|
||||||
|
"~/",
|
||||||
|
"%",
|
||||||
|
"++",
|
||||||
|
"--",
|
||||||
|
"==",
|
||||||
|
"!=",
|
||||||
|
">",
|
||||||
|
"<",
|
||||||
|
">=",
|
||||||
|
"<=",
|
||||||
|
"=",
|
||||||
|
"-=",
|
||||||
|
"/=",
|
||||||
|
"%=",
|
||||||
|
">>=",
|
||||||
|
"^=",
|
||||||
|
"+=",
|
||||||
|
"*=",
|
||||||
|
"~/=",
|
||||||
|
"<<=",
|
||||||
|
"&=",
|
||||||
|
"!=",
|
||||||
|
"||",
|
||||||
|
"&&",
|
||||||
|
"&",
|
||||||
|
"|",
|
||||||
|
"^",
|
||||||
|
"~",
|
||||||
|
"<<",
|
||||||
|
">>",
|
||||||
|
"!",
|
||||||
|
">>>",
|
||||||
|
"??",
|
||||||
|
"?",
|
||||||
|
":",
|
||||||
|
"|="
|
||||||
|
],
|
||||||
|
symbols: /[=><!~?:&|+\-*\/\^%]+/,
|
||||||
|
escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
|
||||||
|
digits: /\d+(_+\d+)*/,
|
||||||
|
octaldigits: /[0-7]+(_+[0-7]+)*/,
|
||||||
|
binarydigits: /[0-1]+(_+[0-1]+)*/,
|
||||||
|
hexdigits: /[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/,
|
||||||
|
regexpctl: /[(){}\[\]\$\^|\-*+?\.]/,
|
||||||
|
regexpesc: /\\(?:[bBdDfnrstvwWn0\\\/]|@regexpctl|c[A-Z]|x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4})/,
|
||||||
|
tokenizer: {
|
||||||
|
root: [[/[{}]/, "delimiter.bracket"], { include: "common" }],
|
||||||
|
common: [
|
||||||
|
[
|
||||||
|
/[a-z_$][\w$]*/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"@typeKeywords": "type.identifier",
|
||||||
|
"@keywords": "keyword",
|
||||||
|
"@default": "identifier"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/[A-Z_$][\w\$]*/, "type.identifier"],
|
||||||
|
{ include: "@whitespace" },
|
||||||
|
[
|
||||||
|
/\/(?=([^\\\/]|\\.)+\/([gimsuy]*)(\s*)(\.|;|,|\)|\]|\}|$))/,
|
||||||
|
{ token: "regexp", bracket: "@open", next: "@regexp" }
|
||||||
|
],
|
||||||
|
[/@[a-zA-Z]+/, "annotation"],
|
||||||
|
[/[()\[\]]/, "@brackets"],
|
||||||
|
[/[<>](?!@symbols)/, "@brackets"],
|
||||||
|
[/!(?=([^=]|$))/, "delimiter"],
|
||||||
|
[
|
||||||
|
/@symbols/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"@operators": "delimiter",
|
||||||
|
"@default": ""
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/(@digits)[eE]([\-+]?(@digits))?/, "number.float"],
|
||||||
|
[/(@digits)\.(@digits)([eE][\-+]?(@digits))?/, "number.float"],
|
||||||
|
[/0[xX](@hexdigits)n?/, "number.hex"],
|
||||||
|
[/0[oO]?(@octaldigits)n?/, "number.octal"],
|
||||||
|
[/0[bB](@binarydigits)n?/, "number.binary"],
|
||||||
|
[/(@digits)n?/, "number"],
|
||||||
|
[/[;,.]/, "delimiter"],
|
||||||
|
[/"([^"\\]|\\.)*$/, "string.invalid"],
|
||||||
|
[/'([^'\\]|\\.)*$/, "string.invalid"],
|
||||||
|
[/"/, "string", "@string_double"],
|
||||||
|
[/'/, "string", "@string_single"]
|
||||||
|
],
|
||||||
|
whitespace: [
|
||||||
|
[/[ \t\r\n]+/, ""],
|
||||||
|
[/\/\*\*(?!\/)/, "comment.doc", "@jsdoc"],
|
||||||
|
[/\/\*/, "comment", "@comment"],
|
||||||
|
[/\/\/\/.*$/, "comment.doc"],
|
||||||
|
[/\/\/.*$/, "comment"]
|
||||||
|
],
|
||||||
|
comment: [
|
||||||
|
[/[^\/*]+/, "comment"],
|
||||||
|
[/\*\//, "comment", "@pop"],
|
||||||
|
[/[\/*]/, "comment"]
|
||||||
|
],
|
||||||
|
jsdoc: [
|
||||||
|
[/[^\/*]+/, "comment.doc"],
|
||||||
|
[/\*\//, "comment.doc", "@pop"],
|
||||||
|
[/[\/*]/, "comment.doc"]
|
||||||
|
],
|
||||||
|
regexp: [
|
||||||
|
[
|
||||||
|
/(\{)(\d+(?:,\d*)?)(\})/,
|
||||||
|
["regexp.escape.control", "regexp.escape.control", "regexp.escape.control"]
|
||||||
|
],
|
||||||
|
[
|
||||||
|
/(\[)(\^?)(?=(?:[^\]\\\/]|\\.)+)/,
|
||||||
|
["regexp.escape.control", { token: "regexp.escape.control", next: "@regexrange" }]
|
||||||
|
],
|
||||||
|
[/(\()(\?:|\?=|\?!)/, ["regexp.escape.control", "regexp.escape.control"]],
|
||||||
|
[/[()]/, "regexp.escape.control"],
|
||||||
|
[/@regexpctl/, "regexp.escape.control"],
|
||||||
|
[/[^\\\/]/, "regexp"],
|
||||||
|
[/@regexpesc/, "regexp.escape"],
|
||||||
|
[/\\\./, "regexp.invalid"],
|
||||||
|
[/(\/)([gimsuy]*)/, [{ token: "regexp", bracket: "@close", next: "@pop" }, "keyword.other"]]
|
||||||
|
],
|
||||||
|
regexrange: [
|
||||||
|
[/-/, "regexp.escape.control"],
|
||||||
|
[/\^/, "regexp.invalid"],
|
||||||
|
[/@regexpesc/, "regexp.escape"],
|
||||||
|
[/[^\]]/, "regexp"],
|
||||||
|
[
|
||||||
|
/\]/,
|
||||||
|
{
|
||||||
|
token: "regexp.escape.control",
|
||||||
|
next: "@pop",
|
||||||
|
bracket: "@close"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
],
|
||||||
|
string_double: [
|
||||||
|
[/[^\\"\$]+/, "string"],
|
||||||
|
[/[^\\"]+/, "string"],
|
||||||
|
[/@escapes/, "string.escape"],
|
||||||
|
[/\\./, "string.escape.invalid"],
|
||||||
|
[/"/, "string", "@pop"],
|
||||||
|
[/\$\w+/, "identifier"]
|
||||||
|
],
|
||||||
|
string_single: [
|
||||||
|
[/[^\\'\$]+/, "string"],
|
||||||
|
[/@escapes/, "string.escape"],
|
||||||
|
[/\\./, "string.escape.invalid"],
|
||||||
|
[/'/, "string", "@pop"],
|
||||||
|
[/\$\w+/, "identifier"]
|
||||||
|
]
|
||||||
|
}
|
||||||
|
};
|
||||||
|
return __toCommonJS(dart_exports);
|
||||||
|
})();
|
||||||
|
return moduleExports;
|
||||||
|
});
|
||||||
@@ -0,0 +1,164 @@
|
|||||||
|
/*!-----------------------------------------------------------------------------
|
||||||
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||||
|
* Version: 0.33.0(4b1abad427e58dbedc1215d99a0902ffc885fcd4)
|
||||||
|
* Released under the MIT license
|
||||||
|
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
||||||
|
*-----------------------------------------------------------------------------*/
|
||||||
|
define("vs/basic-languages/dockerfile/dockerfile", ["require"],(require)=>{
|
||||||
|
var moduleExports = (() => {
|
||||||
|
var __defProp = Object.defineProperty;
|
||||||
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||||
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||||
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||||
|
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
||||||
|
var __export = (target, all) => {
|
||||||
|
for (var name in all)
|
||||||
|
__defProp(target, name, { get: all[name], enumerable: true });
|
||||||
|
};
|
||||||
|
var __reExport = (target, module, copyDefault, desc) => {
|
||||||
|
if (module && typeof module === "object" || typeof module === "function") {
|
||||||
|
for (let key of __getOwnPropNames(module))
|
||||||
|
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
||||||
|
__defProp(target, key, { get: () => module[key], enumerable: !(desc = __getOwnPropDesc(module, key)) || desc.enumerable });
|
||||||
|
}
|
||||||
|
return target;
|
||||||
|
};
|
||||||
|
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
||||||
|
return (module, temp) => {
|
||||||
|
return cache && cache.get(module) || (temp = __reExport(__markAsModule({}), module, 1), cache && cache.set(module, temp), temp);
|
||||||
|
};
|
||||||
|
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
||||||
|
|
||||||
|
// src/basic-languages/dockerfile/dockerfile.ts
|
||||||
|
var dockerfile_exports = {};
|
||||||
|
__export(dockerfile_exports, {
|
||||||
|
conf: () => conf,
|
||||||
|
language: () => language
|
||||||
|
});
|
||||||
|
var conf = {
|
||||||
|
brackets: [
|
||||||
|
["{", "}"],
|
||||||
|
["[", "]"],
|
||||||
|
["(", ")"]
|
||||||
|
],
|
||||||
|
autoClosingPairs: [
|
||||||
|
{ open: "{", close: "}" },
|
||||||
|
{ open: "[", close: "]" },
|
||||||
|
{ open: "(", close: ")" },
|
||||||
|
{ open: '"', close: '"' },
|
||||||
|
{ open: "'", close: "'" }
|
||||||
|
],
|
||||||
|
surroundingPairs: [
|
||||||
|
{ open: "{", close: "}" },
|
||||||
|
{ open: "[", close: "]" },
|
||||||
|
{ open: "(", close: ")" },
|
||||||
|
{ open: '"', close: '"' },
|
||||||
|
{ open: "'", close: "'" }
|
||||||
|
]
|
||||||
|
};
|
||||||
|
var language = {
|
||||||
|
defaultToken: "",
|
||||||
|
tokenPostfix: ".dockerfile",
|
||||||
|
variable: /\${?[\w]+}?/,
|
||||||
|
tokenizer: {
|
||||||
|
root: [
|
||||||
|
{ include: "@whitespace" },
|
||||||
|
{ include: "@comment" },
|
||||||
|
[/(ONBUILD)(\s+)/, ["keyword", ""]],
|
||||||
|
[/(ENV)(\s+)([\w]+)/, ["keyword", "", { token: "variable", next: "@arguments" }]],
|
||||||
|
[
|
||||||
|
/(FROM|MAINTAINER|RUN|EXPOSE|ENV|ADD|ARG|VOLUME|LABEL|USER|WORKDIR|COPY|CMD|STOPSIGNAL|SHELL|HEALTHCHECK|ENTRYPOINT)/,
|
||||||
|
{ token: "keyword", next: "@arguments" }
|
||||||
|
]
|
||||||
|
],
|
||||||
|
arguments: [
|
||||||
|
{ include: "@whitespace" },
|
||||||
|
{ include: "@strings" },
|
||||||
|
[
|
||||||
|
/(@variable)/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"@eos": { token: "variable", next: "@popall" },
|
||||||
|
"@default": "variable"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[
|
||||||
|
/\\/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"@eos": "",
|
||||||
|
"@default": ""
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[
|
||||||
|
/./,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"@eos": { token: "", next: "@popall" },
|
||||||
|
"@default": ""
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
],
|
||||||
|
whitespace: [
|
||||||
|
[
|
||||||
|
/\s+/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"@eos": { token: "", next: "@popall" },
|
||||||
|
"@default": ""
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
],
|
||||||
|
comment: [[/(^#.*$)/, "comment", "@popall"]],
|
||||||
|
strings: [
|
||||||
|
[/\\'$/, "", "@popall"],
|
||||||
|
[/\\'/, ""],
|
||||||
|
[/'$/, "string", "@popall"],
|
||||||
|
[/'/, "string", "@stringBody"],
|
||||||
|
[/"$/, "string", "@popall"],
|
||||||
|
[/"/, "string", "@dblStringBody"]
|
||||||
|
],
|
||||||
|
stringBody: [
|
||||||
|
[
|
||||||
|
/[^\\\$']/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"@eos": { token: "string", next: "@popall" },
|
||||||
|
"@default": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/\\./, "string.escape"],
|
||||||
|
[/'$/, "string", "@popall"],
|
||||||
|
[/'/, "string", "@pop"],
|
||||||
|
[/(@variable)/, "variable"],
|
||||||
|
[/\\$/, "string"],
|
||||||
|
[/$/, "string", "@popall"]
|
||||||
|
],
|
||||||
|
dblStringBody: [
|
||||||
|
[
|
||||||
|
/[^\\\$"]/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"@eos": { token: "string", next: "@popall" },
|
||||||
|
"@default": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/\\./, "string.escape"],
|
||||||
|
[/"$/, "string", "@popall"],
|
||||||
|
[/"/, "string", "@pop"],
|
||||||
|
[/(@variable)/, "variable"],
|
||||||
|
[/\\$/, "string"],
|
||||||
|
[/$/, "string", "@popall"]
|
||||||
|
]
|
||||||
|
}
|
||||||
|
};
|
||||||
|
return __toCommonJS(dockerfile_exports);
|
||||||
|
})();
|
||||||
|
return moduleExports;
|
||||||
|
});
|
||||||
@@ -0,0 +1,486 @@
|
|||||||
|
/*!-----------------------------------------------------------------------------
|
||||||
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||||
|
* Version: 0.33.0(4b1abad427e58dbedc1215d99a0902ffc885fcd4)
|
||||||
|
* Released under the MIT license
|
||||||
|
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
||||||
|
*-----------------------------------------------------------------------------*/
|
||||||
|
define("vs/basic-languages/ecl/ecl", ["require"],(require)=>{
|
||||||
|
var moduleExports = (() => {
|
||||||
|
var __defProp = Object.defineProperty;
|
||||||
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||||
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||||
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||||
|
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
||||||
|
var __export = (target, all) => {
|
||||||
|
for (var name in all)
|
||||||
|
__defProp(target, name, { get: all[name], enumerable: true });
|
||||||
|
};
|
||||||
|
var __reExport = (target, module, copyDefault, desc) => {
|
||||||
|
if (module && typeof module === "object" || typeof module === "function") {
|
||||||
|
for (let key of __getOwnPropNames(module))
|
||||||
|
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
||||||
|
__defProp(target, key, { get: () => module[key], enumerable: !(desc = __getOwnPropDesc(module, key)) || desc.enumerable });
|
||||||
|
}
|
||||||
|
return target;
|
||||||
|
};
|
||||||
|
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
||||||
|
return (module, temp) => {
|
||||||
|
return cache && cache.get(module) || (temp = __reExport(__markAsModule({}), module, 1), cache && cache.set(module, temp), temp);
|
||||||
|
};
|
||||||
|
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
||||||
|
|
||||||
|
// src/basic-languages/ecl/ecl.ts
|
||||||
|
var ecl_exports = {};
|
||||||
|
__export(ecl_exports, {
|
||||||
|
conf: () => conf,
|
||||||
|
language: () => language
|
||||||
|
});
|
||||||
|
var conf = {
|
||||||
|
comments: {
|
||||||
|
lineComment: "//",
|
||||||
|
blockComment: ["/*", "*/"]
|
||||||
|
},
|
||||||
|
brackets: [
|
||||||
|
["{", "}"],
|
||||||
|
["[", "]"],
|
||||||
|
["(", ")"]
|
||||||
|
],
|
||||||
|
autoClosingPairs: [
|
||||||
|
{ open: "{", close: "}" },
|
||||||
|
{ open: "[", close: "]" },
|
||||||
|
{ open: "(", close: ")" },
|
||||||
|
{ open: "'", close: "'", notIn: ["string", "comment"] },
|
||||||
|
{ open: '"', close: '"', notIn: ["string", "comment"] }
|
||||||
|
],
|
||||||
|
surroundingPairs: [
|
||||||
|
{ open: "{", close: "}" },
|
||||||
|
{ open: "[", close: "]" },
|
||||||
|
{ open: "(", close: ")" },
|
||||||
|
{ open: "<", close: ">" },
|
||||||
|
{ open: "'", close: "'" },
|
||||||
|
{ open: '"', close: '"' }
|
||||||
|
]
|
||||||
|
};
|
||||||
|
var language = {
|
||||||
|
defaultToken: "",
|
||||||
|
tokenPostfix: ".ecl",
|
||||||
|
ignoreCase: true,
|
||||||
|
brackets: [
|
||||||
|
{ open: "{", close: "}", token: "delimiter.curly" },
|
||||||
|
{ open: "[", close: "]", token: "delimiter.square" },
|
||||||
|
{ open: "(", close: ")", token: "delimiter.parenthesis" },
|
||||||
|
{ open: "<", close: ">", token: "delimiter.angle" }
|
||||||
|
],
|
||||||
|
pounds: [
|
||||||
|
"append",
|
||||||
|
"break",
|
||||||
|
"declare",
|
||||||
|
"demangle",
|
||||||
|
"end",
|
||||||
|
"for",
|
||||||
|
"getdatatype",
|
||||||
|
"if",
|
||||||
|
"inmodule",
|
||||||
|
"loop",
|
||||||
|
"mangle",
|
||||||
|
"onwarning",
|
||||||
|
"option",
|
||||||
|
"set",
|
||||||
|
"stored",
|
||||||
|
"uniquename"
|
||||||
|
].join("|"),
|
||||||
|
keywords: [
|
||||||
|
"__compressed__",
|
||||||
|
"after",
|
||||||
|
"all",
|
||||||
|
"and",
|
||||||
|
"any",
|
||||||
|
"as",
|
||||||
|
"atmost",
|
||||||
|
"before",
|
||||||
|
"beginc",
|
||||||
|
"best",
|
||||||
|
"between",
|
||||||
|
"case",
|
||||||
|
"cluster",
|
||||||
|
"compressed",
|
||||||
|
"compression",
|
||||||
|
"const",
|
||||||
|
"counter",
|
||||||
|
"csv",
|
||||||
|
"default",
|
||||||
|
"descend",
|
||||||
|
"embed",
|
||||||
|
"encoding",
|
||||||
|
"encrypt",
|
||||||
|
"end",
|
||||||
|
"endc",
|
||||||
|
"endembed",
|
||||||
|
"endmacro",
|
||||||
|
"enum",
|
||||||
|
"escape",
|
||||||
|
"except",
|
||||||
|
"exclusive",
|
||||||
|
"expire",
|
||||||
|
"export",
|
||||||
|
"extend",
|
||||||
|
"fail",
|
||||||
|
"few",
|
||||||
|
"fileposition",
|
||||||
|
"first",
|
||||||
|
"flat",
|
||||||
|
"forward",
|
||||||
|
"from",
|
||||||
|
"full",
|
||||||
|
"function",
|
||||||
|
"functionmacro",
|
||||||
|
"group",
|
||||||
|
"grouped",
|
||||||
|
"heading",
|
||||||
|
"hole",
|
||||||
|
"ifblock",
|
||||||
|
"import",
|
||||||
|
"in",
|
||||||
|
"inner",
|
||||||
|
"interface",
|
||||||
|
"internal",
|
||||||
|
"joined",
|
||||||
|
"keep",
|
||||||
|
"keyed",
|
||||||
|
"last",
|
||||||
|
"left",
|
||||||
|
"limit",
|
||||||
|
"linkcounted",
|
||||||
|
"literal",
|
||||||
|
"little_endian",
|
||||||
|
"load",
|
||||||
|
"local",
|
||||||
|
"locale",
|
||||||
|
"lookup",
|
||||||
|
"lzw",
|
||||||
|
"macro",
|
||||||
|
"many",
|
||||||
|
"maxcount",
|
||||||
|
"maxlength",
|
||||||
|
"min skew",
|
||||||
|
"module",
|
||||||
|
"mofn",
|
||||||
|
"multiple",
|
||||||
|
"named",
|
||||||
|
"namespace",
|
||||||
|
"nocase",
|
||||||
|
"noroot",
|
||||||
|
"noscan",
|
||||||
|
"nosort",
|
||||||
|
"not",
|
||||||
|
"noxpath",
|
||||||
|
"of",
|
||||||
|
"onfail",
|
||||||
|
"only",
|
||||||
|
"opt",
|
||||||
|
"or",
|
||||||
|
"outer",
|
||||||
|
"overwrite",
|
||||||
|
"packed",
|
||||||
|
"partition",
|
||||||
|
"penalty",
|
||||||
|
"physicallength",
|
||||||
|
"pipe",
|
||||||
|
"prefetch",
|
||||||
|
"quote",
|
||||||
|
"record",
|
||||||
|
"repeat",
|
||||||
|
"retry",
|
||||||
|
"return",
|
||||||
|
"right",
|
||||||
|
"right1",
|
||||||
|
"right2",
|
||||||
|
"rows",
|
||||||
|
"rowset",
|
||||||
|
"scan",
|
||||||
|
"scope",
|
||||||
|
"self",
|
||||||
|
"separator",
|
||||||
|
"service",
|
||||||
|
"shared",
|
||||||
|
"skew",
|
||||||
|
"skip",
|
||||||
|
"smart",
|
||||||
|
"soapaction",
|
||||||
|
"sql",
|
||||||
|
"stable",
|
||||||
|
"store",
|
||||||
|
"terminator",
|
||||||
|
"thor",
|
||||||
|
"threshold",
|
||||||
|
"timelimit",
|
||||||
|
"timeout",
|
||||||
|
"token",
|
||||||
|
"transform",
|
||||||
|
"trim",
|
||||||
|
"type",
|
||||||
|
"unicodeorder",
|
||||||
|
"unordered",
|
||||||
|
"unsorted",
|
||||||
|
"unstable",
|
||||||
|
"update",
|
||||||
|
"use",
|
||||||
|
"validate",
|
||||||
|
"virtual",
|
||||||
|
"whole",
|
||||||
|
"width",
|
||||||
|
"wild",
|
||||||
|
"within",
|
||||||
|
"wnotrim",
|
||||||
|
"xml",
|
||||||
|
"xpath"
|
||||||
|
],
|
||||||
|
functions: [
|
||||||
|
"abs",
|
||||||
|
"acos",
|
||||||
|
"aggregate",
|
||||||
|
"allnodes",
|
||||||
|
"apply",
|
||||||
|
"ascii",
|
||||||
|
"asin",
|
||||||
|
"assert",
|
||||||
|
"asstring",
|
||||||
|
"atan",
|
||||||
|
"atan2",
|
||||||
|
"ave",
|
||||||
|
"build",
|
||||||
|
"buildindex",
|
||||||
|
"case",
|
||||||
|
"catch",
|
||||||
|
"choose",
|
||||||
|
"choosen",
|
||||||
|
"choosesets",
|
||||||
|
"clustersize",
|
||||||
|
"combine",
|
||||||
|
"correlation",
|
||||||
|
"cos",
|
||||||
|
"cosh",
|
||||||
|
"count",
|
||||||
|
"covariance",
|
||||||
|
"cron",
|
||||||
|
"dataset",
|
||||||
|
"dedup",
|
||||||
|
"define",
|
||||||
|
"denormalize",
|
||||||
|
"dictionary",
|
||||||
|
"distribute",
|
||||||
|
"distributed",
|
||||||
|
"distribution",
|
||||||
|
"ebcdic",
|
||||||
|
"enth",
|
||||||
|
"error",
|
||||||
|
"evaluate",
|
||||||
|
"event",
|
||||||
|
"eventextra",
|
||||||
|
"eventname",
|
||||||
|
"exists",
|
||||||
|
"exp",
|
||||||
|
"fail",
|
||||||
|
"failcode",
|
||||||
|
"failmessage",
|
||||||
|
"fetch",
|
||||||
|
"fromunicode",
|
||||||
|
"fromxml",
|
||||||
|
"getenv",
|
||||||
|
"getisvalid",
|
||||||
|
"global",
|
||||||
|
"graph",
|
||||||
|
"group",
|
||||||
|
"hash",
|
||||||
|
"hash32",
|
||||||
|
"hash64",
|
||||||
|
"hashcrc",
|
||||||
|
"hashmd5",
|
||||||
|
"having",
|
||||||
|
"httpcall",
|
||||||
|
"httpheader",
|
||||||
|
"if",
|
||||||
|
"iff",
|
||||||
|
"index",
|
||||||
|
"intformat",
|
||||||
|
"isvalid",
|
||||||
|
"iterate",
|
||||||
|
"join",
|
||||||
|
"keydiff",
|
||||||
|
"keypatch",
|
||||||
|
"keyunicode",
|
||||||
|
"length",
|
||||||
|
"library",
|
||||||
|
"limit",
|
||||||
|
"ln",
|
||||||
|
"loadxml",
|
||||||
|
"local",
|
||||||
|
"log",
|
||||||
|
"loop",
|
||||||
|
"map",
|
||||||
|
"matched",
|
||||||
|
"matchlength",
|
||||||
|
"matchposition",
|
||||||
|
"matchtext",
|
||||||
|
"matchunicode",
|
||||||
|
"max",
|
||||||
|
"merge",
|
||||||
|
"mergejoin",
|
||||||
|
"min",
|
||||||
|
"nofold",
|
||||||
|
"nolocal",
|
||||||
|
"nonempty",
|
||||||
|
"normalize",
|
||||||
|
"nothor",
|
||||||
|
"notify",
|
||||||
|
"output",
|
||||||
|
"parallel",
|
||||||
|
"parse",
|
||||||
|
"pipe",
|
||||||
|
"power",
|
||||||
|
"preload",
|
||||||
|
"process",
|
||||||
|
"project",
|
||||||
|
"pull",
|
||||||
|
"random",
|
||||||
|
"range",
|
||||||
|
"rank",
|
||||||
|
"ranked",
|
||||||
|
"realformat",
|
||||||
|
"recordof",
|
||||||
|
"regexfind",
|
||||||
|
"regexreplace",
|
||||||
|
"regroup",
|
||||||
|
"rejected",
|
||||||
|
"rollup",
|
||||||
|
"round",
|
||||||
|
"roundup",
|
||||||
|
"row",
|
||||||
|
"rowdiff",
|
||||||
|
"sample",
|
||||||
|
"sequential",
|
||||||
|
"set",
|
||||||
|
"sin",
|
||||||
|
"sinh",
|
||||||
|
"sizeof",
|
||||||
|
"soapcall",
|
||||||
|
"sort",
|
||||||
|
"sorted",
|
||||||
|
"sqrt",
|
||||||
|
"stepped",
|
||||||
|
"stored",
|
||||||
|
"sum",
|
||||||
|
"table",
|
||||||
|
"tan",
|
||||||
|
"tanh",
|
||||||
|
"thisnode",
|
||||||
|
"topn",
|
||||||
|
"tounicode",
|
||||||
|
"toxml",
|
||||||
|
"transfer",
|
||||||
|
"transform",
|
||||||
|
"trim",
|
||||||
|
"truncate",
|
||||||
|
"typeof",
|
||||||
|
"ungroup",
|
||||||
|
"unicodeorder",
|
||||||
|
"variance",
|
||||||
|
"wait",
|
||||||
|
"which",
|
||||||
|
"workunit",
|
||||||
|
"xmldecode",
|
||||||
|
"xmlencode",
|
||||||
|
"xmltext",
|
||||||
|
"xmlunicode"
|
||||||
|
],
|
||||||
|
typesint: ["integer", "unsigned"].join("|"),
|
||||||
|
typesnum: ["data", "qstring", "string", "unicode", "utf8", "varstring", "varunicode"],
|
||||||
|
typesone: [
|
||||||
|
"ascii",
|
||||||
|
"big_endian",
|
||||||
|
"boolean",
|
||||||
|
"data",
|
||||||
|
"decimal",
|
||||||
|
"ebcdic",
|
||||||
|
"grouped",
|
||||||
|
"integer",
|
||||||
|
"linkcounted",
|
||||||
|
"pattern",
|
||||||
|
"qstring",
|
||||||
|
"real",
|
||||||
|
"record",
|
||||||
|
"rule",
|
||||||
|
"set of",
|
||||||
|
"streamed",
|
||||||
|
"string",
|
||||||
|
"token",
|
||||||
|
"udecimal",
|
||||||
|
"unicode",
|
||||||
|
"unsigned",
|
||||||
|
"utf8",
|
||||||
|
"varstring",
|
||||||
|
"varunicode"
|
||||||
|
].join("|"),
|
||||||
|
operators: ["+", "-", "/", ":=", "<", "<>", "=", ">", "\\", "and", "in", "not", "or"],
|
||||||
|
symbols: /[=><!~?:&|+\-*\/\^%]+/,
|
||||||
|
escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
|
||||||
|
tokenizer: {
|
||||||
|
root: [
|
||||||
|
[/@typesint[4|8]/, "type"],
|
||||||
|
[/#(@pounds)/, "type"],
|
||||||
|
[/@typesone/, "type"],
|
||||||
|
[
|
||||||
|
/[a-zA-Z_$][\w-$]*/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"@functions": "keyword.function",
|
||||||
|
"@keywords": "keyword",
|
||||||
|
"@operators": "operator"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
{ include: "@whitespace" },
|
||||||
|
[/[{}()\[\]]/, "@brackets"],
|
||||||
|
[/[<>](?!@symbols)/, "@brackets"],
|
||||||
|
[
|
||||||
|
/@symbols/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"@operators": "delimiter",
|
||||||
|
"@default": ""
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/[0-9_]*\.[0-9_]+([eE][\-+]?\d+)?/, "number.float"],
|
||||||
|
[/0[xX][0-9a-fA-F_]+/, "number.hex"],
|
||||||
|
[/0[bB][01]+/, "number.hex"],
|
||||||
|
[/[0-9_]+/, "number"],
|
||||||
|
[/[;,.]/, "delimiter"],
|
||||||
|
[/"([^"\\]|\\.)*$/, "string.invalid"],
|
||||||
|
[/"/, "string", "@string"],
|
||||||
|
[/'[^\\']'/, "string"],
|
||||||
|
[/(')(@escapes)(')/, ["string", "string.escape", "string"]],
|
||||||
|
[/'/, "string.invalid"]
|
||||||
|
],
|
||||||
|
whitespace: [
|
||||||
|
[/[ \t\v\f\r\n]+/, ""],
|
||||||
|
[/\/\*/, "comment", "@comment"],
|
||||||
|
[/\/\/.*$/, "comment"]
|
||||||
|
],
|
||||||
|
comment: [
|
||||||
|
[/[^\/*]+/, "comment"],
|
||||||
|
[/\*\//, "comment", "@pop"],
|
||||||
|
[/[\/*]/, "comment"]
|
||||||
|
],
|
||||||
|
string: [
|
||||||
|
[/[^\\']+/, "string"],
|
||||||
|
[/@escapes/, "string.escape"],
|
||||||
|
[/\\./, "string.escape.invalid"],
|
||||||
|
[/'/, "string", "@pop"]
|
||||||
|
]
|
||||||
|
}
|
||||||
|
};
|
||||||
|
return __toCommonJS(ecl_exports);
|
||||||
|
})();
|
||||||
|
return moduleExports;
|
||||||
|
});
|
||||||
@@ -0,0 +1,499 @@
|
|||||||
|
/*!-----------------------------------------------------------------------------
|
||||||
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||||
|
* Version: 0.33.0(4b1abad427e58dbedc1215d99a0902ffc885fcd4)
|
||||||
|
* Released under the MIT license
|
||||||
|
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
||||||
|
*-----------------------------------------------------------------------------*/
|
||||||
|
define("vs/basic-languages/elixir/elixir", ["require"],(require)=>{
|
||||||
|
var moduleExports = (() => {
|
||||||
|
var __defProp = Object.defineProperty;
|
||||||
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||||
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||||
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||||
|
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
||||||
|
var __export = (target, all) => {
|
||||||
|
for (var name in all)
|
||||||
|
__defProp(target, name, { get: all[name], enumerable: true });
|
||||||
|
};
|
||||||
|
var __reExport = (target, module, copyDefault, desc) => {
|
||||||
|
if (module && typeof module === "object" || typeof module === "function") {
|
||||||
|
for (let key of __getOwnPropNames(module))
|
||||||
|
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
||||||
|
__defProp(target, key, { get: () => module[key], enumerable: !(desc = __getOwnPropDesc(module, key)) || desc.enumerable });
|
||||||
|
}
|
||||||
|
return target;
|
||||||
|
};
|
||||||
|
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
||||||
|
return (module, temp) => {
|
||||||
|
return cache && cache.get(module) || (temp = __reExport(__markAsModule({}), module, 1), cache && cache.set(module, temp), temp);
|
||||||
|
};
|
||||||
|
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
||||||
|
|
||||||
|
// src/basic-languages/elixir/elixir.ts
|
||||||
|
var elixir_exports = {};
|
||||||
|
__export(elixir_exports, {
|
||||||
|
conf: () => conf,
|
||||||
|
language: () => language
|
||||||
|
});
|
||||||
|
var conf = {
|
||||||
|
comments: {
|
||||||
|
lineComment: "#"
|
||||||
|
},
|
||||||
|
brackets: [
|
||||||
|
["{", "}"],
|
||||||
|
["[", "]"],
|
||||||
|
["(", ")"]
|
||||||
|
],
|
||||||
|
surroundingPairs: [
|
||||||
|
{ open: "{", close: "}" },
|
||||||
|
{ open: "[", close: "]" },
|
||||||
|
{ open: "(", close: ")" },
|
||||||
|
{ open: "'", close: "'" },
|
||||||
|
{ open: '"', close: '"' }
|
||||||
|
],
|
||||||
|
autoClosingPairs: [
|
||||||
|
{ open: "'", close: "'", notIn: ["string", "comment"] },
|
||||||
|
{ open: '"', close: '"', notIn: ["comment"] },
|
||||||
|
{ open: '"""', close: '"""' },
|
||||||
|
{ open: "`", close: "`", notIn: ["string", "comment"] },
|
||||||
|
{ open: "(", close: ")" },
|
||||||
|
{ open: "{", close: "}" },
|
||||||
|
{ open: "[", close: "]" },
|
||||||
|
{ open: "<<", close: ">>" }
|
||||||
|
],
|
||||||
|
indentationRules: {
|
||||||
|
increaseIndentPattern: /^\s*(after|else|catch|rescue|fn|[^#]*(do|<\-|\->|\{|\[|\=))\s*$/,
|
||||||
|
decreaseIndentPattern: /^\s*((\}|\])\s*$|(after|else|catch|rescue|end)\b)/
|
||||||
|
}
|
||||||
|
};
|
||||||
|
var language = {
|
||||||
|
defaultToken: "source",
|
||||||
|
tokenPostfix: ".elixir",
|
||||||
|
brackets: [
|
||||||
|
{ open: "[", close: "]", token: "delimiter.square" },
|
||||||
|
{ open: "(", close: ")", token: "delimiter.parenthesis" },
|
||||||
|
{ open: "{", close: "}", token: "delimiter.curly" },
|
||||||
|
{ open: "<<", close: ">>", token: "delimiter.angle.special" }
|
||||||
|
],
|
||||||
|
declarationKeywords: [
|
||||||
|
"def",
|
||||||
|
"defp",
|
||||||
|
"defn",
|
||||||
|
"defnp",
|
||||||
|
"defguard",
|
||||||
|
"defguardp",
|
||||||
|
"defmacro",
|
||||||
|
"defmacrop",
|
||||||
|
"defdelegate",
|
||||||
|
"defcallback",
|
||||||
|
"defmacrocallback",
|
||||||
|
"defmodule",
|
||||||
|
"defprotocol",
|
||||||
|
"defexception",
|
||||||
|
"defimpl",
|
||||||
|
"defstruct"
|
||||||
|
],
|
||||||
|
operatorKeywords: ["and", "in", "not", "or", "when"],
|
||||||
|
namespaceKeywords: ["alias", "import", "require", "use"],
|
||||||
|
otherKeywords: [
|
||||||
|
"after",
|
||||||
|
"case",
|
||||||
|
"catch",
|
||||||
|
"cond",
|
||||||
|
"do",
|
||||||
|
"else",
|
||||||
|
"end",
|
||||||
|
"fn",
|
||||||
|
"for",
|
||||||
|
"if",
|
||||||
|
"quote",
|
||||||
|
"raise",
|
||||||
|
"receive",
|
||||||
|
"rescue",
|
||||||
|
"super",
|
||||||
|
"throw",
|
||||||
|
"try",
|
||||||
|
"unless",
|
||||||
|
"unquote_splicing",
|
||||||
|
"unquote",
|
||||||
|
"with"
|
||||||
|
],
|
||||||
|
constants: ["true", "false", "nil"],
|
||||||
|
nameBuiltin: ["__MODULE__", "__DIR__", "__ENV__", "__CALLER__", "__STACKTRACE__"],
|
||||||
|
operator: /-[->]?|!={0,2}|\*{1,2}|\/|\\\\|&{1,3}|\.\.?|\^(?:\^\^)?|\+\+?|<(?:-|<<|=|>|\|>|~>?)?|=~|={1,3}|>(?:=|>>)?|\|~>|\|>|\|{1,3}|~>>?|~~~|::/,
|
||||||
|
variableName: /[a-z_][a-zA-Z0-9_]*[?!]?/,
|
||||||
|
atomName: /[a-zA-Z_][a-zA-Z0-9_@]*[?!]?|@specialAtomName|@operator/,
|
||||||
|
specialAtomName: /\.\.\.|<<>>|%\{\}|%|\{\}/,
|
||||||
|
aliasPart: /[A-Z][a-zA-Z0-9_]*/,
|
||||||
|
moduleName: /@aliasPart(?:\.@aliasPart)*/,
|
||||||
|
sigilSymmetricDelimiter: /"""|'''|"|'|\/|\|/,
|
||||||
|
sigilStartDelimiter: /@sigilSymmetricDelimiter|<|\{|\[|\(/,
|
||||||
|
sigilEndDelimiter: /@sigilSymmetricDelimiter|>|\}|\]|\)/,
|
||||||
|
sigilModifiers: /[a-zA-Z0-9]*/,
|
||||||
|
decimal: /\d(?:_?\d)*/,
|
||||||
|
hex: /[0-9a-fA-F](_?[0-9a-fA-F])*/,
|
||||||
|
octal: /[0-7](_?[0-7])*/,
|
||||||
|
binary: /[01](_?[01])*/,
|
||||||
|
escape: /\\u[0-9a-fA-F]{4}|\\x[0-9a-fA-F]{2}|\\./,
|
||||||
|
tokenizer: {
|
||||||
|
root: [
|
||||||
|
{ include: "@whitespace" },
|
||||||
|
{ include: "@comments" },
|
||||||
|
{ include: "@keywordsShorthand" },
|
||||||
|
{ include: "@numbers" },
|
||||||
|
{ include: "@identifiers" },
|
||||||
|
{ include: "@strings" },
|
||||||
|
{ include: "@atoms" },
|
||||||
|
{ include: "@sigils" },
|
||||||
|
{ include: "@attributes" },
|
||||||
|
{ include: "@symbols" }
|
||||||
|
],
|
||||||
|
whitespace: [[/\s+/, "white"]],
|
||||||
|
comments: [[/(#)(.*)/, ["comment.punctuation", "comment"]]],
|
||||||
|
keywordsShorthand: [
|
||||||
|
[/(@atomName)(:)/, ["constant", "constant.punctuation"]],
|
||||||
|
[
|
||||||
|
/"(?=([^"]|#\{.*?\}|\\")*":)/,
|
||||||
|
{ token: "constant.delimiter", next: "@doubleQuotedStringKeyword" }
|
||||||
|
],
|
||||||
|
[
|
||||||
|
/'(?=([^']|#\{.*?\}|\\')*':)/,
|
||||||
|
{ token: "constant.delimiter", next: "@singleQuotedStringKeyword" }
|
||||||
|
]
|
||||||
|
],
|
||||||
|
doubleQuotedStringKeyword: [
|
||||||
|
[/":/, { token: "constant.delimiter", next: "@pop" }],
|
||||||
|
{ include: "@stringConstantContentInterpol" }
|
||||||
|
],
|
||||||
|
singleQuotedStringKeyword: [
|
||||||
|
[/':/, { token: "constant.delimiter", next: "@pop" }],
|
||||||
|
{ include: "@stringConstantContentInterpol" }
|
||||||
|
],
|
||||||
|
numbers: [
|
||||||
|
[/0b@binary/, "number.binary"],
|
||||||
|
[/0o@octal/, "number.octal"],
|
||||||
|
[/0x@hex/, "number.hex"],
|
||||||
|
[/@decimal\.@decimal([eE]-?@decimal)?/, "number.float"],
|
||||||
|
[/@decimal/, "number"]
|
||||||
|
],
|
||||||
|
identifiers: [
|
||||||
|
[
|
||||||
|
/\b(defp?|defnp?|defmacrop?|defguardp?|defdelegate)(\s+)(@variableName)(?!\s+@operator)/,
|
||||||
|
[
|
||||||
|
"keyword.declaration",
|
||||||
|
"white",
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
unquote: "keyword",
|
||||||
|
"@default": "function"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
],
|
||||||
|
[
|
||||||
|
/(@variableName)(?=\s*\.?\s*\()/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"@declarationKeywords": "keyword.declaration",
|
||||||
|
"@namespaceKeywords": "keyword",
|
||||||
|
"@otherKeywords": "keyword",
|
||||||
|
"@default": "function.call"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[
|
||||||
|
/(@moduleName)(\s*)(\.)(\s*)(@variableName)/,
|
||||||
|
["type.identifier", "white", "operator", "white", "function.call"]
|
||||||
|
],
|
||||||
|
[
|
||||||
|
/(:)(@atomName)(\s*)(\.)(\s*)(@variableName)/,
|
||||||
|
["constant.punctuation", "constant", "white", "operator", "white", "function.call"]
|
||||||
|
],
|
||||||
|
[
|
||||||
|
/(\|>)(\s*)(@variableName)/,
|
||||||
|
[
|
||||||
|
"operator",
|
||||||
|
"white",
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"@otherKeywords": "keyword",
|
||||||
|
"@default": "function.call"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
],
|
||||||
|
[
|
||||||
|
/(&)(\s*)(@variableName)/,
|
||||||
|
["operator", "white", "function.call"]
|
||||||
|
],
|
||||||
|
[
|
||||||
|
/@variableName/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"@declarationKeywords": "keyword.declaration",
|
||||||
|
"@operatorKeywords": "keyword.operator",
|
||||||
|
"@namespaceKeywords": "keyword",
|
||||||
|
"@otherKeywords": "keyword",
|
||||||
|
"@constants": "constant.language",
|
||||||
|
"@nameBuiltin": "variable.language",
|
||||||
|
"_.*": "comment.unused",
|
||||||
|
"@default": "identifier"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/@moduleName/, "type.identifier"]
|
||||||
|
],
|
||||||
|
strings: [
|
||||||
|
[/"""/, { token: "string.delimiter", next: "@doubleQuotedHeredoc" }],
|
||||||
|
[/'''/, { token: "string.delimiter", next: "@singleQuotedHeredoc" }],
|
||||||
|
[/"/, { token: "string.delimiter", next: "@doubleQuotedString" }],
|
||||||
|
[/'/, { token: "string.delimiter", next: "@singleQuotedString" }]
|
||||||
|
],
|
||||||
|
doubleQuotedHeredoc: [
|
||||||
|
[/"""/, { token: "string.delimiter", next: "@pop" }],
|
||||||
|
{ include: "@stringContentInterpol" }
|
||||||
|
],
|
||||||
|
singleQuotedHeredoc: [
|
||||||
|
[/'''/, { token: "string.delimiter", next: "@pop" }],
|
||||||
|
{ include: "@stringContentInterpol" }
|
||||||
|
],
|
||||||
|
doubleQuotedString: [
|
||||||
|
[/"/, { token: "string.delimiter", next: "@pop" }],
|
||||||
|
{ include: "@stringContentInterpol" }
|
||||||
|
],
|
||||||
|
singleQuotedString: [
|
||||||
|
[/'/, { token: "string.delimiter", next: "@pop" }],
|
||||||
|
{ include: "@stringContentInterpol" }
|
||||||
|
],
|
||||||
|
atoms: [
|
||||||
|
[/(:)(@atomName)/, ["constant.punctuation", "constant"]],
|
||||||
|
[/:"/, { token: "constant.delimiter", next: "@doubleQuotedStringAtom" }],
|
||||||
|
[/:'/, { token: "constant.delimiter", next: "@singleQuotedStringAtom" }]
|
||||||
|
],
|
||||||
|
doubleQuotedStringAtom: [
|
||||||
|
[/"/, { token: "constant.delimiter", next: "@pop" }],
|
||||||
|
{ include: "@stringConstantContentInterpol" }
|
||||||
|
],
|
||||||
|
singleQuotedStringAtom: [
|
||||||
|
[/'/, { token: "constant.delimiter", next: "@pop" }],
|
||||||
|
{ include: "@stringConstantContentInterpol" }
|
||||||
|
],
|
||||||
|
sigils: [
|
||||||
|
[/~[a-z]@sigilStartDelimiter/, { token: "@rematch", next: "@sigil.interpol" }],
|
||||||
|
[/~[A-Z]@sigilStartDelimiter/, { token: "@rematch", next: "@sigil.noInterpol" }]
|
||||||
|
],
|
||||||
|
sigil: [
|
||||||
|
[/~([a-zA-Z])\{/, { token: "@rematch", switchTo: "@sigilStart.$S2.$1.{.}" }],
|
||||||
|
[/~([a-zA-Z])\[/, { token: "@rematch", switchTo: "@sigilStart.$S2.$1.[.]" }],
|
||||||
|
[/~([a-zA-Z])\(/, { token: "@rematch", switchTo: "@sigilStart.$S2.$1.(.)" }],
|
||||||
|
[/~([a-zA-Z])\</, { token: "@rematch", switchTo: "@sigilStart.$S2.$1.<.>" }],
|
||||||
|
[
|
||||||
|
/~([a-zA-Z])(@sigilSymmetricDelimiter)/,
|
||||||
|
{ token: "@rematch", switchTo: "@sigilStart.$S2.$1.$2.$2" }
|
||||||
|
]
|
||||||
|
],
|
||||||
|
"sigilStart.interpol.s": [
|
||||||
|
[
|
||||||
|
/~s@sigilStartDelimiter/,
|
||||||
|
{
|
||||||
|
token: "string.delimiter",
|
||||||
|
switchTo: "@sigilContinue.$S2.$S3.$S4.$S5"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
],
|
||||||
|
"sigilContinue.interpol.s": [
|
||||||
|
[
|
||||||
|
/(@sigilEndDelimiter)@sigilModifiers/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"$1==$S5": { token: "string.delimiter", next: "@pop" },
|
||||||
|
"@default": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
{ include: "@stringContentInterpol" }
|
||||||
|
],
|
||||||
|
"sigilStart.noInterpol.S": [
|
||||||
|
[
|
||||||
|
/~S@sigilStartDelimiter/,
|
||||||
|
{
|
||||||
|
token: "string.delimiter",
|
||||||
|
switchTo: "@sigilContinue.$S2.$S3.$S4.$S5"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
],
|
||||||
|
"sigilContinue.noInterpol.S": [
|
||||||
|
[/(^|[^\\])\\@sigilEndDelimiter/, "string"],
|
||||||
|
[
|
||||||
|
/(@sigilEndDelimiter)@sigilModifiers/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"$1==$S5": { token: "string.delimiter", next: "@pop" },
|
||||||
|
"@default": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
{ include: "@stringContent" }
|
||||||
|
],
|
||||||
|
"sigilStart.interpol.r": [
|
||||||
|
[
|
||||||
|
/~r@sigilStartDelimiter/,
|
||||||
|
{
|
||||||
|
token: "regexp.delimiter",
|
||||||
|
switchTo: "@sigilContinue.$S2.$S3.$S4.$S5"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
],
|
||||||
|
"sigilContinue.interpol.r": [
|
||||||
|
[
|
||||||
|
/(@sigilEndDelimiter)@sigilModifiers/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"$1==$S5": { token: "regexp.delimiter", next: "@pop" },
|
||||||
|
"@default": "regexp"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
{ include: "@regexpContentInterpol" }
|
||||||
|
],
|
||||||
|
"sigilStart.noInterpol.R": [
|
||||||
|
[
|
||||||
|
/~R@sigilStartDelimiter/,
|
||||||
|
{
|
||||||
|
token: "regexp.delimiter",
|
||||||
|
switchTo: "@sigilContinue.$S2.$S3.$S4.$S5"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
],
|
||||||
|
"sigilContinue.noInterpol.R": [
|
||||||
|
[/(^|[^\\])\\@sigilEndDelimiter/, "regexp"],
|
||||||
|
[
|
||||||
|
/(@sigilEndDelimiter)@sigilModifiers/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"$1==$S5": { token: "regexp.delimiter", next: "@pop" },
|
||||||
|
"@default": "regexp"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
{ include: "@regexpContent" }
|
||||||
|
],
|
||||||
|
"sigilStart.interpol": [
|
||||||
|
[
|
||||||
|
/~([a-zA-Z])@sigilStartDelimiter/,
|
||||||
|
{
|
||||||
|
token: "sigil.delimiter",
|
||||||
|
switchTo: "@sigilContinue.$S2.$S3.$S4.$S5"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
],
|
||||||
|
"sigilContinue.interpol": [
|
||||||
|
[
|
||||||
|
/(@sigilEndDelimiter)@sigilModifiers/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"$1==$S5": { token: "sigil.delimiter", next: "@pop" },
|
||||||
|
"@default": "sigil"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
{ include: "@sigilContentInterpol" }
|
||||||
|
],
|
||||||
|
"sigilStart.noInterpol": [
|
||||||
|
[
|
||||||
|
/~([a-zA-Z])@sigilStartDelimiter/,
|
||||||
|
{
|
||||||
|
token: "sigil.delimiter",
|
||||||
|
switchTo: "@sigilContinue.$S2.$S3.$S4.$S5"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
],
|
||||||
|
"sigilContinue.noInterpol": [
|
||||||
|
[/(^|[^\\])\\@sigilEndDelimiter/, "sigil"],
|
||||||
|
[
|
||||||
|
/(@sigilEndDelimiter)@sigilModifiers/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"$1==$S5": { token: "sigil.delimiter", next: "@pop" },
|
||||||
|
"@default": "sigil"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
{ include: "@sigilContent" }
|
||||||
|
],
|
||||||
|
attributes: [
|
||||||
|
[
|
||||||
|
/\@(module|type)?doc (~[sS])?"""/,
|
||||||
|
{
|
||||||
|
token: "comment.block.documentation",
|
||||||
|
next: "@doubleQuotedHeredocDocstring"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[
|
||||||
|
/\@(module|type)?doc (~[sS])?"/,
|
||||||
|
{
|
||||||
|
token: "comment.block.documentation",
|
||||||
|
next: "@doubleQuotedStringDocstring"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/\@(module|type)?doc false/, "comment.block.documentation"],
|
||||||
|
[/\@(@variableName)/, "variable"]
|
||||||
|
],
|
||||||
|
doubleQuotedHeredocDocstring: [
|
||||||
|
[/"""/, { token: "comment.block.documentation", next: "@pop" }],
|
||||||
|
{ include: "@docstringContent" }
|
||||||
|
],
|
||||||
|
doubleQuotedStringDocstring: [
|
||||||
|
[/"/, { token: "comment.block.documentation", next: "@pop" }],
|
||||||
|
{ include: "@docstringContent" }
|
||||||
|
],
|
||||||
|
symbols: [
|
||||||
|
[/\?(\\.|[^\\\s])/, "number.constant"],
|
||||||
|
[/&\d+/, "operator"],
|
||||||
|
[/<<<|>>>/, "operator"],
|
||||||
|
[/[()\[\]\{\}]|<<|>>/, "@brackets"],
|
||||||
|
[/\.\.\./, "identifier"],
|
||||||
|
[/=>/, "punctuation"],
|
||||||
|
[/@operator/, "operator"],
|
||||||
|
[/[:;,.%]/, "punctuation"]
|
||||||
|
],
|
||||||
|
stringContentInterpol: [
|
||||||
|
{ include: "@interpolation" },
|
||||||
|
{ include: "@escapeChar" },
|
||||||
|
{ include: "@stringContent" }
|
||||||
|
],
|
||||||
|
stringContent: [[/./, "string"]],
|
||||||
|
stringConstantContentInterpol: [
|
||||||
|
{ include: "@interpolation" },
|
||||||
|
{ include: "@escapeChar" },
|
||||||
|
{ include: "@stringConstantContent" }
|
||||||
|
],
|
||||||
|
stringConstantContent: [[/./, "constant"]],
|
||||||
|
regexpContentInterpol: [
|
||||||
|
{ include: "@interpolation" },
|
||||||
|
{ include: "@escapeChar" },
|
||||||
|
{ include: "@regexpContent" }
|
||||||
|
],
|
||||||
|
regexpContent: [
|
||||||
|
[/(\s)(#)(\s.*)$/, ["white", "comment.punctuation", "comment"]],
|
||||||
|
[/./, "regexp"]
|
||||||
|
],
|
||||||
|
sigilContentInterpol: [
|
||||||
|
{ include: "@interpolation" },
|
||||||
|
{ include: "@escapeChar" },
|
||||||
|
{ include: "@sigilContent" }
|
||||||
|
],
|
||||||
|
sigilContent: [[/./, "sigil"]],
|
||||||
|
docstringContent: [[/./, "comment.block.documentation"]],
|
||||||
|
escapeChar: [[/@escape/, "constant.character.escape"]],
|
||||||
|
interpolation: [[/#{/, { token: "delimiter.bracket.embed", next: "@interpolationContinue" }]],
|
||||||
|
interpolationContinue: [
|
||||||
|
[/}/, { token: "delimiter.bracket.embed", next: "@pop" }],
|
||||||
|
{ include: "@root" }
|
||||||
|
]
|
||||||
|
}
|
||||||
|
};
|
||||||
|
return __toCommonJS(elixir_exports);
|
||||||
|
})();
|
||||||
|
return moduleExports;
|
||||||
|
});
|
||||||
@@ -0,0 +1,173 @@
|
|||||||
|
/*!-----------------------------------------------------------------------------
|
||||||
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||||
|
* Version: 0.33.0(4b1abad427e58dbedc1215d99a0902ffc885fcd4)
|
||||||
|
* Released under the MIT license
|
||||||
|
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
||||||
|
*-----------------------------------------------------------------------------*/
|
||||||
|
define("vs/basic-languages/flow9/flow9", ["require"],(require)=>{
|
||||||
|
var moduleExports = (() => {
|
||||||
|
var __defProp = Object.defineProperty;
|
||||||
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||||
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||||
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||||
|
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
||||||
|
var __export = (target, all) => {
|
||||||
|
for (var name in all)
|
||||||
|
__defProp(target, name, { get: all[name], enumerable: true });
|
||||||
|
};
|
||||||
|
var __reExport = (target, module, copyDefault, desc) => {
|
||||||
|
if (module && typeof module === "object" || typeof module === "function") {
|
||||||
|
for (let key of __getOwnPropNames(module))
|
||||||
|
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
||||||
|
__defProp(target, key, { get: () => module[key], enumerable: !(desc = __getOwnPropDesc(module, key)) || desc.enumerable });
|
||||||
|
}
|
||||||
|
return target;
|
||||||
|
};
|
||||||
|
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
||||||
|
return (module, temp) => {
|
||||||
|
return cache && cache.get(module) || (temp = __reExport(__markAsModule({}), module, 1), cache && cache.set(module, temp), temp);
|
||||||
|
};
|
||||||
|
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
||||||
|
|
||||||
|
// src/basic-languages/flow9/flow9.ts
|
||||||
|
var flow9_exports = {};
|
||||||
|
__export(flow9_exports, {
|
||||||
|
conf: () => conf,
|
||||||
|
language: () => language
|
||||||
|
});
|
||||||
|
var conf = {
|
||||||
|
comments: {
|
||||||
|
blockComment: ["/*", "*/"],
|
||||||
|
lineComment: "//"
|
||||||
|
},
|
||||||
|
brackets: [
|
||||||
|
["{", "}"],
|
||||||
|
["[", "]"],
|
||||||
|
["(", ")"]
|
||||||
|
],
|
||||||
|
autoClosingPairs: [
|
||||||
|
{ open: "{", close: "}", notIn: ["string"] },
|
||||||
|
{ open: "[", close: "]", notIn: ["string"] },
|
||||||
|
{ open: "(", close: ")", notIn: ["string"] },
|
||||||
|
{ open: '"', close: '"', notIn: ["string"] },
|
||||||
|
{ open: "'", close: "'", notIn: ["string"] }
|
||||||
|
],
|
||||||
|
surroundingPairs: [
|
||||||
|
{ open: "{", close: "}" },
|
||||||
|
{ open: "[", close: "]" },
|
||||||
|
{ open: "(", close: ")" },
|
||||||
|
{ open: '"', close: '"' },
|
||||||
|
{ open: "'", close: "'" },
|
||||||
|
{ open: "<", close: ">" }
|
||||||
|
]
|
||||||
|
};
|
||||||
|
var language = {
|
||||||
|
defaultToken: "",
|
||||||
|
tokenPostfix: ".flow",
|
||||||
|
keywords: [
|
||||||
|
"import",
|
||||||
|
"require",
|
||||||
|
"export",
|
||||||
|
"forbid",
|
||||||
|
"native",
|
||||||
|
"if",
|
||||||
|
"else",
|
||||||
|
"cast",
|
||||||
|
"unsafe",
|
||||||
|
"switch",
|
||||||
|
"default"
|
||||||
|
],
|
||||||
|
types: [
|
||||||
|
"io",
|
||||||
|
"mutable",
|
||||||
|
"bool",
|
||||||
|
"int",
|
||||||
|
"double",
|
||||||
|
"string",
|
||||||
|
"flow",
|
||||||
|
"void",
|
||||||
|
"ref",
|
||||||
|
"true",
|
||||||
|
"false",
|
||||||
|
"with"
|
||||||
|
],
|
||||||
|
operators: [
|
||||||
|
"=",
|
||||||
|
">",
|
||||||
|
"<",
|
||||||
|
"<=",
|
||||||
|
">=",
|
||||||
|
"==",
|
||||||
|
"!",
|
||||||
|
"!=",
|
||||||
|
":=",
|
||||||
|
"::=",
|
||||||
|
"&&",
|
||||||
|
"||",
|
||||||
|
"+",
|
||||||
|
"-",
|
||||||
|
"*",
|
||||||
|
"/",
|
||||||
|
"@",
|
||||||
|
"&",
|
||||||
|
"%",
|
||||||
|
":",
|
||||||
|
"->",
|
||||||
|
"\\",
|
||||||
|
"$",
|
||||||
|
"??",
|
||||||
|
"^"
|
||||||
|
],
|
||||||
|
symbols: /[@$=><!~?:&|+\-*\\\/\^%]+/,
|
||||||
|
escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
|
||||||
|
tokenizer: {
|
||||||
|
root: [
|
||||||
|
[
|
||||||
|
/[a-zA-Z_]\w*/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"@keywords": "keyword",
|
||||||
|
"@types": "type",
|
||||||
|
"@default": "identifier"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
{ include: "@whitespace" },
|
||||||
|
[/[{}()\[\]]/, "delimiter"],
|
||||||
|
[/[<>](?!@symbols)/, "delimiter"],
|
||||||
|
[
|
||||||
|
/@symbols/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"@operators": "delimiter",
|
||||||
|
"@default": ""
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/((0(x|X)[0-9a-fA-F]*)|(([0-9]+\.?[0-9]*)|(\.[0-9]+))((e|E)(\+|-)?[0-9]+)?)/, "number"],
|
||||||
|
[/[;,.]/, "delimiter"],
|
||||||
|
[/"([^"\\]|\\.)*$/, "string.invalid"],
|
||||||
|
[/"/, "string", "@string"]
|
||||||
|
],
|
||||||
|
whitespace: [
|
||||||
|
[/[ \t\r\n]+/, ""],
|
||||||
|
[/\/\*/, "comment", "@comment"],
|
||||||
|
[/\/\/.*$/, "comment"]
|
||||||
|
],
|
||||||
|
comment: [
|
||||||
|
[/[^\/*]+/, "comment"],
|
||||||
|
[/\*\//, "comment", "@pop"],
|
||||||
|
[/[\/*]/, "comment"]
|
||||||
|
],
|
||||||
|
string: [
|
||||||
|
[/[^\\"]+/, "string"],
|
||||||
|
[/@escapes/, "string.escape"],
|
||||||
|
[/\\./, "string.escape.invalid"],
|
||||||
|
[/"/, "string", "@pop"]
|
||||||
|
]
|
||||||
|
}
|
||||||
|
};
|
||||||
|
return __toCommonJS(flow9_exports);
|
||||||
|
})();
|
||||||
|
return moduleExports;
|
||||||
|
});
|
||||||
@@ -0,0 +1,708 @@
|
|||||||
|
/*!-----------------------------------------------------------------------------
|
||||||
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||||
|
* Version: 0.33.0(4b1abad427e58dbedc1215d99a0902ffc885fcd4)
|
||||||
|
* Released under the MIT license
|
||||||
|
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
||||||
|
*-----------------------------------------------------------------------------*/
|
||||||
|
define("vs/basic-languages/freemarker2/freemarker2", ["require"],(require)=>{
|
||||||
|
var moduleExports = (() => {
|
||||||
|
var __create = Object.create;
|
||||||
|
var __defProp = Object.defineProperty;
|
||||||
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||||
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||||
|
var __getProtoOf = Object.getPrototypeOf;
|
||||||
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||||
|
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
||||||
|
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
||||||
|
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
||||||
|
}) : x)(function(x) {
|
||||||
|
if (typeof require !== "undefined")
|
||||||
|
return require.apply(this, arguments);
|
||||||
|
throw new Error('Dynamic require of "' + x + '" is not supported');
|
||||||
|
});
|
||||||
|
var __commonJS = (cb, mod) => function __require2() {
|
||||||
|
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
||||||
|
};
|
||||||
|
var __export = (target, all) => {
|
||||||
|
for (var name in all)
|
||||||
|
__defProp(target, name, { get: all[name], enumerable: true });
|
||||||
|
};
|
||||||
|
var __reExport = (target, module, copyDefault, desc) => {
|
||||||
|
if (module && typeof module === "object" || typeof module === "function") {
|
||||||
|
for (let key of __getOwnPropNames(module))
|
||||||
|
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
||||||
|
__defProp(target, key, { get: () => module[key], enumerable: !(desc = __getOwnPropDesc(module, key)) || desc.enumerable });
|
||||||
|
}
|
||||||
|
return target;
|
||||||
|
};
|
||||||
|
var __toESM = (module, isNodeMode) => {
|
||||||
|
return __reExport(__markAsModule(__defProp(module != null ? __create(__getProtoOf(module)) : {}, "default", !isNodeMode && module && module.__esModule ? { get: () => module.default, enumerable: true } : { value: module, enumerable: true })), module);
|
||||||
|
};
|
||||||
|
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
||||||
|
return (module, temp) => {
|
||||||
|
return cache && cache.get(module) || (temp = __reExport(__markAsModule({}), module, 1), cache && cache.set(module, temp), temp);
|
||||||
|
};
|
||||||
|
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
||||||
|
|
||||||
|
// src/fillers/monaco-editor-core-amd.ts
|
||||||
|
var require_monaco_editor_core_amd = __commonJS({
|
||||||
|
"src/fillers/monaco-editor-core-amd.ts"(exports, module) {
|
||||||
|
var api = __toESM(__require("vs/editor/editor.api"));
|
||||||
|
module.exports = api;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
// src/basic-languages/freemarker2/freemarker2.ts
|
||||||
|
var freemarker2_exports = {};
|
||||||
|
__export(freemarker2_exports, {
|
||||||
|
TagAngleInterpolationBracket: () => TagAngleInterpolationBracket,
|
||||||
|
TagAngleInterpolationDollar: () => TagAngleInterpolationDollar,
|
||||||
|
TagAutoInterpolationBracket: () => TagAutoInterpolationBracket,
|
||||||
|
TagAutoInterpolationDollar: () => TagAutoInterpolationDollar,
|
||||||
|
TagBracketInterpolationBracket: () => TagBracketInterpolationBracket,
|
||||||
|
TagBracketInterpolationDollar: () => TagBracketInterpolationDollar
|
||||||
|
});
|
||||||
|
|
||||||
|
// src/fillers/monaco-editor-core.ts
|
||||||
|
var monaco_editor_core_exports = {};
|
||||||
|
__reExport(monaco_editor_core_exports, __toESM(require_monaco_editor_core_amd()));
|
||||||
|
|
||||||
|
// src/basic-languages/freemarker2/freemarker2.ts
|
||||||
|
var EMPTY_ELEMENTS = [
|
||||||
|
"assign",
|
||||||
|
"flush",
|
||||||
|
"ftl",
|
||||||
|
"return",
|
||||||
|
"global",
|
||||||
|
"import",
|
||||||
|
"include",
|
||||||
|
"break",
|
||||||
|
"continue",
|
||||||
|
"local",
|
||||||
|
"nested",
|
||||||
|
"nt",
|
||||||
|
"setting",
|
||||||
|
"stop",
|
||||||
|
"t",
|
||||||
|
"lt",
|
||||||
|
"rt",
|
||||||
|
"fallback"
|
||||||
|
];
|
||||||
|
var BLOCK_ELEMENTS = [
|
||||||
|
"attempt",
|
||||||
|
"autoesc",
|
||||||
|
"autoEsc",
|
||||||
|
"compress",
|
||||||
|
"comment",
|
||||||
|
"escape",
|
||||||
|
"noescape",
|
||||||
|
"function",
|
||||||
|
"if",
|
||||||
|
"list",
|
||||||
|
"items",
|
||||||
|
"sep",
|
||||||
|
"macro",
|
||||||
|
"noparse",
|
||||||
|
"noParse",
|
||||||
|
"noautoesc",
|
||||||
|
"noAutoEsc",
|
||||||
|
"outputformat",
|
||||||
|
"switch",
|
||||||
|
"visit",
|
||||||
|
"recurse"
|
||||||
|
];
|
||||||
|
var TagSyntaxAngle = {
|
||||||
|
close: ">",
|
||||||
|
id: "angle",
|
||||||
|
open: "<"
|
||||||
|
};
|
||||||
|
var TagSyntaxBracket = {
|
||||||
|
close: "\\]",
|
||||||
|
id: "bracket",
|
||||||
|
open: "\\["
|
||||||
|
};
|
||||||
|
var TagSyntaxAuto = {
|
||||||
|
close: "[>\\]]",
|
||||||
|
id: "auto",
|
||||||
|
open: "[<\\[]"
|
||||||
|
};
|
||||||
|
var InterpolationSyntaxDollar = {
|
||||||
|
close: "\\}",
|
||||||
|
id: "dollar",
|
||||||
|
open1: "\\$",
|
||||||
|
open2: "\\{"
|
||||||
|
};
|
||||||
|
var InterpolationSyntaxBracket = {
|
||||||
|
close: "\\]",
|
||||||
|
id: "bracket",
|
||||||
|
open1: "\\[",
|
||||||
|
open2: "="
|
||||||
|
};
|
||||||
|
function createLangConfiguration(ts) {
|
||||||
|
return {
|
||||||
|
brackets: [
|
||||||
|
["<", ">"],
|
||||||
|
["[", "]"],
|
||||||
|
["(", ")"],
|
||||||
|
["{", "}"]
|
||||||
|
],
|
||||||
|
comments: {
|
||||||
|
blockComment: [`${ts.open}--`, `--${ts.close}`]
|
||||||
|
},
|
||||||
|
autoCloseBefore: "\n\r }]),.:;=",
|
||||||
|
autoClosingPairs: [
|
||||||
|
{ open: "{", close: "}" },
|
||||||
|
{ open: "[", close: "]" },
|
||||||
|
{ open: "(", close: ")" },
|
||||||
|
{ open: '"', close: '"', notIn: ["string"] },
|
||||||
|
{ open: "'", close: "'", notIn: ["string"] }
|
||||||
|
],
|
||||||
|
surroundingPairs: [
|
||||||
|
{ open: '"', close: '"' },
|
||||||
|
{ open: "'", close: "'" },
|
||||||
|
{ open: "{", close: "}" },
|
||||||
|
{ open: "[", close: "]" },
|
||||||
|
{ open: "(", close: ")" },
|
||||||
|
{ open: "<", close: ">" }
|
||||||
|
],
|
||||||
|
folding: {
|
||||||
|
markers: {
|
||||||
|
start: new RegExp(`${ts.open}#(?:${BLOCK_ELEMENTS.join("|")})([^/${ts.close}]*(?!/)${ts.close})[^${ts.open}]*$`),
|
||||||
|
end: new RegExp(`${ts.open}/#(?:${BLOCK_ELEMENTS.join("|")})[\\r\\n\\t ]*>`)
|
||||||
|
}
|
||||||
|
},
|
||||||
|
onEnterRules: [
|
||||||
|
{
|
||||||
|
beforeText: new RegExp(`${ts.open}#(?!(?:${EMPTY_ELEMENTS.join("|")}))([a-zA-Z_]+)([^/${ts.close}]*(?!/)${ts.close})[^${ts.open}]*$`),
|
||||||
|
afterText: new RegExp(`^${ts.open}/#([a-zA-Z_]+)[\\r\\n\\t ]*${ts.close}$`),
|
||||||
|
action: {
|
||||||
|
indentAction: monaco_editor_core_exports.languages.IndentAction.IndentOutdent
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
beforeText: new RegExp(`${ts.open}#(?!(?:${EMPTY_ELEMENTS.join("|")}))([a-zA-Z_]+)([^/${ts.close}]*(?!/)${ts.close})[^${ts.open}]*$`),
|
||||||
|
action: { indentAction: monaco_editor_core_exports.languages.IndentAction.Indent }
|
||||||
|
}
|
||||||
|
]
|
||||||
|
};
|
||||||
|
}
|
||||||
|
function createLangConfigurationAuto() {
|
||||||
|
return {
|
||||||
|
brackets: [
|
||||||
|
["<", ">"],
|
||||||
|
["[", "]"],
|
||||||
|
["(", ")"],
|
||||||
|
["{", "}"]
|
||||||
|
],
|
||||||
|
autoCloseBefore: "\n\r }]),.:;=",
|
||||||
|
autoClosingPairs: [
|
||||||
|
{ open: "{", close: "}" },
|
||||||
|
{ open: "[", close: "]" },
|
||||||
|
{ open: "(", close: ")" },
|
||||||
|
{ open: '"', close: '"', notIn: ["string"] },
|
||||||
|
{ open: "'", close: "'", notIn: ["string"] }
|
||||||
|
],
|
||||||
|
surroundingPairs: [
|
||||||
|
{ open: '"', close: '"' },
|
||||||
|
{ open: "'", close: "'" },
|
||||||
|
{ open: "{", close: "}" },
|
||||||
|
{ open: "[", close: "]" },
|
||||||
|
{ open: "(", close: ")" },
|
||||||
|
{ open: "<", close: ">" }
|
||||||
|
],
|
||||||
|
folding: {
|
||||||
|
markers: {
|
||||||
|
start: new RegExp(`[<\\[]#(?:${BLOCK_ELEMENTS.join("|")})([^/>\\]]*(?!/)[>\\]])[^<\\[]*$`),
|
||||||
|
end: new RegExp(`[<\\[]/#(?:${BLOCK_ELEMENTS.join("|")})[\\r\\n\\t ]*>`)
|
||||||
|
}
|
||||||
|
},
|
||||||
|
onEnterRules: [
|
||||||
|
{
|
||||||
|
beforeText: new RegExp(`[<\\[]#(?!(?:${EMPTY_ELEMENTS.join("|")}))([a-zA-Z_]+)([^/>\\]]*(?!/)[>\\]])[^[<\\[]]*$`),
|
||||||
|
afterText: new RegExp(`^[<\\[]/#([a-zA-Z_]+)[\\r\\n\\t ]*[>\\]]$`),
|
||||||
|
action: {
|
||||||
|
indentAction: monaco_editor_core_exports.languages.IndentAction.IndentOutdent
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
beforeText: new RegExp(`[<\\[]#(?!(?:${EMPTY_ELEMENTS.join("|")}))([a-zA-Z_]+)([^/>\\]]*(?!/)[>\\]])[^[<\\[]]*$`),
|
||||||
|
action: { indentAction: monaco_editor_core_exports.languages.IndentAction.Indent }
|
||||||
|
}
|
||||||
|
]
|
||||||
|
};
|
||||||
|
}
|
||||||
|
function createMonarchLanguage(ts, is) {
|
||||||
|
const id = `_${ts.id}_${is.id}`;
|
||||||
|
const s = (name) => name.replace(/__id__/g, id);
|
||||||
|
const r = (regexp) => {
|
||||||
|
const source = regexp.source.replace(/__id__/g, id);
|
||||||
|
return new RegExp(source, regexp.flags);
|
||||||
|
};
|
||||||
|
return {
|
||||||
|
unicode: true,
|
||||||
|
includeLF: false,
|
||||||
|
start: s("default__id__"),
|
||||||
|
ignoreCase: false,
|
||||||
|
defaultToken: "invalid",
|
||||||
|
tokenPostfix: `.freemarker2`,
|
||||||
|
brackets: [
|
||||||
|
{ open: "{", close: "}", token: "delimiter.curly" },
|
||||||
|
{ open: "[", close: "]", token: "delimiter.square" },
|
||||||
|
{ open: "(", close: ")", token: "delimiter.parenthesis" },
|
||||||
|
{ open: "<", close: ">", token: "delimiter.angle" }
|
||||||
|
],
|
||||||
|
[s("open__id__")]: new RegExp(ts.open),
|
||||||
|
[s("close__id__")]: new RegExp(ts.close),
|
||||||
|
[s("iOpen1__id__")]: new RegExp(is.open1),
|
||||||
|
[s("iOpen2__id__")]: new RegExp(is.open2),
|
||||||
|
[s("iClose__id__")]: new RegExp(is.close),
|
||||||
|
[s("startTag__id__")]: r(/(@open__id__)(#)/),
|
||||||
|
[s("endTag__id__")]: r(/(@open__id__)(\/#)/),
|
||||||
|
[s("startOrEndTag__id__")]: r(/(@open__id__)(\/?#)/),
|
||||||
|
[s("closeTag1__id__")]: r(/((?:@blank)*)(@close__id__)/),
|
||||||
|
[s("closeTag2__id__")]: r(/((?:@blank)*\/?)(@close__id__)/),
|
||||||
|
blank: /[ \t\n\r]/,
|
||||||
|
keywords: ["false", "true", "in", "as", "using"],
|
||||||
|
directiveStartCloseTag1: /attempt|recover|sep|auto[eE]sc|no(?:autoe|AutoE)sc|compress|default|no[eE]scape|comment|no[pP]arse/,
|
||||||
|
directiveStartCloseTag2: /else|break|continue|return|stop|flush|t|lt|rt|nt|nested|recurse|fallback|ftl/,
|
||||||
|
directiveStartBlank: /if|else[iI]f|list|for[eE]ach|switch|case|assign|global|local|include|import|function|macro|transform|visit|stop|return|call|setting|output[fF]ormat|nested|recurse|escape|ftl|items/,
|
||||||
|
directiveEndCloseTag1: /if|list|items|sep|recover|attempt|for[eE]ach|local|global|assign|function|macro|output[fF]ormat|auto[eE]sc|no(?:autoe|AutoE)sc|compress|transform|switch|escape|no[eE]scape/,
|
||||||
|
escapedChar: /\\(?:[ntrfbgla\\'"\{=]|(?:x[0-9A-Fa-f]{1,4}))/,
|
||||||
|
asciiDigit: /[0-9]/,
|
||||||
|
integer: /[0-9]+/,
|
||||||
|
nonEscapedIdStartChar: /[\$@-Z_a-z\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u1FFF\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183-\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3006\u3031-\u3035\u303B-\u303C\u3040-\u318F\u31A0-\u31BA\u31F0-\u31FF\u3300-\u337F\u3400-\u4DB5\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5-\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40-\uFB41\uFB43-\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,
|
||||||
|
escapedIdChar: /\\[\-\.:#]/,
|
||||||
|
idStartChar: /(?:@nonEscapedIdStartChar)|(?:@escapedIdChar)/,
|
||||||
|
id: /(?:@idStartChar)(?:(?:@idStartChar)|(?:@asciiDigit))*/,
|
||||||
|
specialHashKeys: /\*\*|\*|false|true|in|as|using/,
|
||||||
|
namedSymbols: /<=|>=|\\lte|\\lt|<|\\gte|\\gt|>|&&|\\and|->|->|==|!=|\+=|-=|\*=|\/=|%=|\+\+|--|<=|&&|\|\||:|\.\.\.|\.\.\*|\.\.<|\.\.!|\?\?|=|<|\+|-|\*|\/|%|\||\.\.|\?|!|&|\.|,|;/,
|
||||||
|
arrows: ["->", "->"],
|
||||||
|
delimiters: [";", ":", ",", "."],
|
||||||
|
stringOperators: ["lte", "lt", "gte", "gt"],
|
||||||
|
noParseTags: ["noparse", "noParse", "comment"],
|
||||||
|
tokenizer: {
|
||||||
|
[s("default__id__")]: [
|
||||||
|
{ include: s("@directive_token__id__") },
|
||||||
|
{ include: s("@interpolation_and_text_token__id__") }
|
||||||
|
],
|
||||||
|
[s("fmExpression__id__.directive")]: [
|
||||||
|
{ include: s("@blank_and_expression_comment_token__id__") },
|
||||||
|
{ include: s("@directive_end_token__id__") },
|
||||||
|
{ include: s("@expression_token__id__") }
|
||||||
|
],
|
||||||
|
[s("fmExpression__id__.interpolation")]: [
|
||||||
|
{ include: s("@blank_and_expression_comment_token__id__") },
|
||||||
|
{ include: s("@expression_token__id__") },
|
||||||
|
{ include: s("@greater_operators_token__id__") }
|
||||||
|
],
|
||||||
|
[s("inParen__id__.plain")]: [
|
||||||
|
{ include: s("@blank_and_expression_comment_token__id__") },
|
||||||
|
{ include: s("@directive_end_token__id__") },
|
||||||
|
{ include: s("@expression_token__id__") }
|
||||||
|
],
|
||||||
|
[s("inParen__id__.gt")]: [
|
||||||
|
{ include: s("@blank_and_expression_comment_token__id__") },
|
||||||
|
{ include: s("@expression_token__id__") },
|
||||||
|
{ include: s("@greater_operators_token__id__") }
|
||||||
|
],
|
||||||
|
[s("noSpaceExpression__id__")]: [
|
||||||
|
{ include: s("@no_space_expression_end_token__id__") },
|
||||||
|
{ include: s("@directive_end_token__id__") },
|
||||||
|
{ include: s("@expression_token__id__") }
|
||||||
|
],
|
||||||
|
[s("unifiedCall__id__")]: [{ include: s("@unified_call_token__id__") }],
|
||||||
|
[s("singleString__id__")]: [{ include: s("@string_single_token__id__") }],
|
||||||
|
[s("doubleString__id__")]: [{ include: s("@string_double_token__id__") }],
|
||||||
|
[s("rawSingleString__id__")]: [{ include: s("@string_single_raw_token__id__") }],
|
||||||
|
[s("rawDoubleString__id__")]: [{ include: s("@string_double_raw_token__id__") }],
|
||||||
|
[s("expressionComment__id__")]: [{ include: s("@expression_comment_token__id__") }],
|
||||||
|
[s("noParse__id__")]: [{ include: s("@no_parse_token__id__") }],
|
||||||
|
[s("terseComment__id__")]: [{ include: s("@terse_comment_token__id__") }],
|
||||||
|
[s("directive_token__id__")]: [
|
||||||
|
[
|
||||||
|
r(/(?:@startTag__id__)(@directiveStartCloseTag1)(?:@closeTag1__id__)/),
|
||||||
|
ts.id === "auto" ? {
|
||||||
|
cases: {
|
||||||
|
"$1==<": { token: "@rematch", switchTo: `@default_angle_${is.id}` },
|
||||||
|
"$1==[": { token: "@rematch", switchTo: `@default_bracket_${is.id}` }
|
||||||
|
}
|
||||||
|
} : [
|
||||||
|
{ token: "@brackets.directive" },
|
||||||
|
{ token: "delimiter.directive" },
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"@noParseTags": { token: "tag", next: s("@noParse__id__.$3") },
|
||||||
|
"@default": { token: "tag" }
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{ token: "delimiter.directive" },
|
||||||
|
{ token: "@brackets.directive" }
|
||||||
|
]
|
||||||
|
],
|
||||||
|
[
|
||||||
|
r(/(?:@startTag__id__)(@directiveStartCloseTag2)(?:@closeTag2__id__)/),
|
||||||
|
ts.id === "auto" ? {
|
||||||
|
cases: {
|
||||||
|
"$1==<": { token: "@rematch", switchTo: `@default_angle_${is.id}` },
|
||||||
|
"$1==[": { token: "@rematch", switchTo: `@default_bracket_${is.id}` }
|
||||||
|
}
|
||||||
|
} : [
|
||||||
|
{ token: "@brackets.directive" },
|
||||||
|
{ token: "delimiter.directive" },
|
||||||
|
{ token: "tag" },
|
||||||
|
{ token: "delimiter.directive" },
|
||||||
|
{ token: "@brackets.directive" }
|
||||||
|
]
|
||||||
|
],
|
||||||
|
[
|
||||||
|
r(/(?:@startTag__id__)(@directiveStartBlank)(@blank)/),
|
||||||
|
ts.id === "auto" ? {
|
||||||
|
cases: {
|
||||||
|
"$1==<": { token: "@rematch", switchTo: `@default_angle_${is.id}` },
|
||||||
|
"$1==[": { token: "@rematch", switchTo: `@default_bracket_${is.id}` }
|
||||||
|
}
|
||||||
|
} : [
|
||||||
|
{ token: "@brackets.directive" },
|
||||||
|
{ token: "delimiter.directive" },
|
||||||
|
{ token: "tag" },
|
||||||
|
{ token: "", next: s("@fmExpression__id__.directive") }
|
||||||
|
]
|
||||||
|
],
|
||||||
|
[
|
||||||
|
r(/(?:@endTag__id__)(@directiveEndCloseTag1)(?:@closeTag1__id__)/),
|
||||||
|
ts.id === "auto" ? {
|
||||||
|
cases: {
|
||||||
|
"$1==<": { token: "@rematch", switchTo: `@default_angle_${is.id}` },
|
||||||
|
"$1==[": { token: "@rematch", switchTo: `@default_bracket_${is.id}` }
|
||||||
|
}
|
||||||
|
} : [
|
||||||
|
{ token: "@brackets.directive" },
|
||||||
|
{ token: "delimiter.directive" },
|
||||||
|
{ token: "tag" },
|
||||||
|
{ token: "delimiter.directive" },
|
||||||
|
{ token: "@brackets.directive" }
|
||||||
|
]
|
||||||
|
],
|
||||||
|
[
|
||||||
|
r(/(@open__id__)(@)/),
|
||||||
|
ts.id === "auto" ? {
|
||||||
|
cases: {
|
||||||
|
"$1==<": { token: "@rematch", switchTo: `@default_angle_${is.id}` },
|
||||||
|
"$1==[": { token: "@rematch", switchTo: `@default_bracket_${is.id}` }
|
||||||
|
}
|
||||||
|
} : [
|
||||||
|
{ token: "@brackets.directive" },
|
||||||
|
{ token: "delimiter.directive", next: s("@unifiedCall__id__") }
|
||||||
|
]
|
||||||
|
],
|
||||||
|
[
|
||||||
|
r(/(@open__id__)(\/@)((?:(?:@id)(?:\.(?:@id))*)?)(?:@closeTag1__id__)/),
|
||||||
|
[
|
||||||
|
{ token: "@brackets.directive" },
|
||||||
|
{ token: "delimiter.directive" },
|
||||||
|
{ token: "tag" },
|
||||||
|
{ token: "delimiter.directive" },
|
||||||
|
{ token: "@brackets.directive" }
|
||||||
|
]
|
||||||
|
],
|
||||||
|
[
|
||||||
|
r(/(@open__id__)#--/),
|
||||||
|
ts.id === "auto" ? {
|
||||||
|
cases: {
|
||||||
|
"$1==<": { token: "@rematch", switchTo: `@default_angle_${is.id}` },
|
||||||
|
"$1==[": { token: "@rematch", switchTo: `@default_bracket_${is.id}` }
|
||||||
|
}
|
||||||
|
} : { token: "comment", next: s("@terseComment__id__") }
|
||||||
|
],
|
||||||
|
[
|
||||||
|
r(/(?:@startOrEndTag__id__)([a-zA-Z_]+)/),
|
||||||
|
ts.id === "auto" ? {
|
||||||
|
cases: {
|
||||||
|
"$1==<": { token: "@rematch", switchTo: `@default_angle_${is.id}` },
|
||||||
|
"$1==[": { token: "@rematch", switchTo: `@default_bracket_${is.id}` }
|
||||||
|
}
|
||||||
|
} : [
|
||||||
|
{ token: "@brackets.directive" },
|
||||||
|
{ token: "delimiter.directive" },
|
||||||
|
{ token: "tag.invalid", next: s("@fmExpression__id__.directive") }
|
||||||
|
]
|
||||||
|
]
|
||||||
|
],
|
||||||
|
[s("interpolation_and_text_token__id__")]: [
|
||||||
|
[
|
||||||
|
r(/(@iOpen1__id__)(@iOpen2__id__)/),
|
||||||
|
[
|
||||||
|
{ token: is.id === "bracket" ? "@brackets.interpolation" : "delimiter.interpolation" },
|
||||||
|
{
|
||||||
|
token: is.id === "bracket" ? "delimiter.interpolation" : "@brackets.interpolation",
|
||||||
|
next: s("@fmExpression__id__.interpolation")
|
||||||
|
}
|
||||||
|
]
|
||||||
|
],
|
||||||
|
[/[\$#<\[\{]|(?:@blank)+|[^\$<#\[\{\n\r\t ]+/, { token: "source" }]
|
||||||
|
],
|
||||||
|
[s("string_single_token__id__")]: [
|
||||||
|
[/[^'\\]/, { token: "string" }],
|
||||||
|
[/@escapedChar/, { token: "string.escape" }],
|
||||||
|
[/'/, { token: "string", next: "@pop" }]
|
||||||
|
],
|
||||||
|
[s("string_double_token__id__")]: [
|
||||||
|
[/[^"\\]/, { token: "string" }],
|
||||||
|
[/@escapedChar/, { token: "string.escape" }],
|
||||||
|
[/"/, { token: "string", next: "@pop" }]
|
||||||
|
],
|
||||||
|
[s("string_single_raw_token__id__")]: [
|
||||||
|
[/[^']+/, { token: "string.raw" }],
|
||||||
|
[/'/, { token: "string.raw", next: "@pop" }]
|
||||||
|
],
|
||||||
|
[s("string_double_raw_token__id__")]: [
|
||||||
|
[/[^"]+/, { token: "string.raw" }],
|
||||||
|
[/"/, { token: "string.raw", next: "@pop" }]
|
||||||
|
],
|
||||||
|
[s("expression_token__id__")]: [
|
||||||
|
[
|
||||||
|
/(r?)(['"])/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"r'": [
|
||||||
|
{ token: "keyword" },
|
||||||
|
{ token: "string.raw", next: s("@rawSingleString__id__") }
|
||||||
|
],
|
||||||
|
'r"': [
|
||||||
|
{ token: "keyword" },
|
||||||
|
{ token: "string.raw", next: s("@rawDoubleString__id__") }
|
||||||
|
],
|
||||||
|
"'": [{ token: "source" }, { token: "string", next: s("@singleString__id__") }],
|
||||||
|
'"': [{ token: "source" }, { token: "string", next: s("@doubleString__id__") }]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[
|
||||||
|
/(?:@integer)(?:\.(?:@integer))?/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"(?:@integer)": { token: "number" },
|
||||||
|
"@default": { token: "number.float" }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[
|
||||||
|
/(\.)(@blank*)(@specialHashKeys)/,
|
||||||
|
[{ token: "delimiter" }, { token: "" }, { token: "identifier" }]
|
||||||
|
],
|
||||||
|
[
|
||||||
|
/(?:@namedSymbols)/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"@arrows": { token: "meta.arrow" },
|
||||||
|
"@delimiters": { token: "delimiter" },
|
||||||
|
"@default": { token: "operators" }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[
|
||||||
|
/@id/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"@keywords": { token: "keyword.$0" },
|
||||||
|
"@stringOperators": { token: "operators" },
|
||||||
|
"@default": { token: "identifier" }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[
|
||||||
|
/[\[\]\(\)\{\}]/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"\\[": {
|
||||||
|
cases: {
|
||||||
|
"$S2==gt": { token: "@brackets", next: s("@inParen__id__.gt") },
|
||||||
|
"@default": { token: "@brackets", next: s("@inParen__id__.plain") }
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"\\]": {
|
||||||
|
cases: {
|
||||||
|
...is.id === "bracket" ? {
|
||||||
|
"$S2==interpolation": { token: "@brackets.interpolation", next: "@popall" }
|
||||||
|
} : {},
|
||||||
|
...ts.id === "bracket" ? {
|
||||||
|
"$S2==directive": { token: "@brackets.directive", next: "@popall" }
|
||||||
|
} : {},
|
||||||
|
[s("$S1==inParen__id__")]: { token: "@brackets", next: "@pop" },
|
||||||
|
"@default": { token: "@brackets" }
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"\\(": { token: "@brackets", next: s("@inParen__id__.gt") },
|
||||||
|
"\\)": {
|
||||||
|
cases: {
|
||||||
|
[s("$S1==inParen__id__")]: { token: "@brackets", next: "@pop" },
|
||||||
|
"@default": { token: "@brackets" }
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"\\{": {
|
||||||
|
cases: {
|
||||||
|
"$S2==gt": { token: "@brackets", next: s("@inParen__id__.gt") },
|
||||||
|
"@default": { token: "@brackets", next: s("@inParen__id__.plain") }
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"\\}": {
|
||||||
|
cases: {
|
||||||
|
...is.id === "bracket" ? {} : {
|
||||||
|
"$S2==interpolation": { token: "@brackets.interpolation", next: "@popall" }
|
||||||
|
},
|
||||||
|
[s("$S1==inParen__id__")]: { token: "@brackets", next: "@pop" },
|
||||||
|
"@default": { token: "@brackets" }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/\$\{/, { token: "delimiter.invalid" }]
|
||||||
|
],
|
||||||
|
[s("blank_and_expression_comment_token__id__")]: [
|
||||||
|
[/(?:@blank)+/, { token: "" }],
|
||||||
|
[/[<\[][#!]--/, { token: "comment", next: s("@expressionComment__id__") }]
|
||||||
|
],
|
||||||
|
[s("directive_end_token__id__")]: [
|
||||||
|
[
|
||||||
|
/>/,
|
||||||
|
ts.id === "bracket" ? { token: "operators" } : { token: "@brackets.directive", next: "@popall" }
|
||||||
|
],
|
||||||
|
[
|
||||||
|
r(/(\/)(@close__id__)/),
|
||||||
|
[{ token: "delimiter.directive" }, { token: "@brackets.directive", next: "@popall" }]
|
||||||
|
]
|
||||||
|
],
|
||||||
|
[s("greater_operators_token__id__")]: [
|
||||||
|
[/>/, { token: "operators" }],
|
||||||
|
[/>=/, { token: "operators" }]
|
||||||
|
],
|
||||||
|
[s("no_space_expression_end_token__id__")]: [
|
||||||
|
[/(?:@blank)+/, { token: "", switchTo: s("@fmExpression__id__.directive") }]
|
||||||
|
],
|
||||||
|
[s("unified_call_token__id__")]: [
|
||||||
|
[
|
||||||
|
/(@id)((?:@blank)+)/,
|
||||||
|
[{ token: "tag" }, { token: "", next: s("@fmExpression__id__.directive") }]
|
||||||
|
],
|
||||||
|
[
|
||||||
|
r(/(@id)(\/?)(@close__id__)/),
|
||||||
|
[
|
||||||
|
{ token: "tag" },
|
||||||
|
{ token: "delimiter.directive" },
|
||||||
|
{ token: "@brackets.directive", next: "@popall" }
|
||||||
|
]
|
||||||
|
],
|
||||||
|
[/./, { token: "@rematch", next: s("@noSpaceExpression__id__") }]
|
||||||
|
],
|
||||||
|
[s("no_parse_token__id__")]: [
|
||||||
|
[
|
||||||
|
r(/(@open__id__)(\/#?)([a-zA-Z]+)((?:@blank)*)(@close__id__)/),
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"$S2==$3": [
|
||||||
|
{ token: "@brackets.directive" },
|
||||||
|
{ token: "delimiter.directive" },
|
||||||
|
{ token: "tag" },
|
||||||
|
{ token: "" },
|
||||||
|
{ token: "@brackets.directive", next: "@popall" }
|
||||||
|
],
|
||||||
|
"$S2==comment": [
|
||||||
|
{ token: "comment" },
|
||||||
|
{ token: "comment" },
|
||||||
|
{ token: "comment" },
|
||||||
|
{ token: "comment" },
|
||||||
|
{ token: "comment" }
|
||||||
|
],
|
||||||
|
"@default": [
|
||||||
|
{ token: "source" },
|
||||||
|
{ token: "source" },
|
||||||
|
{ token: "source" },
|
||||||
|
{ token: "source" },
|
||||||
|
{ token: "source" }
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[
|
||||||
|
/[^<\[\-]+|[<\[\-]/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"$S2==comment": { token: "comment" },
|
||||||
|
"@default": { token: "source" }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
],
|
||||||
|
[s("expression_comment_token__id__")]: [
|
||||||
|
[
|
||||||
|
/--[>\]]/,
|
||||||
|
{
|
||||||
|
token: "comment",
|
||||||
|
next: "@pop"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/[^\->\]]+|[>\]\-]/, { token: "comment" }]
|
||||||
|
],
|
||||||
|
[s("terse_comment_token__id__")]: [
|
||||||
|
[r(/--(?:@close__id__)/), { token: "comment", next: "@popall" }],
|
||||||
|
[/[^<\[\-]+|[<\[\-]/, { token: "comment" }]
|
||||||
|
]
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
||||||
|
function createMonarchLanguageAuto(is) {
|
||||||
|
const angle = createMonarchLanguage(TagSyntaxAngle, is);
|
||||||
|
const bracket = createMonarchLanguage(TagSyntaxBracket, is);
|
||||||
|
const auto = createMonarchLanguage(TagSyntaxAuto, is);
|
||||||
|
return {
|
||||||
|
...angle,
|
||||||
|
...bracket,
|
||||||
|
...auto,
|
||||||
|
unicode: true,
|
||||||
|
includeLF: false,
|
||||||
|
start: `default_auto_${is.id}`,
|
||||||
|
ignoreCase: false,
|
||||||
|
defaultToken: "invalid",
|
||||||
|
tokenPostfix: `.freemarker2`,
|
||||||
|
brackets: [
|
||||||
|
{ open: "{", close: "}", token: "delimiter.curly" },
|
||||||
|
{ open: "[", close: "]", token: "delimiter.square" },
|
||||||
|
{ open: "(", close: ")", token: "delimiter.parenthesis" },
|
||||||
|
{ open: "<", close: ">", token: "delimiter.angle" }
|
||||||
|
],
|
||||||
|
tokenizer: {
|
||||||
|
...angle.tokenizer,
|
||||||
|
...bracket.tokenizer,
|
||||||
|
...auto.tokenizer
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
||||||
|
var TagAngleInterpolationDollar = {
|
||||||
|
conf: createLangConfiguration(TagSyntaxAngle),
|
||||||
|
language: createMonarchLanguage(TagSyntaxAngle, InterpolationSyntaxDollar)
|
||||||
|
};
|
||||||
|
var TagBracketInterpolationDollar = {
|
||||||
|
conf: createLangConfiguration(TagSyntaxBracket),
|
||||||
|
language: createMonarchLanguage(TagSyntaxBracket, InterpolationSyntaxDollar)
|
||||||
|
};
|
||||||
|
var TagAngleInterpolationBracket = {
|
||||||
|
conf: createLangConfiguration(TagSyntaxAngle),
|
||||||
|
language: createMonarchLanguage(TagSyntaxAngle, InterpolationSyntaxBracket)
|
||||||
|
};
|
||||||
|
var TagBracketInterpolationBracket = {
|
||||||
|
conf: createLangConfiguration(TagSyntaxBracket),
|
||||||
|
language: createMonarchLanguage(TagSyntaxBracket, InterpolationSyntaxBracket)
|
||||||
|
};
|
||||||
|
var TagAutoInterpolationDollar = {
|
||||||
|
conf: createLangConfigurationAuto(),
|
||||||
|
language: createMonarchLanguageAuto(InterpolationSyntaxDollar)
|
||||||
|
};
|
||||||
|
var TagAutoInterpolationBracket = {
|
||||||
|
conf: createLangConfigurationAuto(),
|
||||||
|
language: createMonarchLanguageAuto(InterpolationSyntaxBracket)
|
||||||
|
};
|
||||||
|
return __toCommonJS(freemarker2_exports);
|
||||||
|
})();
|
||||||
|
return moduleExports;
|
||||||
|
});
|
||||||
@@ -0,0 +1,242 @@
|
|||||||
|
/*!-----------------------------------------------------------------------------
|
||||||
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||||
|
* Version: 0.33.0(4b1abad427e58dbedc1215d99a0902ffc885fcd4)
|
||||||
|
* Released under the MIT license
|
||||||
|
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
||||||
|
*-----------------------------------------------------------------------------*/
|
||||||
|
define("vs/basic-languages/fsharp/fsharp", ["require"],(require)=>{
|
||||||
|
var moduleExports = (() => {
|
||||||
|
var __defProp = Object.defineProperty;
|
||||||
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||||
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||||
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||||
|
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
||||||
|
var __export = (target, all) => {
|
||||||
|
for (var name in all)
|
||||||
|
__defProp(target, name, { get: all[name], enumerable: true });
|
||||||
|
};
|
||||||
|
var __reExport = (target, module, copyDefault, desc) => {
|
||||||
|
if (module && typeof module === "object" || typeof module === "function") {
|
||||||
|
for (let key of __getOwnPropNames(module))
|
||||||
|
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
||||||
|
__defProp(target, key, { get: () => module[key], enumerable: !(desc = __getOwnPropDesc(module, key)) || desc.enumerable });
|
||||||
|
}
|
||||||
|
return target;
|
||||||
|
};
|
||||||
|
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
||||||
|
return (module, temp) => {
|
||||||
|
return cache && cache.get(module) || (temp = __reExport(__markAsModule({}), module, 1), cache && cache.set(module, temp), temp);
|
||||||
|
};
|
||||||
|
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
||||||
|
|
||||||
|
// src/basic-languages/fsharp/fsharp.ts
|
||||||
|
var fsharp_exports = {};
|
||||||
|
__export(fsharp_exports, {
|
||||||
|
conf: () => conf,
|
||||||
|
language: () => language
|
||||||
|
});
|
||||||
|
var conf = {
|
||||||
|
comments: {
|
||||||
|
lineComment: "//",
|
||||||
|
blockComment: ["(*", "*)"]
|
||||||
|
},
|
||||||
|
brackets: [
|
||||||
|
["{", "}"],
|
||||||
|
["[", "]"],
|
||||||
|
["(", ")"]
|
||||||
|
],
|
||||||
|
autoClosingPairs: [
|
||||||
|
{ open: "{", close: "}" },
|
||||||
|
{ open: "[", close: "]" },
|
||||||
|
{ open: "(", close: ")" },
|
||||||
|
{ open: '"', close: '"' }
|
||||||
|
],
|
||||||
|
surroundingPairs: [
|
||||||
|
{ open: "{", close: "}" },
|
||||||
|
{ open: "[", close: "]" },
|
||||||
|
{ open: "(", close: ")" },
|
||||||
|
{ open: '"', close: '"' },
|
||||||
|
{ open: "'", close: "'" }
|
||||||
|
],
|
||||||
|
folding: {
|
||||||
|
markers: {
|
||||||
|
start: new RegExp("^\\s*//\\s*#region\\b|^\\s*\\(\\*\\s*#region(.*)\\*\\)"),
|
||||||
|
end: new RegExp("^\\s*//\\s*#endregion\\b|^\\s*\\(\\*\\s*#endregion\\s*\\*\\)")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
var language = {
|
||||||
|
defaultToken: "",
|
||||||
|
tokenPostfix: ".fs",
|
||||||
|
keywords: [
|
||||||
|
"abstract",
|
||||||
|
"and",
|
||||||
|
"atomic",
|
||||||
|
"as",
|
||||||
|
"assert",
|
||||||
|
"asr",
|
||||||
|
"base",
|
||||||
|
"begin",
|
||||||
|
"break",
|
||||||
|
"checked",
|
||||||
|
"component",
|
||||||
|
"const",
|
||||||
|
"constraint",
|
||||||
|
"constructor",
|
||||||
|
"continue",
|
||||||
|
"class",
|
||||||
|
"default",
|
||||||
|
"delegate",
|
||||||
|
"do",
|
||||||
|
"done",
|
||||||
|
"downcast",
|
||||||
|
"downto",
|
||||||
|
"elif",
|
||||||
|
"else",
|
||||||
|
"end",
|
||||||
|
"exception",
|
||||||
|
"eager",
|
||||||
|
"event",
|
||||||
|
"external",
|
||||||
|
"extern",
|
||||||
|
"false",
|
||||||
|
"finally",
|
||||||
|
"for",
|
||||||
|
"fun",
|
||||||
|
"function",
|
||||||
|
"fixed",
|
||||||
|
"functor",
|
||||||
|
"global",
|
||||||
|
"if",
|
||||||
|
"in",
|
||||||
|
"include",
|
||||||
|
"inherit",
|
||||||
|
"inline",
|
||||||
|
"interface",
|
||||||
|
"internal",
|
||||||
|
"land",
|
||||||
|
"lor",
|
||||||
|
"lsl",
|
||||||
|
"lsr",
|
||||||
|
"lxor",
|
||||||
|
"lazy",
|
||||||
|
"let",
|
||||||
|
"match",
|
||||||
|
"member",
|
||||||
|
"mod",
|
||||||
|
"module",
|
||||||
|
"mutable",
|
||||||
|
"namespace",
|
||||||
|
"method",
|
||||||
|
"mixin",
|
||||||
|
"new",
|
||||||
|
"not",
|
||||||
|
"null",
|
||||||
|
"of",
|
||||||
|
"open",
|
||||||
|
"or",
|
||||||
|
"object",
|
||||||
|
"override",
|
||||||
|
"private",
|
||||||
|
"parallel",
|
||||||
|
"process",
|
||||||
|
"protected",
|
||||||
|
"pure",
|
||||||
|
"public",
|
||||||
|
"rec",
|
||||||
|
"return",
|
||||||
|
"static",
|
||||||
|
"sealed",
|
||||||
|
"struct",
|
||||||
|
"sig",
|
||||||
|
"then",
|
||||||
|
"to",
|
||||||
|
"true",
|
||||||
|
"tailcall",
|
||||||
|
"trait",
|
||||||
|
"try",
|
||||||
|
"type",
|
||||||
|
"upcast",
|
||||||
|
"use",
|
||||||
|
"val",
|
||||||
|
"void",
|
||||||
|
"virtual",
|
||||||
|
"volatile",
|
||||||
|
"when",
|
||||||
|
"while",
|
||||||
|
"with",
|
||||||
|
"yield"
|
||||||
|
],
|
||||||
|
symbols: /[=><!~?:&|+\-*\^%;\.,\/]+/,
|
||||||
|
escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
|
||||||
|
integersuffix: /[uU]?[yslnLI]?/,
|
||||||
|
floatsuffix: /[fFmM]?/,
|
||||||
|
tokenizer: {
|
||||||
|
root: [
|
||||||
|
[
|
||||||
|
/[a-zA-Z_]\w*/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"@keywords": { token: "keyword.$0" },
|
||||||
|
"@default": "identifier"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
{ include: "@whitespace" },
|
||||||
|
[/\[<.*>\]/, "annotation"],
|
||||||
|
[/^#(if|else|endif)/, "keyword"],
|
||||||
|
[/[{}()\[\]]/, "@brackets"],
|
||||||
|
[/[<>](?!@symbols)/, "@brackets"],
|
||||||
|
[/@symbols/, "delimiter"],
|
||||||
|
[/\d*\d+[eE]([\-+]?\d+)?(@floatsuffix)/, "number.float"],
|
||||||
|
[/\d*\.\d+([eE][\-+]?\d+)?(@floatsuffix)/, "number.float"],
|
||||||
|
[/0x[0-9a-fA-F]+LF/, "number.float"],
|
||||||
|
[/0x[0-9a-fA-F]+(@integersuffix)/, "number.hex"],
|
||||||
|
[/0b[0-1]+(@integersuffix)/, "number.bin"],
|
||||||
|
[/\d+(@integersuffix)/, "number"],
|
||||||
|
[/[;,.]/, "delimiter"],
|
||||||
|
[/"([^"\\]|\\.)*$/, "string.invalid"],
|
||||||
|
[/"""/, "string", '@string."""'],
|
||||||
|
[/"/, "string", '@string."'],
|
||||||
|
[/\@"/, { token: "string.quote", next: "@litstring" }],
|
||||||
|
[/'[^\\']'B?/, "string"],
|
||||||
|
[/(')(@escapes)(')/, ["string", "string.escape", "string"]],
|
||||||
|
[/'/, "string.invalid"]
|
||||||
|
],
|
||||||
|
whitespace: [
|
||||||
|
[/[ \t\r\n]+/, ""],
|
||||||
|
[/\(\*(?!\))/, "comment", "@comment"],
|
||||||
|
[/\/\/.*$/, "comment"]
|
||||||
|
],
|
||||||
|
comment: [
|
||||||
|
[/[^*(]+/, "comment"],
|
||||||
|
[/\*\)/, "comment", "@pop"],
|
||||||
|
[/\*/, "comment"],
|
||||||
|
[/\(\*\)/, "comment"],
|
||||||
|
[/\(/, "comment"]
|
||||||
|
],
|
||||||
|
string: [
|
||||||
|
[/[^\\"]+/, "string"],
|
||||||
|
[/@escapes/, "string.escape"],
|
||||||
|
[/\\./, "string.escape.invalid"],
|
||||||
|
[
|
||||||
|
/("""|"B?)/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"$#==$S2": { token: "string", next: "@pop" },
|
||||||
|
"@default": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
],
|
||||||
|
litstring: [
|
||||||
|
[/[^"]+/, "string"],
|
||||||
|
[/""/, "string.escape"],
|
||||||
|
[/"/, { token: "string.quote", next: "@pop" }]
|
||||||
|
]
|
||||||
|
}
|
||||||
|
};
|
||||||
|
return __toCommonJS(fsharp_exports);
|
||||||
|
})();
|
||||||
|
return moduleExports;
|
||||||
|
});
|
||||||
@@ -0,0 +1,240 @@
|
|||||||
|
/*!-----------------------------------------------------------------------------
|
||||||
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||||
|
* Version: 0.33.0(4b1abad427e58dbedc1215d99a0902ffc885fcd4)
|
||||||
|
* Released under the MIT license
|
||||||
|
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
||||||
|
*-----------------------------------------------------------------------------*/
|
||||||
|
define("vs/basic-languages/go/go", ["require"],(require)=>{
|
||||||
|
var moduleExports = (() => {
|
||||||
|
var __defProp = Object.defineProperty;
|
||||||
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||||
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||||
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||||
|
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
||||||
|
var __export = (target, all) => {
|
||||||
|
for (var name in all)
|
||||||
|
__defProp(target, name, { get: all[name], enumerable: true });
|
||||||
|
};
|
||||||
|
var __reExport = (target, module, copyDefault, desc) => {
|
||||||
|
if (module && typeof module === "object" || typeof module === "function") {
|
||||||
|
for (let key of __getOwnPropNames(module))
|
||||||
|
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
||||||
|
__defProp(target, key, { get: () => module[key], enumerable: !(desc = __getOwnPropDesc(module, key)) || desc.enumerable });
|
||||||
|
}
|
||||||
|
return target;
|
||||||
|
};
|
||||||
|
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
||||||
|
return (module, temp) => {
|
||||||
|
return cache && cache.get(module) || (temp = __reExport(__markAsModule({}), module, 1), cache && cache.set(module, temp), temp);
|
||||||
|
};
|
||||||
|
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
||||||
|
|
||||||
|
// src/basic-languages/go/go.ts
|
||||||
|
var go_exports = {};
|
||||||
|
__export(go_exports, {
|
||||||
|
conf: () => conf,
|
||||||
|
language: () => language
|
||||||
|
});
|
||||||
|
var conf = {
|
||||||
|
comments: {
|
||||||
|
lineComment: "//",
|
||||||
|
blockComment: ["/*", "*/"]
|
||||||
|
},
|
||||||
|
brackets: [
|
||||||
|
["{", "}"],
|
||||||
|
["[", "]"],
|
||||||
|
["(", ")"]
|
||||||
|
],
|
||||||
|
autoClosingPairs: [
|
||||||
|
{ open: "{", close: "}" },
|
||||||
|
{ open: "[", close: "]" },
|
||||||
|
{ open: "(", close: ")" },
|
||||||
|
{ open: "`", close: "`", notIn: ["string"] },
|
||||||
|
{ open: '"', close: '"', notIn: ["string"] },
|
||||||
|
{ open: "'", close: "'", notIn: ["string", "comment"] }
|
||||||
|
],
|
||||||
|
surroundingPairs: [
|
||||||
|
{ open: "{", close: "}" },
|
||||||
|
{ open: "[", close: "]" },
|
||||||
|
{ open: "(", close: ")" },
|
||||||
|
{ open: "`", close: "`" },
|
||||||
|
{ open: '"', close: '"' },
|
||||||
|
{ open: "'", close: "'" }
|
||||||
|
]
|
||||||
|
};
|
||||||
|
var language = {
|
||||||
|
defaultToken: "",
|
||||||
|
tokenPostfix: ".go",
|
||||||
|
keywords: [
|
||||||
|
"break",
|
||||||
|
"case",
|
||||||
|
"chan",
|
||||||
|
"const",
|
||||||
|
"continue",
|
||||||
|
"default",
|
||||||
|
"defer",
|
||||||
|
"else",
|
||||||
|
"fallthrough",
|
||||||
|
"for",
|
||||||
|
"func",
|
||||||
|
"go",
|
||||||
|
"goto",
|
||||||
|
"if",
|
||||||
|
"import",
|
||||||
|
"interface",
|
||||||
|
"map",
|
||||||
|
"package",
|
||||||
|
"range",
|
||||||
|
"return",
|
||||||
|
"select",
|
||||||
|
"struct",
|
||||||
|
"switch",
|
||||||
|
"type",
|
||||||
|
"var",
|
||||||
|
"bool",
|
||||||
|
"true",
|
||||||
|
"false",
|
||||||
|
"uint8",
|
||||||
|
"uint16",
|
||||||
|
"uint32",
|
||||||
|
"uint64",
|
||||||
|
"int8",
|
||||||
|
"int16",
|
||||||
|
"int32",
|
||||||
|
"int64",
|
||||||
|
"float32",
|
||||||
|
"float64",
|
||||||
|
"complex64",
|
||||||
|
"complex128",
|
||||||
|
"byte",
|
||||||
|
"rune",
|
||||||
|
"uint",
|
||||||
|
"int",
|
||||||
|
"uintptr",
|
||||||
|
"string",
|
||||||
|
"nil"
|
||||||
|
],
|
||||||
|
operators: [
|
||||||
|
"+",
|
||||||
|
"-",
|
||||||
|
"*",
|
||||||
|
"/",
|
||||||
|
"%",
|
||||||
|
"&",
|
||||||
|
"|",
|
||||||
|
"^",
|
||||||
|
"<<",
|
||||||
|
">>",
|
||||||
|
"&^",
|
||||||
|
"+=",
|
||||||
|
"-=",
|
||||||
|
"*=",
|
||||||
|
"/=",
|
||||||
|
"%=",
|
||||||
|
"&=",
|
||||||
|
"|=",
|
||||||
|
"^=",
|
||||||
|
"<<=",
|
||||||
|
">>=",
|
||||||
|
"&^=",
|
||||||
|
"&&",
|
||||||
|
"||",
|
||||||
|
"<-",
|
||||||
|
"++",
|
||||||
|
"--",
|
||||||
|
"==",
|
||||||
|
"<",
|
||||||
|
">",
|
||||||
|
"=",
|
||||||
|
"!",
|
||||||
|
"!=",
|
||||||
|
"<=",
|
||||||
|
">=",
|
||||||
|
":=",
|
||||||
|
"...",
|
||||||
|
"(",
|
||||||
|
")",
|
||||||
|
"",
|
||||||
|
"]",
|
||||||
|
"{",
|
||||||
|
"}",
|
||||||
|
",",
|
||||||
|
";",
|
||||||
|
".",
|
||||||
|
":"
|
||||||
|
],
|
||||||
|
symbols: /[=><!~?:&|+\-*\/\^%]+/,
|
||||||
|
escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
|
||||||
|
tokenizer: {
|
||||||
|
root: [
|
||||||
|
[
|
||||||
|
/[a-zA-Z_]\w*/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"@keywords": { token: "keyword.$0" },
|
||||||
|
"@default": "identifier"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
{ include: "@whitespace" },
|
||||||
|
[/\[\[.*\]\]/, "annotation"],
|
||||||
|
[/^\s*#\w+/, "keyword"],
|
||||||
|
[/[{}()\[\]]/, "@brackets"],
|
||||||
|
[/[<>](?!@symbols)/, "@brackets"],
|
||||||
|
[
|
||||||
|
/@symbols/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"@operators": "delimiter",
|
||||||
|
"@default": ""
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/\d*\d+[eE]([\-+]?\d+)?/, "number.float"],
|
||||||
|
[/\d*\.\d+([eE][\-+]?\d+)?/, "number.float"],
|
||||||
|
[/0[xX][0-9a-fA-F']*[0-9a-fA-F]/, "number.hex"],
|
||||||
|
[/0[0-7']*[0-7]/, "number.octal"],
|
||||||
|
[/0[bB][0-1']*[0-1]/, "number.binary"],
|
||||||
|
[/\d[\d']*/, "number"],
|
||||||
|
[/\d/, "number"],
|
||||||
|
[/[;,.]/, "delimiter"],
|
||||||
|
[/"([^"\\]|\\.)*$/, "string.invalid"],
|
||||||
|
[/"/, "string", "@string"],
|
||||||
|
[/`/, "string", "@rawstring"],
|
||||||
|
[/'[^\\']'/, "string"],
|
||||||
|
[/(')(@escapes)(')/, ["string", "string.escape", "string"]],
|
||||||
|
[/'/, "string.invalid"]
|
||||||
|
],
|
||||||
|
whitespace: [
|
||||||
|
[/[ \t\r\n]+/, ""],
|
||||||
|
[/\/\*\*(?!\/)/, "comment.doc", "@doccomment"],
|
||||||
|
[/\/\*/, "comment", "@comment"],
|
||||||
|
[/\/\/.*$/, "comment"]
|
||||||
|
],
|
||||||
|
comment: [
|
||||||
|
[/[^\/*]+/, "comment"],
|
||||||
|
[/\*\//, "comment", "@pop"],
|
||||||
|
[/[\/*]/, "comment"]
|
||||||
|
],
|
||||||
|
doccomment: [
|
||||||
|
[/[^\/*]+/, "comment.doc"],
|
||||||
|
[/\/\*/, "comment.doc.invalid"],
|
||||||
|
[/\*\//, "comment.doc", "@pop"],
|
||||||
|
[/[\/*]/, "comment.doc"]
|
||||||
|
],
|
||||||
|
string: [
|
||||||
|
[/[^\\"]+/, "string"],
|
||||||
|
[/@escapes/, "string.escape"],
|
||||||
|
[/\\./, "string.escape.invalid"],
|
||||||
|
[/"/, "string", "@pop"]
|
||||||
|
],
|
||||||
|
rawstring: [
|
||||||
|
[/[^\`]/, "string"],
|
||||||
|
[/`/, "string", "@pop"]
|
||||||
|
]
|
||||||
|
}
|
||||||
|
};
|
||||||
|
return __toCommonJS(go_exports);
|
||||||
|
})();
|
||||||
|
return moduleExports;
|
||||||
|
});
|
||||||
@@ -0,0 +1,173 @@
|
|||||||
|
/*!-----------------------------------------------------------------------------
|
||||||
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||||
|
* Version: 0.33.0(4b1abad427e58dbedc1215d99a0902ffc885fcd4)
|
||||||
|
* Released under the MIT license
|
||||||
|
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
||||||
|
*-----------------------------------------------------------------------------*/
|
||||||
|
define("vs/basic-languages/graphql/graphql", ["require"],(require)=>{
|
||||||
|
var moduleExports = (() => {
|
||||||
|
var __defProp = Object.defineProperty;
|
||||||
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||||
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||||
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||||
|
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
||||||
|
var __export = (target, all) => {
|
||||||
|
for (var name in all)
|
||||||
|
__defProp(target, name, { get: all[name], enumerable: true });
|
||||||
|
};
|
||||||
|
var __reExport = (target, module, copyDefault, desc) => {
|
||||||
|
if (module && typeof module === "object" || typeof module === "function") {
|
||||||
|
for (let key of __getOwnPropNames(module))
|
||||||
|
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
||||||
|
__defProp(target, key, { get: () => module[key], enumerable: !(desc = __getOwnPropDesc(module, key)) || desc.enumerable });
|
||||||
|
}
|
||||||
|
return target;
|
||||||
|
};
|
||||||
|
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
||||||
|
return (module, temp) => {
|
||||||
|
return cache && cache.get(module) || (temp = __reExport(__markAsModule({}), module, 1), cache && cache.set(module, temp), temp);
|
||||||
|
};
|
||||||
|
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
||||||
|
|
||||||
|
// src/basic-languages/graphql/graphql.ts
|
||||||
|
var graphql_exports = {};
|
||||||
|
__export(graphql_exports, {
|
||||||
|
conf: () => conf,
|
||||||
|
language: () => language
|
||||||
|
});
|
||||||
|
var conf = {
|
||||||
|
comments: {
|
||||||
|
lineComment: "#"
|
||||||
|
},
|
||||||
|
brackets: [
|
||||||
|
["{", "}"],
|
||||||
|
["[", "]"],
|
||||||
|
["(", ")"]
|
||||||
|
],
|
||||||
|
autoClosingPairs: [
|
||||||
|
{ open: "{", close: "}" },
|
||||||
|
{ open: "[", close: "]" },
|
||||||
|
{ open: "(", close: ")" },
|
||||||
|
{ open: '"""', close: '"""', notIn: ["string", "comment"] },
|
||||||
|
{ open: '"', close: '"', notIn: ["string", "comment"] }
|
||||||
|
],
|
||||||
|
surroundingPairs: [
|
||||||
|
{ open: "{", close: "}" },
|
||||||
|
{ open: "[", close: "]" },
|
||||||
|
{ open: "(", close: ")" },
|
||||||
|
{ open: '"""', close: '"""' },
|
||||||
|
{ open: '"', close: '"' }
|
||||||
|
],
|
||||||
|
folding: {
|
||||||
|
offSide: true
|
||||||
|
}
|
||||||
|
};
|
||||||
|
var language = {
|
||||||
|
defaultToken: "invalid",
|
||||||
|
tokenPostfix: ".gql",
|
||||||
|
keywords: [
|
||||||
|
"null",
|
||||||
|
"true",
|
||||||
|
"false",
|
||||||
|
"query",
|
||||||
|
"mutation",
|
||||||
|
"subscription",
|
||||||
|
"extend",
|
||||||
|
"schema",
|
||||||
|
"directive",
|
||||||
|
"scalar",
|
||||||
|
"type",
|
||||||
|
"interface",
|
||||||
|
"union",
|
||||||
|
"enum",
|
||||||
|
"input",
|
||||||
|
"implements",
|
||||||
|
"fragment",
|
||||||
|
"on"
|
||||||
|
],
|
||||||
|
typeKeywords: ["Int", "Float", "String", "Boolean", "ID"],
|
||||||
|
directiveLocations: [
|
||||||
|
"SCHEMA",
|
||||||
|
"SCALAR",
|
||||||
|
"OBJECT",
|
||||||
|
"FIELD_DEFINITION",
|
||||||
|
"ARGUMENT_DEFINITION",
|
||||||
|
"INTERFACE",
|
||||||
|
"UNION",
|
||||||
|
"ENUM",
|
||||||
|
"ENUM_VALUE",
|
||||||
|
"INPUT_OBJECT",
|
||||||
|
"INPUT_FIELD_DEFINITION",
|
||||||
|
"QUERY",
|
||||||
|
"MUTATION",
|
||||||
|
"SUBSCRIPTION",
|
||||||
|
"FIELD",
|
||||||
|
"FRAGMENT_DEFINITION",
|
||||||
|
"FRAGMENT_SPREAD",
|
||||||
|
"INLINE_FRAGMENT",
|
||||||
|
"VARIABLE_DEFINITION"
|
||||||
|
],
|
||||||
|
operators: ["=", "!", "?", ":", "&", "|"],
|
||||||
|
symbols: /[=!?:&|]+/,
|
||||||
|
escapes: /\\(?:["\\\/bfnrt]|u[0-9A-Fa-f]{4})/,
|
||||||
|
tokenizer: {
|
||||||
|
root: [
|
||||||
|
[
|
||||||
|
/[a-z_][\w$]*/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"@keywords": "keyword",
|
||||||
|
"@default": "key.identifier"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[
|
||||||
|
/[$][\w$]*/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"@keywords": "keyword",
|
||||||
|
"@default": "argument.identifier"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[
|
||||||
|
/[A-Z][\w\$]*/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"@typeKeywords": "keyword",
|
||||||
|
"@default": "type.identifier"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
{ include: "@whitespace" },
|
||||||
|
[/[{}()\[\]]/, "@brackets"],
|
||||||
|
[/@symbols/, { cases: { "@operators": "operator", "@default": "" } }],
|
||||||
|
[/@\s*[a-zA-Z_\$][\w\$]*/, { token: "annotation", log: "annotation token: $0" }],
|
||||||
|
[/\d*\.\d+([eE][\-+]?\d+)?/, "number.float"],
|
||||||
|
[/0[xX][0-9a-fA-F]+/, "number.hex"],
|
||||||
|
[/\d+/, "number"],
|
||||||
|
[/[;,.]/, "delimiter"],
|
||||||
|
[/"""/, { token: "string", next: "@mlstring", nextEmbedded: "markdown" }],
|
||||||
|
[/"([^"\\]|\\.)*$/, "string.invalid"],
|
||||||
|
[/"/, { token: "string.quote", bracket: "@open", next: "@string" }]
|
||||||
|
],
|
||||||
|
mlstring: [
|
||||||
|
[/[^"]+/, "string"],
|
||||||
|
['"""', { token: "string", next: "@pop", nextEmbedded: "@pop" }]
|
||||||
|
],
|
||||||
|
string: [
|
||||||
|
[/[^\\"]+/, "string"],
|
||||||
|
[/@escapes/, "string.escape"],
|
||||||
|
[/\\./, "string.escape.invalid"],
|
||||||
|
[/"/, { token: "string.quote", bracket: "@close", next: "@pop" }]
|
||||||
|
],
|
||||||
|
whitespace: [
|
||||||
|
[/[ \t\r\n]+/, ""],
|
||||||
|
[/#.*$/, "comment"]
|
||||||
|
]
|
||||||
|
}
|
||||||
|
};
|
||||||
|
return __toCommonJS(graphql_exports);
|
||||||
|
})();
|
||||||
|
return moduleExports;
|
||||||
|
});
|
||||||
@@ -0,0 +1,445 @@
|
|||||||
|
/*!-----------------------------------------------------------------------------
|
||||||
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||||
|
* Version: 0.33.0(4b1abad427e58dbedc1215d99a0902ffc885fcd4)
|
||||||
|
* Released under the MIT license
|
||||||
|
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
||||||
|
*-----------------------------------------------------------------------------*/
|
||||||
|
define("vs/basic-languages/handlebars/handlebars", ["require"],(require)=>{
|
||||||
|
var moduleExports = (() => {
|
||||||
|
var __create = Object.create;
|
||||||
|
var __defProp = Object.defineProperty;
|
||||||
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||||
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||||
|
var __getProtoOf = Object.getPrototypeOf;
|
||||||
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||||
|
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
||||||
|
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
||||||
|
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
||||||
|
}) : x)(function(x) {
|
||||||
|
if (typeof require !== "undefined")
|
||||||
|
return require.apply(this, arguments);
|
||||||
|
throw new Error('Dynamic require of "' + x + '" is not supported');
|
||||||
|
});
|
||||||
|
var __commonJS = (cb, mod) => function __require2() {
|
||||||
|
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
||||||
|
};
|
||||||
|
var __export = (target, all) => {
|
||||||
|
for (var name in all)
|
||||||
|
__defProp(target, name, { get: all[name], enumerable: true });
|
||||||
|
};
|
||||||
|
var __reExport = (target, module, copyDefault, desc) => {
|
||||||
|
if (module && typeof module === "object" || typeof module === "function") {
|
||||||
|
for (let key of __getOwnPropNames(module))
|
||||||
|
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
||||||
|
__defProp(target, key, { get: () => module[key], enumerable: !(desc = __getOwnPropDesc(module, key)) || desc.enumerable });
|
||||||
|
}
|
||||||
|
return target;
|
||||||
|
};
|
||||||
|
var __toESM = (module, isNodeMode) => {
|
||||||
|
return __reExport(__markAsModule(__defProp(module != null ? __create(__getProtoOf(module)) : {}, "default", !isNodeMode && module && module.__esModule ? { get: () => module.default, enumerable: true } : { value: module, enumerable: true })), module);
|
||||||
|
};
|
||||||
|
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
||||||
|
return (module, temp) => {
|
||||||
|
return cache && cache.get(module) || (temp = __reExport(__markAsModule({}), module, 1), cache && cache.set(module, temp), temp);
|
||||||
|
};
|
||||||
|
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
||||||
|
|
||||||
|
// src/fillers/monaco-editor-core-amd.ts
|
||||||
|
var require_monaco_editor_core_amd = __commonJS({
|
||||||
|
"src/fillers/monaco-editor-core-amd.ts"(exports, module) {
|
||||||
|
var api = __toESM(__require("vs/editor/editor.api"));
|
||||||
|
module.exports = api;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
// src/basic-languages/handlebars/handlebars.ts
|
||||||
|
var handlebars_exports = {};
|
||||||
|
__export(handlebars_exports, {
|
||||||
|
conf: () => conf,
|
||||||
|
language: () => language
|
||||||
|
});
|
||||||
|
|
||||||
|
// src/fillers/monaco-editor-core.ts
|
||||||
|
var monaco_editor_core_exports = {};
|
||||||
|
__reExport(monaco_editor_core_exports, __toESM(require_monaco_editor_core_amd()));
|
||||||
|
|
||||||
|
// src/basic-languages/handlebars/handlebars.ts
|
||||||
|
var EMPTY_ELEMENTS = [
|
||||||
|
"area",
|
||||||
|
"base",
|
||||||
|
"br",
|
||||||
|
"col",
|
||||||
|
"embed",
|
||||||
|
"hr",
|
||||||
|
"img",
|
||||||
|
"input",
|
||||||
|
"keygen",
|
||||||
|
"link",
|
||||||
|
"menuitem",
|
||||||
|
"meta",
|
||||||
|
"param",
|
||||||
|
"source",
|
||||||
|
"track",
|
||||||
|
"wbr"
|
||||||
|
];
|
||||||
|
var conf = {
|
||||||
|
wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,
|
||||||
|
comments: {
|
||||||
|
blockComment: ["{{!--", "--}}"]
|
||||||
|
},
|
||||||
|
brackets: [
|
||||||
|
["<!--", "-->"],
|
||||||
|
["<", ">"],
|
||||||
|
["{{", "}}"],
|
||||||
|
["{", "}"],
|
||||||
|
["(", ")"]
|
||||||
|
],
|
||||||
|
autoClosingPairs: [
|
||||||
|
{ open: "{", close: "}" },
|
||||||
|
{ open: "[", close: "]" },
|
||||||
|
{ open: "(", close: ")" },
|
||||||
|
{ open: '"', close: '"' },
|
||||||
|
{ open: "'", close: "'" }
|
||||||
|
],
|
||||||
|
surroundingPairs: [
|
||||||
|
{ open: "<", close: ">" },
|
||||||
|
{ open: '"', close: '"' },
|
||||||
|
{ open: "'", close: "'" }
|
||||||
|
],
|
||||||
|
onEnterRules: [
|
||||||
|
{
|
||||||
|
beforeText: new RegExp(`<(?!(?:${EMPTY_ELEMENTS.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`, "i"),
|
||||||
|
afterText: /^<\/(\w[\w\d]*)\s*>$/i,
|
||||||
|
action: {
|
||||||
|
indentAction: monaco_editor_core_exports.languages.IndentAction.IndentOutdent
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
beforeText: new RegExp(`<(?!(?:${EMPTY_ELEMENTS.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`, "i"),
|
||||||
|
action: { indentAction: monaco_editor_core_exports.languages.IndentAction.Indent }
|
||||||
|
}
|
||||||
|
]
|
||||||
|
};
|
||||||
|
var language = {
|
||||||
|
defaultToken: "",
|
||||||
|
tokenPostfix: "",
|
||||||
|
tokenizer: {
|
||||||
|
root: [
|
||||||
|
[/\{\{!--/, "comment.block.start.handlebars", "@commentBlock"],
|
||||||
|
[/\{\{!/, "comment.start.handlebars", "@comment"],
|
||||||
|
[/\{\{/, { token: "@rematch", switchTo: "@handlebarsInSimpleState.root" }],
|
||||||
|
[/<!DOCTYPE/, "metatag.html", "@doctype"],
|
||||||
|
[/<!--/, "comment.html", "@commentHtml"],
|
||||||
|
[/(<)(\w+)(\/>)/, ["delimiter.html", "tag.html", "delimiter.html"]],
|
||||||
|
[/(<)(script)/, ["delimiter.html", { token: "tag.html", next: "@script" }]],
|
||||||
|
[/(<)(style)/, ["delimiter.html", { token: "tag.html", next: "@style" }]],
|
||||||
|
[/(<)([:\w]+)/, ["delimiter.html", { token: "tag.html", next: "@otherTag" }]],
|
||||||
|
[/(<\/)(\w+)/, ["delimiter.html", { token: "tag.html", next: "@otherTag" }]],
|
||||||
|
[/</, "delimiter.html"],
|
||||||
|
[/\{/, "delimiter.html"],
|
||||||
|
[/[^<{]+/]
|
||||||
|
],
|
||||||
|
doctype: [
|
||||||
|
[
|
||||||
|
/\{\{/,
|
||||||
|
{
|
||||||
|
token: "@rematch",
|
||||||
|
switchTo: "@handlebarsInSimpleState.comment"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/[^>]+/, "metatag.content.html"],
|
||||||
|
[/>/, "metatag.html", "@pop"]
|
||||||
|
],
|
||||||
|
comment: [
|
||||||
|
[/\}\}/, "comment.end.handlebars", "@pop"],
|
||||||
|
[/./, "comment.content.handlebars"]
|
||||||
|
],
|
||||||
|
commentBlock: [
|
||||||
|
[/--\}\}/, "comment.block.end.handlebars", "@pop"],
|
||||||
|
[/./, "comment.content.handlebars"]
|
||||||
|
],
|
||||||
|
commentHtml: [
|
||||||
|
[
|
||||||
|
/\{\{/,
|
||||||
|
{
|
||||||
|
token: "@rematch",
|
||||||
|
switchTo: "@handlebarsInSimpleState.comment"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/-->/, "comment.html", "@pop"],
|
||||||
|
[/[^-]+/, "comment.content.html"],
|
||||||
|
[/./, "comment.content.html"]
|
||||||
|
],
|
||||||
|
otherTag: [
|
||||||
|
[
|
||||||
|
/\{\{/,
|
||||||
|
{
|
||||||
|
token: "@rematch",
|
||||||
|
switchTo: "@handlebarsInSimpleState.otherTag"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/\/?>/, "delimiter.html", "@pop"],
|
||||||
|
[/"([^"]*)"/, "attribute.value"],
|
||||||
|
[/'([^']*)'/, "attribute.value"],
|
||||||
|
[/[\w\-]+/, "attribute.name"],
|
||||||
|
[/=/, "delimiter"],
|
||||||
|
[/[ \t\r\n]+/]
|
||||||
|
],
|
||||||
|
script: [
|
||||||
|
[
|
||||||
|
/\{\{/,
|
||||||
|
{
|
||||||
|
token: "@rematch",
|
||||||
|
switchTo: "@handlebarsInSimpleState.script"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/type/, "attribute.name", "@scriptAfterType"],
|
||||||
|
[/"([^"]*)"/, "attribute.value"],
|
||||||
|
[/'([^']*)'/, "attribute.value"],
|
||||||
|
[/[\w\-]+/, "attribute.name"],
|
||||||
|
[/=/, "delimiter"],
|
||||||
|
[
|
||||||
|
/>/,
|
||||||
|
{
|
||||||
|
token: "delimiter.html",
|
||||||
|
next: "@scriptEmbedded.text/javascript",
|
||||||
|
nextEmbedded: "text/javascript"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/[ \t\r\n]+/],
|
||||||
|
[
|
||||||
|
/(<\/)(script\s*)(>)/,
|
||||||
|
["delimiter.html", "tag.html", { token: "delimiter.html", next: "@pop" }]
|
||||||
|
]
|
||||||
|
],
|
||||||
|
scriptAfterType: [
|
||||||
|
[
|
||||||
|
/\{\{/,
|
||||||
|
{
|
||||||
|
token: "@rematch",
|
||||||
|
switchTo: "@handlebarsInSimpleState.scriptAfterType"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/=/, "delimiter", "@scriptAfterTypeEquals"],
|
||||||
|
[
|
||||||
|
/>/,
|
||||||
|
{
|
||||||
|
token: "delimiter.html",
|
||||||
|
next: "@scriptEmbedded.text/javascript",
|
||||||
|
nextEmbedded: "text/javascript"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/[ \t\r\n]+/],
|
||||||
|
[/<\/script\s*>/, { token: "@rematch", next: "@pop" }]
|
||||||
|
],
|
||||||
|
scriptAfterTypeEquals: [
|
||||||
|
[
|
||||||
|
/\{\{/,
|
||||||
|
{
|
||||||
|
token: "@rematch",
|
||||||
|
switchTo: "@handlebarsInSimpleState.scriptAfterTypeEquals"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[
|
||||||
|
/"([^"]*)"/,
|
||||||
|
{
|
||||||
|
token: "attribute.value",
|
||||||
|
switchTo: "@scriptWithCustomType.$1"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[
|
||||||
|
/'([^']*)'/,
|
||||||
|
{
|
||||||
|
token: "attribute.value",
|
||||||
|
switchTo: "@scriptWithCustomType.$1"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[
|
||||||
|
/>/,
|
||||||
|
{
|
||||||
|
token: "delimiter.html",
|
||||||
|
next: "@scriptEmbedded.text/javascript",
|
||||||
|
nextEmbedded: "text/javascript"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/[ \t\r\n]+/],
|
||||||
|
[/<\/script\s*>/, { token: "@rematch", next: "@pop" }]
|
||||||
|
],
|
||||||
|
scriptWithCustomType: [
|
||||||
|
[
|
||||||
|
/\{\{/,
|
||||||
|
{
|
||||||
|
token: "@rematch",
|
||||||
|
switchTo: "@handlebarsInSimpleState.scriptWithCustomType.$S2"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[
|
||||||
|
/>/,
|
||||||
|
{
|
||||||
|
token: "delimiter.html",
|
||||||
|
next: "@scriptEmbedded.$S2",
|
||||||
|
nextEmbedded: "$S2"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/"([^"]*)"/, "attribute.value"],
|
||||||
|
[/'([^']*)'/, "attribute.value"],
|
||||||
|
[/[\w\-]+/, "attribute.name"],
|
||||||
|
[/=/, "delimiter"],
|
||||||
|
[/[ \t\r\n]+/],
|
||||||
|
[/<\/script\s*>/, { token: "@rematch", next: "@pop" }]
|
||||||
|
],
|
||||||
|
scriptEmbedded: [
|
||||||
|
[
|
||||||
|
/\{\{/,
|
||||||
|
{
|
||||||
|
token: "@rematch",
|
||||||
|
switchTo: "@handlebarsInEmbeddedState.scriptEmbedded.$S2",
|
||||||
|
nextEmbedded: "@pop"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/<\/script/, { token: "@rematch", next: "@pop", nextEmbedded: "@pop" }]
|
||||||
|
],
|
||||||
|
style: [
|
||||||
|
[
|
||||||
|
/\{\{/,
|
||||||
|
{
|
||||||
|
token: "@rematch",
|
||||||
|
switchTo: "@handlebarsInSimpleState.style"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/type/, "attribute.name", "@styleAfterType"],
|
||||||
|
[/"([^"]*)"/, "attribute.value"],
|
||||||
|
[/'([^']*)'/, "attribute.value"],
|
||||||
|
[/[\w\-]+/, "attribute.name"],
|
||||||
|
[/=/, "delimiter"],
|
||||||
|
[
|
||||||
|
/>/,
|
||||||
|
{
|
||||||
|
token: "delimiter.html",
|
||||||
|
next: "@styleEmbedded.text/css",
|
||||||
|
nextEmbedded: "text/css"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/[ \t\r\n]+/],
|
||||||
|
[
|
||||||
|
/(<\/)(style\s*)(>)/,
|
||||||
|
["delimiter.html", "tag.html", { token: "delimiter.html", next: "@pop" }]
|
||||||
|
]
|
||||||
|
],
|
||||||
|
styleAfterType: [
|
||||||
|
[
|
||||||
|
/\{\{/,
|
||||||
|
{
|
||||||
|
token: "@rematch",
|
||||||
|
switchTo: "@handlebarsInSimpleState.styleAfterType"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/=/, "delimiter", "@styleAfterTypeEquals"],
|
||||||
|
[
|
||||||
|
/>/,
|
||||||
|
{
|
||||||
|
token: "delimiter.html",
|
||||||
|
next: "@styleEmbedded.text/css",
|
||||||
|
nextEmbedded: "text/css"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/[ \t\r\n]+/],
|
||||||
|
[/<\/style\s*>/, { token: "@rematch", next: "@pop" }]
|
||||||
|
],
|
||||||
|
styleAfterTypeEquals: [
|
||||||
|
[
|
||||||
|
/\{\{/,
|
||||||
|
{
|
||||||
|
token: "@rematch",
|
||||||
|
switchTo: "@handlebarsInSimpleState.styleAfterTypeEquals"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[
|
||||||
|
/"([^"]*)"/,
|
||||||
|
{
|
||||||
|
token: "attribute.value",
|
||||||
|
switchTo: "@styleWithCustomType.$1"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[
|
||||||
|
/'([^']*)'/,
|
||||||
|
{
|
||||||
|
token: "attribute.value",
|
||||||
|
switchTo: "@styleWithCustomType.$1"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[
|
||||||
|
/>/,
|
||||||
|
{
|
||||||
|
token: "delimiter.html",
|
||||||
|
next: "@styleEmbedded.text/css",
|
||||||
|
nextEmbedded: "text/css"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/[ \t\r\n]+/],
|
||||||
|
[/<\/style\s*>/, { token: "@rematch", next: "@pop" }]
|
||||||
|
],
|
||||||
|
styleWithCustomType: [
|
||||||
|
[
|
||||||
|
/\{\{/,
|
||||||
|
{
|
||||||
|
token: "@rematch",
|
||||||
|
switchTo: "@handlebarsInSimpleState.styleWithCustomType.$S2"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[
|
||||||
|
/>/,
|
||||||
|
{
|
||||||
|
token: "delimiter.html",
|
||||||
|
next: "@styleEmbedded.$S2",
|
||||||
|
nextEmbedded: "$S2"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/"([^"]*)"/, "attribute.value"],
|
||||||
|
[/'([^']*)'/, "attribute.value"],
|
||||||
|
[/[\w\-]+/, "attribute.name"],
|
||||||
|
[/=/, "delimiter"],
|
||||||
|
[/[ \t\r\n]+/],
|
||||||
|
[/<\/style\s*>/, { token: "@rematch", next: "@pop" }]
|
||||||
|
],
|
||||||
|
styleEmbedded: [
|
||||||
|
[
|
||||||
|
/\{\{/,
|
||||||
|
{
|
||||||
|
token: "@rematch",
|
||||||
|
switchTo: "@handlebarsInEmbeddedState.styleEmbedded.$S2",
|
||||||
|
nextEmbedded: "@pop"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/<\/style/, { token: "@rematch", next: "@pop", nextEmbedded: "@pop" }]
|
||||||
|
],
|
||||||
|
handlebarsInSimpleState: [
|
||||||
|
[/\{\{\{?/, "delimiter.handlebars"],
|
||||||
|
[/\}\}\}?/, { token: "delimiter.handlebars", switchTo: "@$S2.$S3" }],
|
||||||
|
{ include: "handlebarsRoot" }
|
||||||
|
],
|
||||||
|
handlebarsInEmbeddedState: [
|
||||||
|
[/\{\{\{?/, "delimiter.handlebars"],
|
||||||
|
[
|
||||||
|
/\}\}\}?/,
|
||||||
|
{
|
||||||
|
token: "delimiter.handlebars",
|
||||||
|
switchTo: "@$S2.$S3",
|
||||||
|
nextEmbedded: "$S3"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
{ include: "handlebarsRoot" }
|
||||||
|
],
|
||||||
|
handlebarsRoot: [
|
||||||
|
[/"[^"]*"/, "string.handlebars"],
|
||||||
|
[/[#/][^\s}]+/, "keyword.helper.handlebars"],
|
||||||
|
[/else\b/, "keyword.helper.handlebars"],
|
||||||
|
[/[\s]+/],
|
||||||
|
[/[^}]/, "variable.parameter.handlebars"]
|
||||||
|
]
|
||||||
|
}
|
||||||
|
};
|
||||||
|
return __toCommonJS(handlebars_exports);
|
||||||
|
})();
|
||||||
|
return moduleExports;
|
||||||
|
});
|
||||||
@@ -0,0 +1,209 @@
|
|||||||
|
/*!-----------------------------------------------------------------------------
|
||||||
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||||
|
* Version: 0.33.0(4b1abad427e58dbedc1215d99a0902ffc885fcd4)
|
||||||
|
* Released under the MIT license
|
||||||
|
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
||||||
|
*-----------------------------------------------------------------------------*/
|
||||||
|
define("vs/basic-languages/hcl/hcl", ["require"],(require)=>{
|
||||||
|
var moduleExports = (() => {
|
||||||
|
var __defProp = Object.defineProperty;
|
||||||
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||||
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||||
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||||
|
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
||||||
|
var __export = (target, all) => {
|
||||||
|
for (var name in all)
|
||||||
|
__defProp(target, name, { get: all[name], enumerable: true });
|
||||||
|
};
|
||||||
|
var __reExport = (target, module, copyDefault, desc) => {
|
||||||
|
if (module && typeof module === "object" || typeof module === "function") {
|
||||||
|
for (let key of __getOwnPropNames(module))
|
||||||
|
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
||||||
|
__defProp(target, key, { get: () => module[key], enumerable: !(desc = __getOwnPropDesc(module, key)) || desc.enumerable });
|
||||||
|
}
|
||||||
|
return target;
|
||||||
|
};
|
||||||
|
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
||||||
|
return (module, temp) => {
|
||||||
|
return cache && cache.get(module) || (temp = __reExport(__markAsModule({}), module, 1), cache && cache.set(module, temp), temp);
|
||||||
|
};
|
||||||
|
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
||||||
|
|
||||||
|
// src/basic-languages/hcl/hcl.ts
|
||||||
|
var hcl_exports = {};
|
||||||
|
__export(hcl_exports, {
|
||||||
|
conf: () => conf,
|
||||||
|
language: () => language
|
||||||
|
});
|
||||||
|
var conf = {
|
||||||
|
comments: {
|
||||||
|
lineComment: "#",
|
||||||
|
blockComment: ["/*", "*/"]
|
||||||
|
},
|
||||||
|
brackets: [
|
||||||
|
["{", "}"],
|
||||||
|
["[", "]"],
|
||||||
|
["(", ")"]
|
||||||
|
],
|
||||||
|
autoClosingPairs: [
|
||||||
|
{ open: "{", close: "}" },
|
||||||
|
{ open: "[", close: "]" },
|
||||||
|
{ open: "(", close: ")" },
|
||||||
|
{ open: '"', close: '"', notIn: ["string"] }
|
||||||
|
],
|
||||||
|
surroundingPairs: [
|
||||||
|
{ open: "{", close: "}" },
|
||||||
|
{ open: "[", close: "]" },
|
||||||
|
{ open: "(", close: ")" },
|
||||||
|
{ open: '"', close: '"' }
|
||||||
|
]
|
||||||
|
};
|
||||||
|
var language = {
|
||||||
|
defaultToken: "",
|
||||||
|
tokenPostfix: ".hcl",
|
||||||
|
keywords: [
|
||||||
|
"var",
|
||||||
|
"local",
|
||||||
|
"path",
|
||||||
|
"for_each",
|
||||||
|
"any",
|
||||||
|
"string",
|
||||||
|
"number",
|
||||||
|
"bool",
|
||||||
|
"true",
|
||||||
|
"false",
|
||||||
|
"null",
|
||||||
|
"if ",
|
||||||
|
"else ",
|
||||||
|
"endif ",
|
||||||
|
"for ",
|
||||||
|
"in",
|
||||||
|
"endfor"
|
||||||
|
],
|
||||||
|
operators: [
|
||||||
|
"=",
|
||||||
|
">=",
|
||||||
|
"<=",
|
||||||
|
"==",
|
||||||
|
"!=",
|
||||||
|
"+",
|
||||||
|
"-",
|
||||||
|
"*",
|
||||||
|
"/",
|
||||||
|
"%",
|
||||||
|
"&&",
|
||||||
|
"||",
|
||||||
|
"!",
|
||||||
|
"<",
|
||||||
|
">",
|
||||||
|
"?",
|
||||||
|
"...",
|
||||||
|
":"
|
||||||
|
],
|
||||||
|
symbols: /[=><!~?:&|+\-*\/\^%]+/,
|
||||||
|
escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
|
||||||
|
terraformFunctions: /(abs|ceil|floor|log|max|min|pow|signum|chomp|format|formatlist|indent|join|lower|regex|regexall|replace|split|strrev|substr|title|trimspace|upper|chunklist|coalesce|coalescelist|compact|concat|contains|distinct|element|flatten|index|keys|length|list|lookup|map|matchkeys|merge|range|reverse|setintersection|setproduct|setunion|slice|sort|transpose|values|zipmap|base64decode|base64encode|base64gzip|csvdecode|jsondecode|jsonencode|urlencode|yamldecode|yamlencode|abspath|dirname|pathexpand|basename|file|fileexists|fileset|filebase64|templatefile|formatdate|timeadd|timestamp|base64sha256|base64sha512|bcrypt|filebase64sha256|filebase64sha512|filemd5|filemd1|filesha256|filesha512|md5|rsadecrypt|sha1|sha256|sha512|uuid|uuidv5|cidrhost|cidrnetmask|cidrsubnet|tobool|tolist|tomap|tonumber|toset|tostring)/,
|
||||||
|
terraformMainBlocks: /(module|data|terraform|resource|provider|variable|output|locals)/,
|
||||||
|
tokenizer: {
|
||||||
|
root: [
|
||||||
|
[
|
||||||
|
/^@terraformMainBlocks([ \t]*)([\w-]+|"[\w-]+"|)([ \t]*)([\w-]+|"[\w-]+"|)([ \t]*)(\{)/,
|
||||||
|
["type", "", "string", "", "string", "", "@brackets"]
|
||||||
|
],
|
||||||
|
[
|
||||||
|
/(\w+[ \t]+)([ \t]*)([\w-]+|"[\w-]+"|)([ \t]*)([\w-]+|"[\w-]+"|)([ \t]*)(\{)/,
|
||||||
|
["identifier", "", "string", "", "string", "", "@brackets"]
|
||||||
|
],
|
||||||
|
[
|
||||||
|
/(\w+[ \t]+)([ \t]*)([\w-]+|"[\w-]+"|)([ \t]*)([\w-]+|"[\w-]+"|)(=)(\{)/,
|
||||||
|
["identifier", "", "string", "", "operator", "", "@brackets"]
|
||||||
|
],
|
||||||
|
{ include: "@terraform" }
|
||||||
|
],
|
||||||
|
terraform: [
|
||||||
|
[/@terraformFunctions(\()/, ["type", "@brackets"]],
|
||||||
|
[
|
||||||
|
/[a-zA-Z_]\w*-*/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"@keywords": { token: "keyword.$0" },
|
||||||
|
"@default": "variable"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
{ include: "@whitespace" },
|
||||||
|
{ include: "@heredoc" },
|
||||||
|
[/[{}()\[\]]/, "@brackets"],
|
||||||
|
[/[<>](?!@symbols)/, "@brackets"],
|
||||||
|
[
|
||||||
|
/@symbols/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"@operators": "operator",
|
||||||
|
"@default": ""
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/\d*\d+[eE]([\-+]?\d+)?/, "number.float"],
|
||||||
|
[/\d*\.\d+([eE][\-+]?\d+)?/, "number.float"],
|
||||||
|
[/\d[\d']*/, "number"],
|
||||||
|
[/\d/, "number"],
|
||||||
|
[/[;,.]/, "delimiter"],
|
||||||
|
[/"/, "string", "@string"],
|
||||||
|
[/'/, "invalid"]
|
||||||
|
],
|
||||||
|
heredoc: [
|
||||||
|
[/<<[-]*\s*["]?([\w\-]+)["]?/, { token: "string.heredoc.delimiter", next: "@heredocBody.$1" }]
|
||||||
|
],
|
||||||
|
heredocBody: [
|
||||||
|
[
|
||||||
|
/([\w\-]+)$/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"$1==$S2": [
|
||||||
|
{
|
||||||
|
token: "string.heredoc.delimiter",
|
||||||
|
next: "@popall"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"@default": "string.heredoc"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/./, "string.heredoc"]
|
||||||
|
],
|
||||||
|
whitespace: [
|
||||||
|
[/[ \t\r\n]+/, ""],
|
||||||
|
[/\/\*/, "comment", "@comment"],
|
||||||
|
[/\/\/.*$/, "comment"],
|
||||||
|
[/#.*$/, "comment"]
|
||||||
|
],
|
||||||
|
comment: [
|
||||||
|
[/[^\/*]+/, "comment"],
|
||||||
|
[/\*\//, "comment", "@pop"],
|
||||||
|
[/[\/*]/, "comment"]
|
||||||
|
],
|
||||||
|
string: [
|
||||||
|
[/\$\{/, { token: "delimiter", next: "@stringExpression" }],
|
||||||
|
[/[^\\"\$]+/, "string"],
|
||||||
|
[/@escapes/, "string.escape"],
|
||||||
|
[/\\./, "string.escape.invalid"],
|
||||||
|
[/"/, "string", "@popall"]
|
||||||
|
],
|
||||||
|
stringInsideExpression: [
|
||||||
|
[/[^\\"]+/, "string"],
|
||||||
|
[/@escapes/, "string.escape"],
|
||||||
|
[/\\./, "string.escape.invalid"],
|
||||||
|
[/"/, "string", "@pop"]
|
||||||
|
],
|
||||||
|
stringExpression: [
|
||||||
|
[/\}/, { token: "delimiter", next: "@pop" }],
|
||||||
|
[/"/, "string", "@stringInsideExpression"],
|
||||||
|
{ include: "@terraform" }
|
||||||
|
]
|
||||||
|
}
|
||||||
|
};
|
||||||
|
return __toCommonJS(hcl_exports);
|
||||||
|
})();
|
||||||
|
return moduleExports;
|
||||||
|
});
|
||||||
@@ -0,0 +1,321 @@
|
|||||||
|
/*!-----------------------------------------------------------------------------
|
||||||
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||||
|
* Version: 0.33.0(4b1abad427e58dbedc1215d99a0902ffc885fcd4)
|
||||||
|
* Released under the MIT license
|
||||||
|
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
||||||
|
*-----------------------------------------------------------------------------*/
|
||||||
|
define("vs/basic-languages/html/html", ["require"],(require)=>{
|
||||||
|
var moduleExports = (() => {
|
||||||
|
var __create = Object.create;
|
||||||
|
var __defProp = Object.defineProperty;
|
||||||
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||||
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||||
|
var __getProtoOf = Object.getPrototypeOf;
|
||||||
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||||
|
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
||||||
|
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
||||||
|
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
||||||
|
}) : x)(function(x) {
|
||||||
|
if (typeof require !== "undefined")
|
||||||
|
return require.apply(this, arguments);
|
||||||
|
throw new Error('Dynamic require of "' + x + '" is not supported');
|
||||||
|
});
|
||||||
|
var __commonJS = (cb, mod) => function __require2() {
|
||||||
|
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
||||||
|
};
|
||||||
|
var __export = (target, all) => {
|
||||||
|
for (var name in all)
|
||||||
|
__defProp(target, name, { get: all[name], enumerable: true });
|
||||||
|
};
|
||||||
|
var __reExport = (target, module, copyDefault, desc) => {
|
||||||
|
if (module && typeof module === "object" || typeof module === "function") {
|
||||||
|
for (let key of __getOwnPropNames(module))
|
||||||
|
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
||||||
|
__defProp(target, key, { get: () => module[key], enumerable: !(desc = __getOwnPropDesc(module, key)) || desc.enumerable });
|
||||||
|
}
|
||||||
|
return target;
|
||||||
|
};
|
||||||
|
var __toESM = (module, isNodeMode) => {
|
||||||
|
return __reExport(__markAsModule(__defProp(module != null ? __create(__getProtoOf(module)) : {}, "default", !isNodeMode && module && module.__esModule ? { get: () => module.default, enumerable: true } : { value: module, enumerable: true })), module);
|
||||||
|
};
|
||||||
|
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
||||||
|
return (module, temp) => {
|
||||||
|
return cache && cache.get(module) || (temp = __reExport(__markAsModule({}), module, 1), cache && cache.set(module, temp), temp);
|
||||||
|
};
|
||||||
|
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
||||||
|
|
||||||
|
// src/fillers/monaco-editor-core-amd.ts
|
||||||
|
var require_monaco_editor_core_amd = __commonJS({
|
||||||
|
"src/fillers/monaco-editor-core-amd.ts"(exports, module) {
|
||||||
|
var api = __toESM(__require("vs/editor/editor.api"));
|
||||||
|
module.exports = api;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
// src/basic-languages/html/html.ts
|
||||||
|
var html_exports = {};
|
||||||
|
__export(html_exports, {
|
||||||
|
conf: () => conf,
|
||||||
|
language: () => language
|
||||||
|
});
|
||||||
|
|
||||||
|
// src/fillers/monaco-editor-core.ts
|
||||||
|
var monaco_editor_core_exports = {};
|
||||||
|
__reExport(monaco_editor_core_exports, __toESM(require_monaco_editor_core_amd()));
|
||||||
|
|
||||||
|
// src/basic-languages/html/html.ts
|
||||||
|
var EMPTY_ELEMENTS = [
|
||||||
|
"area",
|
||||||
|
"base",
|
||||||
|
"br",
|
||||||
|
"col",
|
||||||
|
"embed",
|
||||||
|
"hr",
|
||||||
|
"img",
|
||||||
|
"input",
|
||||||
|
"keygen",
|
||||||
|
"link",
|
||||||
|
"menuitem",
|
||||||
|
"meta",
|
||||||
|
"param",
|
||||||
|
"source",
|
||||||
|
"track",
|
||||||
|
"wbr"
|
||||||
|
];
|
||||||
|
var conf = {
|
||||||
|
wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,
|
||||||
|
comments: {
|
||||||
|
blockComment: ["<!--", "-->"]
|
||||||
|
},
|
||||||
|
brackets: [
|
||||||
|
["<!--", "-->"],
|
||||||
|
["<", ">"],
|
||||||
|
["{", "}"],
|
||||||
|
["(", ")"]
|
||||||
|
],
|
||||||
|
autoClosingPairs: [
|
||||||
|
{ open: "{", close: "}" },
|
||||||
|
{ open: "[", close: "]" },
|
||||||
|
{ open: "(", close: ")" },
|
||||||
|
{ open: '"', close: '"' },
|
||||||
|
{ open: "'", close: "'" }
|
||||||
|
],
|
||||||
|
surroundingPairs: [
|
||||||
|
{ open: '"', close: '"' },
|
||||||
|
{ open: "'", close: "'" },
|
||||||
|
{ open: "{", close: "}" },
|
||||||
|
{ open: "[", close: "]" },
|
||||||
|
{ open: "(", close: ")" },
|
||||||
|
{ open: "<", close: ">" }
|
||||||
|
],
|
||||||
|
onEnterRules: [
|
||||||
|
{
|
||||||
|
beforeText: new RegExp(`<(?!(?:${EMPTY_ELEMENTS.join("|")}))([_:\\w][_:\\w-.\\d]*)([^/>]*(?!/)>)[^<]*$`, "i"),
|
||||||
|
afterText: /^<\/([_:\w][_:\w-.\d]*)\s*>$/i,
|
||||||
|
action: {
|
||||||
|
indentAction: monaco_editor_core_exports.languages.IndentAction.IndentOutdent
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
beforeText: new RegExp(`<(?!(?:${EMPTY_ELEMENTS.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`, "i"),
|
||||||
|
action: { indentAction: monaco_editor_core_exports.languages.IndentAction.Indent }
|
||||||
|
}
|
||||||
|
],
|
||||||
|
folding: {
|
||||||
|
markers: {
|
||||||
|
start: new RegExp("^\\s*<!--\\s*#region\\b.*-->"),
|
||||||
|
end: new RegExp("^\\s*<!--\\s*#endregion\\b.*-->")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
var language = {
|
||||||
|
defaultToken: "",
|
||||||
|
tokenPostfix: ".html",
|
||||||
|
ignoreCase: true,
|
||||||
|
tokenizer: {
|
||||||
|
root: [
|
||||||
|
[/<!DOCTYPE/, "metatag", "@doctype"],
|
||||||
|
[/<!--/, "comment", "@comment"],
|
||||||
|
[/(<)((?:[\w\-]+:)?[\w\-]+)(\s*)(\/>)/, ["delimiter", "tag", "", "delimiter"]],
|
||||||
|
[/(<)(script)/, ["delimiter", { token: "tag", next: "@script" }]],
|
||||||
|
[/(<)(style)/, ["delimiter", { token: "tag", next: "@style" }]],
|
||||||
|
[/(<)((?:[\w\-]+:)?[\w\-]+)/, ["delimiter", { token: "tag", next: "@otherTag" }]],
|
||||||
|
[/(<\/)((?:[\w\-]+:)?[\w\-]+)/, ["delimiter", { token: "tag", next: "@otherTag" }]],
|
||||||
|
[/</, "delimiter"],
|
||||||
|
[/[^<]+/]
|
||||||
|
],
|
||||||
|
doctype: [
|
||||||
|
[/[^>]+/, "metatag.content"],
|
||||||
|
[/>/, "metatag", "@pop"]
|
||||||
|
],
|
||||||
|
comment: [
|
||||||
|
[/-->/, "comment", "@pop"],
|
||||||
|
[/[^-]+/, "comment.content"],
|
||||||
|
[/./, "comment.content"]
|
||||||
|
],
|
||||||
|
otherTag: [
|
||||||
|
[/\/?>/, "delimiter", "@pop"],
|
||||||
|
[/"([^"]*)"/, "attribute.value"],
|
||||||
|
[/'([^']*)'/, "attribute.value"],
|
||||||
|
[/[\w\-]+/, "attribute.name"],
|
||||||
|
[/=/, "delimiter"],
|
||||||
|
[/[ \t\r\n]+/]
|
||||||
|
],
|
||||||
|
script: [
|
||||||
|
[/type/, "attribute.name", "@scriptAfterType"],
|
||||||
|
[/"([^"]*)"/, "attribute.value"],
|
||||||
|
[/'([^']*)'/, "attribute.value"],
|
||||||
|
[/[\w\-]+/, "attribute.name"],
|
||||||
|
[/=/, "delimiter"],
|
||||||
|
[
|
||||||
|
/>/,
|
||||||
|
{
|
||||||
|
token: "delimiter",
|
||||||
|
next: "@scriptEmbedded",
|
||||||
|
nextEmbedded: "text/javascript"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/[ \t\r\n]+/],
|
||||||
|
[/(<\/)(script\s*)(>)/, ["delimiter", "tag", { token: "delimiter", next: "@pop" }]]
|
||||||
|
],
|
||||||
|
scriptAfterType: [
|
||||||
|
[/=/, "delimiter", "@scriptAfterTypeEquals"],
|
||||||
|
[
|
||||||
|
/>/,
|
||||||
|
{
|
||||||
|
token: "delimiter",
|
||||||
|
next: "@scriptEmbedded",
|
||||||
|
nextEmbedded: "text/javascript"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/[ \t\r\n]+/],
|
||||||
|
[/<\/script\s*>/, { token: "@rematch", next: "@pop" }]
|
||||||
|
],
|
||||||
|
scriptAfterTypeEquals: [
|
||||||
|
[
|
||||||
|
/"([^"]*)"/,
|
||||||
|
{
|
||||||
|
token: "attribute.value",
|
||||||
|
switchTo: "@scriptWithCustomType.$1"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[
|
||||||
|
/'([^']*)'/,
|
||||||
|
{
|
||||||
|
token: "attribute.value",
|
||||||
|
switchTo: "@scriptWithCustomType.$1"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[
|
||||||
|
/>/,
|
||||||
|
{
|
||||||
|
token: "delimiter",
|
||||||
|
next: "@scriptEmbedded",
|
||||||
|
nextEmbedded: "text/javascript"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/[ \t\r\n]+/],
|
||||||
|
[/<\/script\s*>/, { token: "@rematch", next: "@pop" }]
|
||||||
|
],
|
||||||
|
scriptWithCustomType: [
|
||||||
|
[
|
||||||
|
/>/,
|
||||||
|
{
|
||||||
|
token: "delimiter",
|
||||||
|
next: "@scriptEmbedded.$S2",
|
||||||
|
nextEmbedded: "$S2"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/"([^"]*)"/, "attribute.value"],
|
||||||
|
[/'([^']*)'/, "attribute.value"],
|
||||||
|
[/[\w\-]+/, "attribute.name"],
|
||||||
|
[/=/, "delimiter"],
|
||||||
|
[/[ \t\r\n]+/],
|
||||||
|
[/<\/script\s*>/, { token: "@rematch", next: "@pop" }]
|
||||||
|
],
|
||||||
|
scriptEmbedded: [
|
||||||
|
[/<\/script/, { token: "@rematch", next: "@pop", nextEmbedded: "@pop" }],
|
||||||
|
[/[^<]+/, ""]
|
||||||
|
],
|
||||||
|
style: [
|
||||||
|
[/type/, "attribute.name", "@styleAfterType"],
|
||||||
|
[/"([^"]*)"/, "attribute.value"],
|
||||||
|
[/'([^']*)'/, "attribute.value"],
|
||||||
|
[/[\w\-]+/, "attribute.name"],
|
||||||
|
[/=/, "delimiter"],
|
||||||
|
[
|
||||||
|
/>/,
|
||||||
|
{
|
||||||
|
token: "delimiter",
|
||||||
|
next: "@styleEmbedded",
|
||||||
|
nextEmbedded: "text/css"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/[ \t\r\n]+/],
|
||||||
|
[/(<\/)(style\s*)(>)/, ["delimiter", "tag", { token: "delimiter", next: "@pop" }]]
|
||||||
|
],
|
||||||
|
styleAfterType: [
|
||||||
|
[/=/, "delimiter", "@styleAfterTypeEquals"],
|
||||||
|
[
|
||||||
|
/>/,
|
||||||
|
{
|
||||||
|
token: "delimiter",
|
||||||
|
next: "@styleEmbedded",
|
||||||
|
nextEmbedded: "text/css"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/[ \t\r\n]+/],
|
||||||
|
[/<\/style\s*>/, { token: "@rematch", next: "@pop" }]
|
||||||
|
],
|
||||||
|
styleAfterTypeEquals: [
|
||||||
|
[
|
||||||
|
/"([^"]*)"/,
|
||||||
|
{
|
||||||
|
token: "attribute.value",
|
||||||
|
switchTo: "@styleWithCustomType.$1"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[
|
||||||
|
/'([^']*)'/,
|
||||||
|
{
|
||||||
|
token: "attribute.value",
|
||||||
|
switchTo: "@styleWithCustomType.$1"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[
|
||||||
|
/>/,
|
||||||
|
{
|
||||||
|
token: "delimiter",
|
||||||
|
next: "@styleEmbedded",
|
||||||
|
nextEmbedded: "text/css"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/[ \t\r\n]+/],
|
||||||
|
[/<\/style\s*>/, { token: "@rematch", next: "@pop" }]
|
||||||
|
],
|
||||||
|
styleWithCustomType: [
|
||||||
|
[
|
||||||
|
/>/,
|
||||||
|
{
|
||||||
|
token: "delimiter",
|
||||||
|
next: "@styleEmbedded.$S2",
|
||||||
|
nextEmbedded: "$S2"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/"([^"]*)"/, "attribute.value"],
|
||||||
|
[/'([^']*)'/, "attribute.value"],
|
||||||
|
[/[\w\-]+/, "attribute.name"],
|
||||||
|
[/=/, "delimiter"],
|
||||||
|
[/[ \t\r\n]+/],
|
||||||
|
[/<\/style\s*>/, { token: "@rematch", next: "@pop" }]
|
||||||
|
],
|
||||||
|
styleEmbedded: [
|
||||||
|
[/<\/style/, { token: "@rematch", next: "@pop", nextEmbedded: "@pop" }],
|
||||||
|
[/[^<]+/, ""]
|
||||||
|
]
|
||||||
|
}
|
||||||
|
};
|
||||||
|
return __toCommonJS(html_exports);
|
||||||
|
})();
|
||||||
|
return moduleExports;
|
||||||
|
});
|
||||||
@@ -0,0 +1,100 @@
|
|||||||
|
/*!-----------------------------------------------------------------------------
|
||||||
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||||
|
* Version: 0.33.0(4b1abad427e58dbedc1215d99a0902ffc885fcd4)
|
||||||
|
* Released under the MIT license
|
||||||
|
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
||||||
|
*-----------------------------------------------------------------------------*/
|
||||||
|
define("vs/basic-languages/ini/ini", ["require"],(require)=>{
|
||||||
|
var moduleExports = (() => {
|
||||||
|
var __defProp = Object.defineProperty;
|
||||||
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||||
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||||
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||||
|
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
||||||
|
var __export = (target, all) => {
|
||||||
|
for (var name in all)
|
||||||
|
__defProp(target, name, { get: all[name], enumerable: true });
|
||||||
|
};
|
||||||
|
var __reExport = (target, module, copyDefault, desc) => {
|
||||||
|
if (module && typeof module === "object" || typeof module === "function") {
|
||||||
|
for (let key of __getOwnPropNames(module))
|
||||||
|
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
||||||
|
__defProp(target, key, { get: () => module[key], enumerable: !(desc = __getOwnPropDesc(module, key)) || desc.enumerable });
|
||||||
|
}
|
||||||
|
return target;
|
||||||
|
};
|
||||||
|
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
||||||
|
return (module, temp) => {
|
||||||
|
return cache && cache.get(module) || (temp = __reExport(__markAsModule({}), module, 1), cache && cache.set(module, temp), temp);
|
||||||
|
};
|
||||||
|
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
||||||
|
|
||||||
|
// src/basic-languages/ini/ini.ts
|
||||||
|
var ini_exports = {};
|
||||||
|
__export(ini_exports, {
|
||||||
|
conf: () => conf,
|
||||||
|
language: () => language
|
||||||
|
});
|
||||||
|
var conf = {
|
||||||
|
comments: {
|
||||||
|
lineComment: "#"
|
||||||
|
},
|
||||||
|
brackets: [
|
||||||
|
["{", "}"],
|
||||||
|
["[", "]"],
|
||||||
|
["(", ")"]
|
||||||
|
],
|
||||||
|
autoClosingPairs: [
|
||||||
|
{ open: "{", close: "}" },
|
||||||
|
{ open: "[", close: "]" },
|
||||||
|
{ open: "(", close: ")" },
|
||||||
|
{ open: '"', close: '"' },
|
||||||
|
{ open: "'", close: "'" }
|
||||||
|
],
|
||||||
|
surroundingPairs: [
|
||||||
|
{ open: "{", close: "}" },
|
||||||
|
{ open: "[", close: "]" },
|
||||||
|
{ open: "(", close: ")" },
|
||||||
|
{ open: '"', close: '"' },
|
||||||
|
{ open: "'", close: "'" }
|
||||||
|
]
|
||||||
|
};
|
||||||
|
var language = {
|
||||||
|
defaultToken: "",
|
||||||
|
tokenPostfix: ".ini",
|
||||||
|
escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
|
||||||
|
tokenizer: {
|
||||||
|
root: [
|
||||||
|
[/^\[[^\]]*\]/, "metatag"],
|
||||||
|
[/(^\w+)(\s*)(\=)/, ["key", "", "delimiter"]],
|
||||||
|
{ include: "@whitespace" },
|
||||||
|
[/\d+/, "number"],
|
||||||
|
[/"([^"\\]|\\.)*$/, "string.invalid"],
|
||||||
|
[/'([^'\\]|\\.)*$/, "string.invalid"],
|
||||||
|
[/"/, "string", '@string."'],
|
||||||
|
[/'/, "string", "@string.'"]
|
||||||
|
],
|
||||||
|
whitespace: [
|
||||||
|
[/[ \t\r\n]+/, ""],
|
||||||
|
[/^\s*[#;].*$/, "comment"]
|
||||||
|
],
|
||||||
|
string: [
|
||||||
|
[/[^\\"']+/, "string"],
|
||||||
|
[/@escapes/, "string.escape"],
|
||||||
|
[/\\./, "string.escape.invalid"],
|
||||||
|
[
|
||||||
|
/["']/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"$#==$S2": { token: "string", next: "@pop" },
|
||||||
|
"@default": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
]
|
||||||
|
}
|
||||||
|
};
|
||||||
|
return __toCommonJS(ini_exports);
|
||||||
|
})();
|
||||||
|
return moduleExports;
|
||||||
|
});
|
||||||
@@ -0,0 +1,253 @@
|
|||||||
|
/*!-----------------------------------------------------------------------------
|
||||||
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||||
|
* Version: 0.33.0(4b1abad427e58dbedc1215d99a0902ffc885fcd4)
|
||||||
|
* Released under the MIT license
|
||||||
|
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
||||||
|
*-----------------------------------------------------------------------------*/
|
||||||
|
define("vs/basic-languages/java/java", ["require"],(require)=>{
|
||||||
|
var moduleExports = (() => {
|
||||||
|
var __defProp = Object.defineProperty;
|
||||||
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||||
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||||
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||||
|
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
||||||
|
var __export = (target, all) => {
|
||||||
|
for (var name in all)
|
||||||
|
__defProp(target, name, { get: all[name], enumerable: true });
|
||||||
|
};
|
||||||
|
var __reExport = (target, module, copyDefault, desc) => {
|
||||||
|
if (module && typeof module === "object" || typeof module === "function") {
|
||||||
|
for (let key of __getOwnPropNames(module))
|
||||||
|
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
||||||
|
__defProp(target, key, { get: () => module[key], enumerable: !(desc = __getOwnPropDesc(module, key)) || desc.enumerable });
|
||||||
|
}
|
||||||
|
return target;
|
||||||
|
};
|
||||||
|
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
||||||
|
return (module, temp) => {
|
||||||
|
return cache && cache.get(module) || (temp = __reExport(__markAsModule({}), module, 1), cache && cache.set(module, temp), temp);
|
||||||
|
};
|
||||||
|
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
||||||
|
|
||||||
|
// src/basic-languages/java/java.ts
|
||||||
|
var java_exports = {};
|
||||||
|
__export(java_exports, {
|
||||||
|
conf: () => conf,
|
||||||
|
language: () => language
|
||||||
|
});
|
||||||
|
var conf = {
|
||||||
|
wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,
|
||||||
|
comments: {
|
||||||
|
lineComment: "//",
|
||||||
|
blockComment: ["/*", "*/"]
|
||||||
|
},
|
||||||
|
brackets: [
|
||||||
|
["{", "}"],
|
||||||
|
["[", "]"],
|
||||||
|
["(", ")"]
|
||||||
|
],
|
||||||
|
autoClosingPairs: [
|
||||||
|
{ open: "{", close: "}" },
|
||||||
|
{ open: "[", close: "]" },
|
||||||
|
{ open: "(", close: ")" },
|
||||||
|
{ open: '"', close: '"' },
|
||||||
|
{ open: "'", close: "'" }
|
||||||
|
],
|
||||||
|
surroundingPairs: [
|
||||||
|
{ open: "{", close: "}" },
|
||||||
|
{ open: "[", close: "]" },
|
||||||
|
{ open: "(", close: ")" },
|
||||||
|
{ open: '"', close: '"' },
|
||||||
|
{ open: "'", close: "'" },
|
||||||
|
{ open: "<", close: ">" }
|
||||||
|
],
|
||||||
|
folding: {
|
||||||
|
markers: {
|
||||||
|
start: new RegExp("^\\s*//\\s*(?:(?:#?region\\b)|(?:<editor-fold\\b))"),
|
||||||
|
end: new RegExp("^\\s*//\\s*(?:(?:#?endregion\\b)|(?:</editor-fold>))")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
var language = {
|
||||||
|
defaultToken: "",
|
||||||
|
tokenPostfix: ".java",
|
||||||
|
keywords: [
|
||||||
|
"abstract",
|
||||||
|
"continue",
|
||||||
|
"for",
|
||||||
|
"new",
|
||||||
|
"switch",
|
||||||
|
"assert",
|
||||||
|
"default",
|
||||||
|
"goto",
|
||||||
|
"package",
|
||||||
|
"synchronized",
|
||||||
|
"boolean",
|
||||||
|
"do",
|
||||||
|
"if",
|
||||||
|
"private",
|
||||||
|
"this",
|
||||||
|
"break",
|
||||||
|
"double",
|
||||||
|
"implements",
|
||||||
|
"protected",
|
||||||
|
"throw",
|
||||||
|
"byte",
|
||||||
|
"else",
|
||||||
|
"import",
|
||||||
|
"public",
|
||||||
|
"throws",
|
||||||
|
"case",
|
||||||
|
"enum",
|
||||||
|
"instanceof",
|
||||||
|
"return",
|
||||||
|
"transient",
|
||||||
|
"catch",
|
||||||
|
"extends",
|
||||||
|
"int",
|
||||||
|
"short",
|
||||||
|
"try",
|
||||||
|
"char",
|
||||||
|
"final",
|
||||||
|
"interface",
|
||||||
|
"static",
|
||||||
|
"void",
|
||||||
|
"class",
|
||||||
|
"finally",
|
||||||
|
"long",
|
||||||
|
"strictfp",
|
||||||
|
"volatile",
|
||||||
|
"const",
|
||||||
|
"float",
|
||||||
|
"native",
|
||||||
|
"super",
|
||||||
|
"while",
|
||||||
|
"true",
|
||||||
|
"false",
|
||||||
|
"yield",
|
||||||
|
"record",
|
||||||
|
"sealed",
|
||||||
|
"non-sealed",
|
||||||
|
"permits"
|
||||||
|
],
|
||||||
|
operators: [
|
||||||
|
"=",
|
||||||
|
">",
|
||||||
|
"<",
|
||||||
|
"!",
|
||||||
|
"~",
|
||||||
|
"?",
|
||||||
|
":",
|
||||||
|
"==",
|
||||||
|
"<=",
|
||||||
|
">=",
|
||||||
|
"!=",
|
||||||
|
"&&",
|
||||||
|
"||",
|
||||||
|
"++",
|
||||||
|
"--",
|
||||||
|
"+",
|
||||||
|
"-",
|
||||||
|
"*",
|
||||||
|
"/",
|
||||||
|
"&",
|
||||||
|
"|",
|
||||||
|
"^",
|
||||||
|
"%",
|
||||||
|
"<<",
|
||||||
|
">>",
|
||||||
|
">>>",
|
||||||
|
"+=",
|
||||||
|
"-=",
|
||||||
|
"*=",
|
||||||
|
"/=",
|
||||||
|
"&=",
|
||||||
|
"|=",
|
||||||
|
"^=",
|
||||||
|
"%=",
|
||||||
|
"<<=",
|
||||||
|
">>=",
|
||||||
|
">>>="
|
||||||
|
],
|
||||||
|
symbols: /[=><!~?:&|+\-*\/\^%]+/,
|
||||||
|
escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
|
||||||
|
digits: /\d+(_+\d+)*/,
|
||||||
|
octaldigits: /[0-7]+(_+[0-7]+)*/,
|
||||||
|
binarydigits: /[0-1]+(_+[0-1]+)*/,
|
||||||
|
hexdigits: /[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/,
|
||||||
|
tokenizer: {
|
||||||
|
root: [
|
||||||
|
["non-sealed", "keyword.non-sealed"],
|
||||||
|
[
|
||||||
|
/[a-zA-Z_$][\w$]*/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"@keywords": { token: "keyword.$0" },
|
||||||
|
"@default": "identifier"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
{ include: "@whitespace" },
|
||||||
|
[/[{}()\[\]]/, "@brackets"],
|
||||||
|
[/[<>](?!@symbols)/, "@brackets"],
|
||||||
|
[
|
||||||
|
/@symbols/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"@operators": "delimiter",
|
||||||
|
"@default": ""
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/@\s*[a-zA-Z_\$][\w\$]*/, "annotation"],
|
||||||
|
[/(@digits)[eE]([\-+]?(@digits))?[fFdD]?/, "number.float"],
|
||||||
|
[/(@digits)\.(@digits)([eE][\-+]?(@digits))?[fFdD]?/, "number.float"],
|
||||||
|
[/0[xX](@hexdigits)[Ll]?/, "number.hex"],
|
||||||
|
[/0(@octaldigits)[Ll]?/, "number.octal"],
|
||||||
|
[/0[bB](@binarydigits)[Ll]?/, "number.binary"],
|
||||||
|
[/(@digits)[fFdD]/, "number.float"],
|
||||||
|
[/(@digits)[lL]?/, "number"],
|
||||||
|
[/[;,.]/, "delimiter"],
|
||||||
|
[/"([^"\\]|\\.)*$/, "string.invalid"],
|
||||||
|
[/"""/, "string", "@multistring"],
|
||||||
|
[/"/, "string", "@string"],
|
||||||
|
[/'[^\\']'/, "string"],
|
||||||
|
[/(')(@escapes)(')/, ["string", "string.escape", "string"]],
|
||||||
|
[/'/, "string.invalid"]
|
||||||
|
],
|
||||||
|
whitespace: [
|
||||||
|
[/[ \t\r\n]+/, ""],
|
||||||
|
[/\/\*\*(?!\/)/, "comment.doc", "@javadoc"],
|
||||||
|
[/\/\*/, "comment", "@comment"],
|
||||||
|
[/\/\/.*$/, "comment"]
|
||||||
|
],
|
||||||
|
comment: [
|
||||||
|
[/[^\/*]+/, "comment"],
|
||||||
|
[/\*\//, "comment", "@pop"],
|
||||||
|
[/[\/*]/, "comment"]
|
||||||
|
],
|
||||||
|
javadoc: [
|
||||||
|
[/[^\/*]+/, "comment.doc"],
|
||||||
|
[/\/\*/, "comment.doc.invalid"],
|
||||||
|
[/\*\//, "comment.doc", "@pop"],
|
||||||
|
[/[\/*]/, "comment.doc"]
|
||||||
|
],
|
||||||
|
string: [
|
||||||
|
[/[^\\"]+/, "string"],
|
||||||
|
[/@escapes/, "string.escape"],
|
||||||
|
[/\\./, "string.escape.invalid"],
|
||||||
|
[/"/, "string", "@pop"]
|
||||||
|
],
|
||||||
|
multistring: [
|
||||||
|
[/[^\\"]+/, "string"],
|
||||||
|
[/@escapes/, "string.escape"],
|
||||||
|
[/\\./, "string.escape.invalid"],
|
||||||
|
[/"""/, "string", "@pop"],
|
||||||
|
[/./, "string"]
|
||||||
|
]
|
||||||
|
}
|
||||||
|
};
|
||||||
|
return __toCommonJS(java_exports);
|
||||||
|
})();
|
||||||
|
return moduleExports;
|
||||||
|
});
|
||||||
@@ -0,0 +1,445 @@
|
|||||||
|
/*!-----------------------------------------------------------------------------
|
||||||
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||||
|
* Version: 0.33.0(4b1abad427e58dbedc1215d99a0902ffc885fcd4)
|
||||||
|
* Released under the MIT license
|
||||||
|
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
||||||
|
*-----------------------------------------------------------------------------*/
|
||||||
|
define("vs/basic-languages/javascript/javascript", ["require"],(require)=>{
|
||||||
|
var moduleExports = (() => {
|
||||||
|
var __create = Object.create;
|
||||||
|
var __defProp = Object.defineProperty;
|
||||||
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||||
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||||
|
var __getProtoOf = Object.getPrototypeOf;
|
||||||
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||||
|
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
||||||
|
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
||||||
|
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
||||||
|
}) : x)(function(x) {
|
||||||
|
if (typeof require !== "undefined")
|
||||||
|
return require.apply(this, arguments);
|
||||||
|
throw new Error('Dynamic require of "' + x + '" is not supported');
|
||||||
|
});
|
||||||
|
var __commonJS = (cb, mod) => function __require2() {
|
||||||
|
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
||||||
|
};
|
||||||
|
var __export = (target, all) => {
|
||||||
|
for (var name in all)
|
||||||
|
__defProp(target, name, { get: all[name], enumerable: true });
|
||||||
|
};
|
||||||
|
var __reExport = (target, module, copyDefault, desc) => {
|
||||||
|
if (module && typeof module === "object" || typeof module === "function") {
|
||||||
|
for (let key of __getOwnPropNames(module))
|
||||||
|
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
||||||
|
__defProp(target, key, { get: () => module[key], enumerable: !(desc = __getOwnPropDesc(module, key)) || desc.enumerable });
|
||||||
|
}
|
||||||
|
return target;
|
||||||
|
};
|
||||||
|
var __toESM = (module, isNodeMode) => {
|
||||||
|
return __reExport(__markAsModule(__defProp(module != null ? __create(__getProtoOf(module)) : {}, "default", !isNodeMode && module && module.__esModule ? { get: () => module.default, enumerable: true } : { value: module, enumerable: true })), module);
|
||||||
|
};
|
||||||
|
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
||||||
|
return (module, temp) => {
|
||||||
|
return cache && cache.get(module) || (temp = __reExport(__markAsModule({}), module, 1), cache && cache.set(module, temp), temp);
|
||||||
|
};
|
||||||
|
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
||||||
|
|
||||||
|
// src/fillers/monaco-editor-core-amd.ts
|
||||||
|
var require_monaco_editor_core_amd = __commonJS({
|
||||||
|
"src/fillers/monaco-editor-core-amd.ts"(exports, module) {
|
||||||
|
var api = __toESM(__require("vs/editor/editor.api"));
|
||||||
|
module.exports = api;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
// src/basic-languages/javascript/javascript.ts
|
||||||
|
var javascript_exports = {};
|
||||||
|
__export(javascript_exports, {
|
||||||
|
conf: () => conf2,
|
||||||
|
language: () => language2
|
||||||
|
});
|
||||||
|
|
||||||
|
// src/fillers/monaco-editor-core.ts
|
||||||
|
var monaco_editor_core_exports = {};
|
||||||
|
__reExport(monaco_editor_core_exports, __toESM(require_monaco_editor_core_amd()));
|
||||||
|
|
||||||
|
// src/basic-languages/typescript/typescript.ts
|
||||||
|
var conf = {
|
||||||
|
wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\@\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,
|
||||||
|
comments: {
|
||||||
|
lineComment: "//",
|
||||||
|
blockComment: ["/*", "*/"]
|
||||||
|
},
|
||||||
|
brackets: [
|
||||||
|
["{", "}"],
|
||||||
|
["[", "]"],
|
||||||
|
["(", ")"]
|
||||||
|
],
|
||||||
|
onEnterRules: [
|
||||||
|
{
|
||||||
|
beforeText: /^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,
|
||||||
|
afterText: /^\s*\*\/$/,
|
||||||
|
action: {
|
||||||
|
indentAction: monaco_editor_core_exports.languages.IndentAction.IndentOutdent,
|
||||||
|
appendText: " * "
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
beforeText: /^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,
|
||||||
|
action: {
|
||||||
|
indentAction: monaco_editor_core_exports.languages.IndentAction.None,
|
||||||
|
appendText: " * "
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
beforeText: /^(\t|(\ \ ))*\ \*(\ ([^\*]|\*(?!\/))*)?$/,
|
||||||
|
action: {
|
||||||
|
indentAction: monaco_editor_core_exports.languages.IndentAction.None,
|
||||||
|
appendText: "* "
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
beforeText: /^(\t|(\ \ ))*\ \*\/\s*$/,
|
||||||
|
action: {
|
||||||
|
indentAction: monaco_editor_core_exports.languages.IndentAction.None,
|
||||||
|
removeText: 1
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
autoClosingPairs: [
|
||||||
|
{ open: "{", close: "}" },
|
||||||
|
{ open: "[", close: "]" },
|
||||||
|
{ open: "(", close: ")" },
|
||||||
|
{ open: '"', close: '"', notIn: ["string"] },
|
||||||
|
{ open: "'", close: "'", notIn: ["string", "comment"] },
|
||||||
|
{ open: "`", close: "`", notIn: ["string", "comment"] },
|
||||||
|
{ open: "/**", close: " */", notIn: ["string"] }
|
||||||
|
],
|
||||||
|
folding: {
|
||||||
|
markers: {
|
||||||
|
start: new RegExp("^\\s*//\\s*#?region\\b"),
|
||||||
|
end: new RegExp("^\\s*//\\s*#?endregion\\b")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
var language = {
|
||||||
|
defaultToken: "invalid",
|
||||||
|
tokenPostfix: ".ts",
|
||||||
|
keywords: [
|
||||||
|
"abstract",
|
||||||
|
"any",
|
||||||
|
"as",
|
||||||
|
"asserts",
|
||||||
|
"bigint",
|
||||||
|
"boolean",
|
||||||
|
"break",
|
||||||
|
"case",
|
||||||
|
"catch",
|
||||||
|
"class",
|
||||||
|
"continue",
|
||||||
|
"const",
|
||||||
|
"constructor",
|
||||||
|
"debugger",
|
||||||
|
"declare",
|
||||||
|
"default",
|
||||||
|
"delete",
|
||||||
|
"do",
|
||||||
|
"else",
|
||||||
|
"enum",
|
||||||
|
"export",
|
||||||
|
"extends",
|
||||||
|
"false",
|
||||||
|
"finally",
|
||||||
|
"for",
|
||||||
|
"from",
|
||||||
|
"function",
|
||||||
|
"get",
|
||||||
|
"if",
|
||||||
|
"implements",
|
||||||
|
"import",
|
||||||
|
"in",
|
||||||
|
"infer",
|
||||||
|
"instanceof",
|
||||||
|
"interface",
|
||||||
|
"is",
|
||||||
|
"keyof",
|
||||||
|
"let",
|
||||||
|
"module",
|
||||||
|
"namespace",
|
||||||
|
"never",
|
||||||
|
"new",
|
||||||
|
"null",
|
||||||
|
"number",
|
||||||
|
"object",
|
||||||
|
"package",
|
||||||
|
"private",
|
||||||
|
"protected",
|
||||||
|
"public",
|
||||||
|
"override",
|
||||||
|
"readonly",
|
||||||
|
"require",
|
||||||
|
"global",
|
||||||
|
"return",
|
||||||
|
"set",
|
||||||
|
"static",
|
||||||
|
"string",
|
||||||
|
"super",
|
||||||
|
"switch",
|
||||||
|
"symbol",
|
||||||
|
"this",
|
||||||
|
"throw",
|
||||||
|
"true",
|
||||||
|
"try",
|
||||||
|
"type",
|
||||||
|
"typeof",
|
||||||
|
"undefined",
|
||||||
|
"unique",
|
||||||
|
"unknown",
|
||||||
|
"var",
|
||||||
|
"void",
|
||||||
|
"while",
|
||||||
|
"with",
|
||||||
|
"yield",
|
||||||
|
"async",
|
||||||
|
"await",
|
||||||
|
"of"
|
||||||
|
],
|
||||||
|
operators: [
|
||||||
|
"<=",
|
||||||
|
">=",
|
||||||
|
"==",
|
||||||
|
"!=",
|
||||||
|
"===",
|
||||||
|
"!==",
|
||||||
|
"=>",
|
||||||
|
"+",
|
||||||
|
"-",
|
||||||
|
"**",
|
||||||
|
"*",
|
||||||
|
"/",
|
||||||
|
"%",
|
||||||
|
"++",
|
||||||
|
"--",
|
||||||
|
"<<",
|
||||||
|
"</",
|
||||||
|
">>",
|
||||||
|
">>>",
|
||||||
|
"&",
|
||||||
|
"|",
|
||||||
|
"^",
|
||||||
|
"!",
|
||||||
|
"~",
|
||||||
|
"&&",
|
||||||
|
"||",
|
||||||
|
"??",
|
||||||
|
"?",
|
||||||
|
":",
|
||||||
|
"=",
|
||||||
|
"+=",
|
||||||
|
"-=",
|
||||||
|
"*=",
|
||||||
|
"**=",
|
||||||
|
"/=",
|
||||||
|
"%=",
|
||||||
|
"<<=",
|
||||||
|
">>=",
|
||||||
|
">>>=",
|
||||||
|
"&=",
|
||||||
|
"|=",
|
||||||
|
"^=",
|
||||||
|
"@"
|
||||||
|
],
|
||||||
|
symbols: /[=><!~?:&|+\-*\/\^%]+/,
|
||||||
|
escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
|
||||||
|
digits: /\d+(_+\d+)*/,
|
||||||
|
octaldigits: /[0-7]+(_+[0-7]+)*/,
|
||||||
|
binarydigits: /[0-1]+(_+[0-1]+)*/,
|
||||||
|
hexdigits: /[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/,
|
||||||
|
regexpctl: /[(){}\[\]\$\^|\-*+?\.]/,
|
||||||
|
regexpesc: /\\(?:[bBdDfnrstvwWn0\\\/]|@regexpctl|c[A-Z]|x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4})/,
|
||||||
|
tokenizer: {
|
||||||
|
root: [[/[{}]/, "delimiter.bracket"], { include: "common" }],
|
||||||
|
common: [
|
||||||
|
[
|
||||||
|
/[a-z_$][\w$]*/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"@keywords": "keyword",
|
||||||
|
"@default": "identifier"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/[A-Z][\w\$]*/, "type.identifier"],
|
||||||
|
{ include: "@whitespace" },
|
||||||
|
[
|
||||||
|
/\/(?=([^\\\/]|\\.)+\/([dgimsuy]*)(\s*)(\.|;|,|\)|\]|\}|$))/,
|
||||||
|
{ token: "regexp", bracket: "@open", next: "@regexp" }
|
||||||
|
],
|
||||||
|
[/[()\[\]]/, "@brackets"],
|
||||||
|
[/[<>](?!@symbols)/, "@brackets"],
|
||||||
|
[/!(?=([^=]|$))/, "delimiter"],
|
||||||
|
[
|
||||||
|
/@symbols/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"@operators": "delimiter",
|
||||||
|
"@default": ""
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/(@digits)[eE]([\-+]?(@digits))?/, "number.float"],
|
||||||
|
[/(@digits)\.(@digits)([eE][\-+]?(@digits))?/, "number.float"],
|
||||||
|
[/0[xX](@hexdigits)n?/, "number.hex"],
|
||||||
|
[/0[oO]?(@octaldigits)n?/, "number.octal"],
|
||||||
|
[/0[bB](@binarydigits)n?/, "number.binary"],
|
||||||
|
[/(@digits)n?/, "number"],
|
||||||
|
[/[;,.]/, "delimiter"],
|
||||||
|
[/"([^"\\]|\\.)*$/, "string.invalid"],
|
||||||
|
[/'([^'\\]|\\.)*$/, "string.invalid"],
|
||||||
|
[/"/, "string", "@string_double"],
|
||||||
|
[/'/, "string", "@string_single"],
|
||||||
|
[/`/, "string", "@string_backtick"]
|
||||||
|
],
|
||||||
|
whitespace: [
|
||||||
|
[/[ \t\r\n]+/, ""],
|
||||||
|
[/\/\*\*(?!\/)/, "comment.doc", "@jsdoc"],
|
||||||
|
[/\/\*/, "comment", "@comment"],
|
||||||
|
[/\/\/.*$/, "comment"]
|
||||||
|
],
|
||||||
|
comment: [
|
||||||
|
[/[^\/*]+/, "comment"],
|
||||||
|
[/\*\//, "comment", "@pop"],
|
||||||
|
[/[\/*]/, "comment"]
|
||||||
|
],
|
||||||
|
jsdoc: [
|
||||||
|
[/[^\/*]+/, "comment.doc"],
|
||||||
|
[/\*\//, "comment.doc", "@pop"],
|
||||||
|
[/[\/*]/, "comment.doc"]
|
||||||
|
],
|
||||||
|
regexp: [
|
||||||
|
[
|
||||||
|
/(\{)(\d+(?:,\d*)?)(\})/,
|
||||||
|
["regexp.escape.control", "regexp.escape.control", "regexp.escape.control"]
|
||||||
|
],
|
||||||
|
[
|
||||||
|
/(\[)(\^?)(?=(?:[^\]\\\/]|\\.)+)/,
|
||||||
|
["regexp.escape.control", { token: "regexp.escape.control", next: "@regexrange" }]
|
||||||
|
],
|
||||||
|
[/(\()(\?:|\?=|\?!)/, ["regexp.escape.control", "regexp.escape.control"]],
|
||||||
|
[/[()]/, "regexp.escape.control"],
|
||||||
|
[/@regexpctl/, "regexp.escape.control"],
|
||||||
|
[/[^\\\/]/, "regexp"],
|
||||||
|
[/@regexpesc/, "regexp.escape"],
|
||||||
|
[/\\\./, "regexp.invalid"],
|
||||||
|
[/(\/)([dgimsuy]*)/, [{ token: "regexp", bracket: "@close", next: "@pop" }, "keyword.other"]]
|
||||||
|
],
|
||||||
|
regexrange: [
|
||||||
|
[/-/, "regexp.escape.control"],
|
||||||
|
[/\^/, "regexp.invalid"],
|
||||||
|
[/@regexpesc/, "regexp.escape"],
|
||||||
|
[/[^\]]/, "regexp"],
|
||||||
|
[
|
||||||
|
/\]/,
|
||||||
|
{
|
||||||
|
token: "regexp.escape.control",
|
||||||
|
next: "@pop",
|
||||||
|
bracket: "@close"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
],
|
||||||
|
string_double: [
|
||||||
|
[/[^\\"]+/, "string"],
|
||||||
|
[/@escapes/, "string.escape"],
|
||||||
|
[/\\./, "string.escape.invalid"],
|
||||||
|
[/"/, "string", "@pop"]
|
||||||
|
],
|
||||||
|
string_single: [
|
||||||
|
[/[^\\']+/, "string"],
|
||||||
|
[/@escapes/, "string.escape"],
|
||||||
|
[/\\./, "string.escape.invalid"],
|
||||||
|
[/'/, "string", "@pop"]
|
||||||
|
],
|
||||||
|
string_backtick: [
|
||||||
|
[/\$\{/, { token: "delimiter.bracket", next: "@bracketCounting" }],
|
||||||
|
[/[^\\`$]+/, "string"],
|
||||||
|
[/@escapes/, "string.escape"],
|
||||||
|
[/\\./, "string.escape.invalid"],
|
||||||
|
[/`/, "string", "@pop"]
|
||||||
|
],
|
||||||
|
bracketCounting: [
|
||||||
|
[/\{/, "delimiter.bracket", "@bracketCounting"],
|
||||||
|
[/\}/, "delimiter.bracket", "@pop"],
|
||||||
|
{ include: "common" }
|
||||||
|
]
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
// src/basic-languages/javascript/javascript.ts
|
||||||
|
var conf2 = conf;
|
||||||
|
var language2 = {
|
||||||
|
defaultToken: "invalid",
|
||||||
|
tokenPostfix: ".js",
|
||||||
|
keywords: [
|
||||||
|
"break",
|
||||||
|
"case",
|
||||||
|
"catch",
|
||||||
|
"class",
|
||||||
|
"continue",
|
||||||
|
"const",
|
||||||
|
"constructor",
|
||||||
|
"debugger",
|
||||||
|
"default",
|
||||||
|
"delete",
|
||||||
|
"do",
|
||||||
|
"else",
|
||||||
|
"export",
|
||||||
|
"extends",
|
||||||
|
"false",
|
||||||
|
"finally",
|
||||||
|
"for",
|
||||||
|
"from",
|
||||||
|
"function",
|
||||||
|
"get",
|
||||||
|
"if",
|
||||||
|
"import",
|
||||||
|
"in",
|
||||||
|
"instanceof",
|
||||||
|
"let",
|
||||||
|
"new",
|
||||||
|
"null",
|
||||||
|
"return",
|
||||||
|
"set",
|
||||||
|
"super",
|
||||||
|
"switch",
|
||||||
|
"symbol",
|
||||||
|
"this",
|
||||||
|
"throw",
|
||||||
|
"true",
|
||||||
|
"try",
|
||||||
|
"typeof",
|
||||||
|
"undefined",
|
||||||
|
"var",
|
||||||
|
"void",
|
||||||
|
"while",
|
||||||
|
"with",
|
||||||
|
"yield",
|
||||||
|
"async",
|
||||||
|
"await",
|
||||||
|
"of"
|
||||||
|
],
|
||||||
|
typeKeywords: [],
|
||||||
|
operators: language.operators,
|
||||||
|
symbols: language.symbols,
|
||||||
|
escapes: language.escapes,
|
||||||
|
digits: language.digits,
|
||||||
|
octaldigits: language.octaldigits,
|
||||||
|
binarydigits: language.binarydigits,
|
||||||
|
hexdigits: language.hexdigits,
|
||||||
|
regexpctl: language.regexpctl,
|
||||||
|
regexpesc: language.regexpesc,
|
||||||
|
tokenizer: language.tokenizer
|
||||||
|
};
|
||||||
|
return __toCommonJS(javascript_exports);
|
||||||
|
})();
|
||||||
|
return moduleExports;
|
||||||
|
});
|
||||||
@@ -0,0 +1,528 @@
|
|||||||
|
/*!-----------------------------------------------------------------------------
|
||||||
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||||
|
* Version: 0.33.0(4b1abad427e58dbedc1215d99a0902ffc885fcd4)
|
||||||
|
* Released under the MIT license
|
||||||
|
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
||||||
|
*-----------------------------------------------------------------------------*/
|
||||||
|
define("vs/basic-languages/julia/julia", ["require"],(require)=>{
|
||||||
|
var moduleExports = (() => {
|
||||||
|
var __defProp = Object.defineProperty;
|
||||||
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||||
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||||
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||||
|
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
||||||
|
var __export = (target, all) => {
|
||||||
|
for (var name in all)
|
||||||
|
__defProp(target, name, { get: all[name], enumerable: true });
|
||||||
|
};
|
||||||
|
var __reExport = (target, module, copyDefault, desc) => {
|
||||||
|
if (module && typeof module === "object" || typeof module === "function") {
|
||||||
|
for (let key of __getOwnPropNames(module))
|
||||||
|
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
||||||
|
__defProp(target, key, { get: () => module[key], enumerable: !(desc = __getOwnPropDesc(module, key)) || desc.enumerable });
|
||||||
|
}
|
||||||
|
return target;
|
||||||
|
};
|
||||||
|
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
||||||
|
return (module, temp) => {
|
||||||
|
return cache && cache.get(module) || (temp = __reExport(__markAsModule({}), module, 1), cache && cache.set(module, temp), temp);
|
||||||
|
};
|
||||||
|
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
||||||
|
|
||||||
|
// src/basic-languages/julia/julia.ts
|
||||||
|
var julia_exports = {};
|
||||||
|
__export(julia_exports, {
|
||||||
|
conf: () => conf,
|
||||||
|
language: () => language
|
||||||
|
});
|
||||||
|
var conf = {
|
||||||
|
brackets: [
|
||||||
|
["{", "}"],
|
||||||
|
["[", "]"],
|
||||||
|
["(", ")"]
|
||||||
|
],
|
||||||
|
autoClosingPairs: [
|
||||||
|
{ open: "{", close: "}" },
|
||||||
|
{ open: "[", close: "]" },
|
||||||
|
{ open: "(", close: ")" },
|
||||||
|
{ open: '"', close: '"' },
|
||||||
|
{ open: "'", close: "'" }
|
||||||
|
],
|
||||||
|
surroundingPairs: [
|
||||||
|
{ open: "{", close: "}" },
|
||||||
|
{ open: "[", close: "]" },
|
||||||
|
{ open: "(", close: ")" },
|
||||||
|
{ open: '"', close: '"' },
|
||||||
|
{ open: "'", close: "'" }
|
||||||
|
]
|
||||||
|
};
|
||||||
|
var language = {
|
||||||
|
tokenPostfix: ".julia",
|
||||||
|
keywords: [
|
||||||
|
"begin",
|
||||||
|
"while",
|
||||||
|
"if",
|
||||||
|
"for",
|
||||||
|
"try",
|
||||||
|
"return",
|
||||||
|
"break",
|
||||||
|
"continue",
|
||||||
|
"function",
|
||||||
|
"macro",
|
||||||
|
"quote",
|
||||||
|
"let",
|
||||||
|
"local",
|
||||||
|
"global",
|
||||||
|
"const",
|
||||||
|
"do",
|
||||||
|
"struct",
|
||||||
|
"module",
|
||||||
|
"baremodule",
|
||||||
|
"using",
|
||||||
|
"import",
|
||||||
|
"export",
|
||||||
|
"end",
|
||||||
|
"else",
|
||||||
|
"elseif",
|
||||||
|
"catch",
|
||||||
|
"finally",
|
||||||
|
"mutable",
|
||||||
|
"primitive",
|
||||||
|
"abstract",
|
||||||
|
"type",
|
||||||
|
"in",
|
||||||
|
"isa",
|
||||||
|
"where",
|
||||||
|
"new"
|
||||||
|
],
|
||||||
|
types: [
|
||||||
|
"LinRange",
|
||||||
|
"LineNumberNode",
|
||||||
|
"LinearIndices",
|
||||||
|
"LoadError",
|
||||||
|
"MIME",
|
||||||
|
"Matrix",
|
||||||
|
"Method",
|
||||||
|
"MethodError",
|
||||||
|
"Missing",
|
||||||
|
"MissingException",
|
||||||
|
"Module",
|
||||||
|
"NTuple",
|
||||||
|
"NamedTuple",
|
||||||
|
"Nothing",
|
||||||
|
"Number",
|
||||||
|
"OrdinalRange",
|
||||||
|
"OutOfMemoryError",
|
||||||
|
"OverflowError",
|
||||||
|
"Pair",
|
||||||
|
"PartialQuickSort",
|
||||||
|
"PermutedDimsArray",
|
||||||
|
"Pipe",
|
||||||
|
"Ptr",
|
||||||
|
"QuoteNode",
|
||||||
|
"Rational",
|
||||||
|
"RawFD",
|
||||||
|
"ReadOnlyMemoryError",
|
||||||
|
"Real",
|
||||||
|
"ReentrantLock",
|
||||||
|
"Ref",
|
||||||
|
"Regex",
|
||||||
|
"RegexMatch",
|
||||||
|
"RoundingMode",
|
||||||
|
"SegmentationFault",
|
||||||
|
"Set",
|
||||||
|
"Signed",
|
||||||
|
"Some",
|
||||||
|
"StackOverflowError",
|
||||||
|
"StepRange",
|
||||||
|
"StepRangeLen",
|
||||||
|
"StridedArray",
|
||||||
|
"StridedMatrix",
|
||||||
|
"StridedVecOrMat",
|
||||||
|
"StridedVector",
|
||||||
|
"String",
|
||||||
|
"StringIndexError",
|
||||||
|
"SubArray",
|
||||||
|
"SubString",
|
||||||
|
"SubstitutionString",
|
||||||
|
"Symbol",
|
||||||
|
"SystemError",
|
||||||
|
"Task",
|
||||||
|
"Text",
|
||||||
|
"TextDisplay",
|
||||||
|
"Timer",
|
||||||
|
"Tuple",
|
||||||
|
"Type",
|
||||||
|
"TypeError",
|
||||||
|
"TypeVar",
|
||||||
|
"UInt",
|
||||||
|
"UInt128",
|
||||||
|
"UInt16",
|
||||||
|
"UInt32",
|
||||||
|
"UInt64",
|
||||||
|
"UInt8",
|
||||||
|
"UndefInitializer",
|
||||||
|
"AbstractArray",
|
||||||
|
"UndefKeywordError",
|
||||||
|
"AbstractChannel",
|
||||||
|
"UndefRefError",
|
||||||
|
"AbstractChar",
|
||||||
|
"UndefVarError",
|
||||||
|
"AbstractDict",
|
||||||
|
"Union",
|
||||||
|
"AbstractDisplay",
|
||||||
|
"UnionAll",
|
||||||
|
"AbstractFloat",
|
||||||
|
"UnitRange",
|
||||||
|
"AbstractIrrational",
|
||||||
|
"Unsigned",
|
||||||
|
"AbstractMatrix",
|
||||||
|
"AbstractRange",
|
||||||
|
"Val",
|
||||||
|
"AbstractSet",
|
||||||
|
"Vararg",
|
||||||
|
"AbstractString",
|
||||||
|
"VecElement",
|
||||||
|
"AbstractUnitRange",
|
||||||
|
"VecOrMat",
|
||||||
|
"AbstractVecOrMat",
|
||||||
|
"Vector",
|
||||||
|
"AbstractVector",
|
||||||
|
"VersionNumber",
|
||||||
|
"Any",
|
||||||
|
"WeakKeyDict",
|
||||||
|
"ArgumentError",
|
||||||
|
"WeakRef",
|
||||||
|
"Array",
|
||||||
|
"AssertionError",
|
||||||
|
"BigFloat",
|
||||||
|
"BigInt",
|
||||||
|
"BitArray",
|
||||||
|
"BitMatrix",
|
||||||
|
"BitSet",
|
||||||
|
"BitVector",
|
||||||
|
"Bool",
|
||||||
|
"BoundsError",
|
||||||
|
"CapturedException",
|
||||||
|
"CartesianIndex",
|
||||||
|
"CartesianIndices",
|
||||||
|
"Cchar",
|
||||||
|
"Cdouble",
|
||||||
|
"Cfloat",
|
||||||
|
"Channel",
|
||||||
|
"Char",
|
||||||
|
"Cint",
|
||||||
|
"Cintmax_t",
|
||||||
|
"Clong",
|
||||||
|
"Clonglong",
|
||||||
|
"Cmd",
|
||||||
|
"Colon",
|
||||||
|
"Complex",
|
||||||
|
"ComplexF16",
|
||||||
|
"ComplexF32",
|
||||||
|
"ComplexF64",
|
||||||
|
"CompositeException",
|
||||||
|
"Condition",
|
||||||
|
"Cptrdiff_t",
|
||||||
|
"Cshort",
|
||||||
|
"Csize_t",
|
||||||
|
"Cssize_t",
|
||||||
|
"Cstring",
|
||||||
|
"Cuchar",
|
||||||
|
"Cuint",
|
||||||
|
"Cuintmax_t",
|
||||||
|
"Culong",
|
||||||
|
"Culonglong",
|
||||||
|
"Cushort",
|
||||||
|
"Cvoid",
|
||||||
|
"Cwchar_t",
|
||||||
|
"Cwstring",
|
||||||
|
"DataType",
|
||||||
|
"DenseArray",
|
||||||
|
"DenseMatrix",
|
||||||
|
"DenseVecOrMat",
|
||||||
|
"DenseVector",
|
||||||
|
"Dict",
|
||||||
|
"DimensionMismatch",
|
||||||
|
"Dims",
|
||||||
|
"DivideError",
|
||||||
|
"DomainError",
|
||||||
|
"EOFError",
|
||||||
|
"Enum",
|
||||||
|
"ErrorException",
|
||||||
|
"Exception",
|
||||||
|
"ExponentialBackOff",
|
||||||
|
"Expr",
|
||||||
|
"Float16",
|
||||||
|
"Float32",
|
||||||
|
"Float64",
|
||||||
|
"Function",
|
||||||
|
"GlobalRef",
|
||||||
|
"HTML",
|
||||||
|
"IO",
|
||||||
|
"IOBuffer",
|
||||||
|
"IOContext",
|
||||||
|
"IOStream",
|
||||||
|
"IdDict",
|
||||||
|
"IndexCartesian",
|
||||||
|
"IndexLinear",
|
||||||
|
"IndexStyle",
|
||||||
|
"InexactError",
|
||||||
|
"InitError",
|
||||||
|
"Int",
|
||||||
|
"Int128",
|
||||||
|
"Int16",
|
||||||
|
"Int32",
|
||||||
|
"Int64",
|
||||||
|
"Int8",
|
||||||
|
"Integer",
|
||||||
|
"InterruptException",
|
||||||
|
"InvalidStateException",
|
||||||
|
"Irrational",
|
||||||
|
"KeyError"
|
||||||
|
],
|
||||||
|
keywordops: ["<:", ">:", ":", "=>", "...", ".", "->", "?"],
|
||||||
|
allops: /[^\w\d\s()\[\]{}"'#]+/,
|
||||||
|
constants: [
|
||||||
|
"true",
|
||||||
|
"false",
|
||||||
|
"nothing",
|
||||||
|
"missing",
|
||||||
|
"undef",
|
||||||
|
"Inf",
|
||||||
|
"pi",
|
||||||
|
"NaN",
|
||||||
|
"\u03C0",
|
||||||
|
"\u212F",
|
||||||
|
"ans",
|
||||||
|
"PROGRAM_FILE",
|
||||||
|
"ARGS",
|
||||||
|
"C_NULL",
|
||||||
|
"VERSION",
|
||||||
|
"DEPOT_PATH",
|
||||||
|
"LOAD_PATH"
|
||||||
|
],
|
||||||
|
operators: [
|
||||||
|
"!",
|
||||||
|
"!=",
|
||||||
|
"!==",
|
||||||
|
"%",
|
||||||
|
"&",
|
||||||
|
"*",
|
||||||
|
"+",
|
||||||
|
"-",
|
||||||
|
"/",
|
||||||
|
"//",
|
||||||
|
"<",
|
||||||
|
"<<",
|
||||||
|
"<=",
|
||||||
|
"==",
|
||||||
|
"===",
|
||||||
|
"=>",
|
||||||
|
">",
|
||||||
|
">=",
|
||||||
|
">>",
|
||||||
|
">>>",
|
||||||
|
"\\",
|
||||||
|
"^",
|
||||||
|
"|",
|
||||||
|
"|>",
|
||||||
|
"~",
|
||||||
|
"\xF7",
|
||||||
|
"\u2208",
|
||||||
|
"\u2209",
|
||||||
|
"\u220B",
|
||||||
|
"\u220C",
|
||||||
|
"\u2218",
|
||||||
|
"\u221A",
|
||||||
|
"\u221B",
|
||||||
|
"\u2229",
|
||||||
|
"\u222A",
|
||||||
|
"\u2248",
|
||||||
|
"\u2249",
|
||||||
|
"\u2260",
|
||||||
|
"\u2261",
|
||||||
|
"\u2262",
|
||||||
|
"\u2264",
|
||||||
|
"\u2265",
|
||||||
|
"\u2286",
|
||||||
|
"\u2287",
|
||||||
|
"\u2288",
|
||||||
|
"\u2289",
|
||||||
|
"\u228A",
|
||||||
|
"\u228B",
|
||||||
|
"\u22BB"
|
||||||
|
],
|
||||||
|
brackets: [
|
||||||
|
{ open: "(", close: ")", token: "delimiter.parenthesis" },
|
||||||
|
{ open: "{", close: "}", token: "delimiter.curly" },
|
||||||
|
{ open: "[", close: "]", token: "delimiter.square" }
|
||||||
|
],
|
||||||
|
ident: /π|ℯ|\b(?!\d)\w+\b/,
|
||||||
|
escape: /(?:[abefnrstv\\"'\n\r]|[0-7]{1,3}|x[0-9A-Fa-f]{1,2}|u[0-9A-Fa-f]{4})/,
|
||||||
|
escapes: /\\(?:C\-(@escape|.)|c(@escape|.)|@escape)/,
|
||||||
|
tokenizer: {
|
||||||
|
root: [
|
||||||
|
[/(::)\s*|\b(isa)\s+/, "keyword", "@typeanno"],
|
||||||
|
[/\b(isa)(\s*\(@ident\s*,\s*)/, ["keyword", { token: "", next: "@typeanno" }]],
|
||||||
|
[/\b(type|struct)[ \t]+/, "keyword", "@typeanno"],
|
||||||
|
[/^\s*:@ident[!?]?/, "metatag"],
|
||||||
|
[/(return)(\s*:@ident[!?]?)/, ["keyword", "metatag"]],
|
||||||
|
[/(\(|\[|\{|@allops)(\s*:@ident[!?]?)/, ["", "metatag"]],
|
||||||
|
[/:\(/, "metatag", "@quote"],
|
||||||
|
[/r"""/, "regexp.delim", "@tregexp"],
|
||||||
|
[/r"/, "regexp.delim", "@sregexp"],
|
||||||
|
[/raw"""/, "string.delim", "@rtstring"],
|
||||||
|
[/[bv]?"""/, "string.delim", "@dtstring"],
|
||||||
|
[/raw"/, "string.delim", "@rsstring"],
|
||||||
|
[/[bv]?"/, "string.delim", "@dsstring"],
|
||||||
|
[
|
||||||
|
/(@ident)\{/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"$1@types": { token: "type", next: "@gen" },
|
||||||
|
"@default": { token: "type", next: "@gen" }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[
|
||||||
|
/@ident[!?'']?(?=\.?\()/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"@types": "type",
|
||||||
|
"@keywords": "keyword",
|
||||||
|
"@constants": "variable",
|
||||||
|
"@default": "keyword.flow"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[
|
||||||
|
/@ident[!?']?/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"@types": "type",
|
||||||
|
"@keywords": "keyword",
|
||||||
|
"@constants": "variable",
|
||||||
|
"@default": "identifier"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/\$\w+/, "key"],
|
||||||
|
[/\$\(/, "key", "@paste"],
|
||||||
|
[/@@@ident/, "annotation"],
|
||||||
|
{ include: "@whitespace" },
|
||||||
|
[/'(?:@escapes|.)'/, "string.character"],
|
||||||
|
[/[()\[\]{}]/, "@brackets"],
|
||||||
|
[
|
||||||
|
/@allops/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"@keywordops": "keyword",
|
||||||
|
"@operators": "operator"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/[;,]/, "delimiter"],
|
||||||
|
[/0[xX][0-9a-fA-F](_?[0-9a-fA-F])*/, "number.hex"],
|
||||||
|
[/0[_oO][0-7](_?[0-7])*/, "number.octal"],
|
||||||
|
[/0[bB][01](_?[01])*/, "number.binary"],
|
||||||
|
[/[+\-]?\d+(\.\d+)?(im?|[eE][+\-]?\d+(\.\d+)?)?/, "number"]
|
||||||
|
],
|
||||||
|
typeanno: [
|
||||||
|
[/[a-zA-Z_]\w*(?:\.[a-zA-Z_]\w*)*\{/, "type", "@gen"],
|
||||||
|
[/([a-zA-Z_]\w*(?:\.[a-zA-Z_]\w*)*)(\s*<:\s*)/, ["type", "keyword"]],
|
||||||
|
[/[a-zA-Z_]\w*(?:\.[a-zA-Z_]\w*)*/, "type", "@pop"],
|
||||||
|
["", "", "@pop"]
|
||||||
|
],
|
||||||
|
gen: [
|
||||||
|
[/[a-zA-Z_]\w*(?:\.[a-zA-Z_]\w*)*\{/, "type", "@push"],
|
||||||
|
[/[a-zA-Z_]\w*(?:\.[a-zA-Z_]\w*)*/, "type"],
|
||||||
|
[/<:/, "keyword"],
|
||||||
|
[/(\})(\s*<:\s*)/, ["type", { token: "keyword", next: "@pop" }]],
|
||||||
|
[/\}/, "type", "@pop"],
|
||||||
|
{ include: "@root" }
|
||||||
|
],
|
||||||
|
quote: [
|
||||||
|
[/\$\(/, "key", "@paste"],
|
||||||
|
[/\(/, "@brackets", "@paren"],
|
||||||
|
[/\)/, "metatag", "@pop"],
|
||||||
|
{ include: "@root" }
|
||||||
|
],
|
||||||
|
paste: [
|
||||||
|
[/:\(/, "metatag", "@quote"],
|
||||||
|
[/\(/, "@brackets", "@paren"],
|
||||||
|
[/\)/, "key", "@pop"],
|
||||||
|
{ include: "@root" }
|
||||||
|
],
|
||||||
|
paren: [
|
||||||
|
[/\$\(/, "key", "@paste"],
|
||||||
|
[/:\(/, "metatag", "@quote"],
|
||||||
|
[/\(/, "@brackets", "@push"],
|
||||||
|
[/\)/, "@brackets", "@pop"],
|
||||||
|
{ include: "@root" }
|
||||||
|
],
|
||||||
|
sregexp: [
|
||||||
|
[/^.*/, "invalid"],
|
||||||
|
[/[^\\"()\[\]{}]/, "regexp"],
|
||||||
|
[/[()\[\]{}]/, "@brackets"],
|
||||||
|
[/\\./, "operator.scss"],
|
||||||
|
[/"[imsx]*/, "regexp.delim", "@pop"]
|
||||||
|
],
|
||||||
|
tregexp: [
|
||||||
|
[/[^\\"()\[\]{}]/, "regexp"],
|
||||||
|
[/[()\[\]{}]/, "@brackets"],
|
||||||
|
[/\\./, "operator.scss"],
|
||||||
|
[/"(?!"")/, "string"],
|
||||||
|
[/"""[imsx]*/, "regexp.delim", "@pop"]
|
||||||
|
],
|
||||||
|
rsstring: [
|
||||||
|
[/^.*/, "invalid"],
|
||||||
|
[/[^\\"]/, "string"],
|
||||||
|
[/\\./, "string.escape"],
|
||||||
|
[/"/, "string.delim", "@pop"]
|
||||||
|
],
|
||||||
|
rtstring: [
|
||||||
|
[/[^\\"]/, "string"],
|
||||||
|
[/\\./, "string.escape"],
|
||||||
|
[/"(?!"")/, "string"],
|
||||||
|
[/"""/, "string.delim", "@pop"]
|
||||||
|
],
|
||||||
|
dsstring: [
|
||||||
|
[/^.*/, "invalid"],
|
||||||
|
[/[^\\"\$]/, "string"],
|
||||||
|
[/\$/, "", "@interpolated"],
|
||||||
|
[/@escapes/, "string.escape"],
|
||||||
|
[/\\./, "string.escape.invalid"],
|
||||||
|
[/"/, "string.delim", "@pop"]
|
||||||
|
],
|
||||||
|
dtstring: [
|
||||||
|
[/[^\\"\$]/, "string"],
|
||||||
|
[/\$/, "", "@interpolated"],
|
||||||
|
[/@escapes/, "string.escape"],
|
||||||
|
[/\\./, "string.escape.invalid"],
|
||||||
|
[/"(?!"")/, "string"],
|
||||||
|
[/"""/, "string.delim", "@pop"]
|
||||||
|
],
|
||||||
|
interpolated: [
|
||||||
|
[/\(/, { token: "", switchTo: "@interpolated_compound" }],
|
||||||
|
[/[a-zA-Z_]\w*/, "identifier"],
|
||||||
|
["", "", "@pop"]
|
||||||
|
],
|
||||||
|
interpolated_compound: [[/\)/, "", "@pop"], { include: "@root" }],
|
||||||
|
whitespace: [
|
||||||
|
[/[ \t\r\n]+/, ""],
|
||||||
|
[/#=/, "comment", "@multi_comment"],
|
||||||
|
[/#.*$/, "comment"]
|
||||||
|
],
|
||||||
|
multi_comment: [
|
||||||
|
[/#=/, "comment", "@push"],
|
||||||
|
[/=#/, "comment", "@pop"],
|
||||||
|
[/=(?!#)|#(?!=)/, "comment"],
|
||||||
|
[/[^#=]+/, "comment"]
|
||||||
|
]
|
||||||
|
}
|
||||||
|
};
|
||||||
|
return __toCommonJS(julia_exports);
|
||||||
|
})();
|
||||||
|
return moduleExports;
|
||||||
|
});
|
||||||
@@ -0,0 +1,277 @@
|
|||||||
|
/*!-----------------------------------------------------------------------------
|
||||||
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||||
|
* Version: 0.33.0(4b1abad427e58dbedc1215d99a0902ffc885fcd4)
|
||||||
|
* Released under the MIT license
|
||||||
|
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
||||||
|
*-----------------------------------------------------------------------------*/
|
||||||
|
define("vs/basic-languages/kotlin/kotlin", ["require"],(require)=>{
|
||||||
|
var moduleExports = (() => {
|
||||||
|
var __defProp = Object.defineProperty;
|
||||||
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||||
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||||
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||||
|
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
||||||
|
var __export = (target, all) => {
|
||||||
|
for (var name in all)
|
||||||
|
__defProp(target, name, { get: all[name], enumerable: true });
|
||||||
|
};
|
||||||
|
var __reExport = (target, module, copyDefault, desc) => {
|
||||||
|
if (module && typeof module === "object" || typeof module === "function") {
|
||||||
|
for (let key of __getOwnPropNames(module))
|
||||||
|
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
||||||
|
__defProp(target, key, { get: () => module[key], enumerable: !(desc = __getOwnPropDesc(module, key)) || desc.enumerable });
|
||||||
|
}
|
||||||
|
return target;
|
||||||
|
};
|
||||||
|
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
||||||
|
return (module, temp) => {
|
||||||
|
return cache && cache.get(module) || (temp = __reExport(__markAsModule({}), module, 1), cache && cache.set(module, temp), temp);
|
||||||
|
};
|
||||||
|
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
||||||
|
|
||||||
|
// src/basic-languages/kotlin/kotlin.ts
|
||||||
|
var kotlin_exports = {};
|
||||||
|
__export(kotlin_exports, {
|
||||||
|
conf: () => conf,
|
||||||
|
language: () => language
|
||||||
|
});
|
||||||
|
var conf = {
|
||||||
|
wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,
|
||||||
|
comments: {
|
||||||
|
lineComment: "//",
|
||||||
|
blockComment: ["/*", "*/"]
|
||||||
|
},
|
||||||
|
brackets: [
|
||||||
|
["{", "}"],
|
||||||
|
["[", "]"],
|
||||||
|
["(", ")"]
|
||||||
|
],
|
||||||
|
autoClosingPairs: [
|
||||||
|
{ open: "{", close: "}" },
|
||||||
|
{ open: "[", close: "]" },
|
||||||
|
{ open: "(", close: ")" },
|
||||||
|
{ open: '"', close: '"' },
|
||||||
|
{ open: "'", close: "'" }
|
||||||
|
],
|
||||||
|
surroundingPairs: [
|
||||||
|
{ open: "{", close: "}" },
|
||||||
|
{ open: "[", close: "]" },
|
||||||
|
{ open: "(", close: ")" },
|
||||||
|
{ open: '"', close: '"' },
|
||||||
|
{ open: "'", close: "'" },
|
||||||
|
{ open: "<", close: ">" }
|
||||||
|
],
|
||||||
|
folding: {
|
||||||
|
markers: {
|
||||||
|
start: new RegExp("^\\s*//\\s*(?:(?:#?region\\b)|(?:<editor-fold\\b))"),
|
||||||
|
end: new RegExp("^\\s*//\\s*(?:(?:#?endregion\\b)|(?:</editor-fold>))")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
var language = {
|
||||||
|
defaultToken: "",
|
||||||
|
tokenPostfix: ".kt",
|
||||||
|
keywords: [
|
||||||
|
"as",
|
||||||
|
"as?",
|
||||||
|
"break",
|
||||||
|
"class",
|
||||||
|
"continue",
|
||||||
|
"do",
|
||||||
|
"else",
|
||||||
|
"false",
|
||||||
|
"for",
|
||||||
|
"fun",
|
||||||
|
"if",
|
||||||
|
"in",
|
||||||
|
"!in",
|
||||||
|
"interface",
|
||||||
|
"is",
|
||||||
|
"!is",
|
||||||
|
"null",
|
||||||
|
"object",
|
||||||
|
"package",
|
||||||
|
"return",
|
||||||
|
"super",
|
||||||
|
"this",
|
||||||
|
"throw",
|
||||||
|
"true",
|
||||||
|
"try",
|
||||||
|
"typealias",
|
||||||
|
"val",
|
||||||
|
"var",
|
||||||
|
"when",
|
||||||
|
"while",
|
||||||
|
"by",
|
||||||
|
"catch",
|
||||||
|
"constructor",
|
||||||
|
"delegate",
|
||||||
|
"dynamic",
|
||||||
|
"field",
|
||||||
|
"file",
|
||||||
|
"finally",
|
||||||
|
"get",
|
||||||
|
"import",
|
||||||
|
"init",
|
||||||
|
"param",
|
||||||
|
"property",
|
||||||
|
"receiver",
|
||||||
|
"set",
|
||||||
|
"setparam",
|
||||||
|
"where",
|
||||||
|
"actual",
|
||||||
|
"abstract",
|
||||||
|
"annotation",
|
||||||
|
"companion",
|
||||||
|
"const",
|
||||||
|
"crossinline",
|
||||||
|
"data",
|
||||||
|
"enum",
|
||||||
|
"expect",
|
||||||
|
"external",
|
||||||
|
"final",
|
||||||
|
"infix",
|
||||||
|
"inline",
|
||||||
|
"inner",
|
||||||
|
"internal",
|
||||||
|
"lateinit",
|
||||||
|
"noinline",
|
||||||
|
"open",
|
||||||
|
"operator",
|
||||||
|
"out",
|
||||||
|
"override",
|
||||||
|
"private",
|
||||||
|
"protected",
|
||||||
|
"public",
|
||||||
|
"reified",
|
||||||
|
"sealed",
|
||||||
|
"suspend",
|
||||||
|
"tailrec",
|
||||||
|
"vararg",
|
||||||
|
"field",
|
||||||
|
"it"
|
||||||
|
],
|
||||||
|
operators: [
|
||||||
|
"+",
|
||||||
|
"-",
|
||||||
|
"*",
|
||||||
|
"/",
|
||||||
|
"%",
|
||||||
|
"=",
|
||||||
|
"+=",
|
||||||
|
"-=",
|
||||||
|
"*=",
|
||||||
|
"/=",
|
||||||
|
"%=",
|
||||||
|
"++",
|
||||||
|
"--",
|
||||||
|
"&&",
|
||||||
|
"||",
|
||||||
|
"!",
|
||||||
|
"==",
|
||||||
|
"!=",
|
||||||
|
"===",
|
||||||
|
"!==",
|
||||||
|
">",
|
||||||
|
"<",
|
||||||
|
"<=",
|
||||||
|
">=",
|
||||||
|
"[",
|
||||||
|
"]",
|
||||||
|
"!!",
|
||||||
|
"?.",
|
||||||
|
"?:",
|
||||||
|
"::",
|
||||||
|
"..",
|
||||||
|
":",
|
||||||
|
"?",
|
||||||
|
"->",
|
||||||
|
"@",
|
||||||
|
";",
|
||||||
|
"$",
|
||||||
|
"_"
|
||||||
|
],
|
||||||
|
symbols: /[=><!~?:&|+\-*\/\^%]+/,
|
||||||
|
escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
|
||||||
|
digits: /\d+(_+\d+)*/,
|
||||||
|
octaldigits: /[0-7]+(_+[0-7]+)*/,
|
||||||
|
binarydigits: /[0-1]+(_+[0-1]+)*/,
|
||||||
|
hexdigits: /[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/,
|
||||||
|
tokenizer: {
|
||||||
|
root: [
|
||||||
|
[/[A-Z][\w\$]*/, "type.identifier"],
|
||||||
|
[
|
||||||
|
/[a-zA-Z_$][\w$]*/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"@keywords": { token: "keyword.$0" },
|
||||||
|
"@default": "identifier"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
{ include: "@whitespace" },
|
||||||
|
[/[{}()\[\]]/, "@brackets"],
|
||||||
|
[/[<>](?!@symbols)/, "@brackets"],
|
||||||
|
[
|
||||||
|
/@symbols/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"@operators": "delimiter",
|
||||||
|
"@default": ""
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/@\s*[a-zA-Z_\$][\w\$]*/, "annotation"],
|
||||||
|
[/(@digits)[eE]([\-+]?(@digits))?[fFdD]?/, "number.float"],
|
||||||
|
[/(@digits)\.(@digits)([eE][\-+]?(@digits))?[fFdD]?/, "number.float"],
|
||||||
|
[/0[xX](@hexdigits)[Ll]?/, "number.hex"],
|
||||||
|
[/0(@octaldigits)[Ll]?/, "number.octal"],
|
||||||
|
[/0[bB](@binarydigits)[Ll]?/, "number.binary"],
|
||||||
|
[/(@digits)[fFdD]/, "number.float"],
|
||||||
|
[/(@digits)[lL]?/, "number"],
|
||||||
|
[/[;,.]/, "delimiter"],
|
||||||
|
[/"([^"\\]|\\.)*$/, "string.invalid"],
|
||||||
|
[/"""/, "string", "@multistring"],
|
||||||
|
[/"/, "string", "@string"],
|
||||||
|
[/'[^\\']'/, "string"],
|
||||||
|
[/(')(@escapes)(')/, ["string", "string.escape", "string"]],
|
||||||
|
[/'/, "string.invalid"]
|
||||||
|
],
|
||||||
|
whitespace: [
|
||||||
|
[/[ \t\r\n]+/, ""],
|
||||||
|
[/\/\*\*(?!\/)/, "comment.doc", "@javadoc"],
|
||||||
|
[/\/\*/, "comment", "@comment"],
|
||||||
|
[/\/\/.*$/, "comment"]
|
||||||
|
],
|
||||||
|
comment: [
|
||||||
|
[/[^\/*]+/, "comment"],
|
||||||
|
[/\/\*/, "comment", "@comment"],
|
||||||
|
[/\*\//, "comment", "@pop"],
|
||||||
|
[/[\/*]/, "comment"]
|
||||||
|
],
|
||||||
|
javadoc: [
|
||||||
|
[/[^\/*]+/, "comment.doc"],
|
||||||
|
[/\/\*/, "comment.doc", "@push"],
|
||||||
|
[/\/\*/, "comment.doc.invalid"],
|
||||||
|
[/\*\//, "comment.doc", "@pop"],
|
||||||
|
[/[\/*]/, "comment.doc"]
|
||||||
|
],
|
||||||
|
string: [
|
||||||
|
[/[^\\"]+/, "string"],
|
||||||
|
[/@escapes/, "string.escape"],
|
||||||
|
[/\\./, "string.escape.invalid"],
|
||||||
|
[/"/, "string", "@pop"]
|
||||||
|
],
|
||||||
|
multistring: [
|
||||||
|
[/[^\\"]+/, "string"],
|
||||||
|
[/@escapes/, "string.escape"],
|
||||||
|
[/\\./, "string.escape.invalid"],
|
||||||
|
[/"""/, "string", "@pop"],
|
||||||
|
[/./, "string"]
|
||||||
|
]
|
||||||
|
}
|
||||||
|
};
|
||||||
|
return __toCommonJS(kotlin_exports);
|
||||||
|
})();
|
||||||
|
return moduleExports;
|
||||||
|
});
|
||||||
@@ -0,0 +1,199 @@
|
|||||||
|
/*!-----------------------------------------------------------------------------
|
||||||
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||||
|
* Version: 0.33.0(4b1abad427e58dbedc1215d99a0902ffc885fcd4)
|
||||||
|
* Released under the MIT license
|
||||||
|
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
||||||
|
*-----------------------------------------------------------------------------*/
|
||||||
|
define("vs/basic-languages/less/less", ["require"],(require)=>{
|
||||||
|
var moduleExports = (() => {
|
||||||
|
var __defProp = Object.defineProperty;
|
||||||
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||||
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||||
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||||
|
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
||||||
|
var __export = (target, all) => {
|
||||||
|
for (var name in all)
|
||||||
|
__defProp(target, name, { get: all[name], enumerable: true });
|
||||||
|
};
|
||||||
|
var __reExport = (target, module, copyDefault, desc) => {
|
||||||
|
if (module && typeof module === "object" || typeof module === "function") {
|
||||||
|
for (let key of __getOwnPropNames(module))
|
||||||
|
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
||||||
|
__defProp(target, key, { get: () => module[key], enumerable: !(desc = __getOwnPropDesc(module, key)) || desc.enumerable });
|
||||||
|
}
|
||||||
|
return target;
|
||||||
|
};
|
||||||
|
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
||||||
|
return (module, temp) => {
|
||||||
|
return cache && cache.get(module) || (temp = __reExport(__markAsModule({}), module, 1), cache && cache.set(module, temp), temp);
|
||||||
|
};
|
||||||
|
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
||||||
|
|
||||||
|
// src/basic-languages/less/less.ts
|
||||||
|
var less_exports = {};
|
||||||
|
__export(less_exports, {
|
||||||
|
conf: () => conf,
|
||||||
|
language: () => language
|
||||||
|
});
|
||||||
|
var conf = {
|
||||||
|
wordPattern: /(#?-?\d*\.\d\w*%?)|([@#!.:]?[\w-?]+%?)|[@#!.]/g,
|
||||||
|
comments: {
|
||||||
|
blockComment: ["/*", "*/"],
|
||||||
|
lineComment: "//"
|
||||||
|
},
|
||||||
|
brackets: [
|
||||||
|
["{", "}"],
|
||||||
|
["[", "]"],
|
||||||
|
["(", ")"]
|
||||||
|
],
|
||||||
|
autoClosingPairs: [
|
||||||
|
{ open: "{", close: "}", notIn: ["string", "comment"] },
|
||||||
|
{ open: "[", close: "]", notIn: ["string", "comment"] },
|
||||||
|
{ open: "(", close: ")", notIn: ["string", "comment"] },
|
||||||
|
{ open: '"', close: '"', notIn: ["string", "comment"] },
|
||||||
|
{ open: "'", close: "'", notIn: ["string", "comment"] }
|
||||||
|
],
|
||||||
|
surroundingPairs: [
|
||||||
|
{ open: "{", close: "}" },
|
||||||
|
{ open: "[", close: "]" },
|
||||||
|
{ open: "(", close: ")" },
|
||||||
|
{ open: '"', close: '"' },
|
||||||
|
{ open: "'", close: "'" }
|
||||||
|
],
|
||||||
|
folding: {
|
||||||
|
markers: {
|
||||||
|
start: new RegExp("^\\s*\\/\\*\\s*#region\\b\\s*(.*?)\\s*\\*\\/"),
|
||||||
|
end: new RegExp("^\\s*\\/\\*\\s*#endregion\\b.*\\*\\/")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
var language = {
|
||||||
|
defaultToken: "",
|
||||||
|
tokenPostfix: ".less",
|
||||||
|
identifier: "-?-?([a-zA-Z]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))([\\w\\-]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))*",
|
||||||
|
identifierPlus: "-?-?([a-zA-Z:.]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))([\\w\\-:.]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))*",
|
||||||
|
brackets: [
|
||||||
|
{ open: "{", close: "}", token: "delimiter.curly" },
|
||||||
|
{ open: "[", close: "]", token: "delimiter.bracket" },
|
||||||
|
{ open: "(", close: ")", token: "delimiter.parenthesis" },
|
||||||
|
{ open: "<", close: ">", token: "delimiter.angle" }
|
||||||
|
],
|
||||||
|
tokenizer: {
|
||||||
|
root: [
|
||||||
|
{ include: "@nestedJSBegin" },
|
||||||
|
["[ \\t\\r\\n]+", ""],
|
||||||
|
{ include: "@comments" },
|
||||||
|
{ include: "@keyword" },
|
||||||
|
{ include: "@strings" },
|
||||||
|
{ include: "@numbers" },
|
||||||
|
["[*_]?[a-zA-Z\\-\\s]+(?=:.*(;|(\\\\$)))", "attribute.name", "@attribute"],
|
||||||
|
["url(\\-prefix)?\\(", { token: "tag", next: "@urldeclaration" }],
|
||||||
|
["[{}()\\[\\]]", "@brackets"],
|
||||||
|
["[,:;]", "delimiter"],
|
||||||
|
["#@identifierPlus", "tag.id"],
|
||||||
|
["&", "tag"],
|
||||||
|
["\\.@identifierPlus(?=\\()", "tag.class", "@attribute"],
|
||||||
|
["\\.@identifierPlus", "tag.class"],
|
||||||
|
["@identifierPlus", "tag"],
|
||||||
|
{ include: "@operators" },
|
||||||
|
["@(@identifier(?=[:,\\)]))", "variable", "@attribute"],
|
||||||
|
["@(@identifier)", "variable"],
|
||||||
|
["@", "key", "@atRules"]
|
||||||
|
],
|
||||||
|
nestedJSBegin: [
|
||||||
|
["``", "delimiter.backtick"],
|
||||||
|
[
|
||||||
|
"`",
|
||||||
|
{
|
||||||
|
token: "delimiter.backtick",
|
||||||
|
next: "@nestedJSEnd",
|
||||||
|
nextEmbedded: "text/javascript"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
],
|
||||||
|
nestedJSEnd: [
|
||||||
|
[
|
||||||
|
"`",
|
||||||
|
{
|
||||||
|
token: "delimiter.backtick",
|
||||||
|
next: "@pop",
|
||||||
|
nextEmbedded: "@pop"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
],
|
||||||
|
operators: [["[<>=\\+\\-\\*\\/\\^\\|\\~]", "operator"]],
|
||||||
|
keyword: [
|
||||||
|
[
|
||||||
|
"(@[\\s]*import|![\\s]*important|true|false|when|iscolor|isnumber|isstring|iskeyword|isurl|ispixel|ispercentage|isem|hue|saturation|lightness|alpha|lighten|darken|saturate|desaturate|fadein|fadeout|fade|spin|mix|round|ceil|floor|percentage)\\b",
|
||||||
|
"keyword"
|
||||||
|
]
|
||||||
|
],
|
||||||
|
urldeclaration: [
|
||||||
|
{ include: "@strings" },
|
||||||
|
["[^)\r\n]+", "string"],
|
||||||
|
["\\)", { token: "tag", next: "@pop" }]
|
||||||
|
],
|
||||||
|
attribute: [
|
||||||
|
{ include: "@nestedJSBegin" },
|
||||||
|
{ include: "@comments" },
|
||||||
|
{ include: "@strings" },
|
||||||
|
{ include: "@numbers" },
|
||||||
|
{ include: "@keyword" },
|
||||||
|
["[a-zA-Z\\-]+(?=\\()", "attribute.value", "@attribute"],
|
||||||
|
[">", "operator", "@pop"],
|
||||||
|
["@identifier", "attribute.value"],
|
||||||
|
{ include: "@operators" },
|
||||||
|
["@(@identifier)", "variable"],
|
||||||
|
["[)\\}]", "@brackets", "@pop"],
|
||||||
|
["[{}()\\[\\]>]", "@brackets"],
|
||||||
|
["[;]", "delimiter", "@pop"],
|
||||||
|
["[,=:]", "delimiter"],
|
||||||
|
["\\s", ""],
|
||||||
|
[".", "attribute.value"]
|
||||||
|
],
|
||||||
|
comments: [
|
||||||
|
["\\/\\*", "comment", "@comment"],
|
||||||
|
["\\/\\/+.*", "comment"]
|
||||||
|
],
|
||||||
|
comment: [
|
||||||
|
["\\*\\/", "comment", "@pop"],
|
||||||
|
[".", "comment"]
|
||||||
|
],
|
||||||
|
numbers: [
|
||||||
|
["(\\d*\\.)?\\d+([eE][\\-+]?\\d+)?", { token: "attribute.value.number", next: "@units" }],
|
||||||
|
["#[0-9a-fA-F_]+(?!\\w)", "attribute.value.hex"]
|
||||||
|
],
|
||||||
|
units: [
|
||||||
|
[
|
||||||
|
"(em|ex|ch|rem|vmin|vmax|vw|vh|vm|cm|mm|in|px|pt|pc|deg|grad|rad|turn|s|ms|Hz|kHz|%)?",
|
||||||
|
"attribute.value.unit",
|
||||||
|
"@pop"
|
||||||
|
]
|
||||||
|
],
|
||||||
|
strings: [
|
||||||
|
['~?"', { token: "string.delimiter", next: "@stringsEndDoubleQuote" }],
|
||||||
|
["~?'", { token: "string.delimiter", next: "@stringsEndQuote" }]
|
||||||
|
],
|
||||||
|
stringsEndDoubleQuote: [
|
||||||
|
['\\\\"', "string"],
|
||||||
|
['"', { token: "string.delimiter", next: "@popall" }],
|
||||||
|
[".", "string"]
|
||||||
|
],
|
||||||
|
stringsEndQuote: [
|
||||||
|
["\\\\'", "string"],
|
||||||
|
["'", { token: "string.delimiter", next: "@popall" }],
|
||||||
|
[".", "string"]
|
||||||
|
],
|
||||||
|
atRules: [
|
||||||
|
{ include: "@comments" },
|
||||||
|
{ include: "@strings" },
|
||||||
|
["[()]", "delimiter"],
|
||||||
|
["[\\{;]", "delimiter", "@pop"],
|
||||||
|
[".", "key"]
|
||||||
|
]
|
||||||
|
}
|
||||||
|
};
|
||||||
|
return __toCommonJS(less_exports);
|
||||||
|
})();
|
||||||
|
return moduleExports;
|
||||||
|
});
|
||||||
@@ -0,0 +1,183 @@
|
|||||||
|
/*!-----------------------------------------------------------------------------
|
||||||
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||||
|
* Version: 0.33.0(4b1abad427e58dbedc1215d99a0902ffc885fcd4)
|
||||||
|
* Released under the MIT license
|
||||||
|
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
||||||
|
*-----------------------------------------------------------------------------*/
|
||||||
|
define("vs/basic-languages/lexon/lexon", ["require"],(require)=>{
|
||||||
|
var moduleExports = (() => {
|
||||||
|
var __defProp = Object.defineProperty;
|
||||||
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||||
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||||
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||||
|
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
||||||
|
var __export = (target, all) => {
|
||||||
|
for (var name in all)
|
||||||
|
__defProp(target, name, { get: all[name], enumerable: true });
|
||||||
|
};
|
||||||
|
var __reExport = (target, module, copyDefault, desc) => {
|
||||||
|
if (module && typeof module === "object" || typeof module === "function") {
|
||||||
|
for (let key of __getOwnPropNames(module))
|
||||||
|
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
||||||
|
__defProp(target, key, { get: () => module[key], enumerable: !(desc = __getOwnPropDesc(module, key)) || desc.enumerable });
|
||||||
|
}
|
||||||
|
return target;
|
||||||
|
};
|
||||||
|
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
||||||
|
return (module, temp) => {
|
||||||
|
return cache && cache.get(module) || (temp = __reExport(__markAsModule({}), module, 1), cache && cache.set(module, temp), temp);
|
||||||
|
};
|
||||||
|
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
||||||
|
|
||||||
|
// src/basic-languages/lexon/lexon.ts
|
||||||
|
var lexon_exports = {};
|
||||||
|
__export(lexon_exports, {
|
||||||
|
conf: () => conf,
|
||||||
|
language: () => language
|
||||||
|
});
|
||||||
|
var conf = {
|
||||||
|
comments: {
|
||||||
|
lineComment: "COMMENT"
|
||||||
|
},
|
||||||
|
brackets: [["(", ")"]],
|
||||||
|
autoClosingPairs: [
|
||||||
|
{ open: "{", close: "}" },
|
||||||
|
{ open: "[", close: "]" },
|
||||||
|
{ open: "(", close: ")" },
|
||||||
|
{ open: '"', close: '"' },
|
||||||
|
{ open: ":", close: "." }
|
||||||
|
],
|
||||||
|
surroundingPairs: [
|
||||||
|
{ open: "{", close: "}" },
|
||||||
|
{ open: "[", close: "]" },
|
||||||
|
{ open: "(", close: ")" },
|
||||||
|
{ open: "`", close: "`" },
|
||||||
|
{ open: '"', close: '"' },
|
||||||
|
{ open: "'", close: "'" },
|
||||||
|
{ open: ":", close: "." }
|
||||||
|
],
|
||||||
|
folding: {
|
||||||
|
markers: {
|
||||||
|
start: new RegExp("^\\s*(::\\s*|COMMENT\\s+)#region"),
|
||||||
|
end: new RegExp("^\\s*(::\\s*|COMMENT\\s+)#endregion")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
var language = {
|
||||||
|
tokenPostfix: ".lexon",
|
||||||
|
ignoreCase: true,
|
||||||
|
keywords: [
|
||||||
|
"lexon",
|
||||||
|
"lex",
|
||||||
|
"clause",
|
||||||
|
"terms",
|
||||||
|
"contracts",
|
||||||
|
"may",
|
||||||
|
"pay",
|
||||||
|
"pays",
|
||||||
|
"appoints",
|
||||||
|
"into",
|
||||||
|
"to"
|
||||||
|
],
|
||||||
|
typeKeywords: ["amount", "person", "key", "time", "date", "asset", "text"],
|
||||||
|
operators: [
|
||||||
|
"less",
|
||||||
|
"greater",
|
||||||
|
"equal",
|
||||||
|
"le",
|
||||||
|
"gt",
|
||||||
|
"or",
|
||||||
|
"and",
|
||||||
|
"add",
|
||||||
|
"added",
|
||||||
|
"subtract",
|
||||||
|
"subtracted",
|
||||||
|
"multiply",
|
||||||
|
"multiplied",
|
||||||
|
"times",
|
||||||
|
"divide",
|
||||||
|
"divided",
|
||||||
|
"is",
|
||||||
|
"be",
|
||||||
|
"certified"
|
||||||
|
],
|
||||||
|
symbols: /[=><!~?:&|+\-*\/\^%]+/,
|
||||||
|
tokenizer: {
|
||||||
|
root: [
|
||||||
|
[/^(\s*)(comment:?(?:\s.*|))$/, ["", "comment"]],
|
||||||
|
[
|
||||||
|
/"/,
|
||||||
|
{
|
||||||
|
token: "identifier.quote",
|
||||||
|
bracket: "@open",
|
||||||
|
next: "@quoted_identifier"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"LEX$",
|
||||||
|
{
|
||||||
|
token: "keyword",
|
||||||
|
bracket: "@open",
|
||||||
|
next: "@identifier_until_period"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
["LEXON", { token: "keyword", bracket: "@open", next: "@semver" }],
|
||||||
|
[
|
||||||
|
":",
|
||||||
|
{
|
||||||
|
token: "delimiter",
|
||||||
|
bracket: "@open",
|
||||||
|
next: "@identifier_until_period"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[
|
||||||
|
/[a-z_$][\w$]*/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"@operators": "operator",
|
||||||
|
"@typeKeywords": "keyword.type",
|
||||||
|
"@keywords": "keyword",
|
||||||
|
"@default": "identifier"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
{ include: "@whitespace" },
|
||||||
|
[/[{}()\[\]]/, "@brackets"],
|
||||||
|
[/[<>](?!@symbols)/, "@brackets"],
|
||||||
|
[/@symbols/, "delimiter"],
|
||||||
|
[/\d*\.\d*\.\d*/, "number.semver"],
|
||||||
|
[/\d*\.\d+([eE][\-+]?\d+)?/, "number.float"],
|
||||||
|
[/0[xX][0-9a-fA-F]+/, "number.hex"],
|
||||||
|
[/\d+/, "number"],
|
||||||
|
[/[;,.]/, "delimiter"]
|
||||||
|
],
|
||||||
|
quoted_identifier: [
|
||||||
|
[/[^\\"]+/, "identifier"],
|
||||||
|
[/"/, { token: "identifier.quote", bracket: "@close", next: "@pop" }]
|
||||||
|
],
|
||||||
|
space_identifier_until_period: [
|
||||||
|
[":", "delimiter"],
|
||||||
|
[" ", { token: "white", next: "@identifier_rest" }]
|
||||||
|
],
|
||||||
|
identifier_until_period: [
|
||||||
|
{ include: "@whitespace" },
|
||||||
|
[":", { token: "delimiter", next: "@identifier_rest" }],
|
||||||
|
[/[^\\.]+/, "identifier"],
|
||||||
|
[/\./, { token: "delimiter", bracket: "@close", next: "@pop" }]
|
||||||
|
],
|
||||||
|
identifier_rest: [
|
||||||
|
[/[^\\.]+/, "identifier"],
|
||||||
|
[/\./, { token: "delimiter", bracket: "@close", next: "@pop" }]
|
||||||
|
],
|
||||||
|
semver: [
|
||||||
|
{ include: "@whitespace" },
|
||||||
|
[":", "delimiter"],
|
||||||
|
[/\d*\.\d*\.\d*/, { token: "number.semver", bracket: "@close", next: "@pop" }]
|
||||||
|
],
|
||||||
|
whitespace: [[/[ \t\r\n]+/, "white"]]
|
||||||
|
}
|
||||||
|
};
|
||||||
|
return __toCommonJS(lexon_exports);
|
||||||
|
})();
|
||||||
|
return moduleExports;
|
||||||
|
});
|
||||||
@@ -0,0 +1,292 @@
|
|||||||
|
/*!-----------------------------------------------------------------------------
|
||||||
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||||
|
* Version: 0.33.0(4b1abad427e58dbedc1215d99a0902ffc885fcd4)
|
||||||
|
* Released under the MIT license
|
||||||
|
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
||||||
|
*-----------------------------------------------------------------------------*/
|
||||||
|
define("vs/basic-languages/liquid/liquid", ["require"],(require)=>{
|
||||||
|
var moduleExports = (() => {
|
||||||
|
var __create = Object.create;
|
||||||
|
var __defProp = Object.defineProperty;
|
||||||
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||||
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||||
|
var __getProtoOf = Object.getPrototypeOf;
|
||||||
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||||
|
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
||||||
|
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
||||||
|
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
||||||
|
}) : x)(function(x) {
|
||||||
|
if (typeof require !== "undefined")
|
||||||
|
return require.apply(this, arguments);
|
||||||
|
throw new Error('Dynamic require of "' + x + '" is not supported');
|
||||||
|
});
|
||||||
|
var __commonJS = (cb, mod) => function __require2() {
|
||||||
|
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
||||||
|
};
|
||||||
|
var __export = (target, all) => {
|
||||||
|
for (var name in all)
|
||||||
|
__defProp(target, name, { get: all[name], enumerable: true });
|
||||||
|
};
|
||||||
|
var __reExport = (target, module, copyDefault, desc) => {
|
||||||
|
if (module && typeof module === "object" || typeof module === "function") {
|
||||||
|
for (let key of __getOwnPropNames(module))
|
||||||
|
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
||||||
|
__defProp(target, key, { get: () => module[key], enumerable: !(desc = __getOwnPropDesc(module, key)) || desc.enumerable });
|
||||||
|
}
|
||||||
|
return target;
|
||||||
|
};
|
||||||
|
var __toESM = (module, isNodeMode) => {
|
||||||
|
return __reExport(__markAsModule(__defProp(module != null ? __create(__getProtoOf(module)) : {}, "default", !isNodeMode && module && module.__esModule ? { get: () => module.default, enumerable: true } : { value: module, enumerable: true })), module);
|
||||||
|
};
|
||||||
|
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
||||||
|
return (module, temp) => {
|
||||||
|
return cache && cache.get(module) || (temp = __reExport(__markAsModule({}), module, 1), cache && cache.set(module, temp), temp);
|
||||||
|
};
|
||||||
|
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
||||||
|
|
||||||
|
// src/fillers/monaco-editor-core-amd.ts
|
||||||
|
var require_monaco_editor_core_amd = __commonJS({
|
||||||
|
"src/fillers/monaco-editor-core-amd.ts"(exports, module) {
|
||||||
|
var api = __toESM(__require("vs/editor/editor.api"));
|
||||||
|
module.exports = api;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
// src/basic-languages/liquid/liquid.ts
|
||||||
|
var liquid_exports = {};
|
||||||
|
__export(liquid_exports, {
|
||||||
|
conf: () => conf,
|
||||||
|
language: () => language
|
||||||
|
});
|
||||||
|
|
||||||
|
// src/fillers/monaco-editor-core.ts
|
||||||
|
var monaco_editor_core_exports = {};
|
||||||
|
__reExport(monaco_editor_core_exports, __toESM(require_monaco_editor_core_amd()));
|
||||||
|
|
||||||
|
// src/basic-languages/liquid/liquid.ts
|
||||||
|
var EMPTY_ELEMENTS = [
|
||||||
|
"area",
|
||||||
|
"base",
|
||||||
|
"br",
|
||||||
|
"col",
|
||||||
|
"embed",
|
||||||
|
"hr",
|
||||||
|
"img",
|
||||||
|
"input",
|
||||||
|
"keygen",
|
||||||
|
"link",
|
||||||
|
"menuitem",
|
||||||
|
"meta",
|
||||||
|
"param",
|
||||||
|
"source",
|
||||||
|
"track",
|
||||||
|
"wbr"
|
||||||
|
];
|
||||||
|
var conf = {
|
||||||
|
wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,
|
||||||
|
brackets: [
|
||||||
|
["<!--", "-->"],
|
||||||
|
["<", ">"],
|
||||||
|
["{{", "}}"],
|
||||||
|
["{%", "%}"],
|
||||||
|
["{", "}"],
|
||||||
|
["(", ")"]
|
||||||
|
],
|
||||||
|
autoClosingPairs: [
|
||||||
|
{ open: "{", close: "}" },
|
||||||
|
{ open: "%", close: "%" },
|
||||||
|
{ open: "[", close: "]" },
|
||||||
|
{ open: "(", close: ")" },
|
||||||
|
{ open: '"', close: '"' },
|
||||||
|
{ open: "'", close: "'" }
|
||||||
|
],
|
||||||
|
surroundingPairs: [
|
||||||
|
{ open: "<", close: ">" },
|
||||||
|
{ open: '"', close: '"' },
|
||||||
|
{ open: "'", close: "'" }
|
||||||
|
],
|
||||||
|
onEnterRules: [
|
||||||
|
{
|
||||||
|
beforeText: new RegExp(`<(?!(?:${EMPTY_ELEMENTS.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`, "i"),
|
||||||
|
afterText: /^<\/(\w[\w\d]*)\s*>$/i,
|
||||||
|
action: {
|
||||||
|
indentAction: monaco_editor_core_exports.languages.IndentAction.IndentOutdent
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
beforeText: new RegExp(`<(?!(?:${EMPTY_ELEMENTS.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`, "i"),
|
||||||
|
action: { indentAction: monaco_editor_core_exports.languages.IndentAction.Indent }
|
||||||
|
}
|
||||||
|
]
|
||||||
|
};
|
||||||
|
var language = {
|
||||||
|
defaultToken: "",
|
||||||
|
tokenPostfix: "",
|
||||||
|
builtinTags: [
|
||||||
|
"if",
|
||||||
|
"else",
|
||||||
|
"elseif",
|
||||||
|
"endif",
|
||||||
|
"render",
|
||||||
|
"assign",
|
||||||
|
"capture",
|
||||||
|
"endcapture",
|
||||||
|
"case",
|
||||||
|
"endcase",
|
||||||
|
"comment",
|
||||||
|
"endcomment",
|
||||||
|
"cycle",
|
||||||
|
"decrement",
|
||||||
|
"for",
|
||||||
|
"endfor",
|
||||||
|
"include",
|
||||||
|
"increment",
|
||||||
|
"layout",
|
||||||
|
"raw",
|
||||||
|
"endraw",
|
||||||
|
"render",
|
||||||
|
"tablerow",
|
||||||
|
"endtablerow",
|
||||||
|
"unless",
|
||||||
|
"endunless"
|
||||||
|
],
|
||||||
|
builtinFilters: [
|
||||||
|
"abs",
|
||||||
|
"append",
|
||||||
|
"at_least",
|
||||||
|
"at_most",
|
||||||
|
"capitalize",
|
||||||
|
"ceil",
|
||||||
|
"compact",
|
||||||
|
"date",
|
||||||
|
"default",
|
||||||
|
"divided_by",
|
||||||
|
"downcase",
|
||||||
|
"escape",
|
||||||
|
"escape_once",
|
||||||
|
"first",
|
||||||
|
"floor",
|
||||||
|
"join",
|
||||||
|
"json",
|
||||||
|
"last",
|
||||||
|
"lstrip",
|
||||||
|
"map",
|
||||||
|
"minus",
|
||||||
|
"modulo",
|
||||||
|
"newline_to_br",
|
||||||
|
"plus",
|
||||||
|
"prepend",
|
||||||
|
"remove",
|
||||||
|
"remove_first",
|
||||||
|
"replace",
|
||||||
|
"replace_first",
|
||||||
|
"reverse",
|
||||||
|
"round",
|
||||||
|
"rstrip",
|
||||||
|
"size",
|
||||||
|
"slice",
|
||||||
|
"sort",
|
||||||
|
"sort_natural",
|
||||||
|
"split",
|
||||||
|
"strip",
|
||||||
|
"strip_html",
|
||||||
|
"strip_newlines",
|
||||||
|
"times",
|
||||||
|
"truncate",
|
||||||
|
"truncatewords",
|
||||||
|
"uniq",
|
||||||
|
"upcase",
|
||||||
|
"url_decode",
|
||||||
|
"url_encode",
|
||||||
|
"where"
|
||||||
|
],
|
||||||
|
constants: ["true", "false"],
|
||||||
|
operators: ["==", "!=", ">", "<", ">=", "<="],
|
||||||
|
symbol: /[=><!]+/,
|
||||||
|
identifier: /[a-zA-Z_][\w]*/,
|
||||||
|
tokenizer: {
|
||||||
|
root: [
|
||||||
|
[/\{\%\s*comment\s*\%\}/, "comment.start.liquid", "@comment"],
|
||||||
|
[/\{\{/, { token: "@rematch", switchTo: "@liquidState.root" }],
|
||||||
|
[/\{\%/, { token: "@rematch", switchTo: "@liquidState.root" }],
|
||||||
|
[/(<)([\w\-]+)(\/>)/, ["delimiter.html", "tag.html", "delimiter.html"]],
|
||||||
|
[/(<)([:\w]+)/, ["delimiter.html", { token: "tag.html", next: "@otherTag" }]],
|
||||||
|
[/(<\/)([\w\-]+)/, ["delimiter.html", { token: "tag.html", next: "@otherTag" }]],
|
||||||
|
[/</, "delimiter.html"],
|
||||||
|
[/\{/, "delimiter.html"],
|
||||||
|
[/[^<{]+/]
|
||||||
|
],
|
||||||
|
comment: [
|
||||||
|
[/\{\%\s*endcomment\s*\%\}/, "comment.end.liquid", "@pop"],
|
||||||
|
[/./, "comment.content.liquid"]
|
||||||
|
],
|
||||||
|
otherTag: [
|
||||||
|
[
|
||||||
|
/\{\{/,
|
||||||
|
{
|
||||||
|
token: "@rematch",
|
||||||
|
switchTo: "@liquidState.otherTag"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[
|
||||||
|
/\{\%/,
|
||||||
|
{
|
||||||
|
token: "@rematch",
|
||||||
|
switchTo: "@liquidState.otherTag"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/\/?>/, "delimiter.html", "@pop"],
|
||||||
|
[/"([^"]*)"/, "attribute.value"],
|
||||||
|
[/'([^']*)'/, "attribute.value"],
|
||||||
|
[/[\w\-]+/, "attribute.name"],
|
||||||
|
[/=/, "delimiter"],
|
||||||
|
[/[ \t\r\n]+/]
|
||||||
|
],
|
||||||
|
liquidState: [
|
||||||
|
[/\{\{/, "delimiter.output.liquid"],
|
||||||
|
[/\}\}/, { token: "delimiter.output.liquid", switchTo: "@$S2.$S3" }],
|
||||||
|
[/\{\%/, "delimiter.tag.liquid"],
|
||||||
|
[/raw\s*\%\}/, "delimiter.tag.liquid", "@liquidRaw"],
|
||||||
|
[/\%\}/, { token: "delimiter.tag.liquid", switchTo: "@$S2.$S3" }],
|
||||||
|
{ include: "liquidRoot" }
|
||||||
|
],
|
||||||
|
liquidRaw: [
|
||||||
|
[/^(?!\{\%\s*endraw\s*\%\}).+/],
|
||||||
|
[/\{\%/, "delimiter.tag.liquid"],
|
||||||
|
[/@identifier/],
|
||||||
|
[/\%\}/, { token: "delimiter.tag.liquid", next: "@root" }]
|
||||||
|
],
|
||||||
|
liquidRoot: [
|
||||||
|
[/\d+(\.\d+)?/, "number.liquid"],
|
||||||
|
[/"[^"]*"/, "string.liquid"],
|
||||||
|
[/'[^']*'/, "string.liquid"],
|
||||||
|
[/\s+/],
|
||||||
|
[
|
||||||
|
/@symbol/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"@operators": "operator.liquid",
|
||||||
|
"@default": ""
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/\./],
|
||||||
|
[
|
||||||
|
/@identifier/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"@constants": "keyword.liquid",
|
||||||
|
"@builtinFilters": "predefined.liquid",
|
||||||
|
"@builtinTags": "predefined.liquid",
|
||||||
|
"@default": "variable.liquid"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/[^}|%]/, "variable.liquid"]
|
||||||
|
]
|
||||||
|
}
|
||||||
|
};
|
||||||
|
return __toCommonJS(liquid_exports);
|
||||||
|
})();
|
||||||
|
return moduleExports;
|
||||||
|
});
|
||||||
@@ -0,0 +1,189 @@
|
|||||||
|
/*!-----------------------------------------------------------------------------
|
||||||
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||||
|
* Version: 0.33.0(4b1abad427e58dbedc1215d99a0902ffc885fcd4)
|
||||||
|
* Released under the MIT license
|
||||||
|
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
||||||
|
*-----------------------------------------------------------------------------*/
|
||||||
|
define("vs/basic-languages/lua/lua", ["require"],(require)=>{
|
||||||
|
var moduleExports = (() => {
|
||||||
|
var __defProp = Object.defineProperty;
|
||||||
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||||
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||||
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||||
|
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
||||||
|
var __export = (target, all) => {
|
||||||
|
for (var name in all)
|
||||||
|
__defProp(target, name, { get: all[name], enumerable: true });
|
||||||
|
};
|
||||||
|
var __reExport = (target, module, copyDefault, desc) => {
|
||||||
|
if (module && typeof module === "object" || typeof module === "function") {
|
||||||
|
for (let key of __getOwnPropNames(module))
|
||||||
|
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
||||||
|
__defProp(target, key, { get: () => module[key], enumerable: !(desc = __getOwnPropDesc(module, key)) || desc.enumerable });
|
||||||
|
}
|
||||||
|
return target;
|
||||||
|
};
|
||||||
|
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
||||||
|
return (module, temp) => {
|
||||||
|
return cache && cache.get(module) || (temp = __reExport(__markAsModule({}), module, 1), cache && cache.set(module, temp), temp);
|
||||||
|
};
|
||||||
|
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
||||||
|
|
||||||
|
// src/basic-languages/lua/lua.ts
|
||||||
|
var lua_exports = {};
|
||||||
|
__export(lua_exports, {
|
||||||
|
conf: () => conf,
|
||||||
|
language: () => language
|
||||||
|
});
|
||||||
|
var conf = {
|
||||||
|
comments: {
|
||||||
|
lineComment: "--",
|
||||||
|
blockComment: ["--[[", "]]"]
|
||||||
|
},
|
||||||
|
brackets: [
|
||||||
|
["{", "}"],
|
||||||
|
["[", "]"],
|
||||||
|
["(", ")"]
|
||||||
|
],
|
||||||
|
autoClosingPairs: [
|
||||||
|
{ open: "{", close: "}" },
|
||||||
|
{ open: "[", close: "]" },
|
||||||
|
{ open: "(", close: ")" },
|
||||||
|
{ open: '"', close: '"' },
|
||||||
|
{ open: "'", close: "'" }
|
||||||
|
],
|
||||||
|
surroundingPairs: [
|
||||||
|
{ open: "{", close: "}" },
|
||||||
|
{ open: "[", close: "]" },
|
||||||
|
{ open: "(", close: ")" },
|
||||||
|
{ open: '"', close: '"' },
|
||||||
|
{ open: "'", close: "'" }
|
||||||
|
]
|
||||||
|
};
|
||||||
|
var language = {
|
||||||
|
defaultToken: "",
|
||||||
|
tokenPostfix: ".lua",
|
||||||
|
keywords: [
|
||||||
|
"and",
|
||||||
|
"break",
|
||||||
|
"do",
|
||||||
|
"else",
|
||||||
|
"elseif",
|
||||||
|
"end",
|
||||||
|
"false",
|
||||||
|
"for",
|
||||||
|
"function",
|
||||||
|
"goto",
|
||||||
|
"if",
|
||||||
|
"in",
|
||||||
|
"local",
|
||||||
|
"nil",
|
||||||
|
"not",
|
||||||
|
"or",
|
||||||
|
"repeat",
|
||||||
|
"return",
|
||||||
|
"then",
|
||||||
|
"true",
|
||||||
|
"until",
|
||||||
|
"while"
|
||||||
|
],
|
||||||
|
brackets: [
|
||||||
|
{ token: "delimiter.bracket", open: "{", close: "}" },
|
||||||
|
{ token: "delimiter.array", open: "[", close: "]" },
|
||||||
|
{ token: "delimiter.parenthesis", open: "(", close: ")" }
|
||||||
|
],
|
||||||
|
operators: [
|
||||||
|
"+",
|
||||||
|
"-",
|
||||||
|
"*",
|
||||||
|
"/",
|
||||||
|
"%",
|
||||||
|
"^",
|
||||||
|
"#",
|
||||||
|
"==",
|
||||||
|
"~=",
|
||||||
|
"<=",
|
||||||
|
">=",
|
||||||
|
"<",
|
||||||
|
">",
|
||||||
|
"=",
|
||||||
|
";",
|
||||||
|
":",
|
||||||
|
",",
|
||||||
|
".",
|
||||||
|
"..",
|
||||||
|
"..."
|
||||||
|
],
|
||||||
|
symbols: /[=><!~?:&|+\-*\/\^%]+/,
|
||||||
|
escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
|
||||||
|
tokenizer: {
|
||||||
|
root: [
|
||||||
|
[
|
||||||
|
/[a-zA-Z_]\w*/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"@keywords": { token: "keyword.$0" },
|
||||||
|
"@default": "identifier"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
{ include: "@whitespace" },
|
||||||
|
[/(,)(\s*)([a-zA-Z_]\w*)(\s*)(:)(?!:)/, ["delimiter", "", "key", "", "delimiter"]],
|
||||||
|
[/({)(\s*)([a-zA-Z_]\w*)(\s*)(:)(?!:)/, ["@brackets", "", "key", "", "delimiter"]],
|
||||||
|
[/[{}()\[\]]/, "@brackets"],
|
||||||
|
[
|
||||||
|
/@symbols/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"@operators": "delimiter",
|
||||||
|
"@default": ""
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/\d*\.\d+([eE][\-+]?\d+)?/, "number.float"],
|
||||||
|
[/0[xX][0-9a-fA-F_]*[0-9a-fA-F]/, "number.hex"],
|
||||||
|
[/\d+?/, "number"],
|
||||||
|
[/[;,.]/, "delimiter"],
|
||||||
|
[/"([^"\\]|\\.)*$/, "string.invalid"],
|
||||||
|
[/'([^'\\]|\\.)*$/, "string.invalid"],
|
||||||
|
[/"/, "string", '@string."'],
|
||||||
|
[/'/, "string", "@string.'"]
|
||||||
|
],
|
||||||
|
whitespace: [
|
||||||
|
[/[ \t\r\n]+/, ""],
|
||||||
|
[/--\[([=]*)\[/, "comment", "@comment.$1"],
|
||||||
|
[/--.*$/, "comment"]
|
||||||
|
],
|
||||||
|
comment: [
|
||||||
|
[/[^\]]+/, "comment"],
|
||||||
|
[
|
||||||
|
/\]([=]*)\]/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"$1==$S2": { token: "comment", next: "@pop" },
|
||||||
|
"@default": "comment"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/./, "comment"]
|
||||||
|
],
|
||||||
|
string: [
|
||||||
|
[/[^\\"']+/, "string"],
|
||||||
|
[/@escapes/, "string.escape"],
|
||||||
|
[/\\./, "string.escape.invalid"],
|
||||||
|
[
|
||||||
|
/["']/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"$#==$S2": { token: "string", next: "@pop" },
|
||||||
|
"@default": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
]
|
||||||
|
}
|
||||||
|
};
|
||||||
|
return __toCommonJS(lua_exports);
|
||||||
|
})();
|
||||||
|
return moduleExports;
|
||||||
|
});
|
||||||
@@ -0,0 +1,242 @@
|
|||||||
|
/*!-----------------------------------------------------------------------------
|
||||||
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||||
|
* Version: 0.33.0(4b1abad427e58dbedc1215d99a0902ffc885fcd4)
|
||||||
|
* Released under the MIT license
|
||||||
|
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
||||||
|
*-----------------------------------------------------------------------------*/
|
||||||
|
define("vs/basic-languages/m3/m3", ["require"],(require)=>{
|
||||||
|
var moduleExports = (() => {
|
||||||
|
var __defProp = Object.defineProperty;
|
||||||
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||||
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||||
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||||
|
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
||||||
|
var __export = (target, all) => {
|
||||||
|
for (var name in all)
|
||||||
|
__defProp(target, name, { get: all[name], enumerable: true });
|
||||||
|
};
|
||||||
|
var __reExport = (target, module, copyDefault, desc) => {
|
||||||
|
if (module && typeof module === "object" || typeof module === "function") {
|
||||||
|
for (let key of __getOwnPropNames(module))
|
||||||
|
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
||||||
|
__defProp(target, key, { get: () => module[key], enumerable: !(desc = __getOwnPropDesc(module, key)) || desc.enumerable });
|
||||||
|
}
|
||||||
|
return target;
|
||||||
|
};
|
||||||
|
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
||||||
|
return (module, temp) => {
|
||||||
|
return cache && cache.get(module) || (temp = __reExport(__markAsModule({}), module, 1), cache && cache.set(module, temp), temp);
|
||||||
|
};
|
||||||
|
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
||||||
|
|
||||||
|
// src/basic-languages/m3/m3.ts
|
||||||
|
var m3_exports = {};
|
||||||
|
__export(m3_exports, {
|
||||||
|
conf: () => conf,
|
||||||
|
language: () => language
|
||||||
|
});
|
||||||
|
var conf = {
|
||||||
|
comments: {
|
||||||
|
blockComment: ["(*", "*)"]
|
||||||
|
},
|
||||||
|
brackets: [
|
||||||
|
["{", "}"],
|
||||||
|
["[", "]"],
|
||||||
|
["(", ")"]
|
||||||
|
],
|
||||||
|
autoClosingPairs: [
|
||||||
|
{ open: "[", close: "]" },
|
||||||
|
{ open: "{", close: "}" },
|
||||||
|
{ open: "(", close: ")" },
|
||||||
|
{ open: "(*", close: "*)" },
|
||||||
|
{ open: "<*", close: "*>" },
|
||||||
|
{ open: "'", close: "'", notIn: ["string", "comment"] },
|
||||||
|
{ open: '"', close: '"', notIn: ["string", "comment"] }
|
||||||
|
]
|
||||||
|
};
|
||||||
|
var language = {
|
||||||
|
defaultToken: "",
|
||||||
|
tokenPostfix: ".m3",
|
||||||
|
brackets: [
|
||||||
|
{ token: "delimiter.curly", open: "{", close: "}" },
|
||||||
|
{ token: "delimiter.parenthesis", open: "(", close: ")" },
|
||||||
|
{ token: "delimiter.square", open: "[", close: "]" }
|
||||||
|
],
|
||||||
|
keywords: [
|
||||||
|
"AND",
|
||||||
|
"ANY",
|
||||||
|
"ARRAY",
|
||||||
|
"AS",
|
||||||
|
"BEGIN",
|
||||||
|
"BITS",
|
||||||
|
"BRANDED",
|
||||||
|
"BY",
|
||||||
|
"CASE",
|
||||||
|
"CONST",
|
||||||
|
"DIV",
|
||||||
|
"DO",
|
||||||
|
"ELSE",
|
||||||
|
"ELSIF",
|
||||||
|
"END",
|
||||||
|
"EVAL",
|
||||||
|
"EXCEPT",
|
||||||
|
"EXCEPTION",
|
||||||
|
"EXIT",
|
||||||
|
"EXPORTS",
|
||||||
|
"FINALLY",
|
||||||
|
"FOR",
|
||||||
|
"FROM",
|
||||||
|
"GENERIC",
|
||||||
|
"IF",
|
||||||
|
"IMPORT",
|
||||||
|
"IN",
|
||||||
|
"INTERFACE",
|
||||||
|
"LOCK",
|
||||||
|
"LOOP",
|
||||||
|
"METHODS",
|
||||||
|
"MOD",
|
||||||
|
"MODULE",
|
||||||
|
"NOT",
|
||||||
|
"OBJECT",
|
||||||
|
"OF",
|
||||||
|
"OR",
|
||||||
|
"OVERRIDES",
|
||||||
|
"PROCEDURE",
|
||||||
|
"RAISE",
|
||||||
|
"RAISES",
|
||||||
|
"READONLY",
|
||||||
|
"RECORD",
|
||||||
|
"REF",
|
||||||
|
"REPEAT",
|
||||||
|
"RETURN",
|
||||||
|
"REVEAL",
|
||||||
|
"SET",
|
||||||
|
"THEN",
|
||||||
|
"TO",
|
||||||
|
"TRY",
|
||||||
|
"TYPE",
|
||||||
|
"TYPECASE",
|
||||||
|
"UNSAFE",
|
||||||
|
"UNTIL",
|
||||||
|
"UNTRACED",
|
||||||
|
"VALUE",
|
||||||
|
"VAR",
|
||||||
|
"WHILE",
|
||||||
|
"WITH"
|
||||||
|
],
|
||||||
|
reservedConstNames: [
|
||||||
|
"ABS",
|
||||||
|
"ADR",
|
||||||
|
"ADRSIZE",
|
||||||
|
"BITSIZE",
|
||||||
|
"BYTESIZE",
|
||||||
|
"CEILING",
|
||||||
|
"DEC",
|
||||||
|
"DISPOSE",
|
||||||
|
"FALSE",
|
||||||
|
"FIRST",
|
||||||
|
"FLOAT",
|
||||||
|
"FLOOR",
|
||||||
|
"INC",
|
||||||
|
"ISTYPE",
|
||||||
|
"LAST",
|
||||||
|
"LOOPHOLE",
|
||||||
|
"MAX",
|
||||||
|
"MIN",
|
||||||
|
"NARROW",
|
||||||
|
"NEW",
|
||||||
|
"NIL",
|
||||||
|
"NUMBER",
|
||||||
|
"ORD",
|
||||||
|
"ROUND",
|
||||||
|
"SUBARRAY",
|
||||||
|
"TRUE",
|
||||||
|
"TRUNC",
|
||||||
|
"TYPECODE",
|
||||||
|
"VAL"
|
||||||
|
],
|
||||||
|
reservedTypeNames: [
|
||||||
|
"ADDRESS",
|
||||||
|
"ANY",
|
||||||
|
"BOOLEAN",
|
||||||
|
"CARDINAL",
|
||||||
|
"CHAR",
|
||||||
|
"EXTENDED",
|
||||||
|
"INTEGER",
|
||||||
|
"LONGCARD",
|
||||||
|
"LONGINT",
|
||||||
|
"LONGREAL",
|
||||||
|
"MUTEX",
|
||||||
|
"NULL",
|
||||||
|
"REAL",
|
||||||
|
"REFANY",
|
||||||
|
"ROOT",
|
||||||
|
"TEXT"
|
||||||
|
],
|
||||||
|
operators: ["+", "-", "*", "/", "&", "^", "."],
|
||||||
|
relations: ["=", "#", "<", "<=", ">", ">=", "<:", ":"],
|
||||||
|
delimiters: ["|", "..", "=>", ",", ";", ":="],
|
||||||
|
symbols: /[>=<#.,:;+\-*/&^]+/,
|
||||||
|
escapes: /\\(?:[\\fnrt"']|[0-7]{3})/,
|
||||||
|
tokenizer: {
|
||||||
|
root: [
|
||||||
|
[/_\w*/, "invalid"],
|
||||||
|
[
|
||||||
|
/[a-zA-Z][a-zA-Z0-9_]*/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"@keywords": { token: "keyword.$0" },
|
||||||
|
"@reservedConstNames": { token: "constant.reserved.$0" },
|
||||||
|
"@reservedTypeNames": { token: "type.reserved.$0" },
|
||||||
|
"@default": "identifier"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
{ include: "@whitespace" },
|
||||||
|
[/[{}()\[\]]/, "@brackets"],
|
||||||
|
[/[0-9]+\.[0-9]+(?:[DdEeXx][\+\-]?[0-9]+)?/, "number.float"],
|
||||||
|
[/[0-9]+(?:\_[0-9a-fA-F]+)?L?/, "number"],
|
||||||
|
[
|
||||||
|
/@symbols/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"@operators": "operators",
|
||||||
|
"@relations": "operators",
|
||||||
|
"@delimiters": "delimiter",
|
||||||
|
"@default": "invalid"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/'[^\\']'/, "string.char"],
|
||||||
|
[/(')(@escapes)(')/, ["string.char", "string.escape", "string.char"]],
|
||||||
|
[/'/, "invalid"],
|
||||||
|
[/"([^"\\]|\\.)*$/, "invalid"],
|
||||||
|
[/"/, "string.text", "@text"]
|
||||||
|
],
|
||||||
|
text: [
|
||||||
|
[/[^\\"]+/, "string.text"],
|
||||||
|
[/@escapes/, "string.escape"],
|
||||||
|
[/\\./, "invalid"],
|
||||||
|
[/"/, "string.text", "@pop"]
|
||||||
|
],
|
||||||
|
comment: [
|
||||||
|
[/\(\*/, "comment", "@push"],
|
||||||
|
[/\*\)/, "comment", "@pop"],
|
||||||
|
[/./, "comment"]
|
||||||
|
],
|
||||||
|
pragma: [
|
||||||
|
[/<\*/, "keyword.pragma", "@push"],
|
||||||
|
[/\*>/, "keyword.pragma", "@pop"],
|
||||||
|
[/./, "keyword.pragma"]
|
||||||
|
],
|
||||||
|
whitespace: [
|
||||||
|
[/[ \t\r\n]+/, "white"],
|
||||||
|
[/\(\*/, "comment", "@comment"],
|
||||||
|
[/<\*/, "keyword.pragma", "@pragma"]
|
||||||
|
]
|
||||||
|
}
|
||||||
|
};
|
||||||
|
return __toCommonJS(m3_exports);
|
||||||
|
})();
|
||||||
|
return moduleExports;
|
||||||
|
});
|
||||||
@@ -0,0 +1,234 @@
|
|||||||
|
/*!-----------------------------------------------------------------------------
|
||||||
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||||
|
* Version: 0.33.0(4b1abad427e58dbedc1215d99a0902ffc885fcd4)
|
||||||
|
* Released under the MIT license
|
||||||
|
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
||||||
|
*-----------------------------------------------------------------------------*/
|
||||||
|
define("vs/basic-languages/markdown/markdown", ["require"],(require)=>{
|
||||||
|
var moduleExports = (() => {
|
||||||
|
var __defProp = Object.defineProperty;
|
||||||
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||||
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||||
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||||
|
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
||||||
|
var __export = (target, all) => {
|
||||||
|
for (var name in all)
|
||||||
|
__defProp(target, name, { get: all[name], enumerable: true });
|
||||||
|
};
|
||||||
|
var __reExport = (target, module, copyDefault, desc) => {
|
||||||
|
if (module && typeof module === "object" || typeof module === "function") {
|
||||||
|
for (let key of __getOwnPropNames(module))
|
||||||
|
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
||||||
|
__defProp(target, key, { get: () => module[key], enumerable: !(desc = __getOwnPropDesc(module, key)) || desc.enumerable });
|
||||||
|
}
|
||||||
|
return target;
|
||||||
|
};
|
||||||
|
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
||||||
|
return (module, temp) => {
|
||||||
|
return cache && cache.get(module) || (temp = __reExport(__markAsModule({}), module, 1), cache && cache.set(module, temp), temp);
|
||||||
|
};
|
||||||
|
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
||||||
|
|
||||||
|
// src/basic-languages/markdown/markdown.ts
|
||||||
|
var markdown_exports = {};
|
||||||
|
__export(markdown_exports, {
|
||||||
|
conf: () => conf,
|
||||||
|
language: () => language
|
||||||
|
});
|
||||||
|
var conf = {
|
||||||
|
comments: {
|
||||||
|
blockComment: ["<!--", "-->"]
|
||||||
|
},
|
||||||
|
brackets: [
|
||||||
|
["{", "}"],
|
||||||
|
["[", "]"],
|
||||||
|
["(", ")"]
|
||||||
|
],
|
||||||
|
autoClosingPairs: [
|
||||||
|
{ open: "{", close: "}" },
|
||||||
|
{ open: "[", close: "]" },
|
||||||
|
{ open: "(", close: ")" },
|
||||||
|
{ open: "<", close: ">", notIn: ["string"] }
|
||||||
|
],
|
||||||
|
surroundingPairs: [
|
||||||
|
{ open: "(", close: ")" },
|
||||||
|
{ open: "[", close: "]" },
|
||||||
|
{ open: "`", close: "`" }
|
||||||
|
],
|
||||||
|
folding: {
|
||||||
|
markers: {
|
||||||
|
start: new RegExp("^\\s*<!--\\s*#?region\\b.*-->"),
|
||||||
|
end: new RegExp("^\\s*<!--\\s*#?endregion\\b.*-->")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
var language = {
|
||||||
|
defaultToken: "",
|
||||||
|
tokenPostfix: ".md",
|
||||||
|
control: /[\\`*_\[\]{}()#+\-\.!]/,
|
||||||
|
noncontrol: /[^\\`*_\[\]{}()#+\-\.!]/,
|
||||||
|
escapes: /\\(?:@control)/,
|
||||||
|
jsescapes: /\\(?:[btnfr\\"']|[0-7][0-7]?|[0-3][0-7]{2})/,
|
||||||
|
empty: [
|
||||||
|
"area",
|
||||||
|
"base",
|
||||||
|
"basefont",
|
||||||
|
"br",
|
||||||
|
"col",
|
||||||
|
"frame",
|
||||||
|
"hr",
|
||||||
|
"img",
|
||||||
|
"input",
|
||||||
|
"isindex",
|
||||||
|
"link",
|
||||||
|
"meta",
|
||||||
|
"param"
|
||||||
|
],
|
||||||
|
tokenizer: {
|
||||||
|
root: [
|
||||||
|
[/^\s*\|/, "@rematch", "@table_header"],
|
||||||
|
[/^(\s{0,3})(#+)((?:[^\\#]|@escapes)+)((?:#+)?)/, ["white", "keyword", "keyword", "keyword"]],
|
||||||
|
[/^\s*(=+|\-+)\s*$/, "keyword"],
|
||||||
|
[/^\s*((\*[ ]?)+)\s*$/, "meta.separator"],
|
||||||
|
[/^\s*>+/, "comment"],
|
||||||
|
[/^\s*([\*\-+:]|\d+\.)\s/, "keyword"],
|
||||||
|
[/^(\t|[ ]{4})[^ ].*$/, "string"],
|
||||||
|
[/^\s*~~~\s*((?:\w|[\/\-#])+)?\s*$/, { token: "string", next: "@codeblock" }],
|
||||||
|
[
|
||||||
|
/^\s*```\s*((?:\w|[\/\-#])+).*$/,
|
||||||
|
{ token: "string", next: "@codeblockgh", nextEmbedded: "$1" }
|
||||||
|
],
|
||||||
|
[/^\s*```\s*$/, { token: "string", next: "@codeblock" }],
|
||||||
|
{ include: "@linecontent" }
|
||||||
|
],
|
||||||
|
table_header: [
|
||||||
|
{ include: "@table_common" },
|
||||||
|
[/[^\|]+/, "keyword.table.header"]
|
||||||
|
],
|
||||||
|
table_body: [{ include: "@table_common" }, { include: "@linecontent" }],
|
||||||
|
table_common: [
|
||||||
|
[/\s*[\-:]+\s*/, { token: "keyword", switchTo: "table_body" }],
|
||||||
|
[/^\s*\|/, "keyword.table.left"],
|
||||||
|
[/^\s*[^\|]/, "@rematch", "@pop"],
|
||||||
|
[/^\s*$/, "@rematch", "@pop"],
|
||||||
|
[
|
||||||
|
/\|/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"@eos": "keyword.table.right",
|
||||||
|
"@default": "keyword.table.middle"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
],
|
||||||
|
codeblock: [
|
||||||
|
[/^\s*~~~\s*$/, { token: "string", next: "@pop" }],
|
||||||
|
[/^\s*```\s*$/, { token: "string", next: "@pop" }],
|
||||||
|
[/.*$/, "variable.source"]
|
||||||
|
],
|
||||||
|
codeblockgh: [
|
||||||
|
[/```\s*$/, { token: "string", next: "@pop", nextEmbedded: "@pop" }],
|
||||||
|
[/[^`]+/, "variable.source"]
|
||||||
|
],
|
||||||
|
linecontent: [
|
||||||
|
[/&\w+;/, "string.escape"],
|
||||||
|
[/@escapes/, "escape"],
|
||||||
|
[/\b__([^\\_]|@escapes|_(?!_))+__\b/, "strong"],
|
||||||
|
[/\*\*([^\\*]|@escapes|\*(?!\*))+\*\*/, "strong"],
|
||||||
|
[/\b_[^_]+_\b/, "emphasis"],
|
||||||
|
[/\*([^\\*]|@escapes)+\*/, "emphasis"],
|
||||||
|
[/`([^\\`]|@escapes)+`/, "variable"],
|
||||||
|
[/\{+[^}]+\}+/, "string.target"],
|
||||||
|
[/(!?\[)((?:[^\]\\]|@escapes)*)(\]\([^\)]+\))/, ["string.link", "", "string.link"]],
|
||||||
|
[/(!?\[)((?:[^\]\\]|@escapes)*)(\])/, "string.link"],
|
||||||
|
{ include: "html" }
|
||||||
|
],
|
||||||
|
html: [
|
||||||
|
[/<(\w+)\/>/, "tag"],
|
||||||
|
[
|
||||||
|
/<(\w+)(\-|\w)*/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"@empty": { token: "tag", next: "@tag.$1" },
|
||||||
|
"@default": { token: "tag", next: "@tag.$1" }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/<\/(\w+)(\-|\w)*\s*>/, { token: "tag" }],
|
||||||
|
[/<!--/, "comment", "@comment"]
|
||||||
|
],
|
||||||
|
comment: [
|
||||||
|
[/[^<\-]+/, "comment.content"],
|
||||||
|
[/-->/, "comment", "@pop"],
|
||||||
|
[/<!--/, "comment.content.invalid"],
|
||||||
|
[/[<\-]/, "comment.content"]
|
||||||
|
],
|
||||||
|
tag: [
|
||||||
|
[/[ \t\r\n]+/, "white"],
|
||||||
|
[
|
||||||
|
/(type)(\s*=\s*)(")([^"]+)(")/,
|
||||||
|
[
|
||||||
|
"attribute.name.html",
|
||||||
|
"delimiter.html",
|
||||||
|
"string.html",
|
||||||
|
{ token: "string.html", switchTo: "@tag.$S2.$4" },
|
||||||
|
"string.html"
|
||||||
|
]
|
||||||
|
],
|
||||||
|
[
|
||||||
|
/(type)(\s*=\s*)(')([^']+)(')/,
|
||||||
|
[
|
||||||
|
"attribute.name.html",
|
||||||
|
"delimiter.html",
|
||||||
|
"string.html",
|
||||||
|
{ token: "string.html", switchTo: "@tag.$S2.$4" },
|
||||||
|
"string.html"
|
||||||
|
]
|
||||||
|
],
|
||||||
|
[/(\w+)(\s*=\s*)("[^"]*"|'[^']*')/, ["attribute.name.html", "delimiter.html", "string.html"]],
|
||||||
|
[/\w+/, "attribute.name.html"],
|
||||||
|
[/\/>/, "tag", "@pop"],
|
||||||
|
[
|
||||||
|
/>/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"$S2==style": {
|
||||||
|
token: "tag",
|
||||||
|
switchTo: "embeddedStyle",
|
||||||
|
nextEmbedded: "text/css"
|
||||||
|
},
|
||||||
|
"$S2==script": {
|
||||||
|
cases: {
|
||||||
|
$S3: {
|
||||||
|
token: "tag",
|
||||||
|
switchTo: "embeddedScript",
|
||||||
|
nextEmbedded: "$S3"
|
||||||
|
},
|
||||||
|
"@default": {
|
||||||
|
token: "tag",
|
||||||
|
switchTo: "embeddedScript",
|
||||||
|
nextEmbedded: "text/javascript"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"@default": { token: "tag", next: "@pop" }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
],
|
||||||
|
embeddedStyle: [
|
||||||
|
[/[^<]+/, ""],
|
||||||
|
[/<\/style\s*>/, { token: "@rematch", next: "@pop", nextEmbedded: "@pop" }],
|
||||||
|
[/</, ""]
|
||||||
|
],
|
||||||
|
embeddedScript: [
|
||||||
|
[/[^<]+/, ""],
|
||||||
|
[/<\/script\s*>/, { token: "@rematch", next: "@pop", nextEmbedded: "@pop" }],
|
||||||
|
[/</, ""]
|
||||||
|
]
|
||||||
|
}
|
||||||
|
};
|
||||||
|
return __toCommonJS(markdown_exports);
|
||||||
|
})();
|
||||||
|
return moduleExports;
|
||||||
|
});
|
||||||
@@ -0,0 +1,226 @@
|
|||||||
|
/*!-----------------------------------------------------------------------------
|
||||||
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||||
|
* Version: 0.33.0(4b1abad427e58dbedc1215d99a0902ffc885fcd4)
|
||||||
|
* Released under the MIT license
|
||||||
|
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
||||||
|
*-----------------------------------------------------------------------------*/
|
||||||
|
define("vs/basic-languages/mips/mips", ["require"],(require)=>{
|
||||||
|
var moduleExports = (() => {
|
||||||
|
var __defProp = Object.defineProperty;
|
||||||
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||||
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||||
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||||
|
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
||||||
|
var __export = (target, all) => {
|
||||||
|
for (var name in all)
|
||||||
|
__defProp(target, name, { get: all[name], enumerable: true });
|
||||||
|
};
|
||||||
|
var __reExport = (target, module, copyDefault, desc) => {
|
||||||
|
if (module && typeof module === "object" || typeof module === "function") {
|
||||||
|
for (let key of __getOwnPropNames(module))
|
||||||
|
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
||||||
|
__defProp(target, key, { get: () => module[key], enumerable: !(desc = __getOwnPropDesc(module, key)) || desc.enumerable });
|
||||||
|
}
|
||||||
|
return target;
|
||||||
|
};
|
||||||
|
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
||||||
|
return (module, temp) => {
|
||||||
|
return cache && cache.get(module) || (temp = __reExport(__markAsModule({}), module, 1), cache && cache.set(module, temp), temp);
|
||||||
|
};
|
||||||
|
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
||||||
|
|
||||||
|
// src/basic-languages/mips/mips.ts
|
||||||
|
var mips_exports = {};
|
||||||
|
__export(mips_exports, {
|
||||||
|
conf: () => conf,
|
||||||
|
language: () => language
|
||||||
|
});
|
||||||
|
var conf = {
|
||||||
|
wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\@\#%\^\&\*\(\)\=\$\-\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,
|
||||||
|
comments: {
|
||||||
|
blockComment: ["###", "###"],
|
||||||
|
lineComment: "#"
|
||||||
|
},
|
||||||
|
folding: {
|
||||||
|
markers: {
|
||||||
|
start: new RegExp("^\\s*#region\\b"),
|
||||||
|
end: new RegExp("^\\s*#endregion\\b")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
var language = {
|
||||||
|
defaultToken: "",
|
||||||
|
ignoreCase: false,
|
||||||
|
tokenPostfix: ".mips",
|
||||||
|
regEx: /\/(?!\/\/)(?:[^\/\\]|\\.)*\/[igm]*/,
|
||||||
|
keywords: [
|
||||||
|
".data",
|
||||||
|
".text",
|
||||||
|
"syscall",
|
||||||
|
"trap",
|
||||||
|
"add",
|
||||||
|
"addu",
|
||||||
|
"addi",
|
||||||
|
"addiu",
|
||||||
|
"and",
|
||||||
|
"andi",
|
||||||
|
"div",
|
||||||
|
"divu",
|
||||||
|
"mult",
|
||||||
|
"multu",
|
||||||
|
"nor",
|
||||||
|
"or",
|
||||||
|
"ori",
|
||||||
|
"sll",
|
||||||
|
"slv",
|
||||||
|
"sra",
|
||||||
|
"srav",
|
||||||
|
"srl",
|
||||||
|
"srlv",
|
||||||
|
"sub",
|
||||||
|
"subu",
|
||||||
|
"xor",
|
||||||
|
"xori",
|
||||||
|
"lhi",
|
||||||
|
"lho",
|
||||||
|
"lhi",
|
||||||
|
"llo",
|
||||||
|
"slt",
|
||||||
|
"slti",
|
||||||
|
"sltu",
|
||||||
|
"sltiu",
|
||||||
|
"beq",
|
||||||
|
"bgtz",
|
||||||
|
"blez",
|
||||||
|
"bne",
|
||||||
|
"j",
|
||||||
|
"jal",
|
||||||
|
"jalr",
|
||||||
|
"jr",
|
||||||
|
"lb",
|
||||||
|
"lbu",
|
||||||
|
"lh",
|
||||||
|
"lhu",
|
||||||
|
"lw",
|
||||||
|
"li",
|
||||||
|
"la",
|
||||||
|
"sb",
|
||||||
|
"sh",
|
||||||
|
"sw",
|
||||||
|
"mfhi",
|
||||||
|
"mflo",
|
||||||
|
"mthi",
|
||||||
|
"mtlo",
|
||||||
|
"move"
|
||||||
|
],
|
||||||
|
symbols: /[\.,\:]+/,
|
||||||
|
escapes: /\\(?:[abfnrtv\\"'$]|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
|
||||||
|
tokenizer: {
|
||||||
|
root: [
|
||||||
|
[/\$[a-zA-Z_]\w*/, "variable.predefined"],
|
||||||
|
[
|
||||||
|
/[.a-zA-Z_]\w*/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
this: "variable.predefined",
|
||||||
|
"@keywords": { token: "keyword.$0" },
|
||||||
|
"@default": ""
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/[ \t\r\n]+/, ""],
|
||||||
|
[/#.*$/, "comment"],
|
||||||
|
["///", { token: "regexp", next: "@hereregexp" }],
|
||||||
|
[/^(\s*)(@regEx)/, ["", "regexp"]],
|
||||||
|
[/(\,)(\s*)(@regEx)/, ["delimiter", "", "regexp"]],
|
||||||
|
[/(\:)(\s*)(@regEx)/, ["delimiter", "", "regexp"]],
|
||||||
|
[/@symbols/, "delimiter"],
|
||||||
|
[/\d+[eE]([\-+]?\d+)?/, "number.float"],
|
||||||
|
[/\d+\.\d+([eE][\-+]?\d+)?/, "number.float"],
|
||||||
|
[/0[xX][0-9a-fA-F]+/, "number.hex"],
|
||||||
|
[/0[0-7]+(?!\d)/, "number.octal"],
|
||||||
|
[/\d+/, "number"],
|
||||||
|
[/[,.]/, "delimiter"],
|
||||||
|
[/"""/, "string", '@herestring."""'],
|
||||||
|
[/'''/, "string", "@herestring.'''"],
|
||||||
|
[
|
||||||
|
/"/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"@eos": "string",
|
||||||
|
"@default": { token: "string", next: '@string."' }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[
|
||||||
|
/'/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"@eos": "string",
|
||||||
|
"@default": { token: "string", next: "@string.'" }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
],
|
||||||
|
string: [
|
||||||
|
[/[^"'\#\\]+/, "string"],
|
||||||
|
[/@escapes/, "string.escape"],
|
||||||
|
[/\./, "string.escape.invalid"],
|
||||||
|
[/\./, "string.escape.invalid"],
|
||||||
|
[
|
||||||
|
/#{/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
'$S2=="': {
|
||||||
|
token: "string",
|
||||||
|
next: "root.interpolatedstring"
|
||||||
|
},
|
||||||
|
"@default": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[
|
||||||
|
/["']/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"$#==$S2": { token: "string", next: "@pop" },
|
||||||
|
"@default": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/#/, "string"]
|
||||||
|
],
|
||||||
|
herestring: [
|
||||||
|
[
|
||||||
|
/("""|''')/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"$1==$S2": { token: "string", next: "@pop" },
|
||||||
|
"@default": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/[^#\\'"]+/, "string"],
|
||||||
|
[/['"]+/, "string"],
|
||||||
|
[/@escapes/, "string.escape"],
|
||||||
|
[/\./, "string.escape.invalid"],
|
||||||
|
[/#{/, { token: "string.quote", next: "root.interpolatedstring" }],
|
||||||
|
[/#/, "string"]
|
||||||
|
],
|
||||||
|
comment: [
|
||||||
|
[/[^#]+/, "comment"],
|
||||||
|
[/#/, "comment"]
|
||||||
|
],
|
||||||
|
hereregexp: [
|
||||||
|
[/[^\\\/#]+/, "regexp"],
|
||||||
|
[/\\./, "regexp"],
|
||||||
|
[/#.*$/, "comment"],
|
||||||
|
["///[igm]*", { token: "regexp", next: "@pop" }],
|
||||||
|
[/\//, "regexp"]
|
||||||
|
]
|
||||||
|
}
|
||||||
|
};
|
||||||
|
return __toCommonJS(mips_exports);
|
||||||
|
})();
|
||||||
|
return moduleExports;
|
||||||
|
});
|
||||||
@@ -0,0 +1,409 @@
|
|||||||
|
/*!-----------------------------------------------------------------------------
|
||||||
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||||
|
* Version: 0.33.0(4b1abad427e58dbedc1215d99a0902ffc885fcd4)
|
||||||
|
* Released under the MIT license
|
||||||
|
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
||||||
|
*-----------------------------------------------------------------------------*/
|
||||||
|
define("vs/basic-languages/msdax/msdax", ["require"],(require)=>{
|
||||||
|
var moduleExports = (() => {
|
||||||
|
var __defProp = Object.defineProperty;
|
||||||
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||||
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||||
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||||
|
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
||||||
|
var __export = (target, all) => {
|
||||||
|
for (var name in all)
|
||||||
|
__defProp(target, name, { get: all[name], enumerable: true });
|
||||||
|
};
|
||||||
|
var __reExport = (target, module, copyDefault, desc) => {
|
||||||
|
if (module && typeof module === "object" || typeof module === "function") {
|
||||||
|
for (let key of __getOwnPropNames(module))
|
||||||
|
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
||||||
|
__defProp(target, key, { get: () => module[key], enumerable: !(desc = __getOwnPropDesc(module, key)) || desc.enumerable });
|
||||||
|
}
|
||||||
|
return target;
|
||||||
|
};
|
||||||
|
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
||||||
|
return (module, temp) => {
|
||||||
|
return cache && cache.get(module) || (temp = __reExport(__markAsModule({}), module, 1), cache && cache.set(module, temp), temp);
|
||||||
|
};
|
||||||
|
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
||||||
|
|
||||||
|
// src/basic-languages/msdax/msdax.ts
|
||||||
|
var msdax_exports = {};
|
||||||
|
__export(msdax_exports, {
|
||||||
|
conf: () => conf,
|
||||||
|
language: () => language
|
||||||
|
});
|
||||||
|
var conf = {
|
||||||
|
comments: {
|
||||||
|
lineComment: "//",
|
||||||
|
blockComment: ["/*", "*/"]
|
||||||
|
},
|
||||||
|
brackets: [
|
||||||
|
["[", "]"],
|
||||||
|
["(", ")"],
|
||||||
|
["{", "}"]
|
||||||
|
],
|
||||||
|
autoClosingPairs: [
|
||||||
|
{ open: '"', close: '"', notIn: ["string", "comment"] },
|
||||||
|
{ open: "'", close: "'", notIn: ["string", "comment"] },
|
||||||
|
{ open: "[", close: "]", notIn: ["string", "comment"] },
|
||||||
|
{ open: "(", close: ")", notIn: ["string", "comment"] },
|
||||||
|
{ open: "{", close: "}", notIn: ["string", "comment"] }
|
||||||
|
]
|
||||||
|
};
|
||||||
|
var language = {
|
||||||
|
defaultToken: "",
|
||||||
|
tokenPostfix: ".msdax",
|
||||||
|
ignoreCase: true,
|
||||||
|
brackets: [
|
||||||
|
{ open: "[", close: "]", token: "delimiter.square" },
|
||||||
|
{ open: "{", close: "}", token: "delimiter.brackets" },
|
||||||
|
{ open: "(", close: ")", token: "delimiter.parenthesis" }
|
||||||
|
],
|
||||||
|
keywords: [
|
||||||
|
"VAR",
|
||||||
|
"RETURN",
|
||||||
|
"NOT",
|
||||||
|
"EVALUATE",
|
||||||
|
"DATATABLE",
|
||||||
|
"ORDER",
|
||||||
|
"BY",
|
||||||
|
"START",
|
||||||
|
"AT",
|
||||||
|
"DEFINE",
|
||||||
|
"MEASURE",
|
||||||
|
"ASC",
|
||||||
|
"DESC",
|
||||||
|
"IN",
|
||||||
|
"BOOLEAN",
|
||||||
|
"DOUBLE",
|
||||||
|
"INTEGER",
|
||||||
|
"DATETIME",
|
||||||
|
"CURRENCY",
|
||||||
|
"STRING"
|
||||||
|
],
|
||||||
|
functions: [
|
||||||
|
"CLOSINGBALANCEMONTH",
|
||||||
|
"CLOSINGBALANCEQUARTER",
|
||||||
|
"CLOSINGBALANCEYEAR",
|
||||||
|
"DATEADD",
|
||||||
|
"DATESBETWEEN",
|
||||||
|
"DATESINPERIOD",
|
||||||
|
"DATESMTD",
|
||||||
|
"DATESQTD",
|
||||||
|
"DATESYTD",
|
||||||
|
"ENDOFMONTH",
|
||||||
|
"ENDOFQUARTER",
|
||||||
|
"ENDOFYEAR",
|
||||||
|
"FIRSTDATE",
|
||||||
|
"FIRSTNONBLANK",
|
||||||
|
"LASTDATE",
|
||||||
|
"LASTNONBLANK",
|
||||||
|
"NEXTDAY",
|
||||||
|
"NEXTMONTH",
|
||||||
|
"NEXTQUARTER",
|
||||||
|
"NEXTYEAR",
|
||||||
|
"OPENINGBALANCEMONTH",
|
||||||
|
"OPENINGBALANCEQUARTER",
|
||||||
|
"OPENINGBALANCEYEAR",
|
||||||
|
"PARALLELPERIOD",
|
||||||
|
"PREVIOUSDAY",
|
||||||
|
"PREVIOUSMONTH",
|
||||||
|
"PREVIOUSQUARTER",
|
||||||
|
"PREVIOUSYEAR",
|
||||||
|
"SAMEPERIODLASTYEAR",
|
||||||
|
"STARTOFMONTH",
|
||||||
|
"STARTOFQUARTER",
|
||||||
|
"STARTOFYEAR",
|
||||||
|
"TOTALMTD",
|
||||||
|
"TOTALQTD",
|
||||||
|
"TOTALYTD",
|
||||||
|
"ADDCOLUMNS",
|
||||||
|
"ADDMISSINGITEMS",
|
||||||
|
"ALL",
|
||||||
|
"ALLEXCEPT",
|
||||||
|
"ALLNOBLANKROW",
|
||||||
|
"ALLSELECTED",
|
||||||
|
"CALCULATE",
|
||||||
|
"CALCULATETABLE",
|
||||||
|
"CALENDAR",
|
||||||
|
"CALENDARAUTO",
|
||||||
|
"CROSSFILTER",
|
||||||
|
"CROSSJOIN",
|
||||||
|
"CURRENTGROUP",
|
||||||
|
"DATATABLE",
|
||||||
|
"DETAILROWS",
|
||||||
|
"DISTINCT",
|
||||||
|
"EARLIER",
|
||||||
|
"EARLIEST",
|
||||||
|
"EXCEPT",
|
||||||
|
"FILTER",
|
||||||
|
"FILTERS",
|
||||||
|
"GENERATE",
|
||||||
|
"GENERATEALL",
|
||||||
|
"GROUPBY",
|
||||||
|
"IGNORE",
|
||||||
|
"INTERSECT",
|
||||||
|
"ISONORAFTER",
|
||||||
|
"KEEPFILTERS",
|
||||||
|
"LOOKUPVALUE",
|
||||||
|
"NATURALINNERJOIN",
|
||||||
|
"NATURALLEFTOUTERJOIN",
|
||||||
|
"RELATED",
|
||||||
|
"RELATEDTABLE",
|
||||||
|
"ROLLUP",
|
||||||
|
"ROLLUPADDISSUBTOTAL",
|
||||||
|
"ROLLUPGROUP",
|
||||||
|
"ROLLUPISSUBTOTAL",
|
||||||
|
"ROW",
|
||||||
|
"SAMPLE",
|
||||||
|
"SELECTCOLUMNS",
|
||||||
|
"SUBSTITUTEWITHINDEX",
|
||||||
|
"SUMMARIZE",
|
||||||
|
"SUMMARIZECOLUMNS",
|
||||||
|
"TOPN",
|
||||||
|
"TREATAS",
|
||||||
|
"UNION",
|
||||||
|
"USERELATIONSHIP",
|
||||||
|
"VALUES",
|
||||||
|
"SUM",
|
||||||
|
"SUMX",
|
||||||
|
"PATH",
|
||||||
|
"PATHCONTAINS",
|
||||||
|
"PATHITEM",
|
||||||
|
"PATHITEMREVERSE",
|
||||||
|
"PATHLENGTH",
|
||||||
|
"AVERAGE",
|
||||||
|
"AVERAGEA",
|
||||||
|
"AVERAGEX",
|
||||||
|
"COUNT",
|
||||||
|
"COUNTA",
|
||||||
|
"COUNTAX",
|
||||||
|
"COUNTBLANK",
|
||||||
|
"COUNTROWS",
|
||||||
|
"COUNTX",
|
||||||
|
"DISTINCTCOUNT",
|
||||||
|
"DIVIDE",
|
||||||
|
"GEOMEAN",
|
||||||
|
"GEOMEANX",
|
||||||
|
"MAX",
|
||||||
|
"MAXA",
|
||||||
|
"MAXX",
|
||||||
|
"MEDIAN",
|
||||||
|
"MEDIANX",
|
||||||
|
"MIN",
|
||||||
|
"MINA",
|
||||||
|
"MINX",
|
||||||
|
"PERCENTILE.EXC",
|
||||||
|
"PERCENTILE.INC",
|
||||||
|
"PERCENTILEX.EXC",
|
||||||
|
"PERCENTILEX.INC",
|
||||||
|
"PRODUCT",
|
||||||
|
"PRODUCTX",
|
||||||
|
"RANK.EQ",
|
||||||
|
"RANKX",
|
||||||
|
"STDEV.P",
|
||||||
|
"STDEV.S",
|
||||||
|
"STDEVX.P",
|
||||||
|
"STDEVX.S",
|
||||||
|
"VAR.P",
|
||||||
|
"VAR.S",
|
||||||
|
"VARX.P",
|
||||||
|
"VARX.S",
|
||||||
|
"XIRR",
|
||||||
|
"XNPV",
|
||||||
|
"DATE",
|
||||||
|
"DATEDIFF",
|
||||||
|
"DATEVALUE",
|
||||||
|
"DAY",
|
||||||
|
"EDATE",
|
||||||
|
"EOMONTH",
|
||||||
|
"HOUR",
|
||||||
|
"MINUTE",
|
||||||
|
"MONTH",
|
||||||
|
"NOW",
|
||||||
|
"SECOND",
|
||||||
|
"TIME",
|
||||||
|
"TIMEVALUE",
|
||||||
|
"TODAY",
|
||||||
|
"WEEKDAY",
|
||||||
|
"WEEKNUM",
|
||||||
|
"YEAR",
|
||||||
|
"YEARFRAC",
|
||||||
|
"CONTAINS",
|
||||||
|
"CONTAINSROW",
|
||||||
|
"CUSTOMDATA",
|
||||||
|
"ERROR",
|
||||||
|
"HASONEFILTER",
|
||||||
|
"HASONEVALUE",
|
||||||
|
"ISBLANK",
|
||||||
|
"ISCROSSFILTERED",
|
||||||
|
"ISEMPTY",
|
||||||
|
"ISERROR",
|
||||||
|
"ISEVEN",
|
||||||
|
"ISFILTERED",
|
||||||
|
"ISLOGICAL",
|
||||||
|
"ISNONTEXT",
|
||||||
|
"ISNUMBER",
|
||||||
|
"ISODD",
|
||||||
|
"ISSUBTOTAL",
|
||||||
|
"ISTEXT",
|
||||||
|
"USERNAME",
|
||||||
|
"USERPRINCIPALNAME",
|
||||||
|
"AND",
|
||||||
|
"FALSE",
|
||||||
|
"IF",
|
||||||
|
"IFERROR",
|
||||||
|
"NOT",
|
||||||
|
"OR",
|
||||||
|
"SWITCH",
|
||||||
|
"TRUE",
|
||||||
|
"ABS",
|
||||||
|
"ACOS",
|
||||||
|
"ACOSH",
|
||||||
|
"ACOT",
|
||||||
|
"ACOTH",
|
||||||
|
"ASIN",
|
||||||
|
"ASINH",
|
||||||
|
"ATAN",
|
||||||
|
"ATANH",
|
||||||
|
"BETA.DIST",
|
||||||
|
"BETA.INV",
|
||||||
|
"CEILING",
|
||||||
|
"CHISQ.DIST",
|
||||||
|
"CHISQ.DIST.RT",
|
||||||
|
"CHISQ.INV",
|
||||||
|
"CHISQ.INV.RT",
|
||||||
|
"COMBIN",
|
||||||
|
"COMBINA",
|
||||||
|
"CONFIDENCE.NORM",
|
||||||
|
"CONFIDENCE.T",
|
||||||
|
"COS",
|
||||||
|
"COSH",
|
||||||
|
"COT",
|
||||||
|
"COTH",
|
||||||
|
"CURRENCY",
|
||||||
|
"DEGREES",
|
||||||
|
"EVEN",
|
||||||
|
"EXP",
|
||||||
|
"EXPON.DIST",
|
||||||
|
"FACT",
|
||||||
|
"FLOOR",
|
||||||
|
"GCD",
|
||||||
|
"INT",
|
||||||
|
"ISO.CEILING",
|
||||||
|
"LCM",
|
||||||
|
"LN",
|
||||||
|
"LOG",
|
||||||
|
"LOG10",
|
||||||
|
"MOD",
|
||||||
|
"MROUND",
|
||||||
|
"ODD",
|
||||||
|
"PERMUT",
|
||||||
|
"PI",
|
||||||
|
"POISSON.DIST",
|
||||||
|
"POWER",
|
||||||
|
"QUOTIENT",
|
||||||
|
"RADIANS",
|
||||||
|
"RAND",
|
||||||
|
"RANDBETWEEN",
|
||||||
|
"ROUND",
|
||||||
|
"ROUNDDOWN",
|
||||||
|
"ROUNDUP",
|
||||||
|
"SIGN",
|
||||||
|
"SIN",
|
||||||
|
"SINH",
|
||||||
|
"SQRT",
|
||||||
|
"SQRTPI",
|
||||||
|
"TAN",
|
||||||
|
"TANH",
|
||||||
|
"TRUNC",
|
||||||
|
"BLANK",
|
||||||
|
"CONCATENATE",
|
||||||
|
"CONCATENATEX",
|
||||||
|
"EXACT",
|
||||||
|
"FIND",
|
||||||
|
"FIXED",
|
||||||
|
"FORMAT",
|
||||||
|
"LEFT",
|
||||||
|
"LEN",
|
||||||
|
"LOWER",
|
||||||
|
"MID",
|
||||||
|
"REPLACE",
|
||||||
|
"REPT",
|
||||||
|
"RIGHT",
|
||||||
|
"SEARCH",
|
||||||
|
"SUBSTITUTE",
|
||||||
|
"TRIM",
|
||||||
|
"UNICHAR",
|
||||||
|
"UNICODE",
|
||||||
|
"UPPER",
|
||||||
|
"VALUE"
|
||||||
|
],
|
||||||
|
tokenizer: {
|
||||||
|
root: [
|
||||||
|
{ include: "@comments" },
|
||||||
|
{ include: "@whitespace" },
|
||||||
|
{ include: "@numbers" },
|
||||||
|
{ include: "@strings" },
|
||||||
|
{ include: "@complexIdentifiers" },
|
||||||
|
[/[;,.]/, "delimiter"],
|
||||||
|
[/[({})]/, "@brackets"],
|
||||||
|
[
|
||||||
|
/[a-z_][a-zA-Z0-9_]*/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"@keywords": "keyword",
|
||||||
|
"@functions": "keyword",
|
||||||
|
"@default": "identifier"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/[<>=!%&+\-*/|~^]/, "operator"]
|
||||||
|
],
|
||||||
|
whitespace: [[/\s+/, "white"]],
|
||||||
|
comments: [
|
||||||
|
[/\/\/+.*/, "comment"],
|
||||||
|
[/\/\*/, { token: "comment.quote", next: "@comment" }]
|
||||||
|
],
|
||||||
|
comment: [
|
||||||
|
[/[^*/]+/, "comment"],
|
||||||
|
[/\*\//, { token: "comment.quote", next: "@pop" }],
|
||||||
|
[/./, "comment"]
|
||||||
|
],
|
||||||
|
numbers: [
|
||||||
|
[/0[xX][0-9a-fA-F]*/, "number"],
|
||||||
|
[/[$][+-]*\d*(\.\d*)?/, "number"],
|
||||||
|
[/((\d+(\.\d*)?)|(\.\d+))([eE][\-+]?\d+)?/, "number"]
|
||||||
|
],
|
||||||
|
strings: [
|
||||||
|
[/N"/, { token: "string", next: "@string" }],
|
||||||
|
[/"/, { token: "string", next: "@string" }]
|
||||||
|
],
|
||||||
|
string: [
|
||||||
|
[/[^"]+/, "string"],
|
||||||
|
[/""/, "string"],
|
||||||
|
[/"/, { token: "string", next: "@pop" }]
|
||||||
|
],
|
||||||
|
complexIdentifiers: [
|
||||||
|
[/\[/, { token: "identifier.quote", next: "@bracketedIdentifier" }],
|
||||||
|
[/'/, { token: "identifier.quote", next: "@quotedIdentifier" }]
|
||||||
|
],
|
||||||
|
bracketedIdentifier: [
|
||||||
|
[/[^\]]+/, "identifier"],
|
||||||
|
[/]]/, "identifier"],
|
||||||
|
[/]/, { token: "identifier.quote", next: "@pop" }]
|
||||||
|
],
|
||||||
|
quotedIdentifier: [
|
||||||
|
[/[^']+/, "identifier"],
|
||||||
|
[/''/, "identifier"],
|
||||||
|
[/'/, { token: "identifier.quote", next: "@pop" }]
|
||||||
|
]
|
||||||
|
}
|
||||||
|
};
|
||||||
|
return __toCommonJS(msdax_exports);
|
||||||
|
})();
|
||||||
|
return moduleExports;
|
||||||
|
});
|
||||||
@@ -0,0 +1,907 @@
|
|||||||
|
/*!-----------------------------------------------------------------------------
|
||||||
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||||
|
* Version: 0.33.0(4b1abad427e58dbedc1215d99a0902ffc885fcd4)
|
||||||
|
* Released under the MIT license
|
||||||
|
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
||||||
|
*-----------------------------------------------------------------------------*/
|
||||||
|
define("vs/basic-languages/mysql/mysql", ["require"],(require)=>{
|
||||||
|
var moduleExports = (() => {
|
||||||
|
var __defProp = Object.defineProperty;
|
||||||
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||||
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||||
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||||
|
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
||||||
|
var __export = (target, all) => {
|
||||||
|
for (var name in all)
|
||||||
|
__defProp(target, name, { get: all[name], enumerable: true });
|
||||||
|
};
|
||||||
|
var __reExport = (target, module, copyDefault, desc) => {
|
||||||
|
if (module && typeof module === "object" || typeof module === "function") {
|
||||||
|
for (let key of __getOwnPropNames(module))
|
||||||
|
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
||||||
|
__defProp(target, key, { get: () => module[key], enumerable: !(desc = __getOwnPropDesc(module, key)) || desc.enumerable });
|
||||||
|
}
|
||||||
|
return target;
|
||||||
|
};
|
||||||
|
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
||||||
|
return (module, temp) => {
|
||||||
|
return cache && cache.get(module) || (temp = __reExport(__markAsModule({}), module, 1), cache && cache.set(module, temp), temp);
|
||||||
|
};
|
||||||
|
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
||||||
|
|
||||||
|
// src/basic-languages/mysql/mysql.ts
|
||||||
|
var mysql_exports = {};
|
||||||
|
__export(mysql_exports, {
|
||||||
|
conf: () => conf,
|
||||||
|
language: () => language
|
||||||
|
});
|
||||||
|
var conf = {
|
||||||
|
comments: {
|
||||||
|
lineComment: "--",
|
||||||
|
blockComment: ["/*", "*/"]
|
||||||
|
},
|
||||||
|
brackets: [
|
||||||
|
["{", "}"],
|
||||||
|
["[", "]"],
|
||||||
|
["(", ")"]
|
||||||
|
],
|
||||||
|
autoClosingPairs: [
|
||||||
|
{ open: "{", close: "}" },
|
||||||
|
{ open: "[", close: "]" },
|
||||||
|
{ open: "(", close: ")" },
|
||||||
|
{ open: '"', close: '"' },
|
||||||
|
{ open: "'", close: "'" }
|
||||||
|
],
|
||||||
|
surroundingPairs: [
|
||||||
|
{ open: "{", close: "}" },
|
||||||
|
{ open: "[", close: "]" },
|
||||||
|
{ open: "(", close: ")" },
|
||||||
|
{ open: '"', close: '"' },
|
||||||
|
{ open: "'", close: "'" }
|
||||||
|
]
|
||||||
|
};
|
||||||
|
var language = {
|
||||||
|
defaultToken: "",
|
||||||
|
tokenPostfix: ".sql",
|
||||||
|
ignoreCase: true,
|
||||||
|
brackets: [
|
||||||
|
{ open: "[", close: "]", token: "delimiter.square" },
|
||||||
|
{ open: "(", close: ")", token: "delimiter.parenthesis" }
|
||||||
|
],
|
||||||
|
keywords: [
|
||||||
|
"ACCESSIBLE",
|
||||||
|
"ADD",
|
||||||
|
"ALL",
|
||||||
|
"ALTER",
|
||||||
|
"ANALYZE",
|
||||||
|
"AND",
|
||||||
|
"AS",
|
||||||
|
"ASC",
|
||||||
|
"ASENSITIVE",
|
||||||
|
"BEFORE",
|
||||||
|
"BETWEEN",
|
||||||
|
"BIGINT",
|
||||||
|
"BINARY",
|
||||||
|
"BLOB",
|
||||||
|
"BOTH",
|
||||||
|
"BY",
|
||||||
|
"CALL",
|
||||||
|
"CASCADE",
|
||||||
|
"CASE",
|
||||||
|
"CHANGE",
|
||||||
|
"CHAR",
|
||||||
|
"CHARACTER",
|
||||||
|
"CHECK",
|
||||||
|
"COLLATE",
|
||||||
|
"COLUMN",
|
||||||
|
"CONDITION",
|
||||||
|
"CONSTRAINT",
|
||||||
|
"CONTINUE",
|
||||||
|
"CONVERT",
|
||||||
|
"CREATE",
|
||||||
|
"CROSS",
|
||||||
|
"CUBE",
|
||||||
|
"CUME_DIST",
|
||||||
|
"CURRENT_DATE",
|
||||||
|
"CURRENT_TIME",
|
||||||
|
"CURRENT_TIMESTAMP",
|
||||||
|
"CURRENT_USER",
|
||||||
|
"CURSOR",
|
||||||
|
"DATABASE",
|
||||||
|
"DATABASES",
|
||||||
|
"DAY_HOUR",
|
||||||
|
"DAY_MICROSECOND",
|
||||||
|
"DAY_MINUTE",
|
||||||
|
"DAY_SECOND",
|
||||||
|
"DEC",
|
||||||
|
"DECIMAL",
|
||||||
|
"DECLARE",
|
||||||
|
"DEFAULT",
|
||||||
|
"DELAYED",
|
||||||
|
"DELETE",
|
||||||
|
"DENSE_RANK",
|
||||||
|
"DESC",
|
||||||
|
"DESCRIBE",
|
||||||
|
"DETERMINISTIC",
|
||||||
|
"DISTINCT",
|
||||||
|
"DISTINCTROW",
|
||||||
|
"DIV",
|
||||||
|
"DOUBLE",
|
||||||
|
"DROP",
|
||||||
|
"DUAL",
|
||||||
|
"EACH",
|
||||||
|
"ELSE",
|
||||||
|
"ELSEIF",
|
||||||
|
"EMPTY",
|
||||||
|
"ENCLOSED",
|
||||||
|
"ESCAPED",
|
||||||
|
"EXCEPT",
|
||||||
|
"EXISTS",
|
||||||
|
"EXIT",
|
||||||
|
"EXPLAIN",
|
||||||
|
"FALSE",
|
||||||
|
"FETCH",
|
||||||
|
"FIRST_VALUE",
|
||||||
|
"FLOAT",
|
||||||
|
"FLOAT4",
|
||||||
|
"FLOAT8",
|
||||||
|
"FOR",
|
||||||
|
"FORCE",
|
||||||
|
"FOREIGN",
|
||||||
|
"FROM",
|
||||||
|
"FULLTEXT",
|
||||||
|
"FUNCTION",
|
||||||
|
"GENERATED",
|
||||||
|
"GET",
|
||||||
|
"GRANT",
|
||||||
|
"GROUP",
|
||||||
|
"GROUPING",
|
||||||
|
"GROUPS",
|
||||||
|
"HAVING",
|
||||||
|
"HIGH_PRIORITY",
|
||||||
|
"HOUR_MICROSECOND",
|
||||||
|
"HOUR_MINUTE",
|
||||||
|
"HOUR_SECOND",
|
||||||
|
"IF",
|
||||||
|
"IGNORE",
|
||||||
|
"IN",
|
||||||
|
"INDEX",
|
||||||
|
"INFILE",
|
||||||
|
"INNER",
|
||||||
|
"INOUT",
|
||||||
|
"INSENSITIVE",
|
||||||
|
"INSERT",
|
||||||
|
"INT",
|
||||||
|
"INT1",
|
||||||
|
"INT2",
|
||||||
|
"INT3",
|
||||||
|
"INT4",
|
||||||
|
"INT8",
|
||||||
|
"INTEGER",
|
||||||
|
"INTERVAL",
|
||||||
|
"INTO",
|
||||||
|
"IO_AFTER_GTIDS",
|
||||||
|
"IO_BEFORE_GTIDS",
|
||||||
|
"IS",
|
||||||
|
"ITERATE",
|
||||||
|
"JOIN",
|
||||||
|
"JSON_TABLE",
|
||||||
|
"KEY",
|
||||||
|
"KEYS",
|
||||||
|
"KILL",
|
||||||
|
"LAG",
|
||||||
|
"LAST_VALUE",
|
||||||
|
"LATERAL",
|
||||||
|
"LEAD",
|
||||||
|
"LEADING",
|
||||||
|
"LEAVE",
|
||||||
|
"LEFT",
|
||||||
|
"LIKE",
|
||||||
|
"LIMIT",
|
||||||
|
"LINEAR",
|
||||||
|
"LINES",
|
||||||
|
"LOAD",
|
||||||
|
"LOCALTIME",
|
||||||
|
"LOCALTIMESTAMP",
|
||||||
|
"LOCK",
|
||||||
|
"LONG",
|
||||||
|
"LONGBLOB",
|
||||||
|
"LONGTEXT",
|
||||||
|
"LOOP",
|
||||||
|
"LOW_PRIORITY",
|
||||||
|
"MASTER_BIND",
|
||||||
|
"MASTER_SSL_VERIFY_SERVER_CERT",
|
||||||
|
"MATCH",
|
||||||
|
"MAXVALUE",
|
||||||
|
"MEDIUMBLOB",
|
||||||
|
"MEDIUMINT",
|
||||||
|
"MEDIUMTEXT",
|
||||||
|
"MIDDLEINT",
|
||||||
|
"MINUTE_MICROSECOND",
|
||||||
|
"MINUTE_SECOND",
|
||||||
|
"MOD",
|
||||||
|
"MODIFIES",
|
||||||
|
"NATURAL",
|
||||||
|
"NOT",
|
||||||
|
"NO_WRITE_TO_BINLOG",
|
||||||
|
"NTH_VALUE",
|
||||||
|
"NTILE",
|
||||||
|
"NULL",
|
||||||
|
"NUMERIC",
|
||||||
|
"OF",
|
||||||
|
"ON",
|
||||||
|
"OPTIMIZE",
|
||||||
|
"OPTIMIZER_COSTS",
|
||||||
|
"OPTION",
|
||||||
|
"OPTIONALLY",
|
||||||
|
"OR",
|
||||||
|
"ORDER",
|
||||||
|
"OUT",
|
||||||
|
"OUTER",
|
||||||
|
"OUTFILE",
|
||||||
|
"OVER",
|
||||||
|
"PARTITION",
|
||||||
|
"PERCENT_RANK",
|
||||||
|
"PRECISION",
|
||||||
|
"PRIMARY",
|
||||||
|
"PROCEDURE",
|
||||||
|
"PURGE",
|
||||||
|
"RANGE",
|
||||||
|
"RANK",
|
||||||
|
"READ",
|
||||||
|
"READS",
|
||||||
|
"READ_WRITE",
|
||||||
|
"REAL",
|
||||||
|
"RECURSIVE",
|
||||||
|
"REFERENCES",
|
||||||
|
"REGEXP",
|
||||||
|
"RELEASE",
|
||||||
|
"RENAME",
|
||||||
|
"REPEAT",
|
||||||
|
"REPLACE",
|
||||||
|
"REQUIRE",
|
||||||
|
"RESIGNAL",
|
||||||
|
"RESTRICT",
|
||||||
|
"RETURN",
|
||||||
|
"REVOKE",
|
||||||
|
"RIGHT",
|
||||||
|
"RLIKE",
|
||||||
|
"ROW",
|
||||||
|
"ROWS",
|
||||||
|
"ROW_NUMBER",
|
||||||
|
"SCHEMA",
|
||||||
|
"SCHEMAS",
|
||||||
|
"SECOND_MICROSECOND",
|
||||||
|
"SELECT",
|
||||||
|
"SENSITIVE",
|
||||||
|
"SEPARATOR",
|
||||||
|
"SET",
|
||||||
|
"SHOW",
|
||||||
|
"SIGNAL",
|
||||||
|
"SMALLINT",
|
||||||
|
"SPATIAL",
|
||||||
|
"SPECIFIC",
|
||||||
|
"SQL",
|
||||||
|
"SQLEXCEPTION",
|
||||||
|
"SQLSTATE",
|
||||||
|
"SQLWARNING",
|
||||||
|
"SQL_BIG_RESULT",
|
||||||
|
"SQL_CALC_FOUND_ROWS",
|
||||||
|
"SQL_SMALL_RESULT",
|
||||||
|
"SSL",
|
||||||
|
"STARTING",
|
||||||
|
"STORED",
|
||||||
|
"STRAIGHT_JOIN",
|
||||||
|
"SYSTEM",
|
||||||
|
"TABLE",
|
||||||
|
"TERMINATED",
|
||||||
|
"THEN",
|
||||||
|
"TINYBLOB",
|
||||||
|
"TINYINT",
|
||||||
|
"TINYTEXT",
|
||||||
|
"TO",
|
||||||
|
"TRAILING",
|
||||||
|
"TRIGGER",
|
||||||
|
"TRUE",
|
||||||
|
"UNDO",
|
||||||
|
"UNION",
|
||||||
|
"UNIQUE",
|
||||||
|
"UNLOCK",
|
||||||
|
"UNSIGNED",
|
||||||
|
"UPDATE",
|
||||||
|
"USAGE",
|
||||||
|
"USE",
|
||||||
|
"USING",
|
||||||
|
"UTC_DATE",
|
||||||
|
"UTC_TIME",
|
||||||
|
"UTC_TIMESTAMP",
|
||||||
|
"VALUES",
|
||||||
|
"VARBINARY",
|
||||||
|
"VARCHAR",
|
||||||
|
"VARCHARACTER",
|
||||||
|
"VARYING",
|
||||||
|
"VIRTUAL",
|
||||||
|
"WHEN",
|
||||||
|
"WHERE",
|
||||||
|
"WHILE",
|
||||||
|
"WINDOW",
|
||||||
|
"WITH",
|
||||||
|
"WRITE",
|
||||||
|
"XOR",
|
||||||
|
"YEAR_MONTH",
|
||||||
|
"ZEROFILL"
|
||||||
|
],
|
||||||
|
operators: [
|
||||||
|
"AND",
|
||||||
|
"BETWEEN",
|
||||||
|
"IN",
|
||||||
|
"LIKE",
|
||||||
|
"NOT",
|
||||||
|
"OR",
|
||||||
|
"IS",
|
||||||
|
"NULL",
|
||||||
|
"INTERSECT",
|
||||||
|
"UNION",
|
||||||
|
"INNER",
|
||||||
|
"JOIN",
|
||||||
|
"LEFT",
|
||||||
|
"OUTER",
|
||||||
|
"RIGHT"
|
||||||
|
],
|
||||||
|
builtinFunctions: [
|
||||||
|
"ABS",
|
||||||
|
"ACOS",
|
||||||
|
"ADDDATE",
|
||||||
|
"ADDTIME",
|
||||||
|
"AES_DECRYPT",
|
||||||
|
"AES_ENCRYPT",
|
||||||
|
"ANY_VALUE",
|
||||||
|
"Area",
|
||||||
|
"AsBinary",
|
||||||
|
"AsWKB",
|
||||||
|
"ASCII",
|
||||||
|
"ASIN",
|
||||||
|
"AsText",
|
||||||
|
"AsWKT",
|
||||||
|
"ASYMMETRIC_DECRYPT",
|
||||||
|
"ASYMMETRIC_DERIVE",
|
||||||
|
"ASYMMETRIC_ENCRYPT",
|
||||||
|
"ASYMMETRIC_SIGN",
|
||||||
|
"ASYMMETRIC_VERIFY",
|
||||||
|
"ATAN",
|
||||||
|
"ATAN2",
|
||||||
|
"ATAN",
|
||||||
|
"AVG",
|
||||||
|
"BENCHMARK",
|
||||||
|
"BIN",
|
||||||
|
"BIT_AND",
|
||||||
|
"BIT_COUNT",
|
||||||
|
"BIT_LENGTH",
|
||||||
|
"BIT_OR",
|
||||||
|
"BIT_XOR",
|
||||||
|
"Buffer",
|
||||||
|
"CAST",
|
||||||
|
"CEIL",
|
||||||
|
"CEILING",
|
||||||
|
"Centroid",
|
||||||
|
"CHAR",
|
||||||
|
"CHAR_LENGTH",
|
||||||
|
"CHARACTER_LENGTH",
|
||||||
|
"CHARSET",
|
||||||
|
"COALESCE",
|
||||||
|
"COERCIBILITY",
|
||||||
|
"COLLATION",
|
||||||
|
"COMPRESS",
|
||||||
|
"CONCAT",
|
||||||
|
"CONCAT_WS",
|
||||||
|
"CONNECTION_ID",
|
||||||
|
"Contains",
|
||||||
|
"CONV",
|
||||||
|
"CONVERT",
|
||||||
|
"CONVERT_TZ",
|
||||||
|
"ConvexHull",
|
||||||
|
"COS",
|
||||||
|
"COT",
|
||||||
|
"COUNT",
|
||||||
|
"CRC32",
|
||||||
|
"CREATE_ASYMMETRIC_PRIV_KEY",
|
||||||
|
"CREATE_ASYMMETRIC_PUB_KEY",
|
||||||
|
"CREATE_DH_PARAMETERS",
|
||||||
|
"CREATE_DIGEST",
|
||||||
|
"Crosses",
|
||||||
|
"CUME_DIST",
|
||||||
|
"CURDATE",
|
||||||
|
"CURRENT_DATE",
|
||||||
|
"CURRENT_ROLE",
|
||||||
|
"CURRENT_TIME",
|
||||||
|
"CURRENT_TIMESTAMP",
|
||||||
|
"CURRENT_USER",
|
||||||
|
"CURTIME",
|
||||||
|
"DATABASE",
|
||||||
|
"DATE",
|
||||||
|
"DATE_ADD",
|
||||||
|
"DATE_FORMAT",
|
||||||
|
"DATE_SUB",
|
||||||
|
"DATEDIFF",
|
||||||
|
"DAY",
|
||||||
|
"DAYNAME",
|
||||||
|
"DAYOFMONTH",
|
||||||
|
"DAYOFWEEK",
|
||||||
|
"DAYOFYEAR",
|
||||||
|
"DECODE",
|
||||||
|
"DEFAULT",
|
||||||
|
"DEGREES",
|
||||||
|
"DES_DECRYPT",
|
||||||
|
"DES_ENCRYPT",
|
||||||
|
"DENSE_RANK",
|
||||||
|
"Dimension",
|
||||||
|
"Disjoint",
|
||||||
|
"Distance",
|
||||||
|
"ELT",
|
||||||
|
"ENCODE",
|
||||||
|
"ENCRYPT",
|
||||||
|
"EndPoint",
|
||||||
|
"Envelope",
|
||||||
|
"Equals",
|
||||||
|
"EXP",
|
||||||
|
"EXPORT_SET",
|
||||||
|
"ExteriorRing",
|
||||||
|
"EXTRACT",
|
||||||
|
"ExtractValue",
|
||||||
|
"FIELD",
|
||||||
|
"FIND_IN_SET",
|
||||||
|
"FIRST_VALUE",
|
||||||
|
"FLOOR",
|
||||||
|
"FORMAT",
|
||||||
|
"FORMAT_BYTES",
|
||||||
|
"FORMAT_PICO_TIME",
|
||||||
|
"FOUND_ROWS",
|
||||||
|
"FROM_BASE64",
|
||||||
|
"FROM_DAYS",
|
||||||
|
"FROM_UNIXTIME",
|
||||||
|
"GEN_RANGE",
|
||||||
|
"GEN_RND_EMAIL",
|
||||||
|
"GEN_RND_PAN",
|
||||||
|
"GEN_RND_SSN",
|
||||||
|
"GEN_RND_US_PHONE",
|
||||||
|
"GeomCollection",
|
||||||
|
"GeomCollFromText",
|
||||||
|
"GeometryCollectionFromText",
|
||||||
|
"GeomCollFromWKB",
|
||||||
|
"GeometryCollectionFromWKB",
|
||||||
|
"GeometryCollection",
|
||||||
|
"GeometryN",
|
||||||
|
"GeometryType",
|
||||||
|
"GeomFromText",
|
||||||
|
"GeometryFromText",
|
||||||
|
"GeomFromWKB",
|
||||||
|
"GeometryFromWKB",
|
||||||
|
"GET_FORMAT",
|
||||||
|
"GET_LOCK",
|
||||||
|
"GLength",
|
||||||
|
"GREATEST",
|
||||||
|
"GROUP_CONCAT",
|
||||||
|
"GROUPING",
|
||||||
|
"GTID_SUBSET",
|
||||||
|
"GTID_SUBTRACT",
|
||||||
|
"HEX",
|
||||||
|
"HOUR",
|
||||||
|
"ICU_VERSION",
|
||||||
|
"IF",
|
||||||
|
"IFNULL",
|
||||||
|
"INET_ATON",
|
||||||
|
"INET_NTOA",
|
||||||
|
"INET6_ATON",
|
||||||
|
"INET6_NTOA",
|
||||||
|
"INSERT",
|
||||||
|
"INSTR",
|
||||||
|
"InteriorRingN",
|
||||||
|
"Intersects",
|
||||||
|
"INTERVAL",
|
||||||
|
"IS_FREE_LOCK",
|
||||||
|
"IS_IPV4",
|
||||||
|
"IS_IPV4_COMPAT",
|
||||||
|
"IS_IPV4_MAPPED",
|
||||||
|
"IS_IPV6",
|
||||||
|
"IS_USED_LOCK",
|
||||||
|
"IS_UUID",
|
||||||
|
"IsClosed",
|
||||||
|
"IsEmpty",
|
||||||
|
"ISNULL",
|
||||||
|
"IsSimple",
|
||||||
|
"JSON_APPEND",
|
||||||
|
"JSON_ARRAY",
|
||||||
|
"JSON_ARRAY_APPEND",
|
||||||
|
"JSON_ARRAY_INSERT",
|
||||||
|
"JSON_ARRAYAGG",
|
||||||
|
"JSON_CONTAINS",
|
||||||
|
"JSON_CONTAINS_PATH",
|
||||||
|
"JSON_DEPTH",
|
||||||
|
"JSON_EXTRACT",
|
||||||
|
"JSON_INSERT",
|
||||||
|
"JSON_KEYS",
|
||||||
|
"JSON_LENGTH",
|
||||||
|
"JSON_MERGE",
|
||||||
|
"JSON_MERGE_PATCH",
|
||||||
|
"JSON_MERGE_PRESERVE",
|
||||||
|
"JSON_OBJECT",
|
||||||
|
"JSON_OBJECTAGG",
|
||||||
|
"JSON_OVERLAPS",
|
||||||
|
"JSON_PRETTY",
|
||||||
|
"JSON_QUOTE",
|
||||||
|
"JSON_REMOVE",
|
||||||
|
"JSON_REPLACE",
|
||||||
|
"JSON_SCHEMA_VALID",
|
||||||
|
"JSON_SCHEMA_VALIDATION_REPORT",
|
||||||
|
"JSON_SEARCH",
|
||||||
|
"JSON_SET",
|
||||||
|
"JSON_STORAGE_FREE",
|
||||||
|
"JSON_STORAGE_SIZE",
|
||||||
|
"JSON_TABLE",
|
||||||
|
"JSON_TYPE",
|
||||||
|
"JSON_UNQUOTE",
|
||||||
|
"JSON_VALID",
|
||||||
|
"LAG",
|
||||||
|
"LAST_DAY",
|
||||||
|
"LAST_INSERT_ID",
|
||||||
|
"LAST_VALUE",
|
||||||
|
"LCASE",
|
||||||
|
"LEAD",
|
||||||
|
"LEAST",
|
||||||
|
"LEFT",
|
||||||
|
"LENGTH",
|
||||||
|
"LineFromText",
|
||||||
|
"LineStringFromText",
|
||||||
|
"LineFromWKB",
|
||||||
|
"LineStringFromWKB",
|
||||||
|
"LineString",
|
||||||
|
"LN",
|
||||||
|
"LOAD_FILE",
|
||||||
|
"LOCALTIME",
|
||||||
|
"LOCALTIMESTAMP",
|
||||||
|
"LOCATE",
|
||||||
|
"LOG",
|
||||||
|
"LOG10",
|
||||||
|
"LOG2",
|
||||||
|
"LOWER",
|
||||||
|
"LPAD",
|
||||||
|
"LTRIM",
|
||||||
|
"MAKE_SET",
|
||||||
|
"MAKEDATE",
|
||||||
|
"MAKETIME",
|
||||||
|
"MASK_INNER",
|
||||||
|
"MASK_OUTER",
|
||||||
|
"MASK_PAN",
|
||||||
|
"MASK_PAN_RELAXED",
|
||||||
|
"MASK_SSN",
|
||||||
|
"MASTER_POS_WAIT",
|
||||||
|
"MAX",
|
||||||
|
"MBRContains",
|
||||||
|
"MBRCoveredBy",
|
||||||
|
"MBRCovers",
|
||||||
|
"MBRDisjoint",
|
||||||
|
"MBREqual",
|
||||||
|
"MBREquals",
|
||||||
|
"MBRIntersects",
|
||||||
|
"MBROverlaps",
|
||||||
|
"MBRTouches",
|
||||||
|
"MBRWithin",
|
||||||
|
"MD5",
|
||||||
|
"MEMBER OF",
|
||||||
|
"MICROSECOND",
|
||||||
|
"MID",
|
||||||
|
"MIN",
|
||||||
|
"MINUTE",
|
||||||
|
"MLineFromText",
|
||||||
|
"MultiLineStringFromText",
|
||||||
|
"MLineFromWKB",
|
||||||
|
"MultiLineStringFromWKB",
|
||||||
|
"MOD",
|
||||||
|
"MONTH",
|
||||||
|
"MONTHNAME",
|
||||||
|
"MPointFromText",
|
||||||
|
"MultiPointFromText",
|
||||||
|
"MPointFromWKB",
|
||||||
|
"MultiPointFromWKB",
|
||||||
|
"MPolyFromText",
|
||||||
|
"MultiPolygonFromText",
|
||||||
|
"MPolyFromWKB",
|
||||||
|
"MultiPolygonFromWKB",
|
||||||
|
"MultiLineString",
|
||||||
|
"MultiPoint",
|
||||||
|
"MultiPolygon",
|
||||||
|
"NAME_CONST",
|
||||||
|
"NOT IN",
|
||||||
|
"NOW",
|
||||||
|
"NTH_VALUE",
|
||||||
|
"NTILE",
|
||||||
|
"NULLIF",
|
||||||
|
"NumGeometries",
|
||||||
|
"NumInteriorRings",
|
||||||
|
"NumPoints",
|
||||||
|
"OCT",
|
||||||
|
"OCTET_LENGTH",
|
||||||
|
"OLD_PASSWORD",
|
||||||
|
"ORD",
|
||||||
|
"Overlaps",
|
||||||
|
"PASSWORD",
|
||||||
|
"PERCENT_RANK",
|
||||||
|
"PERIOD_ADD",
|
||||||
|
"PERIOD_DIFF",
|
||||||
|
"PI",
|
||||||
|
"Point",
|
||||||
|
"PointFromText",
|
||||||
|
"PointFromWKB",
|
||||||
|
"PointN",
|
||||||
|
"PolyFromText",
|
||||||
|
"PolygonFromText",
|
||||||
|
"PolyFromWKB",
|
||||||
|
"PolygonFromWKB",
|
||||||
|
"Polygon",
|
||||||
|
"POSITION",
|
||||||
|
"POW",
|
||||||
|
"POWER",
|
||||||
|
"PS_CURRENT_THREAD_ID",
|
||||||
|
"PS_THREAD_ID",
|
||||||
|
"PROCEDURE ANALYSE",
|
||||||
|
"QUARTER",
|
||||||
|
"QUOTE",
|
||||||
|
"RADIANS",
|
||||||
|
"RAND",
|
||||||
|
"RANDOM_BYTES",
|
||||||
|
"RANK",
|
||||||
|
"REGEXP_INSTR",
|
||||||
|
"REGEXP_LIKE",
|
||||||
|
"REGEXP_REPLACE",
|
||||||
|
"REGEXP_REPLACE",
|
||||||
|
"RELEASE_ALL_LOCKS",
|
||||||
|
"RELEASE_LOCK",
|
||||||
|
"REPEAT",
|
||||||
|
"REPLACE",
|
||||||
|
"REVERSE",
|
||||||
|
"RIGHT",
|
||||||
|
"ROLES_GRAPHML",
|
||||||
|
"ROUND",
|
||||||
|
"ROW_COUNT",
|
||||||
|
"ROW_NUMBER",
|
||||||
|
"RPAD",
|
||||||
|
"RTRIM",
|
||||||
|
"SCHEMA",
|
||||||
|
"SEC_TO_TIME",
|
||||||
|
"SECOND",
|
||||||
|
"SESSION_USER",
|
||||||
|
"SHA1",
|
||||||
|
"SHA",
|
||||||
|
"SHA2",
|
||||||
|
"SIGN",
|
||||||
|
"SIN",
|
||||||
|
"SLEEP",
|
||||||
|
"SOUNDEX",
|
||||||
|
"SOURCE_POS_WAIT",
|
||||||
|
"SPACE",
|
||||||
|
"SQRT",
|
||||||
|
"SRID",
|
||||||
|
"ST_Area",
|
||||||
|
"ST_AsBinary",
|
||||||
|
"ST_AsWKB",
|
||||||
|
"ST_AsGeoJSON",
|
||||||
|
"ST_AsText",
|
||||||
|
"ST_AsWKT",
|
||||||
|
"ST_Buffer",
|
||||||
|
"ST_Buffer_Strategy",
|
||||||
|
"ST_Centroid",
|
||||||
|
"ST_Collect",
|
||||||
|
"ST_Contains",
|
||||||
|
"ST_ConvexHull",
|
||||||
|
"ST_Crosses",
|
||||||
|
"ST_Difference",
|
||||||
|
"ST_Dimension",
|
||||||
|
"ST_Disjoint",
|
||||||
|
"ST_Distance",
|
||||||
|
"ST_Distance_Sphere",
|
||||||
|
"ST_EndPoint",
|
||||||
|
"ST_Envelope",
|
||||||
|
"ST_Equals",
|
||||||
|
"ST_ExteriorRing",
|
||||||
|
"ST_FrechetDistance",
|
||||||
|
"ST_GeoHash",
|
||||||
|
"ST_GeomCollFromText",
|
||||||
|
"ST_GeometryCollectionFromText",
|
||||||
|
"ST_GeomCollFromTxt",
|
||||||
|
"ST_GeomCollFromWKB",
|
||||||
|
"ST_GeometryCollectionFromWKB",
|
||||||
|
"ST_GeometryN",
|
||||||
|
"ST_GeometryType",
|
||||||
|
"ST_GeomFromGeoJSON",
|
||||||
|
"ST_GeomFromText",
|
||||||
|
"ST_GeometryFromText",
|
||||||
|
"ST_GeomFromWKB",
|
||||||
|
"ST_GeometryFromWKB",
|
||||||
|
"ST_HausdorffDistance",
|
||||||
|
"ST_InteriorRingN",
|
||||||
|
"ST_Intersection",
|
||||||
|
"ST_Intersects",
|
||||||
|
"ST_IsClosed",
|
||||||
|
"ST_IsEmpty",
|
||||||
|
"ST_IsSimple",
|
||||||
|
"ST_IsValid",
|
||||||
|
"ST_LatFromGeoHash",
|
||||||
|
"ST_Length",
|
||||||
|
"ST_LineFromText",
|
||||||
|
"ST_LineStringFromText",
|
||||||
|
"ST_LineFromWKB",
|
||||||
|
"ST_LineStringFromWKB",
|
||||||
|
"ST_LineInterpolatePoint",
|
||||||
|
"ST_LineInterpolatePoints",
|
||||||
|
"ST_LongFromGeoHash",
|
||||||
|
"ST_Longitude",
|
||||||
|
"ST_MakeEnvelope",
|
||||||
|
"ST_MLineFromText",
|
||||||
|
"ST_MultiLineStringFromText",
|
||||||
|
"ST_MLineFromWKB",
|
||||||
|
"ST_MultiLineStringFromWKB",
|
||||||
|
"ST_MPointFromText",
|
||||||
|
"ST_MultiPointFromText",
|
||||||
|
"ST_MPointFromWKB",
|
||||||
|
"ST_MultiPointFromWKB",
|
||||||
|
"ST_MPolyFromText",
|
||||||
|
"ST_MultiPolygonFromText",
|
||||||
|
"ST_MPolyFromWKB",
|
||||||
|
"ST_MultiPolygonFromWKB",
|
||||||
|
"ST_NumGeometries",
|
||||||
|
"ST_NumInteriorRing",
|
||||||
|
"ST_NumInteriorRings",
|
||||||
|
"ST_NumPoints",
|
||||||
|
"ST_Overlaps",
|
||||||
|
"ST_PointAtDistance",
|
||||||
|
"ST_PointFromGeoHash",
|
||||||
|
"ST_PointFromText",
|
||||||
|
"ST_PointFromWKB",
|
||||||
|
"ST_PointN",
|
||||||
|
"ST_PolyFromText",
|
||||||
|
"ST_PolygonFromText",
|
||||||
|
"ST_PolyFromWKB",
|
||||||
|
"ST_PolygonFromWKB",
|
||||||
|
"ST_Simplify",
|
||||||
|
"ST_SRID",
|
||||||
|
"ST_StartPoint",
|
||||||
|
"ST_SwapXY",
|
||||||
|
"ST_SymDifference",
|
||||||
|
"ST_Touches",
|
||||||
|
"ST_Transform",
|
||||||
|
"ST_Union",
|
||||||
|
"ST_Validate",
|
||||||
|
"ST_Within",
|
||||||
|
"ST_X",
|
||||||
|
"ST_Y",
|
||||||
|
"StartPoint",
|
||||||
|
"STATEMENT_DIGEST",
|
||||||
|
"STATEMENT_DIGEST_TEXT",
|
||||||
|
"STD",
|
||||||
|
"STDDEV",
|
||||||
|
"STDDEV_POP",
|
||||||
|
"STDDEV_SAMP",
|
||||||
|
"STR_TO_DATE",
|
||||||
|
"STRCMP",
|
||||||
|
"SUBDATE",
|
||||||
|
"SUBSTR",
|
||||||
|
"SUBSTRING",
|
||||||
|
"SUBSTRING_INDEX",
|
||||||
|
"SUBTIME",
|
||||||
|
"SUM",
|
||||||
|
"SYSDATE",
|
||||||
|
"SYSTEM_USER",
|
||||||
|
"TAN",
|
||||||
|
"TIME",
|
||||||
|
"TIME_FORMAT",
|
||||||
|
"TIME_TO_SEC",
|
||||||
|
"TIMEDIFF",
|
||||||
|
"TIMESTAMP",
|
||||||
|
"TIMESTAMPADD",
|
||||||
|
"TIMESTAMPDIFF",
|
||||||
|
"TO_BASE64",
|
||||||
|
"TO_DAYS",
|
||||||
|
"TO_SECONDS",
|
||||||
|
"Touches",
|
||||||
|
"TRIM",
|
||||||
|
"TRUNCATE",
|
||||||
|
"UCASE",
|
||||||
|
"UNCOMPRESS",
|
||||||
|
"UNCOMPRESSED_LENGTH",
|
||||||
|
"UNHEX",
|
||||||
|
"UNIX_TIMESTAMP",
|
||||||
|
"UpdateXML",
|
||||||
|
"UPPER",
|
||||||
|
"USER",
|
||||||
|
"UTC_DATE",
|
||||||
|
"UTC_TIME",
|
||||||
|
"UTC_TIMESTAMP",
|
||||||
|
"UUID",
|
||||||
|
"UUID_SHORT",
|
||||||
|
"UUID_TO_BIN",
|
||||||
|
"VALIDATE_PASSWORD_STRENGTH",
|
||||||
|
"VALUES",
|
||||||
|
"VAR_POP",
|
||||||
|
"VAR_SAMP",
|
||||||
|
"VARIANCE",
|
||||||
|
"VERSION",
|
||||||
|
"WAIT_FOR_EXECUTED_GTID_SET",
|
||||||
|
"WAIT_UNTIL_SQL_THREAD_AFTER_GTIDS",
|
||||||
|
"WEEK",
|
||||||
|
"WEEKDAY",
|
||||||
|
"WEEKOFYEAR",
|
||||||
|
"WEIGHT_STRING",
|
||||||
|
"Within",
|
||||||
|
"X",
|
||||||
|
"Y",
|
||||||
|
"YEAR",
|
||||||
|
"YEARWEEK"
|
||||||
|
],
|
||||||
|
builtinVariables: [],
|
||||||
|
tokenizer: {
|
||||||
|
root: [
|
||||||
|
{ include: "@comments" },
|
||||||
|
{ include: "@whitespace" },
|
||||||
|
{ include: "@numbers" },
|
||||||
|
{ include: "@strings" },
|
||||||
|
{ include: "@complexIdentifiers" },
|
||||||
|
{ include: "@scopes" },
|
||||||
|
[/[;,.]/, "delimiter"],
|
||||||
|
[/[()]/, "@brackets"],
|
||||||
|
[
|
||||||
|
/[\w@]+/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"@operators": "operator",
|
||||||
|
"@builtinVariables": "predefined",
|
||||||
|
"@builtinFunctions": "predefined",
|
||||||
|
"@keywords": "keyword",
|
||||||
|
"@default": "identifier"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/[<>=!%&+\-*/|~^]/, "operator"]
|
||||||
|
],
|
||||||
|
whitespace: [[/\s+/, "white"]],
|
||||||
|
comments: [
|
||||||
|
[/--+.*/, "comment"],
|
||||||
|
[/#+.*/, "comment"],
|
||||||
|
[/\/\*/, { token: "comment.quote", next: "@comment" }]
|
||||||
|
],
|
||||||
|
comment: [
|
||||||
|
[/[^*/]+/, "comment"],
|
||||||
|
[/\*\//, { token: "comment.quote", next: "@pop" }],
|
||||||
|
[/./, "comment"]
|
||||||
|
],
|
||||||
|
numbers: [
|
||||||
|
[/0[xX][0-9a-fA-F]*/, "number"],
|
||||||
|
[/[$][+-]*\d*(\.\d*)?/, "number"],
|
||||||
|
[/((\d+(\.\d*)?)|(\.\d+))([eE][\-+]?\d+)?/, "number"]
|
||||||
|
],
|
||||||
|
strings: [
|
||||||
|
[/'/, { token: "string", next: "@string" }],
|
||||||
|
[/"/, { token: "string.double", next: "@stringDouble" }]
|
||||||
|
],
|
||||||
|
string: [
|
||||||
|
[/[^']+/, "string"],
|
||||||
|
[/''/, "string"],
|
||||||
|
[/'/, { token: "string", next: "@pop" }]
|
||||||
|
],
|
||||||
|
stringDouble: [
|
||||||
|
[/[^"]+/, "string.double"],
|
||||||
|
[/""/, "string.double"],
|
||||||
|
[/"/, { token: "string.double", next: "@pop" }]
|
||||||
|
],
|
||||||
|
complexIdentifiers: [[/`/, { token: "identifier.quote", next: "@quotedIdentifier" }]],
|
||||||
|
quotedIdentifier: [
|
||||||
|
[/[^`]+/, "identifier"],
|
||||||
|
[/``/, "identifier"],
|
||||||
|
[/`/, { token: "identifier.quote", next: "@pop" }]
|
||||||
|
],
|
||||||
|
scopes: []
|
||||||
|
}
|
||||||
|
};
|
||||||
|
return __toCommonJS(mysql_exports);
|
||||||
|
})();
|
||||||
|
return moduleExports;
|
||||||
|
});
|
||||||
@@ -0,0 +1,220 @@
|
|||||||
|
/*!-----------------------------------------------------------------------------
|
||||||
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||||
|
* Version: 0.33.0(4b1abad427e58dbedc1215d99a0902ffc885fcd4)
|
||||||
|
* Released under the MIT license
|
||||||
|
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
||||||
|
*-----------------------------------------------------------------------------*/
|
||||||
|
define("vs/basic-languages/objective-c/objective-c", ["require"],(require)=>{
|
||||||
|
var moduleExports = (() => {
|
||||||
|
var __defProp = Object.defineProperty;
|
||||||
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||||
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||||
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||||
|
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
||||||
|
var __export = (target, all) => {
|
||||||
|
for (var name in all)
|
||||||
|
__defProp(target, name, { get: all[name], enumerable: true });
|
||||||
|
};
|
||||||
|
var __reExport = (target, module, copyDefault, desc) => {
|
||||||
|
if (module && typeof module === "object" || typeof module === "function") {
|
||||||
|
for (let key of __getOwnPropNames(module))
|
||||||
|
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
||||||
|
__defProp(target, key, { get: () => module[key], enumerable: !(desc = __getOwnPropDesc(module, key)) || desc.enumerable });
|
||||||
|
}
|
||||||
|
return target;
|
||||||
|
};
|
||||||
|
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
||||||
|
return (module, temp) => {
|
||||||
|
return cache && cache.get(module) || (temp = __reExport(__markAsModule({}), module, 1), cache && cache.set(module, temp), temp);
|
||||||
|
};
|
||||||
|
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
||||||
|
|
||||||
|
// src/basic-languages/objective-c/objective-c.ts
|
||||||
|
var objective_c_exports = {};
|
||||||
|
__export(objective_c_exports, {
|
||||||
|
conf: () => conf,
|
||||||
|
language: () => language
|
||||||
|
});
|
||||||
|
var conf = {
|
||||||
|
comments: {
|
||||||
|
lineComment: "//",
|
||||||
|
blockComment: ["/*", "*/"]
|
||||||
|
},
|
||||||
|
brackets: [
|
||||||
|
["{", "}"],
|
||||||
|
["[", "]"],
|
||||||
|
["(", ")"]
|
||||||
|
],
|
||||||
|
autoClosingPairs: [
|
||||||
|
{ open: "{", close: "}" },
|
||||||
|
{ open: "[", close: "]" },
|
||||||
|
{ open: "(", close: ")" },
|
||||||
|
{ open: '"', close: '"' },
|
||||||
|
{ open: "'", close: "'" }
|
||||||
|
],
|
||||||
|
surroundingPairs: [
|
||||||
|
{ open: "{", close: "}" },
|
||||||
|
{ open: "[", close: "]" },
|
||||||
|
{ open: "(", close: ")" },
|
||||||
|
{ open: '"', close: '"' },
|
||||||
|
{ open: "'", close: "'" }
|
||||||
|
]
|
||||||
|
};
|
||||||
|
var language = {
|
||||||
|
defaultToken: "",
|
||||||
|
tokenPostfix: ".objective-c",
|
||||||
|
keywords: [
|
||||||
|
"#import",
|
||||||
|
"#include",
|
||||||
|
"#define",
|
||||||
|
"#else",
|
||||||
|
"#endif",
|
||||||
|
"#if",
|
||||||
|
"#ifdef",
|
||||||
|
"#ifndef",
|
||||||
|
"#ident",
|
||||||
|
"#undef",
|
||||||
|
"@class",
|
||||||
|
"@defs",
|
||||||
|
"@dynamic",
|
||||||
|
"@encode",
|
||||||
|
"@end",
|
||||||
|
"@implementation",
|
||||||
|
"@interface",
|
||||||
|
"@package",
|
||||||
|
"@private",
|
||||||
|
"@protected",
|
||||||
|
"@property",
|
||||||
|
"@protocol",
|
||||||
|
"@public",
|
||||||
|
"@selector",
|
||||||
|
"@synthesize",
|
||||||
|
"__declspec",
|
||||||
|
"assign",
|
||||||
|
"auto",
|
||||||
|
"BOOL",
|
||||||
|
"break",
|
||||||
|
"bycopy",
|
||||||
|
"byref",
|
||||||
|
"case",
|
||||||
|
"char",
|
||||||
|
"Class",
|
||||||
|
"const",
|
||||||
|
"copy",
|
||||||
|
"continue",
|
||||||
|
"default",
|
||||||
|
"do",
|
||||||
|
"double",
|
||||||
|
"else",
|
||||||
|
"enum",
|
||||||
|
"extern",
|
||||||
|
"FALSE",
|
||||||
|
"false",
|
||||||
|
"float",
|
||||||
|
"for",
|
||||||
|
"goto",
|
||||||
|
"if",
|
||||||
|
"in",
|
||||||
|
"int",
|
||||||
|
"id",
|
||||||
|
"inout",
|
||||||
|
"IMP",
|
||||||
|
"long",
|
||||||
|
"nil",
|
||||||
|
"nonatomic",
|
||||||
|
"NULL",
|
||||||
|
"oneway",
|
||||||
|
"out",
|
||||||
|
"private",
|
||||||
|
"public",
|
||||||
|
"protected",
|
||||||
|
"readwrite",
|
||||||
|
"readonly",
|
||||||
|
"register",
|
||||||
|
"return",
|
||||||
|
"SEL",
|
||||||
|
"self",
|
||||||
|
"short",
|
||||||
|
"signed",
|
||||||
|
"sizeof",
|
||||||
|
"static",
|
||||||
|
"struct",
|
||||||
|
"super",
|
||||||
|
"switch",
|
||||||
|
"typedef",
|
||||||
|
"TRUE",
|
||||||
|
"true",
|
||||||
|
"union",
|
||||||
|
"unsigned",
|
||||||
|
"volatile",
|
||||||
|
"void",
|
||||||
|
"while"
|
||||||
|
],
|
||||||
|
decpart: /\d(_?\d)*/,
|
||||||
|
decimal: /0|@decpart/,
|
||||||
|
tokenizer: {
|
||||||
|
root: [
|
||||||
|
{ include: "@comments" },
|
||||||
|
{ include: "@whitespace" },
|
||||||
|
{ include: "@numbers" },
|
||||||
|
{ include: "@strings" },
|
||||||
|
[/[,:;]/, "delimiter"],
|
||||||
|
[/[{}\[\]()<>]/, "@brackets"],
|
||||||
|
[
|
||||||
|
/[a-zA-Z@#]\w*/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"@keywords": "keyword",
|
||||||
|
"@default": "identifier"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/[<>=\\+\\-\\*\\/\\^\\|\\~,]|and\\b|or\\b|not\\b]/, "operator"]
|
||||||
|
],
|
||||||
|
whitespace: [[/\s+/, "white"]],
|
||||||
|
comments: [
|
||||||
|
["\\/\\*", "comment", "@comment"],
|
||||||
|
["\\/\\/+.*", "comment"]
|
||||||
|
],
|
||||||
|
comment: [
|
||||||
|
["\\*\\/", "comment", "@pop"],
|
||||||
|
[".", "comment"]
|
||||||
|
],
|
||||||
|
numbers: [
|
||||||
|
[/0[xX][0-9a-fA-F]*(_?[0-9a-fA-F])*/, "number.hex"],
|
||||||
|
[
|
||||||
|
/@decimal((\.@decpart)?([eE][\-+]?@decpart)?)[fF]*/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"(\\d)*": "number",
|
||||||
|
$0: "number.float"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
],
|
||||||
|
strings: [
|
||||||
|
[/'$/, "string.escape", "@popall"],
|
||||||
|
[/'/, "string.escape", "@stringBody"],
|
||||||
|
[/"$/, "string.escape", "@popall"],
|
||||||
|
[/"/, "string.escape", "@dblStringBody"]
|
||||||
|
],
|
||||||
|
stringBody: [
|
||||||
|
[/[^\\']+$/, "string", "@popall"],
|
||||||
|
[/[^\\']+/, "string"],
|
||||||
|
[/\\./, "string"],
|
||||||
|
[/'/, "string.escape", "@popall"],
|
||||||
|
[/\\$/, "string"]
|
||||||
|
],
|
||||||
|
dblStringBody: [
|
||||||
|
[/[^\\"]+$/, "string", "@popall"],
|
||||||
|
[/[^\\"]+/, "string"],
|
||||||
|
[/\\./, "string"],
|
||||||
|
[/"/, "string.escape", "@popall"],
|
||||||
|
[/\\$/, "string"]
|
||||||
|
]
|
||||||
|
}
|
||||||
|
};
|
||||||
|
return __toCommonJS(objective_c_exports);
|
||||||
|
})();
|
||||||
|
return moduleExports;
|
||||||
|
});
|
||||||
@@ -0,0 +1,277 @@
|
|||||||
|
/*!-----------------------------------------------------------------------------
|
||||||
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||||
|
* Version: 0.33.0(4b1abad427e58dbedc1215d99a0902ffc885fcd4)
|
||||||
|
* Released under the MIT license
|
||||||
|
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
||||||
|
*-----------------------------------------------------------------------------*/
|
||||||
|
define("vs/basic-languages/pascal/pascal", ["require"],(require)=>{
|
||||||
|
var moduleExports = (() => {
|
||||||
|
var __defProp = Object.defineProperty;
|
||||||
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||||
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||||
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||||
|
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
||||||
|
var __export = (target, all) => {
|
||||||
|
for (var name in all)
|
||||||
|
__defProp(target, name, { get: all[name], enumerable: true });
|
||||||
|
};
|
||||||
|
var __reExport = (target, module, copyDefault, desc) => {
|
||||||
|
if (module && typeof module === "object" || typeof module === "function") {
|
||||||
|
for (let key of __getOwnPropNames(module))
|
||||||
|
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
||||||
|
__defProp(target, key, { get: () => module[key], enumerable: !(desc = __getOwnPropDesc(module, key)) || desc.enumerable });
|
||||||
|
}
|
||||||
|
return target;
|
||||||
|
};
|
||||||
|
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
||||||
|
return (module, temp) => {
|
||||||
|
return cache && cache.get(module) || (temp = __reExport(__markAsModule({}), module, 1), cache && cache.set(module, temp), temp);
|
||||||
|
};
|
||||||
|
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
||||||
|
|
||||||
|
// src/basic-languages/pascal/pascal.ts
|
||||||
|
var pascal_exports = {};
|
||||||
|
__export(pascal_exports, {
|
||||||
|
conf: () => conf,
|
||||||
|
language: () => language
|
||||||
|
});
|
||||||
|
var conf = {
|
||||||
|
wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,
|
||||||
|
comments: {
|
||||||
|
lineComment: "//",
|
||||||
|
blockComment: ["{", "}"]
|
||||||
|
},
|
||||||
|
brackets: [
|
||||||
|
["{", "}"],
|
||||||
|
["[", "]"],
|
||||||
|
["(", ")"],
|
||||||
|
["<", ">"]
|
||||||
|
],
|
||||||
|
autoClosingPairs: [
|
||||||
|
{ open: "{", close: "}" },
|
||||||
|
{ open: "[", close: "]" },
|
||||||
|
{ open: "(", close: ")" },
|
||||||
|
{ open: "<", close: ">" },
|
||||||
|
{ open: "'", close: "'" }
|
||||||
|
],
|
||||||
|
surroundingPairs: [
|
||||||
|
{ open: "{", close: "}" },
|
||||||
|
{ open: "[", close: "]" },
|
||||||
|
{ open: "(", close: ")" },
|
||||||
|
{ open: "<", close: ">" },
|
||||||
|
{ open: "'", close: "'" }
|
||||||
|
],
|
||||||
|
folding: {
|
||||||
|
markers: {
|
||||||
|
start: new RegExp("^\\s*\\{\\$REGION(\\s\\'.*\\')?\\}"),
|
||||||
|
end: new RegExp("^\\s*\\{\\$ENDREGION\\}")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
var language = {
|
||||||
|
defaultToken: "",
|
||||||
|
tokenPostfix: ".pascal",
|
||||||
|
ignoreCase: true,
|
||||||
|
brackets: [
|
||||||
|
{ open: "{", close: "}", token: "delimiter.curly" },
|
||||||
|
{ open: "[", close: "]", token: "delimiter.square" },
|
||||||
|
{ open: "(", close: ")", token: "delimiter.parenthesis" },
|
||||||
|
{ open: "<", close: ">", token: "delimiter.angle" }
|
||||||
|
],
|
||||||
|
keywords: [
|
||||||
|
"absolute",
|
||||||
|
"abstract",
|
||||||
|
"all",
|
||||||
|
"and_then",
|
||||||
|
"array",
|
||||||
|
"as",
|
||||||
|
"asm",
|
||||||
|
"attribute",
|
||||||
|
"begin",
|
||||||
|
"bindable",
|
||||||
|
"case",
|
||||||
|
"class",
|
||||||
|
"const",
|
||||||
|
"contains",
|
||||||
|
"default",
|
||||||
|
"div",
|
||||||
|
"else",
|
||||||
|
"end",
|
||||||
|
"except",
|
||||||
|
"exports",
|
||||||
|
"external",
|
||||||
|
"far",
|
||||||
|
"file",
|
||||||
|
"finalization",
|
||||||
|
"finally",
|
||||||
|
"forward",
|
||||||
|
"generic",
|
||||||
|
"goto",
|
||||||
|
"if",
|
||||||
|
"implements",
|
||||||
|
"import",
|
||||||
|
"in",
|
||||||
|
"index",
|
||||||
|
"inherited",
|
||||||
|
"initialization",
|
||||||
|
"interrupt",
|
||||||
|
"is",
|
||||||
|
"label",
|
||||||
|
"library",
|
||||||
|
"mod",
|
||||||
|
"module",
|
||||||
|
"name",
|
||||||
|
"near",
|
||||||
|
"not",
|
||||||
|
"object",
|
||||||
|
"of",
|
||||||
|
"on",
|
||||||
|
"only",
|
||||||
|
"operator",
|
||||||
|
"or_else",
|
||||||
|
"otherwise",
|
||||||
|
"override",
|
||||||
|
"package",
|
||||||
|
"packed",
|
||||||
|
"pow",
|
||||||
|
"private",
|
||||||
|
"program",
|
||||||
|
"protected",
|
||||||
|
"public",
|
||||||
|
"published",
|
||||||
|
"interface",
|
||||||
|
"implementation",
|
||||||
|
"qualified",
|
||||||
|
"read",
|
||||||
|
"record",
|
||||||
|
"resident",
|
||||||
|
"requires",
|
||||||
|
"resourcestring",
|
||||||
|
"restricted",
|
||||||
|
"segment",
|
||||||
|
"set",
|
||||||
|
"shl",
|
||||||
|
"shr",
|
||||||
|
"specialize",
|
||||||
|
"stored",
|
||||||
|
"strict",
|
||||||
|
"then",
|
||||||
|
"threadvar",
|
||||||
|
"to",
|
||||||
|
"try",
|
||||||
|
"type",
|
||||||
|
"unit",
|
||||||
|
"uses",
|
||||||
|
"var",
|
||||||
|
"view",
|
||||||
|
"virtual",
|
||||||
|
"dynamic",
|
||||||
|
"overload",
|
||||||
|
"reintroduce",
|
||||||
|
"with",
|
||||||
|
"write",
|
||||||
|
"xor",
|
||||||
|
"true",
|
||||||
|
"false",
|
||||||
|
"procedure",
|
||||||
|
"function",
|
||||||
|
"constructor",
|
||||||
|
"destructor",
|
||||||
|
"property",
|
||||||
|
"break",
|
||||||
|
"continue",
|
||||||
|
"exit",
|
||||||
|
"abort",
|
||||||
|
"while",
|
||||||
|
"do",
|
||||||
|
"for",
|
||||||
|
"raise",
|
||||||
|
"repeat",
|
||||||
|
"until"
|
||||||
|
],
|
||||||
|
typeKeywords: [
|
||||||
|
"boolean",
|
||||||
|
"double",
|
||||||
|
"byte",
|
||||||
|
"integer",
|
||||||
|
"shortint",
|
||||||
|
"char",
|
||||||
|
"longint",
|
||||||
|
"float",
|
||||||
|
"string"
|
||||||
|
],
|
||||||
|
operators: [
|
||||||
|
"=",
|
||||||
|
">",
|
||||||
|
"<",
|
||||||
|
"<=",
|
||||||
|
">=",
|
||||||
|
"<>",
|
||||||
|
":",
|
||||||
|
":=",
|
||||||
|
"and",
|
||||||
|
"or",
|
||||||
|
"+",
|
||||||
|
"-",
|
||||||
|
"*",
|
||||||
|
"/",
|
||||||
|
"@",
|
||||||
|
"&",
|
||||||
|
"^",
|
||||||
|
"%"
|
||||||
|
],
|
||||||
|
symbols: /[=><:@\^&|+\-*\/\^%]+/,
|
||||||
|
tokenizer: {
|
||||||
|
root: [
|
||||||
|
[
|
||||||
|
/[a-zA-Z_][\w]*/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"@keywords": { token: "keyword.$0" },
|
||||||
|
"@default": "identifier"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
{ include: "@whitespace" },
|
||||||
|
[/[{}()\[\]]/, "@brackets"],
|
||||||
|
[/[<>](?!@symbols)/, "@brackets"],
|
||||||
|
[
|
||||||
|
/@symbols/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"@operators": "delimiter",
|
||||||
|
"@default": ""
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/\d*\.\d+([eE][\-+]?\d+)?/, "number.float"],
|
||||||
|
[/\$[0-9a-fA-F]{1,16}/, "number.hex"],
|
||||||
|
[/\d+/, "number"],
|
||||||
|
[/[;,.]/, "delimiter"],
|
||||||
|
[/'([^'\\]|\\.)*$/, "string.invalid"],
|
||||||
|
[/'/, "string", "@string"],
|
||||||
|
[/'[^\\']'/, "string"],
|
||||||
|
[/'/, "string.invalid"],
|
||||||
|
[/\#\d+/, "string"]
|
||||||
|
],
|
||||||
|
comment: [
|
||||||
|
[/[^\*\}]+/, "comment"],
|
||||||
|
[/\}/, "comment", "@pop"],
|
||||||
|
[/[\{]/, "comment"]
|
||||||
|
],
|
||||||
|
string: [
|
||||||
|
[/[^\\']+/, "string"],
|
||||||
|
[/\\./, "string.escape.invalid"],
|
||||||
|
[/'/, { token: "string.quote", bracket: "@close", next: "@pop" }]
|
||||||
|
],
|
||||||
|
whitespace: [
|
||||||
|
[/[ \t\r\n]+/, "white"],
|
||||||
|
[/\{/, "comment", "@comment"],
|
||||||
|
[/\/\/.*$/, "comment"]
|
||||||
|
]
|
||||||
|
}
|
||||||
|
};
|
||||||
|
return __toCommonJS(pascal_exports);
|
||||||
|
})();
|
||||||
|
return moduleExports;
|
||||||
|
});
|
||||||
@@ -0,0 +1,190 @@
|
|||||||
|
/*!-----------------------------------------------------------------------------
|
||||||
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||||
|
* Version: 0.33.0(4b1abad427e58dbedc1215d99a0902ffc885fcd4)
|
||||||
|
* Released under the MIT license
|
||||||
|
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
||||||
|
*-----------------------------------------------------------------------------*/
|
||||||
|
define("vs/basic-languages/pascaligo/pascaligo", ["require"],(require)=>{
|
||||||
|
var moduleExports = (() => {
|
||||||
|
var __defProp = Object.defineProperty;
|
||||||
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||||
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||||
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||||
|
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
||||||
|
var __export = (target, all) => {
|
||||||
|
for (var name in all)
|
||||||
|
__defProp(target, name, { get: all[name], enumerable: true });
|
||||||
|
};
|
||||||
|
var __reExport = (target, module, copyDefault, desc) => {
|
||||||
|
if (module && typeof module === "object" || typeof module === "function") {
|
||||||
|
for (let key of __getOwnPropNames(module))
|
||||||
|
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
||||||
|
__defProp(target, key, { get: () => module[key], enumerable: !(desc = __getOwnPropDesc(module, key)) || desc.enumerable });
|
||||||
|
}
|
||||||
|
return target;
|
||||||
|
};
|
||||||
|
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
||||||
|
return (module, temp) => {
|
||||||
|
return cache && cache.get(module) || (temp = __reExport(__markAsModule({}), module, 1), cache && cache.set(module, temp), temp);
|
||||||
|
};
|
||||||
|
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
||||||
|
|
||||||
|
// src/basic-languages/pascaligo/pascaligo.ts
|
||||||
|
var pascaligo_exports = {};
|
||||||
|
__export(pascaligo_exports, {
|
||||||
|
conf: () => conf,
|
||||||
|
language: () => language
|
||||||
|
});
|
||||||
|
var conf = {
|
||||||
|
comments: {
|
||||||
|
lineComment: "//",
|
||||||
|
blockComment: ["(*", "*)"]
|
||||||
|
},
|
||||||
|
brackets: [
|
||||||
|
["{", "}"],
|
||||||
|
["[", "]"],
|
||||||
|
["(", ")"],
|
||||||
|
["<", ">"]
|
||||||
|
],
|
||||||
|
autoClosingPairs: [
|
||||||
|
{ open: "{", close: "}" },
|
||||||
|
{ open: "[", close: "]" },
|
||||||
|
{ open: "(", close: ")" },
|
||||||
|
{ open: "<", close: ">" },
|
||||||
|
{ open: "'", close: "'" }
|
||||||
|
],
|
||||||
|
surroundingPairs: [
|
||||||
|
{ open: "{", close: "}" },
|
||||||
|
{ open: "[", close: "]" },
|
||||||
|
{ open: "(", close: ")" },
|
||||||
|
{ open: "<", close: ">" },
|
||||||
|
{ open: "'", close: "'" }
|
||||||
|
]
|
||||||
|
};
|
||||||
|
var language = {
|
||||||
|
defaultToken: "",
|
||||||
|
tokenPostfix: ".pascaligo",
|
||||||
|
ignoreCase: true,
|
||||||
|
brackets: [
|
||||||
|
{ open: "{", close: "}", token: "delimiter.curly" },
|
||||||
|
{ open: "[", close: "]", token: "delimiter.square" },
|
||||||
|
{ open: "(", close: ")", token: "delimiter.parenthesis" },
|
||||||
|
{ open: "<", close: ">", token: "delimiter.angle" }
|
||||||
|
],
|
||||||
|
keywords: [
|
||||||
|
"begin",
|
||||||
|
"block",
|
||||||
|
"case",
|
||||||
|
"const",
|
||||||
|
"else",
|
||||||
|
"end",
|
||||||
|
"fail",
|
||||||
|
"for",
|
||||||
|
"from",
|
||||||
|
"function",
|
||||||
|
"if",
|
||||||
|
"is",
|
||||||
|
"nil",
|
||||||
|
"of",
|
||||||
|
"remove",
|
||||||
|
"return",
|
||||||
|
"skip",
|
||||||
|
"then",
|
||||||
|
"type",
|
||||||
|
"var",
|
||||||
|
"while",
|
||||||
|
"with",
|
||||||
|
"option",
|
||||||
|
"None",
|
||||||
|
"transaction"
|
||||||
|
],
|
||||||
|
typeKeywords: [
|
||||||
|
"bool",
|
||||||
|
"int",
|
||||||
|
"list",
|
||||||
|
"map",
|
||||||
|
"nat",
|
||||||
|
"record",
|
||||||
|
"string",
|
||||||
|
"unit",
|
||||||
|
"address",
|
||||||
|
"map",
|
||||||
|
"mtz",
|
||||||
|
"xtz"
|
||||||
|
],
|
||||||
|
operators: [
|
||||||
|
"=",
|
||||||
|
">",
|
||||||
|
"<",
|
||||||
|
"<=",
|
||||||
|
">=",
|
||||||
|
"<>",
|
||||||
|
":",
|
||||||
|
":=",
|
||||||
|
"and",
|
||||||
|
"mod",
|
||||||
|
"or",
|
||||||
|
"+",
|
||||||
|
"-",
|
||||||
|
"*",
|
||||||
|
"/",
|
||||||
|
"@",
|
||||||
|
"&",
|
||||||
|
"^",
|
||||||
|
"%"
|
||||||
|
],
|
||||||
|
symbols: /[=><:@\^&|+\-*\/\^%]+/,
|
||||||
|
tokenizer: {
|
||||||
|
root: [
|
||||||
|
[
|
||||||
|
/[a-zA-Z_][\w]*/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"@keywords": { token: "keyword.$0" },
|
||||||
|
"@default": "identifier"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
{ include: "@whitespace" },
|
||||||
|
[/[{}()\[\]]/, "@brackets"],
|
||||||
|
[/[<>](?!@symbols)/, "@brackets"],
|
||||||
|
[
|
||||||
|
/@symbols/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"@operators": "delimiter",
|
||||||
|
"@default": ""
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/\d*\.\d+([eE][\-+]?\d+)?/, "number.float"],
|
||||||
|
[/\$[0-9a-fA-F]{1,16}/, "number.hex"],
|
||||||
|
[/\d+/, "number"],
|
||||||
|
[/[;,.]/, "delimiter"],
|
||||||
|
[/'([^'\\]|\\.)*$/, "string.invalid"],
|
||||||
|
[/'/, "string", "@string"],
|
||||||
|
[/'[^\\']'/, "string"],
|
||||||
|
[/'/, "string.invalid"],
|
||||||
|
[/\#\d+/, "string"]
|
||||||
|
],
|
||||||
|
comment: [
|
||||||
|
[/[^\(\*]+/, "comment"],
|
||||||
|
[/\*\)/, "comment", "@pop"],
|
||||||
|
[/\(\*/, "comment"]
|
||||||
|
],
|
||||||
|
string: [
|
||||||
|
[/[^\\']+/, "string"],
|
||||||
|
[/\\./, "string.escape.invalid"],
|
||||||
|
[/'/, { token: "string.quote", bracket: "@close", next: "@pop" }]
|
||||||
|
],
|
||||||
|
whitespace: [
|
||||||
|
[/[ \t\r\n]+/, "white"],
|
||||||
|
[/\(\*/, "comment", "@comment"],
|
||||||
|
[/\/\/.*$/, "comment"]
|
||||||
|
]
|
||||||
|
}
|
||||||
|
};
|
||||||
|
return __toCommonJS(pascaligo_exports);
|
||||||
|
})();
|
||||||
|
return moduleExports;
|
||||||
|
});
|
||||||
@@ -0,0 +1,631 @@
|
|||||||
|
/*!-----------------------------------------------------------------------------
|
||||||
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||||
|
* Version: 0.33.0(4b1abad427e58dbedc1215d99a0902ffc885fcd4)
|
||||||
|
* Released under the MIT license
|
||||||
|
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
||||||
|
*-----------------------------------------------------------------------------*/
|
||||||
|
define("vs/basic-languages/perl/perl", ["require"],(require)=>{
|
||||||
|
var moduleExports = (() => {
|
||||||
|
var __defProp = Object.defineProperty;
|
||||||
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||||
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||||
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||||
|
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
||||||
|
var __export = (target, all) => {
|
||||||
|
for (var name in all)
|
||||||
|
__defProp(target, name, { get: all[name], enumerable: true });
|
||||||
|
};
|
||||||
|
var __reExport = (target, module, copyDefault, desc) => {
|
||||||
|
if (module && typeof module === "object" || typeof module === "function") {
|
||||||
|
for (let key of __getOwnPropNames(module))
|
||||||
|
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
||||||
|
__defProp(target, key, { get: () => module[key], enumerable: !(desc = __getOwnPropDesc(module, key)) || desc.enumerable });
|
||||||
|
}
|
||||||
|
return target;
|
||||||
|
};
|
||||||
|
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
||||||
|
return (module, temp) => {
|
||||||
|
return cache && cache.get(module) || (temp = __reExport(__markAsModule({}), module, 1), cache && cache.set(module, temp), temp);
|
||||||
|
};
|
||||||
|
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
||||||
|
|
||||||
|
// src/basic-languages/perl/perl.ts
|
||||||
|
var perl_exports = {};
|
||||||
|
__export(perl_exports, {
|
||||||
|
conf: () => conf,
|
||||||
|
language: () => language
|
||||||
|
});
|
||||||
|
var conf = {
|
||||||
|
comments: {
|
||||||
|
lineComment: "#"
|
||||||
|
},
|
||||||
|
brackets: [
|
||||||
|
["{", "}"],
|
||||||
|
["[", "]"],
|
||||||
|
["(", ")"]
|
||||||
|
],
|
||||||
|
autoClosingPairs: [
|
||||||
|
{ open: "{", close: "}" },
|
||||||
|
{ open: "[", close: "]" },
|
||||||
|
{ open: "(", close: ")" },
|
||||||
|
{ open: '"', close: '"' },
|
||||||
|
{ open: "'", close: "'" },
|
||||||
|
{ open: "`", close: "`" }
|
||||||
|
],
|
||||||
|
surroundingPairs: [
|
||||||
|
{ open: "{", close: "}" },
|
||||||
|
{ open: "[", close: "]" },
|
||||||
|
{ open: "(", close: ")" },
|
||||||
|
{ open: '"', close: '"' },
|
||||||
|
{ open: "'", close: "'" },
|
||||||
|
{ open: "`", close: "`" }
|
||||||
|
]
|
||||||
|
};
|
||||||
|
var language = {
|
||||||
|
defaultToken: "",
|
||||||
|
tokenPostfix: ".perl",
|
||||||
|
brackets: [
|
||||||
|
{ token: "delimiter.bracket", open: "{", close: "}" },
|
||||||
|
{ token: "delimiter.parenthesis", open: "(", close: ")" },
|
||||||
|
{ token: "delimiter.square", open: "[", close: "]" }
|
||||||
|
],
|
||||||
|
keywords: [
|
||||||
|
"__DATA__",
|
||||||
|
"else",
|
||||||
|
"lock",
|
||||||
|
"__END__",
|
||||||
|
"elsif",
|
||||||
|
"lt",
|
||||||
|
"__FILE__",
|
||||||
|
"eq",
|
||||||
|
"__LINE__",
|
||||||
|
"exp",
|
||||||
|
"ne",
|
||||||
|
"sub",
|
||||||
|
"__PACKAGE__",
|
||||||
|
"for",
|
||||||
|
"no",
|
||||||
|
"and",
|
||||||
|
"foreach",
|
||||||
|
"or",
|
||||||
|
"unless",
|
||||||
|
"cmp",
|
||||||
|
"ge",
|
||||||
|
"package",
|
||||||
|
"until",
|
||||||
|
"continue",
|
||||||
|
"gt",
|
||||||
|
"while",
|
||||||
|
"CORE",
|
||||||
|
"if",
|
||||||
|
"xor",
|
||||||
|
"do",
|
||||||
|
"le",
|
||||||
|
"__DIE__",
|
||||||
|
"__WARN__"
|
||||||
|
],
|
||||||
|
builtinFunctions: [
|
||||||
|
"-A",
|
||||||
|
"END",
|
||||||
|
"length",
|
||||||
|
"setpgrp",
|
||||||
|
"-B",
|
||||||
|
"endgrent",
|
||||||
|
"link",
|
||||||
|
"setpriority",
|
||||||
|
"-b",
|
||||||
|
"endhostent",
|
||||||
|
"listen",
|
||||||
|
"setprotoent",
|
||||||
|
"-C",
|
||||||
|
"endnetent",
|
||||||
|
"local",
|
||||||
|
"setpwent",
|
||||||
|
"-c",
|
||||||
|
"endprotoent",
|
||||||
|
"localtime",
|
||||||
|
"setservent",
|
||||||
|
"-d",
|
||||||
|
"endpwent",
|
||||||
|
"log",
|
||||||
|
"setsockopt",
|
||||||
|
"-e",
|
||||||
|
"endservent",
|
||||||
|
"lstat",
|
||||||
|
"shift",
|
||||||
|
"-f",
|
||||||
|
"eof",
|
||||||
|
"map",
|
||||||
|
"shmctl",
|
||||||
|
"-g",
|
||||||
|
"eval",
|
||||||
|
"mkdir",
|
||||||
|
"shmget",
|
||||||
|
"-k",
|
||||||
|
"exec",
|
||||||
|
"msgctl",
|
||||||
|
"shmread",
|
||||||
|
"-l",
|
||||||
|
"exists",
|
||||||
|
"msgget",
|
||||||
|
"shmwrite",
|
||||||
|
"-M",
|
||||||
|
"exit",
|
||||||
|
"msgrcv",
|
||||||
|
"shutdown",
|
||||||
|
"-O",
|
||||||
|
"fcntl",
|
||||||
|
"msgsnd",
|
||||||
|
"sin",
|
||||||
|
"-o",
|
||||||
|
"fileno",
|
||||||
|
"my",
|
||||||
|
"sleep",
|
||||||
|
"-p",
|
||||||
|
"flock",
|
||||||
|
"next",
|
||||||
|
"socket",
|
||||||
|
"-r",
|
||||||
|
"fork",
|
||||||
|
"not",
|
||||||
|
"socketpair",
|
||||||
|
"-R",
|
||||||
|
"format",
|
||||||
|
"oct",
|
||||||
|
"sort",
|
||||||
|
"-S",
|
||||||
|
"formline",
|
||||||
|
"open",
|
||||||
|
"splice",
|
||||||
|
"-s",
|
||||||
|
"getc",
|
||||||
|
"opendir",
|
||||||
|
"split",
|
||||||
|
"-T",
|
||||||
|
"getgrent",
|
||||||
|
"ord",
|
||||||
|
"sprintf",
|
||||||
|
"-t",
|
||||||
|
"getgrgid",
|
||||||
|
"our",
|
||||||
|
"sqrt",
|
||||||
|
"-u",
|
||||||
|
"getgrnam",
|
||||||
|
"pack",
|
||||||
|
"srand",
|
||||||
|
"-w",
|
||||||
|
"gethostbyaddr",
|
||||||
|
"pipe",
|
||||||
|
"stat",
|
||||||
|
"-W",
|
||||||
|
"gethostbyname",
|
||||||
|
"pop",
|
||||||
|
"state",
|
||||||
|
"-X",
|
||||||
|
"gethostent",
|
||||||
|
"pos",
|
||||||
|
"study",
|
||||||
|
"-x",
|
||||||
|
"getlogin",
|
||||||
|
"print",
|
||||||
|
"substr",
|
||||||
|
"-z",
|
||||||
|
"getnetbyaddr",
|
||||||
|
"printf",
|
||||||
|
"symlink",
|
||||||
|
"abs",
|
||||||
|
"getnetbyname",
|
||||||
|
"prototype",
|
||||||
|
"syscall",
|
||||||
|
"accept",
|
||||||
|
"getnetent",
|
||||||
|
"push",
|
||||||
|
"sysopen",
|
||||||
|
"alarm",
|
||||||
|
"getpeername",
|
||||||
|
"quotemeta",
|
||||||
|
"sysread",
|
||||||
|
"atan2",
|
||||||
|
"getpgrp",
|
||||||
|
"rand",
|
||||||
|
"sysseek",
|
||||||
|
"AUTOLOAD",
|
||||||
|
"getppid",
|
||||||
|
"read",
|
||||||
|
"system",
|
||||||
|
"BEGIN",
|
||||||
|
"getpriority",
|
||||||
|
"readdir",
|
||||||
|
"syswrite",
|
||||||
|
"bind",
|
||||||
|
"getprotobyname",
|
||||||
|
"readline",
|
||||||
|
"tell",
|
||||||
|
"binmode",
|
||||||
|
"getprotobynumber",
|
||||||
|
"readlink",
|
||||||
|
"telldir",
|
||||||
|
"bless",
|
||||||
|
"getprotoent",
|
||||||
|
"readpipe",
|
||||||
|
"tie",
|
||||||
|
"break",
|
||||||
|
"getpwent",
|
||||||
|
"recv",
|
||||||
|
"tied",
|
||||||
|
"caller",
|
||||||
|
"getpwnam",
|
||||||
|
"redo",
|
||||||
|
"time",
|
||||||
|
"chdir",
|
||||||
|
"getpwuid",
|
||||||
|
"ref",
|
||||||
|
"times",
|
||||||
|
"CHECK",
|
||||||
|
"getservbyname",
|
||||||
|
"rename",
|
||||||
|
"truncate",
|
||||||
|
"chmod",
|
||||||
|
"getservbyport",
|
||||||
|
"require",
|
||||||
|
"uc",
|
||||||
|
"chomp",
|
||||||
|
"getservent",
|
||||||
|
"reset",
|
||||||
|
"ucfirst",
|
||||||
|
"chop",
|
||||||
|
"getsockname",
|
||||||
|
"return",
|
||||||
|
"umask",
|
||||||
|
"chown",
|
||||||
|
"getsockopt",
|
||||||
|
"reverse",
|
||||||
|
"undef",
|
||||||
|
"chr",
|
||||||
|
"glob",
|
||||||
|
"rewinddir",
|
||||||
|
"UNITCHECK",
|
||||||
|
"chroot",
|
||||||
|
"gmtime",
|
||||||
|
"rindex",
|
||||||
|
"unlink",
|
||||||
|
"close",
|
||||||
|
"goto",
|
||||||
|
"rmdir",
|
||||||
|
"unpack",
|
||||||
|
"closedir",
|
||||||
|
"grep",
|
||||||
|
"say",
|
||||||
|
"unshift",
|
||||||
|
"connect",
|
||||||
|
"hex",
|
||||||
|
"scalar",
|
||||||
|
"untie",
|
||||||
|
"cos",
|
||||||
|
"index",
|
||||||
|
"seek",
|
||||||
|
"use",
|
||||||
|
"crypt",
|
||||||
|
"INIT",
|
||||||
|
"seekdir",
|
||||||
|
"utime",
|
||||||
|
"dbmclose",
|
||||||
|
"int",
|
||||||
|
"select",
|
||||||
|
"values",
|
||||||
|
"dbmopen",
|
||||||
|
"ioctl",
|
||||||
|
"semctl",
|
||||||
|
"vec",
|
||||||
|
"defined",
|
||||||
|
"join",
|
||||||
|
"semget",
|
||||||
|
"wait",
|
||||||
|
"delete",
|
||||||
|
"keys",
|
||||||
|
"semop",
|
||||||
|
"waitpid",
|
||||||
|
"DESTROY",
|
||||||
|
"kill",
|
||||||
|
"send",
|
||||||
|
"wantarray",
|
||||||
|
"die",
|
||||||
|
"last",
|
||||||
|
"setgrent",
|
||||||
|
"warn",
|
||||||
|
"dump",
|
||||||
|
"lc",
|
||||||
|
"sethostent",
|
||||||
|
"write",
|
||||||
|
"each",
|
||||||
|
"lcfirst",
|
||||||
|
"setnetent"
|
||||||
|
],
|
||||||
|
builtinFileHandlers: ["ARGV", "STDERR", "STDOUT", "ARGVOUT", "STDIN", "ENV"],
|
||||||
|
builtinVariables: [
|
||||||
|
"$!",
|
||||||
|
"$^RE_TRIE_MAXBUF",
|
||||||
|
"$LAST_REGEXP_CODE_RESULT",
|
||||||
|
'$"',
|
||||||
|
"$^S",
|
||||||
|
"$LIST_SEPARATOR",
|
||||||
|
"$#",
|
||||||
|
"$^T",
|
||||||
|
"$MATCH",
|
||||||
|
"$$",
|
||||||
|
"$^TAINT",
|
||||||
|
"$MULTILINE_MATCHING",
|
||||||
|
"$%",
|
||||||
|
"$^UNICODE",
|
||||||
|
"$NR",
|
||||||
|
"$&",
|
||||||
|
"$^UTF8LOCALE",
|
||||||
|
"$OFMT",
|
||||||
|
"$'",
|
||||||
|
"$^V",
|
||||||
|
"$OFS",
|
||||||
|
"$(",
|
||||||
|
"$^W",
|
||||||
|
"$ORS",
|
||||||
|
"$)",
|
||||||
|
"$^WARNING_BITS",
|
||||||
|
"$OS_ERROR",
|
||||||
|
"$*",
|
||||||
|
"$^WIDE_SYSTEM_CALLS",
|
||||||
|
"$OSNAME",
|
||||||
|
"$+",
|
||||||
|
"$^X",
|
||||||
|
"$OUTPUT_AUTO_FLUSH",
|
||||||
|
"$,",
|
||||||
|
"$_",
|
||||||
|
"$OUTPUT_FIELD_SEPARATOR",
|
||||||
|
"$-",
|
||||||
|
"$`",
|
||||||
|
"$OUTPUT_RECORD_SEPARATOR",
|
||||||
|
"$.",
|
||||||
|
"$a",
|
||||||
|
"$PERL_VERSION",
|
||||||
|
"$/",
|
||||||
|
"$ACCUMULATOR",
|
||||||
|
"$PERLDB",
|
||||||
|
"$0",
|
||||||
|
"$ARG",
|
||||||
|
"$PID",
|
||||||
|
"$:",
|
||||||
|
"$ARGV",
|
||||||
|
"$POSTMATCH",
|
||||||
|
"$;",
|
||||||
|
"$b",
|
||||||
|
"$PREMATCH",
|
||||||
|
"$<",
|
||||||
|
"$BASETIME",
|
||||||
|
"$PROCESS_ID",
|
||||||
|
"$=",
|
||||||
|
"$CHILD_ERROR",
|
||||||
|
"$PROGRAM_NAME",
|
||||||
|
"$>",
|
||||||
|
"$COMPILING",
|
||||||
|
"$REAL_GROUP_ID",
|
||||||
|
"$?",
|
||||||
|
"$DEBUGGING",
|
||||||
|
"$REAL_USER_ID",
|
||||||
|
"$@",
|
||||||
|
"$EFFECTIVE_GROUP_ID",
|
||||||
|
"$RS",
|
||||||
|
"$[",
|
||||||
|
"$EFFECTIVE_USER_ID",
|
||||||
|
"$SUBSCRIPT_SEPARATOR",
|
||||||
|
"$\\",
|
||||||
|
"$EGID",
|
||||||
|
"$SUBSEP",
|
||||||
|
"$]",
|
||||||
|
"$ERRNO",
|
||||||
|
"$SYSTEM_FD_MAX",
|
||||||
|
"$^",
|
||||||
|
"$EUID",
|
||||||
|
"$UID",
|
||||||
|
"$^A",
|
||||||
|
"$EVAL_ERROR",
|
||||||
|
"$WARNING",
|
||||||
|
"$^C",
|
||||||
|
"$EXCEPTIONS_BEING_CAUGHT",
|
||||||
|
"$|",
|
||||||
|
"$^CHILD_ERROR_NATIVE",
|
||||||
|
"$EXECUTABLE_NAME",
|
||||||
|
"$~",
|
||||||
|
"$^D",
|
||||||
|
"$EXTENDED_OS_ERROR",
|
||||||
|
"%!",
|
||||||
|
"$^E",
|
||||||
|
"$FORMAT_FORMFEED",
|
||||||
|
"%^H",
|
||||||
|
"$^ENCODING",
|
||||||
|
"$FORMAT_LINE_BREAK_CHARACTERS",
|
||||||
|
"%ENV",
|
||||||
|
"$^F",
|
||||||
|
"$FORMAT_LINES_LEFT",
|
||||||
|
"%INC",
|
||||||
|
"$^H",
|
||||||
|
"$FORMAT_LINES_PER_PAGE",
|
||||||
|
"%OVERLOAD",
|
||||||
|
"$^I",
|
||||||
|
"$FORMAT_NAME",
|
||||||
|
"%SIG",
|
||||||
|
"$^L",
|
||||||
|
"$FORMAT_PAGE_NUMBER",
|
||||||
|
"@+",
|
||||||
|
"$^M",
|
||||||
|
"$FORMAT_TOP_NAME",
|
||||||
|
"@-",
|
||||||
|
"$^N",
|
||||||
|
"$GID",
|
||||||
|
"@_",
|
||||||
|
"$^O",
|
||||||
|
"$INPLACE_EDIT",
|
||||||
|
"@ARGV",
|
||||||
|
"$^OPEN",
|
||||||
|
"$INPUT_LINE_NUMBER",
|
||||||
|
"@INC",
|
||||||
|
"$^P",
|
||||||
|
"$INPUT_RECORD_SEPARATOR",
|
||||||
|
"@LAST_MATCH_START",
|
||||||
|
"$^R",
|
||||||
|
"$LAST_MATCH_END",
|
||||||
|
"$^RE_DEBUG_FLAGS",
|
||||||
|
"$LAST_PAREN_MATCH"
|
||||||
|
],
|
||||||
|
symbols: /[:+\-\^*$&%@=<>!?|\/~\.]/,
|
||||||
|
quoteLikeOps: ["qr", "m", "s", "q", "qq", "qx", "qw", "tr", "y"],
|
||||||
|
escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
|
||||||
|
tokenizer: {
|
||||||
|
root: [
|
||||||
|
{ include: "@whitespace" },
|
||||||
|
[
|
||||||
|
/[a-zA-Z\-_][\w\-_]*/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"@keywords": "keyword",
|
||||||
|
"@builtinFunctions": "type.identifier",
|
||||||
|
"@builtinFileHandlers": "variable.predefined",
|
||||||
|
"@quoteLikeOps": {
|
||||||
|
token: "@rematch",
|
||||||
|
next: "quotedConstructs"
|
||||||
|
},
|
||||||
|
"@default": ""
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[
|
||||||
|
/[\$@%][*@#?\+\-\$!\w\\\^><~:;\.]+/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"@builtinVariables": "variable.predefined",
|
||||||
|
"@default": "variable"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
{ include: "@strings" },
|
||||||
|
{ include: "@dblStrings" },
|
||||||
|
{ include: "@perldoc" },
|
||||||
|
{ include: "@heredoc" },
|
||||||
|
[/[{}\[\]()]/, "@brackets"],
|
||||||
|
[/[\/](?:(?:\[(?:\\]|[^\]])+\])|(?:\\\/|[^\]\/]))*[\/]\w*\s*(?=[).,;]|$)/, "regexp"],
|
||||||
|
[/@symbols/, "operators"],
|
||||||
|
{ include: "@numbers" },
|
||||||
|
[/[,;]/, "delimiter"]
|
||||||
|
],
|
||||||
|
whitespace: [
|
||||||
|
[/\s+/, "white"],
|
||||||
|
[/(^#!.*$)/, "metatag"],
|
||||||
|
[/(^#.*$)/, "comment"]
|
||||||
|
],
|
||||||
|
numbers: [
|
||||||
|
[/\d*\.\d+([eE][\-+]?\d+)?/, "number.float"],
|
||||||
|
[/0[xX][0-9a-fA-F_]*[0-9a-fA-F]/, "number.hex"],
|
||||||
|
[/\d+/, "number"]
|
||||||
|
],
|
||||||
|
strings: [[/'/, "string", "@stringBody"]],
|
||||||
|
stringBody: [
|
||||||
|
[/'/, "string", "@popall"],
|
||||||
|
[/\\'/, "string.escape"],
|
||||||
|
[/./, "string"]
|
||||||
|
],
|
||||||
|
dblStrings: [[/"/, "string", "@dblStringBody"]],
|
||||||
|
dblStringBody: [
|
||||||
|
[/"/, "string", "@popall"],
|
||||||
|
[/@escapes/, "string.escape"],
|
||||||
|
[/\\./, "string.escape.invalid"],
|
||||||
|
{ include: "@variables" },
|
||||||
|
[/./, "string"]
|
||||||
|
],
|
||||||
|
quotedConstructs: [
|
||||||
|
[/(q|qw|tr|y)\s*\(/, { token: "string.delim", switchTo: "@qstring.(.)" }],
|
||||||
|
[/(q|qw|tr|y)\s*\[/, { token: "string.delim", switchTo: "@qstring.[.]" }],
|
||||||
|
[/(q|qw|tr|y)\s*\{/, { token: "string.delim", switchTo: "@qstring.{.}" }],
|
||||||
|
[/(q|qw|tr|y)\s*</, { token: "string.delim", switchTo: "@qstring.<.>" }],
|
||||||
|
[/(q|qw|tr|y)#/, { token: "string.delim", switchTo: "@qstring.#.#" }],
|
||||||
|
[/(q|qw|tr|y)\s*([^A-Za-z0-9#\s])/, { token: "string.delim", switchTo: "@qstring.$2.$2" }],
|
||||||
|
[/(q|qw|tr|y)\s+(\w)/, { token: "string.delim", switchTo: "@qstring.$2.$2" }],
|
||||||
|
[/(qr|m|s)\s*\(/, { token: "regexp.delim", switchTo: "@qregexp.(.)" }],
|
||||||
|
[/(qr|m|s)\s*\[/, { token: "regexp.delim", switchTo: "@qregexp.[.]" }],
|
||||||
|
[/(qr|m|s)\s*\{/, { token: "regexp.delim", switchTo: "@qregexp.{.}" }],
|
||||||
|
[/(qr|m|s)\s*</, { token: "regexp.delim", switchTo: "@qregexp.<.>" }],
|
||||||
|
[/(qr|m|s)#/, { token: "regexp.delim", switchTo: "@qregexp.#.#" }],
|
||||||
|
[/(qr|m|s)\s*([^A-Za-z0-9_#\s])/, { token: "regexp.delim", switchTo: "@qregexp.$2.$2" }],
|
||||||
|
[/(qr|m|s)\s+(\w)/, { token: "regexp.delim", switchTo: "@qregexp.$2.$2" }],
|
||||||
|
[/(qq|qx)\s*\(/, { token: "string.delim", switchTo: "@qqstring.(.)" }],
|
||||||
|
[/(qq|qx)\s*\[/, { token: "string.delim", switchTo: "@qqstring.[.]" }],
|
||||||
|
[/(qq|qx)\s*\{/, { token: "string.delim", switchTo: "@qqstring.{.}" }],
|
||||||
|
[/(qq|qx)\s*</, { token: "string.delim", switchTo: "@qqstring.<.>" }],
|
||||||
|
[/(qq|qx)#/, { token: "string.delim", switchTo: "@qqstring.#.#" }],
|
||||||
|
[/(qq|qx)\s*([^A-Za-z0-9#\s])/, { token: "string.delim", switchTo: "@qqstring.$2.$2" }],
|
||||||
|
[/(qq|qx)\s+(\w)/, { token: "string.delim", switchTo: "@qqstring.$2.$2" }]
|
||||||
|
],
|
||||||
|
qstring: [
|
||||||
|
[/\\./, "string.escape"],
|
||||||
|
[
|
||||||
|
/./,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"$#==$S3": { token: "string.delim", next: "@pop" },
|
||||||
|
"$#==$S2": { token: "string.delim", next: "@push" },
|
||||||
|
"@default": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
],
|
||||||
|
qregexp: [
|
||||||
|
{ include: "@variables" },
|
||||||
|
[/\\./, "regexp.escape"],
|
||||||
|
[
|
||||||
|
/./,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"$#==$S3": {
|
||||||
|
token: "regexp.delim",
|
||||||
|
next: "@regexpModifiers"
|
||||||
|
},
|
||||||
|
"$#==$S2": { token: "regexp.delim", next: "@push" },
|
||||||
|
"@default": "regexp"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
],
|
||||||
|
regexpModifiers: [[/[msixpodualngcer]+/, { token: "regexp.modifier", next: "@popall" }]],
|
||||||
|
qqstring: [{ include: "@variables" }, { include: "@qstring" }],
|
||||||
|
heredoc: [
|
||||||
|
[/<<\s*['"`]?([\w\-]+)['"`]?/, { token: "string.heredoc.delimiter", next: "@heredocBody.$1" }]
|
||||||
|
],
|
||||||
|
heredocBody: [
|
||||||
|
[
|
||||||
|
/^([\w\-]+)$/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"$1==$S2": [
|
||||||
|
{
|
||||||
|
token: "string.heredoc.delimiter",
|
||||||
|
next: "@popall"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"@default": "string.heredoc"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/./, "string.heredoc"]
|
||||||
|
],
|
||||||
|
perldoc: [[/^=\w/, "comment.doc", "@perldocBody"]],
|
||||||
|
perldocBody: [
|
||||||
|
[/^=cut\b/, "type.identifier", "@popall"],
|
||||||
|
[/./, "comment.doc"]
|
||||||
|
],
|
||||||
|
variables: [
|
||||||
|
[/\$\w+/, "variable"],
|
||||||
|
[/@\w+/, "variable"],
|
||||||
|
[/%\w+/, "variable"]
|
||||||
|
]
|
||||||
|
}
|
||||||
|
};
|
||||||
|
return __toCommonJS(perl_exports);
|
||||||
|
})();
|
||||||
|
return moduleExports;
|
||||||
|
});
|
||||||
@@ -0,0 +1,875 @@
|
|||||||
|
/*!-----------------------------------------------------------------------------
|
||||||
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||||
|
* Version: 0.33.0(4b1abad427e58dbedc1215d99a0902ffc885fcd4)
|
||||||
|
* Released under the MIT license
|
||||||
|
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
||||||
|
*-----------------------------------------------------------------------------*/
|
||||||
|
define("vs/basic-languages/pgsql/pgsql", ["require"],(require)=>{
|
||||||
|
var moduleExports = (() => {
|
||||||
|
var __defProp = Object.defineProperty;
|
||||||
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||||
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||||
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||||
|
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
||||||
|
var __export = (target, all) => {
|
||||||
|
for (var name in all)
|
||||||
|
__defProp(target, name, { get: all[name], enumerable: true });
|
||||||
|
};
|
||||||
|
var __reExport = (target, module, copyDefault, desc) => {
|
||||||
|
if (module && typeof module === "object" || typeof module === "function") {
|
||||||
|
for (let key of __getOwnPropNames(module))
|
||||||
|
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
||||||
|
__defProp(target, key, { get: () => module[key], enumerable: !(desc = __getOwnPropDesc(module, key)) || desc.enumerable });
|
||||||
|
}
|
||||||
|
return target;
|
||||||
|
};
|
||||||
|
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
||||||
|
return (module, temp) => {
|
||||||
|
return cache && cache.get(module) || (temp = __reExport(__markAsModule({}), module, 1), cache && cache.set(module, temp), temp);
|
||||||
|
};
|
||||||
|
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
||||||
|
|
||||||
|
// src/basic-languages/pgsql/pgsql.ts
|
||||||
|
var pgsql_exports = {};
|
||||||
|
__export(pgsql_exports, {
|
||||||
|
conf: () => conf,
|
||||||
|
language: () => language
|
||||||
|
});
|
||||||
|
var conf = {
|
||||||
|
comments: {
|
||||||
|
lineComment: "--",
|
||||||
|
blockComment: ["/*", "*/"]
|
||||||
|
},
|
||||||
|
brackets: [
|
||||||
|
["{", "}"],
|
||||||
|
["[", "]"],
|
||||||
|
["(", ")"]
|
||||||
|
],
|
||||||
|
autoClosingPairs: [
|
||||||
|
{ open: "{", close: "}" },
|
||||||
|
{ open: "[", close: "]" },
|
||||||
|
{ open: "(", close: ")" },
|
||||||
|
{ open: '"', close: '"' },
|
||||||
|
{ open: "'", close: "'" }
|
||||||
|
],
|
||||||
|
surroundingPairs: [
|
||||||
|
{ open: "{", close: "}" },
|
||||||
|
{ open: "[", close: "]" },
|
||||||
|
{ open: "(", close: ")" },
|
||||||
|
{ open: '"', close: '"' },
|
||||||
|
{ open: "'", close: "'" }
|
||||||
|
]
|
||||||
|
};
|
||||||
|
var language = {
|
||||||
|
defaultToken: "",
|
||||||
|
tokenPostfix: ".sql",
|
||||||
|
ignoreCase: true,
|
||||||
|
brackets: [
|
||||||
|
{ open: "[", close: "]", token: "delimiter.square" },
|
||||||
|
{ open: "(", close: ")", token: "delimiter.parenthesis" }
|
||||||
|
],
|
||||||
|
keywords: [
|
||||||
|
"ALL",
|
||||||
|
"ANALYSE",
|
||||||
|
"ANALYZE",
|
||||||
|
"AND",
|
||||||
|
"ANY",
|
||||||
|
"ARRAY",
|
||||||
|
"AS",
|
||||||
|
"ASC",
|
||||||
|
"ASYMMETRIC",
|
||||||
|
"AUTHORIZATION",
|
||||||
|
"BINARY",
|
||||||
|
"BOTH",
|
||||||
|
"CASE",
|
||||||
|
"CAST",
|
||||||
|
"CHECK",
|
||||||
|
"COLLATE",
|
||||||
|
"COLLATION",
|
||||||
|
"COLUMN",
|
||||||
|
"CONCURRENTLY",
|
||||||
|
"CONSTRAINT",
|
||||||
|
"CREATE",
|
||||||
|
"CROSS",
|
||||||
|
"CURRENT_CATALOG",
|
||||||
|
"CURRENT_DATE",
|
||||||
|
"CURRENT_ROLE",
|
||||||
|
"CURRENT_SCHEMA",
|
||||||
|
"CURRENT_TIME",
|
||||||
|
"CURRENT_TIMESTAMP",
|
||||||
|
"CURRENT_USER",
|
||||||
|
"DEFAULT",
|
||||||
|
"DEFERRABLE",
|
||||||
|
"DESC",
|
||||||
|
"DISTINCT",
|
||||||
|
"DO",
|
||||||
|
"ELSE",
|
||||||
|
"END",
|
||||||
|
"EXCEPT",
|
||||||
|
"FALSE",
|
||||||
|
"FETCH",
|
||||||
|
"FOR",
|
||||||
|
"FOREIGN",
|
||||||
|
"FREEZE",
|
||||||
|
"FROM",
|
||||||
|
"FULL",
|
||||||
|
"GRANT",
|
||||||
|
"GROUP",
|
||||||
|
"HAVING",
|
||||||
|
"ILIKE",
|
||||||
|
"IN",
|
||||||
|
"INITIALLY",
|
||||||
|
"INNER",
|
||||||
|
"INTERSECT",
|
||||||
|
"INTO",
|
||||||
|
"IS",
|
||||||
|
"ISNULL",
|
||||||
|
"JOIN",
|
||||||
|
"LATERAL",
|
||||||
|
"LEADING",
|
||||||
|
"LEFT",
|
||||||
|
"LIKE",
|
||||||
|
"LIMIT",
|
||||||
|
"LOCALTIME",
|
||||||
|
"LOCALTIMESTAMP",
|
||||||
|
"NATURAL",
|
||||||
|
"NOT",
|
||||||
|
"NOTNULL",
|
||||||
|
"NULL",
|
||||||
|
"OFFSET",
|
||||||
|
"ON",
|
||||||
|
"ONLY",
|
||||||
|
"OR",
|
||||||
|
"ORDER",
|
||||||
|
"OUTER",
|
||||||
|
"OVERLAPS",
|
||||||
|
"PLACING",
|
||||||
|
"PRIMARY",
|
||||||
|
"REFERENCES",
|
||||||
|
"RETURNING",
|
||||||
|
"RIGHT",
|
||||||
|
"SELECT",
|
||||||
|
"SESSION_USER",
|
||||||
|
"SIMILAR",
|
||||||
|
"SOME",
|
||||||
|
"SYMMETRIC",
|
||||||
|
"TABLE",
|
||||||
|
"TABLESAMPLE",
|
||||||
|
"THEN",
|
||||||
|
"TO",
|
||||||
|
"TRAILING",
|
||||||
|
"TRUE",
|
||||||
|
"UNION",
|
||||||
|
"UNIQUE",
|
||||||
|
"USER",
|
||||||
|
"USING",
|
||||||
|
"VARIADIC",
|
||||||
|
"VERBOSE",
|
||||||
|
"WHEN",
|
||||||
|
"WHERE",
|
||||||
|
"WINDOW",
|
||||||
|
"WITH"
|
||||||
|
],
|
||||||
|
operators: [
|
||||||
|
"AND",
|
||||||
|
"BETWEEN",
|
||||||
|
"IN",
|
||||||
|
"LIKE",
|
||||||
|
"NOT",
|
||||||
|
"OR",
|
||||||
|
"IS",
|
||||||
|
"NULL",
|
||||||
|
"INTERSECT",
|
||||||
|
"UNION",
|
||||||
|
"INNER",
|
||||||
|
"JOIN",
|
||||||
|
"LEFT",
|
||||||
|
"OUTER",
|
||||||
|
"RIGHT"
|
||||||
|
],
|
||||||
|
builtinFunctions: [
|
||||||
|
"abbrev",
|
||||||
|
"abs",
|
||||||
|
"acldefault",
|
||||||
|
"aclexplode",
|
||||||
|
"acos",
|
||||||
|
"acosd",
|
||||||
|
"acosh",
|
||||||
|
"age",
|
||||||
|
"any",
|
||||||
|
"area",
|
||||||
|
"array_agg",
|
||||||
|
"array_append",
|
||||||
|
"array_cat",
|
||||||
|
"array_dims",
|
||||||
|
"array_fill",
|
||||||
|
"array_length",
|
||||||
|
"array_lower",
|
||||||
|
"array_ndims",
|
||||||
|
"array_position",
|
||||||
|
"array_positions",
|
||||||
|
"array_prepend",
|
||||||
|
"array_remove",
|
||||||
|
"array_replace",
|
||||||
|
"array_to_json",
|
||||||
|
"array_to_string",
|
||||||
|
"array_to_tsvector",
|
||||||
|
"array_upper",
|
||||||
|
"ascii",
|
||||||
|
"asin",
|
||||||
|
"asind",
|
||||||
|
"asinh",
|
||||||
|
"atan",
|
||||||
|
"atan2",
|
||||||
|
"atan2d",
|
||||||
|
"atand",
|
||||||
|
"atanh",
|
||||||
|
"avg",
|
||||||
|
"bit",
|
||||||
|
"bit_and",
|
||||||
|
"bit_count",
|
||||||
|
"bit_length",
|
||||||
|
"bit_or",
|
||||||
|
"bit_xor",
|
||||||
|
"bool_and",
|
||||||
|
"bool_or",
|
||||||
|
"bound_box",
|
||||||
|
"box",
|
||||||
|
"brin_desummarize_range",
|
||||||
|
"brin_summarize_new_values",
|
||||||
|
"brin_summarize_range",
|
||||||
|
"broadcast",
|
||||||
|
"btrim",
|
||||||
|
"cardinality",
|
||||||
|
"cbrt",
|
||||||
|
"ceil",
|
||||||
|
"ceiling",
|
||||||
|
"center",
|
||||||
|
"char_length",
|
||||||
|
"character_length",
|
||||||
|
"chr",
|
||||||
|
"circle",
|
||||||
|
"clock_timestamp",
|
||||||
|
"coalesce",
|
||||||
|
"col_description",
|
||||||
|
"concat",
|
||||||
|
"concat_ws",
|
||||||
|
"convert",
|
||||||
|
"convert_from",
|
||||||
|
"convert_to",
|
||||||
|
"corr",
|
||||||
|
"cos",
|
||||||
|
"cosd",
|
||||||
|
"cosh",
|
||||||
|
"cot",
|
||||||
|
"cotd",
|
||||||
|
"count",
|
||||||
|
"covar_pop",
|
||||||
|
"covar_samp",
|
||||||
|
"cume_dist",
|
||||||
|
"current_catalog",
|
||||||
|
"current_database",
|
||||||
|
"current_date",
|
||||||
|
"current_query",
|
||||||
|
"current_role",
|
||||||
|
"current_schema",
|
||||||
|
"current_schemas",
|
||||||
|
"current_setting",
|
||||||
|
"current_time",
|
||||||
|
"current_timestamp",
|
||||||
|
"current_user",
|
||||||
|
"currval",
|
||||||
|
"cursor_to_xml",
|
||||||
|
"cursor_to_xmlschema",
|
||||||
|
"date_bin",
|
||||||
|
"date_part",
|
||||||
|
"date_trunc",
|
||||||
|
"database_to_xml",
|
||||||
|
"database_to_xml_and_xmlschema",
|
||||||
|
"database_to_xmlschema",
|
||||||
|
"decode",
|
||||||
|
"degrees",
|
||||||
|
"dense_rank",
|
||||||
|
"diagonal",
|
||||||
|
"diameter",
|
||||||
|
"div",
|
||||||
|
"encode",
|
||||||
|
"enum_first",
|
||||||
|
"enum_last",
|
||||||
|
"enum_range",
|
||||||
|
"every",
|
||||||
|
"exp",
|
||||||
|
"extract",
|
||||||
|
"factorial",
|
||||||
|
"family",
|
||||||
|
"first_value",
|
||||||
|
"floor",
|
||||||
|
"format",
|
||||||
|
"format_type",
|
||||||
|
"gcd",
|
||||||
|
"gen_random_uuid",
|
||||||
|
"generate_series",
|
||||||
|
"generate_subscripts",
|
||||||
|
"get_bit",
|
||||||
|
"get_byte",
|
||||||
|
"get_current_ts_config",
|
||||||
|
"gin_clean_pending_list",
|
||||||
|
"greatest",
|
||||||
|
"grouping",
|
||||||
|
"has_any_column_privilege",
|
||||||
|
"has_column_privilege",
|
||||||
|
"has_database_privilege",
|
||||||
|
"has_foreign_data_wrapper_privilege",
|
||||||
|
"has_function_privilege",
|
||||||
|
"has_language_privilege",
|
||||||
|
"has_schema_privilege",
|
||||||
|
"has_sequence_privilege",
|
||||||
|
"has_server_privilege",
|
||||||
|
"has_table_privilege",
|
||||||
|
"has_tablespace_privilege",
|
||||||
|
"has_type_privilege",
|
||||||
|
"height",
|
||||||
|
"host",
|
||||||
|
"hostmask",
|
||||||
|
"inet_client_addr",
|
||||||
|
"inet_client_port",
|
||||||
|
"inet_merge",
|
||||||
|
"inet_same_family",
|
||||||
|
"inet_server_addr",
|
||||||
|
"inet_server_port",
|
||||||
|
"initcap",
|
||||||
|
"isclosed",
|
||||||
|
"isempty",
|
||||||
|
"isfinite",
|
||||||
|
"isopen",
|
||||||
|
"json_agg",
|
||||||
|
"json_array_elements",
|
||||||
|
"json_array_elements_text",
|
||||||
|
"json_array_length",
|
||||||
|
"json_build_array",
|
||||||
|
"json_build_object",
|
||||||
|
"json_each",
|
||||||
|
"json_each_text",
|
||||||
|
"json_extract_path",
|
||||||
|
"json_extract_path_text",
|
||||||
|
"json_object",
|
||||||
|
"json_object_agg",
|
||||||
|
"json_object_keys",
|
||||||
|
"json_populate_record",
|
||||||
|
"json_populate_recordset",
|
||||||
|
"json_strip_nulls",
|
||||||
|
"json_to_record",
|
||||||
|
"json_to_recordset",
|
||||||
|
"json_to_tsvector",
|
||||||
|
"json_typeof",
|
||||||
|
"jsonb_agg",
|
||||||
|
"jsonb_array_elements",
|
||||||
|
"jsonb_array_elements_text",
|
||||||
|
"jsonb_array_length",
|
||||||
|
"jsonb_build_array",
|
||||||
|
"jsonb_build_object",
|
||||||
|
"jsonb_each",
|
||||||
|
"jsonb_each_text",
|
||||||
|
"jsonb_extract_path",
|
||||||
|
"jsonb_extract_path_text",
|
||||||
|
"jsonb_insert",
|
||||||
|
"jsonb_object",
|
||||||
|
"jsonb_object_agg",
|
||||||
|
"jsonb_object_keys",
|
||||||
|
"jsonb_path_exists",
|
||||||
|
"jsonb_path_match",
|
||||||
|
"jsonb_path_query",
|
||||||
|
"jsonb_path_query_array",
|
||||||
|
"jsonb_path_exists_tz",
|
||||||
|
"jsonb_path_query_first",
|
||||||
|
"jsonb_path_query_array_tz",
|
||||||
|
"jsonb_path_query_first_tz",
|
||||||
|
"jsonb_path_query_tz",
|
||||||
|
"jsonb_path_match_tz",
|
||||||
|
"jsonb_populate_record",
|
||||||
|
"jsonb_populate_recordset",
|
||||||
|
"jsonb_pretty",
|
||||||
|
"jsonb_set",
|
||||||
|
"jsonb_set_lax",
|
||||||
|
"jsonb_strip_nulls",
|
||||||
|
"jsonb_to_record",
|
||||||
|
"jsonb_to_recordset",
|
||||||
|
"jsonb_to_tsvector",
|
||||||
|
"jsonb_typeof",
|
||||||
|
"justify_days",
|
||||||
|
"justify_hours",
|
||||||
|
"justify_interval",
|
||||||
|
"lag",
|
||||||
|
"last_value",
|
||||||
|
"lastval",
|
||||||
|
"lcm",
|
||||||
|
"lead",
|
||||||
|
"least",
|
||||||
|
"left",
|
||||||
|
"length",
|
||||||
|
"line",
|
||||||
|
"ln",
|
||||||
|
"localtime",
|
||||||
|
"localtimestamp",
|
||||||
|
"log",
|
||||||
|
"log10",
|
||||||
|
"lower",
|
||||||
|
"lower_inc",
|
||||||
|
"lower_inf",
|
||||||
|
"lpad",
|
||||||
|
"lseg",
|
||||||
|
"ltrim",
|
||||||
|
"macaddr8_set7bit",
|
||||||
|
"make_date",
|
||||||
|
"make_interval",
|
||||||
|
"make_time",
|
||||||
|
"make_timestamp",
|
||||||
|
"make_timestamptz",
|
||||||
|
"makeaclitem",
|
||||||
|
"masklen",
|
||||||
|
"max",
|
||||||
|
"md5",
|
||||||
|
"min",
|
||||||
|
"min_scale",
|
||||||
|
"mod",
|
||||||
|
"mode",
|
||||||
|
"multirange",
|
||||||
|
"netmask",
|
||||||
|
"network",
|
||||||
|
"nextval",
|
||||||
|
"normalize",
|
||||||
|
"now",
|
||||||
|
"npoints",
|
||||||
|
"nth_value",
|
||||||
|
"ntile",
|
||||||
|
"nullif",
|
||||||
|
"num_nonnulls",
|
||||||
|
"num_nulls",
|
||||||
|
"numnode",
|
||||||
|
"obj_description",
|
||||||
|
"octet_length",
|
||||||
|
"overlay",
|
||||||
|
"parse_ident",
|
||||||
|
"path",
|
||||||
|
"pclose",
|
||||||
|
"percent_rank",
|
||||||
|
"percentile_cont",
|
||||||
|
"percentile_disc",
|
||||||
|
"pg_advisory_lock",
|
||||||
|
"pg_advisory_lock_shared",
|
||||||
|
"pg_advisory_unlock",
|
||||||
|
"pg_advisory_unlock_all",
|
||||||
|
"pg_advisory_unlock_shared",
|
||||||
|
"pg_advisory_xact_lock",
|
||||||
|
"pg_advisory_xact_lock_shared",
|
||||||
|
"pg_backend_pid",
|
||||||
|
"pg_backup_start_time",
|
||||||
|
"pg_blocking_pids",
|
||||||
|
"pg_cancel_backend",
|
||||||
|
"pg_client_encoding",
|
||||||
|
"pg_collation_actual_version",
|
||||||
|
"pg_collation_is_visible",
|
||||||
|
"pg_column_compression",
|
||||||
|
"pg_column_size",
|
||||||
|
"pg_conf_load_time",
|
||||||
|
"pg_control_checkpoint",
|
||||||
|
"pg_control_init",
|
||||||
|
"pg_control_recovery",
|
||||||
|
"pg_control_system",
|
||||||
|
"pg_conversion_is_visible",
|
||||||
|
"pg_copy_logical_replication_slot",
|
||||||
|
"pg_copy_physical_replication_slot",
|
||||||
|
"pg_create_logical_replication_slot",
|
||||||
|
"pg_create_physical_replication_slot",
|
||||||
|
"pg_create_restore_point",
|
||||||
|
"pg_current_logfile",
|
||||||
|
"pg_current_snapshot",
|
||||||
|
"pg_current_wal_flush_lsn",
|
||||||
|
"pg_current_wal_insert_lsn",
|
||||||
|
"pg_current_wal_lsn",
|
||||||
|
"pg_current_xact_id",
|
||||||
|
"pg_current_xact_id_if_assigned",
|
||||||
|
"pg_current_xlog_flush_location",
|
||||||
|
"pg_current_xlog_insert_location",
|
||||||
|
"pg_current_xlog_location",
|
||||||
|
"pg_database_size",
|
||||||
|
"pg_describe_object",
|
||||||
|
"pg_drop_replication_slot",
|
||||||
|
"pg_event_trigger_ddl_commands",
|
||||||
|
"pg_event_trigger_dropped_objects",
|
||||||
|
"pg_event_trigger_table_rewrite_oid",
|
||||||
|
"pg_event_trigger_table_rewrite_reason",
|
||||||
|
"pg_export_snapshot",
|
||||||
|
"pg_filenode_relation",
|
||||||
|
"pg_function_is_visible",
|
||||||
|
"pg_get_catalog_foreign_keys",
|
||||||
|
"pg_get_constraintdef",
|
||||||
|
"pg_get_expr",
|
||||||
|
"pg_get_function_arguments",
|
||||||
|
"pg_get_function_identity_arguments",
|
||||||
|
"pg_get_function_result",
|
||||||
|
"pg_get_functiondef",
|
||||||
|
"pg_get_indexdef",
|
||||||
|
"pg_get_keywords",
|
||||||
|
"pg_get_object_address",
|
||||||
|
"pg_get_owned_sequence",
|
||||||
|
"pg_get_ruledef",
|
||||||
|
"pg_get_serial_sequence",
|
||||||
|
"pg_get_statisticsobjdef",
|
||||||
|
"pg_get_triggerdef",
|
||||||
|
"pg_get_userbyid",
|
||||||
|
"pg_get_viewdef",
|
||||||
|
"pg_get_wal_replay_pause_state",
|
||||||
|
"pg_has_role",
|
||||||
|
"pg_identify_object",
|
||||||
|
"pg_identify_object_as_address",
|
||||||
|
"pg_import_system_collations",
|
||||||
|
"pg_index_column_has_property",
|
||||||
|
"pg_index_has_property",
|
||||||
|
"pg_indexam_has_property",
|
||||||
|
"pg_indexes_size",
|
||||||
|
"pg_is_in_backup",
|
||||||
|
"pg_is_in_recovery",
|
||||||
|
"pg_is_other_temp_schema",
|
||||||
|
"pg_is_wal_replay_paused",
|
||||||
|
"pg_is_xlog_replay_paused",
|
||||||
|
"pg_jit_available",
|
||||||
|
"pg_last_committed_xact",
|
||||||
|
"pg_last_wal_receive_lsn",
|
||||||
|
"pg_last_wal_replay_lsn",
|
||||||
|
"pg_last_xact_replay_timestamp",
|
||||||
|
"pg_last_xlog_receive_location",
|
||||||
|
"pg_last_xlog_replay_location",
|
||||||
|
"pg_listening_channels",
|
||||||
|
"pg_log_backend_memory_contexts",
|
||||||
|
"pg_logical_emit_message",
|
||||||
|
"pg_logical_slot_get_binary_changes",
|
||||||
|
"pg_logical_slot_get_changes",
|
||||||
|
"pg_logical_slot_peek_binary_changes",
|
||||||
|
"pg_logical_slot_peek_changes",
|
||||||
|
"pg_ls_archive_statusdir",
|
||||||
|
"pg_ls_dir",
|
||||||
|
"pg_ls_logdir",
|
||||||
|
"pg_ls_tmpdir",
|
||||||
|
"pg_ls_waldir",
|
||||||
|
"pg_mcv_list_items",
|
||||||
|
"pg_my_temp_schema",
|
||||||
|
"pg_notification_queue_usage",
|
||||||
|
"pg_opclass_is_visible",
|
||||||
|
"pg_operator_is_visible",
|
||||||
|
"pg_opfamily_is_visible",
|
||||||
|
"pg_options_to_table",
|
||||||
|
"pg_partition_ancestors",
|
||||||
|
"pg_partition_root",
|
||||||
|
"pg_partition_tree",
|
||||||
|
"pg_postmaster_start_time",
|
||||||
|
"pg_promote",
|
||||||
|
"pg_read_binary_file",
|
||||||
|
"pg_read_file",
|
||||||
|
"pg_relation_filenode",
|
||||||
|
"pg_relation_filepath",
|
||||||
|
"pg_relation_size",
|
||||||
|
"pg_reload_conf",
|
||||||
|
"pg_replication_origin_advance",
|
||||||
|
"pg_replication_origin_create",
|
||||||
|
"pg_replication_origin_drop",
|
||||||
|
"pg_replication_origin_oid",
|
||||||
|
"pg_replication_origin_progress",
|
||||||
|
"pg_replication_origin_session_is_setup",
|
||||||
|
"pg_replication_origin_session_progress",
|
||||||
|
"pg_replication_origin_session_reset",
|
||||||
|
"pg_replication_origin_session_setup",
|
||||||
|
"pg_replication_origin_xact_reset",
|
||||||
|
"pg_replication_origin_xact_setup",
|
||||||
|
"pg_replication_slot_advance",
|
||||||
|
"pg_rotate_logfile",
|
||||||
|
"pg_safe_snapshot_blocking_pids",
|
||||||
|
"pg_size_bytes",
|
||||||
|
"pg_size_pretty",
|
||||||
|
"pg_sleep",
|
||||||
|
"pg_sleep_for",
|
||||||
|
"pg_sleep_until",
|
||||||
|
"pg_snapshot_xip",
|
||||||
|
"pg_snapshot_xmax",
|
||||||
|
"pg_snapshot_xmin",
|
||||||
|
"pg_start_backup",
|
||||||
|
"pg_stat_file",
|
||||||
|
"pg_statistics_obj_is_visible",
|
||||||
|
"pg_stop_backup",
|
||||||
|
"pg_switch_wal",
|
||||||
|
"pg_switch_xlog",
|
||||||
|
"pg_table_is_visible",
|
||||||
|
"pg_table_size",
|
||||||
|
"pg_tablespace_databases",
|
||||||
|
"pg_tablespace_location",
|
||||||
|
"pg_tablespace_size",
|
||||||
|
"pg_terminate_backend",
|
||||||
|
"pg_total_relation_size",
|
||||||
|
"pg_trigger_depth",
|
||||||
|
"pg_try_advisory_lock",
|
||||||
|
"pg_try_advisory_lock_shared",
|
||||||
|
"pg_try_advisory_xact_lock",
|
||||||
|
"pg_try_advisory_xact_lock_shared",
|
||||||
|
"pg_ts_config_is_visible",
|
||||||
|
"pg_ts_dict_is_visible",
|
||||||
|
"pg_ts_parser_is_visible",
|
||||||
|
"pg_ts_template_is_visible",
|
||||||
|
"pg_type_is_visible",
|
||||||
|
"pg_typeof",
|
||||||
|
"pg_visible_in_snapshot",
|
||||||
|
"pg_wal_lsn_diff",
|
||||||
|
"pg_wal_replay_pause",
|
||||||
|
"pg_wal_replay_resume",
|
||||||
|
"pg_walfile_name",
|
||||||
|
"pg_walfile_name_offset",
|
||||||
|
"pg_xact_commit_timestamp",
|
||||||
|
"pg_xact_commit_timestamp_origin",
|
||||||
|
"pg_xact_status",
|
||||||
|
"pg_xlog_location_diff",
|
||||||
|
"pg_xlog_replay_pause",
|
||||||
|
"pg_xlog_replay_resume",
|
||||||
|
"pg_xlogfile_name",
|
||||||
|
"pg_xlogfile_name_offset",
|
||||||
|
"phraseto_tsquery",
|
||||||
|
"pi",
|
||||||
|
"plainto_tsquery",
|
||||||
|
"point",
|
||||||
|
"polygon",
|
||||||
|
"popen",
|
||||||
|
"position",
|
||||||
|
"power",
|
||||||
|
"pqserverversion",
|
||||||
|
"query_to_xml",
|
||||||
|
"query_to_xml_and_xmlschema",
|
||||||
|
"query_to_xmlschema",
|
||||||
|
"querytree",
|
||||||
|
"quote_ident",
|
||||||
|
"quote_literal",
|
||||||
|
"quote_nullable",
|
||||||
|
"radians",
|
||||||
|
"radius",
|
||||||
|
"random",
|
||||||
|
"range_agg",
|
||||||
|
"range_intersect_agg",
|
||||||
|
"range_merge",
|
||||||
|
"rank",
|
||||||
|
"regexp_match",
|
||||||
|
"regexp_matches",
|
||||||
|
"regexp_replace",
|
||||||
|
"regexp_split_to_array",
|
||||||
|
"regexp_split_to_table",
|
||||||
|
"regr_avgx",
|
||||||
|
"regr_avgy",
|
||||||
|
"regr_count",
|
||||||
|
"regr_intercept",
|
||||||
|
"regr_r2",
|
||||||
|
"regr_slope",
|
||||||
|
"regr_sxx",
|
||||||
|
"regr_sxy",
|
||||||
|
"regr_syy",
|
||||||
|
"repeat",
|
||||||
|
"replace",
|
||||||
|
"reverse",
|
||||||
|
"right",
|
||||||
|
"round",
|
||||||
|
"row_number",
|
||||||
|
"row_security_active",
|
||||||
|
"row_to_json",
|
||||||
|
"rpad",
|
||||||
|
"rtrim",
|
||||||
|
"scale",
|
||||||
|
"schema_to_xml",
|
||||||
|
"schema_to_xml_and_xmlschema",
|
||||||
|
"schema_to_xmlschema",
|
||||||
|
"session_user",
|
||||||
|
"set_bit",
|
||||||
|
"set_byte",
|
||||||
|
"set_config",
|
||||||
|
"set_masklen",
|
||||||
|
"setseed",
|
||||||
|
"setval",
|
||||||
|
"setweight",
|
||||||
|
"sha224",
|
||||||
|
"sha256",
|
||||||
|
"sha384",
|
||||||
|
"sha512",
|
||||||
|
"shobj_description",
|
||||||
|
"sign",
|
||||||
|
"sin",
|
||||||
|
"sind",
|
||||||
|
"sinh",
|
||||||
|
"slope",
|
||||||
|
"split_part",
|
||||||
|
"sprintf",
|
||||||
|
"sqrt",
|
||||||
|
"starts_with",
|
||||||
|
"statement_timestamp",
|
||||||
|
"stddev",
|
||||||
|
"stddev_pop",
|
||||||
|
"stddev_samp",
|
||||||
|
"string_agg",
|
||||||
|
"string_to_array",
|
||||||
|
"string_to_table",
|
||||||
|
"strip",
|
||||||
|
"strpos",
|
||||||
|
"substr",
|
||||||
|
"substring",
|
||||||
|
"sum",
|
||||||
|
"suppress_redundant_updates_trigger",
|
||||||
|
"table_to_xml",
|
||||||
|
"table_to_xml_and_xmlschema",
|
||||||
|
"table_to_xmlschema",
|
||||||
|
"tan",
|
||||||
|
"tand",
|
||||||
|
"tanh",
|
||||||
|
"text",
|
||||||
|
"timeofday",
|
||||||
|
"timezone",
|
||||||
|
"to_ascii",
|
||||||
|
"to_char",
|
||||||
|
"to_date",
|
||||||
|
"to_hex",
|
||||||
|
"to_json",
|
||||||
|
"to_number",
|
||||||
|
"to_regclass",
|
||||||
|
"to_regcollation",
|
||||||
|
"to_regnamespace",
|
||||||
|
"to_regoper",
|
||||||
|
"to_regoperator",
|
||||||
|
"to_regproc",
|
||||||
|
"to_regprocedure",
|
||||||
|
"to_regrole",
|
||||||
|
"to_regtype",
|
||||||
|
"to_timestamp",
|
||||||
|
"to_tsquery",
|
||||||
|
"to_tsvector",
|
||||||
|
"transaction_timestamp",
|
||||||
|
"translate",
|
||||||
|
"trim",
|
||||||
|
"trim_array",
|
||||||
|
"trim_scale",
|
||||||
|
"trunc",
|
||||||
|
"ts_debug",
|
||||||
|
"ts_delete",
|
||||||
|
"ts_filter",
|
||||||
|
"ts_headline",
|
||||||
|
"ts_lexize",
|
||||||
|
"ts_parse",
|
||||||
|
"ts_rank",
|
||||||
|
"ts_rank_cd",
|
||||||
|
"ts_rewrite",
|
||||||
|
"ts_stat",
|
||||||
|
"ts_token_type",
|
||||||
|
"tsquery_phrase",
|
||||||
|
"tsvector_to_array",
|
||||||
|
"tsvector_update_trigger",
|
||||||
|
"tsvector_update_trigger_column",
|
||||||
|
"txid_current",
|
||||||
|
"txid_current_if_assigned",
|
||||||
|
"txid_current_snapshot",
|
||||||
|
"txid_snapshot_xip",
|
||||||
|
"txid_snapshot_xmax",
|
||||||
|
"txid_snapshot_xmin",
|
||||||
|
"txid_status",
|
||||||
|
"txid_visible_in_snapshot",
|
||||||
|
"unistr",
|
||||||
|
"unnest",
|
||||||
|
"upper",
|
||||||
|
"upper_inc",
|
||||||
|
"upper_inf",
|
||||||
|
"user",
|
||||||
|
"var_pop",
|
||||||
|
"var_samp",
|
||||||
|
"variance",
|
||||||
|
"version",
|
||||||
|
"websearch_to_tsquery",
|
||||||
|
"width",
|
||||||
|
"width_bucket",
|
||||||
|
"xml_is_well_formed",
|
||||||
|
"xml_is_well_formed_content",
|
||||||
|
"xml_is_well_formed_document",
|
||||||
|
"xmlagg",
|
||||||
|
"xmlcomment",
|
||||||
|
"xmlconcat",
|
||||||
|
"xmlelement",
|
||||||
|
"xmlexists",
|
||||||
|
"xmlforest",
|
||||||
|
"xmlparse",
|
||||||
|
"xmlpi",
|
||||||
|
"xmlroot",
|
||||||
|
"xmlserialize",
|
||||||
|
"xpath",
|
||||||
|
"xpath_exists"
|
||||||
|
],
|
||||||
|
builtinVariables: [],
|
||||||
|
pseudoColumns: [],
|
||||||
|
tokenizer: {
|
||||||
|
root: [
|
||||||
|
{ include: "@comments" },
|
||||||
|
{ include: "@whitespace" },
|
||||||
|
{ include: "@pseudoColumns" },
|
||||||
|
{ include: "@numbers" },
|
||||||
|
{ include: "@strings" },
|
||||||
|
{ include: "@complexIdentifiers" },
|
||||||
|
{ include: "@scopes" },
|
||||||
|
[/[;,.]/, "delimiter"],
|
||||||
|
[/[()]/, "@brackets"],
|
||||||
|
[
|
||||||
|
/[\w@#$]+/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"@operators": "operator",
|
||||||
|
"@builtinVariables": "predefined",
|
||||||
|
"@builtinFunctions": "predefined",
|
||||||
|
"@keywords": "keyword",
|
||||||
|
"@default": "identifier"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/[<>=!%&+\-*/|~^]/, "operator"]
|
||||||
|
],
|
||||||
|
whitespace: [[/\s+/, "white"]],
|
||||||
|
comments: [
|
||||||
|
[/--+.*/, "comment"],
|
||||||
|
[/\/\*/, { token: "comment.quote", next: "@comment" }]
|
||||||
|
],
|
||||||
|
comment: [
|
||||||
|
[/[^*/]+/, "comment"],
|
||||||
|
[/\*\//, { token: "comment.quote", next: "@pop" }],
|
||||||
|
[/./, "comment"]
|
||||||
|
],
|
||||||
|
pseudoColumns: [
|
||||||
|
[
|
||||||
|
/[$][A-Za-z_][\w@#$]*/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"@pseudoColumns": "predefined",
|
||||||
|
"@default": "identifier"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
],
|
||||||
|
numbers: [
|
||||||
|
[/0[xX][0-9a-fA-F]*/, "number"],
|
||||||
|
[/[$][+-]*\d*(\.\d*)?/, "number"],
|
||||||
|
[/((\d+(\.\d*)?)|(\.\d+))([eE][\-+]?\d+)?/, "number"]
|
||||||
|
],
|
||||||
|
strings: [[/'/, { token: "string", next: "@string" }]],
|
||||||
|
string: [
|
||||||
|
[/[^']+/, "string"],
|
||||||
|
[/''/, "string"],
|
||||||
|
[/'/, { token: "string", next: "@pop" }]
|
||||||
|
],
|
||||||
|
complexIdentifiers: [[/"/, { token: "identifier.quote", next: "@quotedIdentifier" }]],
|
||||||
|
quotedIdentifier: [
|
||||||
|
[/[^"]+/, "identifier"],
|
||||||
|
[/""/, "identifier"],
|
||||||
|
[/"/, { token: "identifier.quote", next: "@pop" }]
|
||||||
|
],
|
||||||
|
scopes: []
|
||||||
|
}
|
||||||
|
};
|
||||||
|
return __toCommonJS(pgsql_exports);
|
||||||
|
})();
|
||||||
|
return moduleExports;
|
||||||
|
});
|
||||||
@@ -0,0 +1,503 @@
|
|||||||
|
/*!-----------------------------------------------------------------------------
|
||||||
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||||
|
* Version: 0.33.0(4b1abad427e58dbedc1215d99a0902ffc885fcd4)
|
||||||
|
* Released under the MIT license
|
||||||
|
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
||||||
|
*-----------------------------------------------------------------------------*/
|
||||||
|
define("vs/basic-languages/php/php", ["require"],(require)=>{
|
||||||
|
var moduleExports = (() => {
|
||||||
|
var __defProp = Object.defineProperty;
|
||||||
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||||
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||||
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||||
|
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
||||||
|
var __export = (target, all) => {
|
||||||
|
for (var name in all)
|
||||||
|
__defProp(target, name, { get: all[name], enumerable: true });
|
||||||
|
};
|
||||||
|
var __reExport = (target, module, copyDefault, desc) => {
|
||||||
|
if (module && typeof module === "object" || typeof module === "function") {
|
||||||
|
for (let key of __getOwnPropNames(module))
|
||||||
|
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
||||||
|
__defProp(target, key, { get: () => module[key], enumerable: !(desc = __getOwnPropDesc(module, key)) || desc.enumerable });
|
||||||
|
}
|
||||||
|
return target;
|
||||||
|
};
|
||||||
|
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
||||||
|
return (module, temp) => {
|
||||||
|
return cache && cache.get(module) || (temp = __reExport(__markAsModule({}), module, 1), cache && cache.set(module, temp), temp);
|
||||||
|
};
|
||||||
|
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
||||||
|
|
||||||
|
// src/basic-languages/php/php.ts
|
||||||
|
var php_exports = {};
|
||||||
|
__export(php_exports, {
|
||||||
|
conf: () => conf,
|
||||||
|
language: () => language
|
||||||
|
});
|
||||||
|
var conf = {
|
||||||
|
wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\@\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,
|
||||||
|
comments: {
|
||||||
|
lineComment: "//",
|
||||||
|
blockComment: ["/*", "*/"]
|
||||||
|
},
|
||||||
|
brackets: [
|
||||||
|
["{", "}"],
|
||||||
|
["[", "]"],
|
||||||
|
["(", ")"]
|
||||||
|
],
|
||||||
|
autoClosingPairs: [
|
||||||
|
{ open: "{", close: "}", notIn: ["string"] },
|
||||||
|
{ open: "[", close: "]", notIn: ["string"] },
|
||||||
|
{ open: "(", close: ")", notIn: ["string"] },
|
||||||
|
{ open: '"', close: '"', notIn: ["string"] },
|
||||||
|
{ open: "'", close: "'", notIn: ["string", "comment"] }
|
||||||
|
],
|
||||||
|
folding: {
|
||||||
|
markers: {
|
||||||
|
start: new RegExp("^\\s*(#|//)region\\b"),
|
||||||
|
end: new RegExp("^\\s*(#|//)endregion\\b")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
var language = {
|
||||||
|
defaultToken: "",
|
||||||
|
tokenPostfix: "",
|
||||||
|
tokenizer: {
|
||||||
|
root: [
|
||||||
|
[/<\?((php)|=)?/, { token: "@rematch", switchTo: "@phpInSimpleState.root" }],
|
||||||
|
[/<!DOCTYPE/, "metatag.html", "@doctype"],
|
||||||
|
[/<!--/, "comment.html", "@comment"],
|
||||||
|
[/(<)(\w+)(\/>)/, ["delimiter.html", "tag.html", "delimiter.html"]],
|
||||||
|
[/(<)(script)/, ["delimiter.html", { token: "tag.html", next: "@script" }]],
|
||||||
|
[/(<)(style)/, ["delimiter.html", { token: "tag.html", next: "@style" }]],
|
||||||
|
[/(<)([:\w]+)/, ["delimiter.html", { token: "tag.html", next: "@otherTag" }]],
|
||||||
|
[/(<\/)(\w+)/, ["delimiter.html", { token: "tag.html", next: "@otherTag" }]],
|
||||||
|
[/</, "delimiter.html"],
|
||||||
|
[/[^<]+/]
|
||||||
|
],
|
||||||
|
doctype: [
|
||||||
|
[/<\?((php)|=)?/, { token: "@rematch", switchTo: "@phpInSimpleState.comment" }],
|
||||||
|
[/[^>]+/, "metatag.content.html"],
|
||||||
|
[/>/, "metatag.html", "@pop"]
|
||||||
|
],
|
||||||
|
comment: [
|
||||||
|
[/<\?((php)|=)?/, { token: "@rematch", switchTo: "@phpInSimpleState.comment" }],
|
||||||
|
[/-->/, "comment.html", "@pop"],
|
||||||
|
[/[^-]+/, "comment.content.html"],
|
||||||
|
[/./, "comment.content.html"]
|
||||||
|
],
|
||||||
|
otherTag: [
|
||||||
|
[/<\?((php)|=)?/, { token: "@rematch", switchTo: "@phpInSimpleState.otherTag" }],
|
||||||
|
[/\/?>/, "delimiter.html", "@pop"],
|
||||||
|
[/"([^"]*)"/, "attribute.value"],
|
||||||
|
[/'([^']*)'/, "attribute.value"],
|
||||||
|
[/[\w\-]+/, "attribute.name"],
|
||||||
|
[/=/, "delimiter"],
|
||||||
|
[/[ \t\r\n]+/]
|
||||||
|
],
|
||||||
|
script: [
|
||||||
|
[/<\?((php)|=)?/, { token: "@rematch", switchTo: "@phpInSimpleState.script" }],
|
||||||
|
[/type/, "attribute.name", "@scriptAfterType"],
|
||||||
|
[/"([^"]*)"/, "attribute.value"],
|
||||||
|
[/'([^']*)'/, "attribute.value"],
|
||||||
|
[/[\w\-]+/, "attribute.name"],
|
||||||
|
[/=/, "delimiter"],
|
||||||
|
[
|
||||||
|
/>/,
|
||||||
|
{
|
||||||
|
token: "delimiter.html",
|
||||||
|
next: "@scriptEmbedded.text/javascript",
|
||||||
|
nextEmbedded: "text/javascript"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/[ \t\r\n]+/],
|
||||||
|
[
|
||||||
|
/(<\/)(script\s*)(>)/,
|
||||||
|
["delimiter.html", "tag.html", { token: "delimiter.html", next: "@pop" }]
|
||||||
|
]
|
||||||
|
],
|
||||||
|
scriptAfterType: [
|
||||||
|
[
|
||||||
|
/<\?((php)|=)?/,
|
||||||
|
{
|
||||||
|
token: "@rematch",
|
||||||
|
switchTo: "@phpInSimpleState.scriptAfterType"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/=/, "delimiter", "@scriptAfterTypeEquals"],
|
||||||
|
[
|
||||||
|
/>/,
|
||||||
|
{
|
||||||
|
token: "delimiter.html",
|
||||||
|
next: "@scriptEmbedded.text/javascript",
|
||||||
|
nextEmbedded: "text/javascript"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/[ \t\r\n]+/],
|
||||||
|
[/<\/script\s*>/, { token: "@rematch", next: "@pop" }]
|
||||||
|
],
|
||||||
|
scriptAfterTypeEquals: [
|
||||||
|
[
|
||||||
|
/<\?((php)|=)?/,
|
||||||
|
{
|
||||||
|
token: "@rematch",
|
||||||
|
switchTo: "@phpInSimpleState.scriptAfterTypeEquals"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[
|
||||||
|
/"([^"]*)"/,
|
||||||
|
{
|
||||||
|
token: "attribute.value",
|
||||||
|
switchTo: "@scriptWithCustomType.$1"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[
|
||||||
|
/'([^']*)'/,
|
||||||
|
{
|
||||||
|
token: "attribute.value",
|
||||||
|
switchTo: "@scriptWithCustomType.$1"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[
|
||||||
|
/>/,
|
||||||
|
{
|
||||||
|
token: "delimiter.html",
|
||||||
|
next: "@scriptEmbedded.text/javascript",
|
||||||
|
nextEmbedded: "text/javascript"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/[ \t\r\n]+/],
|
||||||
|
[/<\/script\s*>/, { token: "@rematch", next: "@pop" }]
|
||||||
|
],
|
||||||
|
scriptWithCustomType: [
|
||||||
|
[
|
||||||
|
/<\?((php)|=)?/,
|
||||||
|
{
|
||||||
|
token: "@rematch",
|
||||||
|
switchTo: "@phpInSimpleState.scriptWithCustomType.$S2"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[
|
||||||
|
/>/,
|
||||||
|
{
|
||||||
|
token: "delimiter.html",
|
||||||
|
next: "@scriptEmbedded.$S2",
|
||||||
|
nextEmbedded: "$S2"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/"([^"]*)"/, "attribute.value"],
|
||||||
|
[/'([^']*)'/, "attribute.value"],
|
||||||
|
[/[\w\-]+/, "attribute.name"],
|
||||||
|
[/=/, "delimiter"],
|
||||||
|
[/[ \t\r\n]+/],
|
||||||
|
[/<\/script\s*>/, { token: "@rematch", next: "@pop" }]
|
||||||
|
],
|
||||||
|
scriptEmbedded: [
|
||||||
|
[
|
||||||
|
/<\?((php)|=)?/,
|
||||||
|
{
|
||||||
|
token: "@rematch",
|
||||||
|
switchTo: "@phpInEmbeddedState.scriptEmbedded.$S2",
|
||||||
|
nextEmbedded: "@pop"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/<\/script/, { token: "@rematch", next: "@pop", nextEmbedded: "@pop" }]
|
||||||
|
],
|
||||||
|
style: [
|
||||||
|
[/<\?((php)|=)?/, { token: "@rematch", switchTo: "@phpInSimpleState.style" }],
|
||||||
|
[/type/, "attribute.name", "@styleAfterType"],
|
||||||
|
[/"([^"]*)"/, "attribute.value"],
|
||||||
|
[/'([^']*)'/, "attribute.value"],
|
||||||
|
[/[\w\-]+/, "attribute.name"],
|
||||||
|
[/=/, "delimiter"],
|
||||||
|
[
|
||||||
|
/>/,
|
||||||
|
{
|
||||||
|
token: "delimiter.html",
|
||||||
|
next: "@styleEmbedded.text/css",
|
||||||
|
nextEmbedded: "text/css"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/[ \t\r\n]+/],
|
||||||
|
[
|
||||||
|
/(<\/)(style\s*)(>)/,
|
||||||
|
["delimiter.html", "tag.html", { token: "delimiter.html", next: "@pop" }]
|
||||||
|
]
|
||||||
|
],
|
||||||
|
styleAfterType: [
|
||||||
|
[
|
||||||
|
/<\?((php)|=)?/,
|
||||||
|
{
|
||||||
|
token: "@rematch",
|
||||||
|
switchTo: "@phpInSimpleState.styleAfterType"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/=/, "delimiter", "@styleAfterTypeEquals"],
|
||||||
|
[
|
||||||
|
/>/,
|
||||||
|
{
|
||||||
|
token: "delimiter.html",
|
||||||
|
next: "@styleEmbedded.text/css",
|
||||||
|
nextEmbedded: "text/css"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/[ \t\r\n]+/],
|
||||||
|
[/<\/style\s*>/, { token: "@rematch", next: "@pop" }]
|
||||||
|
],
|
||||||
|
styleAfterTypeEquals: [
|
||||||
|
[
|
||||||
|
/<\?((php)|=)?/,
|
||||||
|
{
|
||||||
|
token: "@rematch",
|
||||||
|
switchTo: "@phpInSimpleState.styleAfterTypeEquals"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[
|
||||||
|
/"([^"]*)"/,
|
||||||
|
{
|
||||||
|
token: "attribute.value",
|
||||||
|
switchTo: "@styleWithCustomType.$1"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[
|
||||||
|
/'([^']*)'/,
|
||||||
|
{
|
||||||
|
token: "attribute.value",
|
||||||
|
switchTo: "@styleWithCustomType.$1"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[
|
||||||
|
/>/,
|
||||||
|
{
|
||||||
|
token: "delimiter.html",
|
||||||
|
next: "@styleEmbedded.text/css",
|
||||||
|
nextEmbedded: "text/css"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/[ \t\r\n]+/],
|
||||||
|
[/<\/style\s*>/, { token: "@rematch", next: "@pop" }]
|
||||||
|
],
|
||||||
|
styleWithCustomType: [
|
||||||
|
[
|
||||||
|
/<\?((php)|=)?/,
|
||||||
|
{
|
||||||
|
token: "@rematch",
|
||||||
|
switchTo: "@phpInSimpleState.styleWithCustomType.$S2"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[
|
||||||
|
/>/,
|
||||||
|
{
|
||||||
|
token: "delimiter.html",
|
||||||
|
next: "@styleEmbedded.$S2",
|
||||||
|
nextEmbedded: "$S2"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/"([^"]*)"/, "attribute.value"],
|
||||||
|
[/'([^']*)'/, "attribute.value"],
|
||||||
|
[/[\w\-]+/, "attribute.name"],
|
||||||
|
[/=/, "delimiter"],
|
||||||
|
[/[ \t\r\n]+/],
|
||||||
|
[/<\/style\s*>/, { token: "@rematch", next: "@pop" }]
|
||||||
|
],
|
||||||
|
styleEmbedded: [
|
||||||
|
[
|
||||||
|
/<\?((php)|=)?/,
|
||||||
|
{
|
||||||
|
token: "@rematch",
|
||||||
|
switchTo: "@phpInEmbeddedState.styleEmbedded.$S2",
|
||||||
|
nextEmbedded: "@pop"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/<\/style/, { token: "@rematch", next: "@pop", nextEmbedded: "@pop" }]
|
||||||
|
],
|
||||||
|
phpInSimpleState: [
|
||||||
|
[/<\?((php)|=)?/, "metatag.php"],
|
||||||
|
[/\?>/, { token: "metatag.php", switchTo: "@$S2.$S3" }],
|
||||||
|
{ include: "phpRoot" }
|
||||||
|
],
|
||||||
|
phpInEmbeddedState: [
|
||||||
|
[/<\?((php)|=)?/, "metatag.php"],
|
||||||
|
[
|
||||||
|
/\?>/,
|
||||||
|
{
|
||||||
|
token: "metatag.php",
|
||||||
|
switchTo: "@$S2.$S3",
|
||||||
|
nextEmbedded: "$S3"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
{ include: "phpRoot" }
|
||||||
|
],
|
||||||
|
phpRoot: [
|
||||||
|
[
|
||||||
|
/[a-zA-Z_]\w*/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"@phpKeywords": { token: "keyword.php" },
|
||||||
|
"@phpCompileTimeConstants": { token: "constant.php" },
|
||||||
|
"@default": "identifier.php"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[
|
||||||
|
/[$a-zA-Z_]\w*/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"@phpPreDefinedVariables": {
|
||||||
|
token: "variable.predefined.php"
|
||||||
|
},
|
||||||
|
"@default": "variable.php"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/[{}]/, "delimiter.bracket.php"],
|
||||||
|
[/[\[\]]/, "delimiter.array.php"],
|
||||||
|
[/[()]/, "delimiter.parenthesis.php"],
|
||||||
|
[/[ \t\r\n]+/],
|
||||||
|
[/(#|\/\/)$/, "comment.php"],
|
||||||
|
[/(#|\/\/)/, "comment.php", "@phpLineComment"],
|
||||||
|
[/\/\*/, "comment.php", "@phpComment"],
|
||||||
|
[/"/, "string.php", "@phpDoubleQuoteString"],
|
||||||
|
[/'/, "string.php", "@phpSingleQuoteString"],
|
||||||
|
[/[\+\-\*\%\&\|\^\~\!\=\<\>\/\?\;\:\.\,\@]/, "delimiter.php"],
|
||||||
|
[/\d*\d+[eE]([\-+]?\d+)?/, "number.float.php"],
|
||||||
|
[/\d*\.\d+([eE][\-+]?\d+)?/, "number.float.php"],
|
||||||
|
[/0[xX][0-9a-fA-F']*[0-9a-fA-F]/, "number.hex.php"],
|
||||||
|
[/0[0-7']*[0-7]/, "number.octal.php"],
|
||||||
|
[/0[bB][0-1']*[0-1]/, "number.binary.php"],
|
||||||
|
[/\d[\d']*/, "number.php"],
|
||||||
|
[/\d/, "number.php"]
|
||||||
|
],
|
||||||
|
phpComment: [
|
||||||
|
[/\*\//, "comment.php", "@pop"],
|
||||||
|
[/[^*]+/, "comment.php"],
|
||||||
|
[/./, "comment.php"]
|
||||||
|
],
|
||||||
|
phpLineComment: [
|
||||||
|
[/\?>/, { token: "@rematch", next: "@pop" }],
|
||||||
|
[/.$/, "comment.php", "@pop"],
|
||||||
|
[/[^?]+$/, "comment.php", "@pop"],
|
||||||
|
[/[^?]+/, "comment.php"],
|
||||||
|
[/./, "comment.php"]
|
||||||
|
],
|
||||||
|
phpDoubleQuoteString: [
|
||||||
|
[/[^\\"]+/, "string.php"],
|
||||||
|
[/@escapes/, "string.escape.php"],
|
||||||
|
[/\\./, "string.escape.invalid.php"],
|
||||||
|
[/"/, "string.php", "@pop"]
|
||||||
|
],
|
||||||
|
phpSingleQuoteString: [
|
||||||
|
[/[^\\']+/, "string.php"],
|
||||||
|
[/@escapes/, "string.escape.php"],
|
||||||
|
[/\\./, "string.escape.invalid.php"],
|
||||||
|
[/'/, "string.php", "@pop"]
|
||||||
|
]
|
||||||
|
},
|
||||||
|
phpKeywords: [
|
||||||
|
"abstract",
|
||||||
|
"and",
|
||||||
|
"array",
|
||||||
|
"as",
|
||||||
|
"break",
|
||||||
|
"callable",
|
||||||
|
"case",
|
||||||
|
"catch",
|
||||||
|
"cfunction",
|
||||||
|
"class",
|
||||||
|
"clone",
|
||||||
|
"const",
|
||||||
|
"continue",
|
||||||
|
"declare",
|
||||||
|
"default",
|
||||||
|
"do",
|
||||||
|
"else",
|
||||||
|
"elseif",
|
||||||
|
"enddeclare",
|
||||||
|
"endfor",
|
||||||
|
"endforeach",
|
||||||
|
"endif",
|
||||||
|
"endswitch",
|
||||||
|
"endwhile",
|
||||||
|
"extends",
|
||||||
|
"false",
|
||||||
|
"final",
|
||||||
|
"for",
|
||||||
|
"foreach",
|
||||||
|
"function",
|
||||||
|
"global",
|
||||||
|
"goto",
|
||||||
|
"if",
|
||||||
|
"implements",
|
||||||
|
"interface",
|
||||||
|
"instanceof",
|
||||||
|
"insteadof",
|
||||||
|
"namespace",
|
||||||
|
"new",
|
||||||
|
"null",
|
||||||
|
"object",
|
||||||
|
"old_function",
|
||||||
|
"or",
|
||||||
|
"private",
|
||||||
|
"protected",
|
||||||
|
"public",
|
||||||
|
"resource",
|
||||||
|
"static",
|
||||||
|
"switch",
|
||||||
|
"throw",
|
||||||
|
"trait",
|
||||||
|
"try",
|
||||||
|
"true",
|
||||||
|
"use",
|
||||||
|
"var",
|
||||||
|
"while",
|
||||||
|
"xor",
|
||||||
|
"die",
|
||||||
|
"echo",
|
||||||
|
"empty",
|
||||||
|
"exit",
|
||||||
|
"eval",
|
||||||
|
"include",
|
||||||
|
"include_once",
|
||||||
|
"isset",
|
||||||
|
"list",
|
||||||
|
"require",
|
||||||
|
"require_once",
|
||||||
|
"return",
|
||||||
|
"print",
|
||||||
|
"unset",
|
||||||
|
"yield",
|
||||||
|
"__construct"
|
||||||
|
],
|
||||||
|
phpCompileTimeConstants: [
|
||||||
|
"__CLASS__",
|
||||||
|
"__DIR__",
|
||||||
|
"__FILE__",
|
||||||
|
"__LINE__",
|
||||||
|
"__NAMESPACE__",
|
||||||
|
"__METHOD__",
|
||||||
|
"__FUNCTION__",
|
||||||
|
"__TRAIT__"
|
||||||
|
],
|
||||||
|
phpPreDefinedVariables: [
|
||||||
|
"$GLOBALS",
|
||||||
|
"$_SERVER",
|
||||||
|
"$_GET",
|
||||||
|
"$_POST",
|
||||||
|
"$_FILES",
|
||||||
|
"$_REQUEST",
|
||||||
|
"$_SESSION",
|
||||||
|
"$_ENV",
|
||||||
|
"$_COOKIE",
|
||||||
|
"$php_errormsg",
|
||||||
|
"$HTTP_RAW_POST_DATA",
|
||||||
|
"$http_response_header",
|
||||||
|
"$argc",
|
||||||
|
"$argv"
|
||||||
|
],
|
||||||
|
escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/
|
||||||
|
};
|
||||||
|
return __toCommonJS(php_exports);
|
||||||
|
})();
|
||||||
|
return moduleExports;
|
||||||
|
});
|
||||||
@@ -0,0 +1,163 @@
|
|||||||
|
/*!-----------------------------------------------------------------------------
|
||||||
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||||
|
* Version: 0.33.0(4b1abad427e58dbedc1215d99a0902ffc885fcd4)
|
||||||
|
* Released under the MIT license
|
||||||
|
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
||||||
|
*-----------------------------------------------------------------------------*/
|
||||||
|
define("vs/basic-languages/pla/pla", ["require"],(require)=>{
|
||||||
|
var moduleExports = (() => {
|
||||||
|
var __defProp = Object.defineProperty;
|
||||||
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||||
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||||
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||||
|
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
||||||
|
var __export = (target, all) => {
|
||||||
|
for (var name in all)
|
||||||
|
__defProp(target, name, { get: all[name], enumerable: true });
|
||||||
|
};
|
||||||
|
var __reExport = (target, module, copyDefault, desc) => {
|
||||||
|
if (module && typeof module === "object" || typeof module === "function") {
|
||||||
|
for (let key of __getOwnPropNames(module))
|
||||||
|
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
||||||
|
__defProp(target, key, { get: () => module[key], enumerable: !(desc = __getOwnPropDesc(module, key)) || desc.enumerable });
|
||||||
|
}
|
||||||
|
return target;
|
||||||
|
};
|
||||||
|
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
||||||
|
return (module, temp) => {
|
||||||
|
return cache && cache.get(module) || (temp = __reExport(__markAsModule({}), module, 1), cache && cache.set(module, temp), temp);
|
||||||
|
};
|
||||||
|
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
||||||
|
|
||||||
|
// src/basic-languages/pla/pla.ts
|
||||||
|
var pla_exports = {};
|
||||||
|
__export(pla_exports, {
|
||||||
|
conf: () => conf,
|
||||||
|
language: () => language
|
||||||
|
});
|
||||||
|
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"
|
||||||
|
],
|
||||||
|
comment: /#.*$/,
|
||||||
|
identifier: /[a-zA-Z]+[a-zA-Z0-9_\-]*/,
|
||||||
|
plaContent: /[01\-~\|]+/,
|
||||||
|
tokenizer: {
|
||||||
|
root: [
|
||||||
|
{ include: "@whitespace" },
|
||||||
|
[/@comment/, "comment"],
|
||||||
|
[
|
||||||
|
/\.([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" }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/@identifier/, "identifier"],
|
||||||
|
[/@plaContent/, "string"]
|
||||||
|
],
|
||||||
|
whitespace: [[/[ \t\r\n]+/, ""]],
|
||||||
|
type: [{ include: "@whitespace" }, [/\w+/, { token: "type", next: "@pop" }]],
|
||||||
|
keywordArg: [
|
||||||
|
[
|
||||||
|
/[ \t\r\n]+/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"@eos": { token: "", next: "@pop" },
|
||||||
|
"@default": ""
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/@comment/, "comment", "@pop"],
|
||||||
|
[
|
||||||
|
/[<>()\[\]]/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"@eos": { token: "@brackets", next: "@pop" },
|
||||||
|
"@default": "@brackets"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[
|
||||||
|
/\-?\d+/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"@eos": { token: "number", next: "@pop" },
|
||||||
|
"@default": "number"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[
|
||||||
|
/@identifier/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"@eos": { token: "identifier", next: "@pop" },
|
||||||
|
"@default": "identifier"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[
|
||||||
|
/[;=]/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"@eos": { token: "delimiter", next: "@pop" },
|
||||||
|
"@default": "delimiter"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
]
|
||||||
|
}
|
||||||
|
};
|
||||||
|
return __toCommonJS(pla_exports);
|
||||||
|
})();
|
||||||
|
return moduleExports;
|
||||||
|
});
|
||||||
@@ -0,0 +1,576 @@
|
|||||||
|
/*!-----------------------------------------------------------------------------
|
||||||
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||||
|
* Version: 0.33.0(4b1abad427e58dbedc1215d99a0902ffc885fcd4)
|
||||||
|
* Released under the MIT license
|
||||||
|
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
||||||
|
*-----------------------------------------------------------------------------*/
|
||||||
|
define("vs/basic-languages/postiats/postiats", ["require"],(require)=>{
|
||||||
|
var moduleExports = (() => {
|
||||||
|
var __defProp = Object.defineProperty;
|
||||||
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||||
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||||
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||||
|
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
||||||
|
var __export = (target, all) => {
|
||||||
|
for (var name in all)
|
||||||
|
__defProp(target, name, { get: all[name], enumerable: true });
|
||||||
|
};
|
||||||
|
var __reExport = (target, module, copyDefault, desc) => {
|
||||||
|
if (module && typeof module === "object" || typeof module === "function") {
|
||||||
|
for (let key of __getOwnPropNames(module))
|
||||||
|
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
||||||
|
__defProp(target, key, { get: () => module[key], enumerable: !(desc = __getOwnPropDesc(module, key)) || desc.enumerable });
|
||||||
|
}
|
||||||
|
return target;
|
||||||
|
};
|
||||||
|
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
||||||
|
return (module, temp) => {
|
||||||
|
return cache && cache.get(module) || (temp = __reExport(__markAsModule({}), module, 1), cache && cache.set(module, temp), temp);
|
||||||
|
};
|
||||||
|
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
||||||
|
|
||||||
|
// src/basic-languages/postiats/postiats.ts
|
||||||
|
var postiats_exports = {};
|
||||||
|
__export(postiats_exports, {
|
||||||
|
conf: () => conf,
|
||||||
|
language: () => language
|
||||||
|
});
|
||||||
|
var conf = {
|
||||||
|
comments: {
|
||||||
|
lineComment: "//",
|
||||||
|
blockComment: ["(*", "*)"]
|
||||||
|
},
|
||||||
|
brackets: [
|
||||||
|
["{", "}"],
|
||||||
|
["[", "]"],
|
||||||
|
["(", ")"],
|
||||||
|
["<", ">"]
|
||||||
|
],
|
||||||
|
autoClosingPairs: [
|
||||||
|
{ open: '"', close: '"', notIn: ["string", "comment"] },
|
||||||
|
{ open: "{", close: "}", notIn: ["string", "comment"] },
|
||||||
|
{ open: "[", close: "]", notIn: ["string", "comment"] },
|
||||||
|
{ open: "(", close: ")", notIn: ["string", "comment"] }
|
||||||
|
]
|
||||||
|
};
|
||||||
|
var language = {
|
||||||
|
tokenPostfix: ".pats",
|
||||||
|
defaultToken: "invalid",
|
||||||
|
keywords: [
|
||||||
|
"abstype",
|
||||||
|
"abst0ype",
|
||||||
|
"absprop",
|
||||||
|
"absview",
|
||||||
|
"absvtype",
|
||||||
|
"absviewtype",
|
||||||
|
"absvt0ype",
|
||||||
|
"absviewt0ype",
|
||||||
|
"as",
|
||||||
|
"and",
|
||||||
|
"assume",
|
||||||
|
"begin",
|
||||||
|
"classdec",
|
||||||
|
"datasort",
|
||||||
|
"datatype",
|
||||||
|
"dataprop",
|
||||||
|
"dataview",
|
||||||
|
"datavtype",
|
||||||
|
"dataviewtype",
|
||||||
|
"do",
|
||||||
|
"end",
|
||||||
|
"extern",
|
||||||
|
"extype",
|
||||||
|
"extvar",
|
||||||
|
"exception",
|
||||||
|
"fn",
|
||||||
|
"fnx",
|
||||||
|
"fun",
|
||||||
|
"prfn",
|
||||||
|
"prfun",
|
||||||
|
"praxi",
|
||||||
|
"castfn",
|
||||||
|
"if",
|
||||||
|
"then",
|
||||||
|
"else",
|
||||||
|
"ifcase",
|
||||||
|
"in",
|
||||||
|
"infix",
|
||||||
|
"infixl",
|
||||||
|
"infixr",
|
||||||
|
"prefix",
|
||||||
|
"postfix",
|
||||||
|
"implmnt",
|
||||||
|
"implement",
|
||||||
|
"primplmnt",
|
||||||
|
"primplement",
|
||||||
|
"import",
|
||||||
|
"let",
|
||||||
|
"local",
|
||||||
|
"macdef",
|
||||||
|
"macrodef",
|
||||||
|
"nonfix",
|
||||||
|
"symelim",
|
||||||
|
"symintr",
|
||||||
|
"overload",
|
||||||
|
"of",
|
||||||
|
"op",
|
||||||
|
"rec",
|
||||||
|
"sif",
|
||||||
|
"scase",
|
||||||
|
"sortdef",
|
||||||
|
"sta",
|
||||||
|
"stacst",
|
||||||
|
"stadef",
|
||||||
|
"static",
|
||||||
|
"staload",
|
||||||
|
"dynload",
|
||||||
|
"try",
|
||||||
|
"tkindef",
|
||||||
|
"typedef",
|
||||||
|
"propdef",
|
||||||
|
"viewdef",
|
||||||
|
"vtypedef",
|
||||||
|
"viewtypedef",
|
||||||
|
"prval",
|
||||||
|
"var",
|
||||||
|
"prvar",
|
||||||
|
"when",
|
||||||
|
"where",
|
||||||
|
"with",
|
||||||
|
"withtype",
|
||||||
|
"withprop",
|
||||||
|
"withview",
|
||||||
|
"withvtype",
|
||||||
|
"withviewtype"
|
||||||
|
],
|
||||||
|
keywords_dlr: [
|
||||||
|
"$delay",
|
||||||
|
"$ldelay",
|
||||||
|
"$arrpsz",
|
||||||
|
"$arrptrsize",
|
||||||
|
"$d2ctype",
|
||||||
|
"$effmask",
|
||||||
|
"$effmask_ntm",
|
||||||
|
"$effmask_exn",
|
||||||
|
"$effmask_ref",
|
||||||
|
"$effmask_wrt",
|
||||||
|
"$effmask_all",
|
||||||
|
"$extern",
|
||||||
|
"$extkind",
|
||||||
|
"$extype",
|
||||||
|
"$extype_struct",
|
||||||
|
"$extval",
|
||||||
|
"$extfcall",
|
||||||
|
"$extmcall",
|
||||||
|
"$literal",
|
||||||
|
"$myfilename",
|
||||||
|
"$mylocation",
|
||||||
|
"$myfunction",
|
||||||
|
"$lst",
|
||||||
|
"$lst_t",
|
||||||
|
"$lst_vt",
|
||||||
|
"$list",
|
||||||
|
"$list_t",
|
||||||
|
"$list_vt",
|
||||||
|
"$rec",
|
||||||
|
"$rec_t",
|
||||||
|
"$rec_vt",
|
||||||
|
"$record",
|
||||||
|
"$record_t",
|
||||||
|
"$record_vt",
|
||||||
|
"$tup",
|
||||||
|
"$tup_t",
|
||||||
|
"$tup_vt",
|
||||||
|
"$tuple",
|
||||||
|
"$tuple_t",
|
||||||
|
"$tuple_vt",
|
||||||
|
"$break",
|
||||||
|
"$continue",
|
||||||
|
"$raise",
|
||||||
|
"$showtype",
|
||||||
|
"$vcopyenv_v",
|
||||||
|
"$vcopyenv_vt",
|
||||||
|
"$tempenver",
|
||||||
|
"$solver_assert",
|
||||||
|
"$solver_verify"
|
||||||
|
],
|
||||||
|
keywords_srp: [
|
||||||
|
"#if",
|
||||||
|
"#ifdef",
|
||||||
|
"#ifndef",
|
||||||
|
"#then",
|
||||||
|
"#elif",
|
||||||
|
"#elifdef",
|
||||||
|
"#elifndef",
|
||||||
|
"#else",
|
||||||
|
"#endif",
|
||||||
|
"#error",
|
||||||
|
"#prerr",
|
||||||
|
"#print",
|
||||||
|
"#assert",
|
||||||
|
"#undef",
|
||||||
|
"#define",
|
||||||
|
"#include",
|
||||||
|
"#require",
|
||||||
|
"#pragma",
|
||||||
|
"#codegen2",
|
||||||
|
"#codegen3"
|
||||||
|
],
|
||||||
|
irregular_keyword_list: [
|
||||||
|
"val+",
|
||||||
|
"val-",
|
||||||
|
"val",
|
||||||
|
"case+",
|
||||||
|
"case-",
|
||||||
|
"case",
|
||||||
|
"addr@",
|
||||||
|
"addr",
|
||||||
|
"fold@",
|
||||||
|
"free@",
|
||||||
|
"fix@",
|
||||||
|
"fix",
|
||||||
|
"lam@",
|
||||||
|
"lam",
|
||||||
|
"llam@",
|
||||||
|
"llam",
|
||||||
|
"viewt@ype+",
|
||||||
|
"viewt@ype-",
|
||||||
|
"viewt@ype",
|
||||||
|
"viewtype+",
|
||||||
|
"viewtype-",
|
||||||
|
"viewtype",
|
||||||
|
"view+",
|
||||||
|
"view-",
|
||||||
|
"view@",
|
||||||
|
"view",
|
||||||
|
"type+",
|
||||||
|
"type-",
|
||||||
|
"type",
|
||||||
|
"vtype+",
|
||||||
|
"vtype-",
|
||||||
|
"vtype",
|
||||||
|
"vt@ype+",
|
||||||
|
"vt@ype-",
|
||||||
|
"vt@ype",
|
||||||
|
"viewt@ype+",
|
||||||
|
"viewt@ype-",
|
||||||
|
"viewt@ype",
|
||||||
|
"viewtype+",
|
||||||
|
"viewtype-",
|
||||||
|
"viewtype",
|
||||||
|
"prop+",
|
||||||
|
"prop-",
|
||||||
|
"prop",
|
||||||
|
"type+",
|
||||||
|
"type-",
|
||||||
|
"type",
|
||||||
|
"t@ype",
|
||||||
|
"t@ype+",
|
||||||
|
"t@ype-",
|
||||||
|
"abst@ype",
|
||||||
|
"abstype",
|
||||||
|
"absviewt@ype",
|
||||||
|
"absvt@ype",
|
||||||
|
"for*",
|
||||||
|
"for",
|
||||||
|
"while*",
|
||||||
|
"while"
|
||||||
|
],
|
||||||
|
keywords_types: [
|
||||||
|
"bool",
|
||||||
|
"double",
|
||||||
|
"byte",
|
||||||
|
"int",
|
||||||
|
"short",
|
||||||
|
"char",
|
||||||
|
"void",
|
||||||
|
"unit",
|
||||||
|
"long",
|
||||||
|
"float",
|
||||||
|
"string",
|
||||||
|
"strptr"
|
||||||
|
],
|
||||||
|
keywords_effects: [
|
||||||
|
"0",
|
||||||
|
"fun",
|
||||||
|
"clo",
|
||||||
|
"prf",
|
||||||
|
"funclo",
|
||||||
|
"cloptr",
|
||||||
|
"cloref",
|
||||||
|
"ref",
|
||||||
|
"ntm",
|
||||||
|
"1"
|
||||||
|
],
|
||||||
|
operators: [
|
||||||
|
"@",
|
||||||
|
"!",
|
||||||
|
"|",
|
||||||
|
"`",
|
||||||
|
":",
|
||||||
|
"$",
|
||||||
|
".",
|
||||||
|
"=",
|
||||||
|
"#",
|
||||||
|
"~",
|
||||||
|
"..",
|
||||||
|
"...",
|
||||||
|
"=>",
|
||||||
|
"=<>",
|
||||||
|
"=/=>",
|
||||||
|
"=>>",
|
||||||
|
"=/=>>",
|
||||||
|
"<",
|
||||||
|
">",
|
||||||
|
"><",
|
||||||
|
".<",
|
||||||
|
">.",
|
||||||
|
".<>.",
|
||||||
|
"->",
|
||||||
|
"-<>"
|
||||||
|
],
|
||||||
|
brackets: [
|
||||||
|
{ open: ",(", close: ")", token: "delimiter.parenthesis" },
|
||||||
|
{ open: "`(", close: ")", token: "delimiter.parenthesis" },
|
||||||
|
{ open: "%(", close: ")", token: "delimiter.parenthesis" },
|
||||||
|
{ open: "'(", close: ")", token: "delimiter.parenthesis" },
|
||||||
|
{ open: "'{", close: "}", token: "delimiter.parenthesis" },
|
||||||
|
{ open: "@(", close: ")", token: "delimiter.parenthesis" },
|
||||||
|
{ open: "@{", close: "}", token: "delimiter.brace" },
|
||||||
|
{ open: "@[", close: "]", token: "delimiter.square" },
|
||||||
|
{ open: "#[", close: "]", token: "delimiter.square" },
|
||||||
|
{ open: "{", close: "}", token: "delimiter.curly" },
|
||||||
|
{ open: "[", close: "]", token: "delimiter.square" },
|
||||||
|
{ open: "(", close: ")", token: "delimiter.parenthesis" },
|
||||||
|
{ open: "<", close: ">", token: "delimiter.angle" }
|
||||||
|
],
|
||||||
|
symbols: /[=><!~?:&|+\-*\/\^%]+/,
|
||||||
|
IDENTFST: /[a-zA-Z_]/,
|
||||||
|
IDENTRST: /[a-zA-Z0-9_'$]/,
|
||||||
|
symbolic: /[%&+-./:=@~`^|*!$#?<>]/,
|
||||||
|
digit: /[0-9]/,
|
||||||
|
digitseq0: /@digit*/,
|
||||||
|
xdigit: /[0-9A-Za-z]/,
|
||||||
|
xdigitseq0: /@xdigit*/,
|
||||||
|
INTSP: /[lLuU]/,
|
||||||
|
FLOATSP: /[fFlL]/,
|
||||||
|
fexponent: /[eE][+-]?[0-9]+/,
|
||||||
|
fexponent_bin: /[pP][+-]?[0-9]+/,
|
||||||
|
deciexp: /\.[0-9]*@fexponent?/,
|
||||||
|
hexiexp: /\.[0-9a-zA-Z]*@fexponent_bin?/,
|
||||||
|
irregular_keywords: /val[+-]?|case[+-]?|addr\@?|fold\@|free\@|fix\@?|lam\@?|llam\@?|prop[+-]?|type[+-]?|view[+-@]?|viewt@?ype[+-]?|t@?ype[+-]?|v(iew)?t@?ype[+-]?|abst@?ype|absv(iew)?t@?ype|for\*?|while\*?/,
|
||||||
|
ESCHAR: /[ntvbrfa\\\?'"\(\[\{]/,
|
||||||
|
start: "root",
|
||||||
|
tokenizer: {
|
||||||
|
root: [
|
||||||
|
{ regex: /[ \t\r\n]+/, action: { token: "" } },
|
||||||
|
{ regex: /\(\*\)/, action: { token: "invalid" } },
|
||||||
|
{
|
||||||
|
regex: /\(\*/,
|
||||||
|
action: { token: "comment", next: "lexing_COMMENT_block_ml" }
|
||||||
|
},
|
||||||
|
{
|
||||||
|
regex: /\(/,
|
||||||
|
action: "@brackets"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
regex: /\)/,
|
||||||
|
action: "@brackets"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
regex: /\[/,
|
||||||
|
action: "@brackets"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
regex: /\]/,
|
||||||
|
action: "@brackets"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
regex: /\{/,
|
||||||
|
action: "@brackets"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
regex: /\}/,
|
||||||
|
action: "@brackets"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
regex: /,\(/,
|
||||||
|
action: "@brackets"
|
||||||
|
},
|
||||||
|
{ regex: /,/, action: { token: "delimiter.comma" } },
|
||||||
|
{ regex: /;/, action: { token: "delimiter.semicolon" } },
|
||||||
|
{
|
||||||
|
regex: /@\(/,
|
||||||
|
action: "@brackets"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
regex: /@\[/,
|
||||||
|
action: "@brackets"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
regex: /@\{/,
|
||||||
|
action: "@brackets"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
regex: /:</,
|
||||||
|
action: { token: "keyword", next: "@lexing_EFFECT_commaseq0" }
|
||||||
|
},
|
||||||
|
{ regex: /\.@symbolic+/, action: { token: "identifier.sym" } },
|
||||||
|
{
|
||||||
|
regex: /\.@digit*@fexponent@FLOATSP*/,
|
||||||
|
action: { token: "number.float" }
|
||||||
|
},
|
||||||
|
{ regex: /\.@digit+/, action: { token: "number.float" } },
|
||||||
|
{
|
||||||
|
regex: /\$@IDENTFST@IDENTRST*/,
|
||||||
|
action: {
|
||||||
|
cases: {
|
||||||
|
"@keywords_dlr": { token: "keyword.dlr" },
|
||||||
|
"@default": { token: "namespace" }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
regex: /\#@IDENTFST@IDENTRST*/,
|
||||||
|
action: {
|
||||||
|
cases: {
|
||||||
|
"@keywords_srp": { token: "keyword.srp" },
|
||||||
|
"@default": { token: "identifier" }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{ regex: /%\(/, action: { token: "delimiter.parenthesis" } },
|
||||||
|
{
|
||||||
|
regex: /^%{(#|\^|\$)?/,
|
||||||
|
action: {
|
||||||
|
token: "keyword",
|
||||||
|
next: "@lexing_EXTCODE",
|
||||||
|
nextEmbedded: "text/javascript"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{ regex: /^%}/, action: { token: "keyword" } },
|
||||||
|
{ regex: /'\(/, action: { token: "delimiter.parenthesis" } },
|
||||||
|
{ regex: /'\[/, action: { token: "delimiter.bracket" } },
|
||||||
|
{ regex: /'\{/, action: { token: "delimiter.brace" } },
|
||||||
|
[/(')(\\@ESCHAR|\\[xX]@xdigit+|\\@digit+)(')/, ["string", "string.escape", "string"]],
|
||||||
|
[/'[^\\']'/, "string"],
|
||||||
|
[/"/, "string.quote", "@lexing_DQUOTE"],
|
||||||
|
{
|
||||||
|
regex: /`\(/,
|
||||||
|
action: "@brackets"
|
||||||
|
},
|
||||||
|
{ regex: /\\/, action: { token: "punctuation" } },
|
||||||
|
{
|
||||||
|
regex: /@irregular_keywords(?!@IDENTRST)/,
|
||||||
|
action: { token: "keyword" }
|
||||||
|
},
|
||||||
|
{
|
||||||
|
regex: /@IDENTFST@IDENTRST*[<!\[]?/,
|
||||||
|
action: {
|
||||||
|
cases: {
|
||||||
|
"@keywords": { token: "keyword" },
|
||||||
|
"@keywords_types": { token: "type" },
|
||||||
|
"@default": { token: "identifier" }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
regex: /\/\/\/\//,
|
||||||
|
action: { token: "comment", next: "@lexing_COMMENT_rest" }
|
||||||
|
},
|
||||||
|
{ regex: /\/\/.*$/, action: { token: "comment" } },
|
||||||
|
{
|
||||||
|
regex: /\/\*/,
|
||||||
|
action: { token: "comment", next: "@lexing_COMMENT_block_c" }
|
||||||
|
},
|
||||||
|
{
|
||||||
|
regex: /-<|=</,
|
||||||
|
action: { token: "keyword", next: "@lexing_EFFECT_commaseq0" }
|
||||||
|
},
|
||||||
|
{
|
||||||
|
regex: /@symbolic+/,
|
||||||
|
action: {
|
||||||
|
cases: {
|
||||||
|
"@operators": "keyword",
|
||||||
|
"@default": "operator"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
regex: /0[xX]@xdigit+(@hexiexp|@fexponent_bin)@FLOATSP*/,
|
||||||
|
action: { token: "number.float" }
|
||||||
|
},
|
||||||
|
{ regex: /0[xX]@xdigit+@INTSP*/, action: { token: "number.hex" } },
|
||||||
|
{
|
||||||
|
regex: /0[0-7]+(?![0-9])@INTSP*/,
|
||||||
|
action: { token: "number.octal" }
|
||||||
|
},
|
||||||
|
{
|
||||||
|
regex: /@digit+(@fexponent|@deciexp)@FLOATSP*/,
|
||||||
|
action: { token: "number.float" }
|
||||||
|
},
|
||||||
|
{
|
||||||
|
regex: /@digit@digitseq0@INTSP*/,
|
||||||
|
action: { token: "number.decimal" }
|
||||||
|
},
|
||||||
|
{ regex: /@digit+@INTSP*/, action: { token: "number" } }
|
||||||
|
],
|
||||||
|
lexing_COMMENT_block_ml: [
|
||||||
|
[/[^\(\*]+/, "comment"],
|
||||||
|
[/\(\*/, "comment", "@push"],
|
||||||
|
[/\(\*/, "comment.invalid"],
|
||||||
|
[/\*\)/, "comment", "@pop"],
|
||||||
|
[/\*/, "comment"]
|
||||||
|
],
|
||||||
|
lexing_COMMENT_block_c: [
|
||||||
|
[/[^\/*]+/, "comment"],
|
||||||
|
[/\*\//, "comment", "@pop"],
|
||||||
|
[/[\/*]/, "comment"]
|
||||||
|
],
|
||||||
|
lexing_COMMENT_rest: [
|
||||||
|
[/$/, "comment", "@pop"],
|
||||||
|
[/.*/, "comment"]
|
||||||
|
],
|
||||||
|
lexing_EFFECT_commaseq0: [
|
||||||
|
{
|
||||||
|
regex: /@IDENTFST@IDENTRST+|@digit+/,
|
||||||
|
action: {
|
||||||
|
cases: {
|
||||||
|
"@keywords_effects": { token: "type.effect" },
|
||||||
|
"@default": { token: "identifier" }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{ regex: /,/, action: { token: "punctuation" } },
|
||||||
|
{ regex: />/, action: { token: "@rematch", next: "@pop" } }
|
||||||
|
],
|
||||||
|
lexing_EXTCODE: [
|
||||||
|
{
|
||||||
|
regex: /^%}/,
|
||||||
|
action: {
|
||||||
|
token: "@rematch",
|
||||||
|
next: "@pop",
|
||||||
|
nextEmbedded: "@pop"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{ regex: /[^%]+/, action: "" }
|
||||||
|
],
|
||||||
|
lexing_DQUOTE: [
|
||||||
|
{ regex: /"/, action: { token: "string.quote", next: "@pop" } },
|
||||||
|
{
|
||||||
|
regex: /(\{\$)(@IDENTFST@IDENTRST*)(\})/,
|
||||||
|
action: [{ token: "string.escape" }, { token: "identifier" }, { token: "string.escape" }]
|
||||||
|
},
|
||||||
|
{ regex: /\\$/, action: { token: "string.escape" } },
|
||||||
|
{
|
||||||
|
regex: /\\(@ESCHAR|[xX]@xdigit+|@digit+)/,
|
||||||
|
action: { token: "string.escape" }
|
||||||
|
},
|
||||||
|
{ regex: /[^\\"]+/, action: { token: "string" } }
|
||||||
|
]
|
||||||
|
}
|
||||||
|
};
|
||||||
|
return __toCommonJS(postiats_exports);
|
||||||
|
})();
|
||||||
|
return moduleExports;
|
||||||
|
});
|
||||||
@@ -0,0 +1,922 @@
|
|||||||
|
/*!-----------------------------------------------------------------------------
|
||||||
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||||
|
* Version: 0.33.0(4b1abad427e58dbedc1215d99a0902ffc885fcd4)
|
||||||
|
* Released under the MIT license
|
||||||
|
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
||||||
|
*-----------------------------------------------------------------------------*/
|
||||||
|
define("vs/basic-languages/powerquery/powerquery", ["require"],(require)=>{
|
||||||
|
var moduleExports = (() => {
|
||||||
|
var __defProp = Object.defineProperty;
|
||||||
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||||
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||||
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||||
|
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
||||||
|
var __export = (target, all) => {
|
||||||
|
for (var name in all)
|
||||||
|
__defProp(target, name, { get: all[name], enumerable: true });
|
||||||
|
};
|
||||||
|
var __reExport = (target, module, copyDefault, desc) => {
|
||||||
|
if (module && typeof module === "object" || typeof module === "function") {
|
||||||
|
for (let key of __getOwnPropNames(module))
|
||||||
|
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
||||||
|
__defProp(target, key, { get: () => module[key], enumerable: !(desc = __getOwnPropDesc(module, key)) || desc.enumerable });
|
||||||
|
}
|
||||||
|
return target;
|
||||||
|
};
|
||||||
|
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
||||||
|
return (module, temp) => {
|
||||||
|
return cache && cache.get(module) || (temp = __reExport(__markAsModule({}), module, 1), cache && cache.set(module, temp), temp);
|
||||||
|
};
|
||||||
|
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
||||||
|
|
||||||
|
// src/basic-languages/powerquery/powerquery.ts
|
||||||
|
var powerquery_exports = {};
|
||||||
|
__export(powerquery_exports, {
|
||||||
|
conf: () => conf,
|
||||||
|
language: () => language
|
||||||
|
});
|
||||||
|
var conf = {
|
||||||
|
comments: {
|
||||||
|
lineComment: "//",
|
||||||
|
blockComment: ["/*", "*/"]
|
||||||
|
},
|
||||||
|
brackets: [
|
||||||
|
["[", "]"],
|
||||||
|
["(", ")"],
|
||||||
|
["{", "}"]
|
||||||
|
],
|
||||||
|
autoClosingPairs: [
|
||||||
|
{ open: '"', close: '"', notIn: ["string", "comment", "identifier"] },
|
||||||
|
{ open: "[", close: "]", notIn: ["string", "comment", "identifier"] },
|
||||||
|
{ open: "(", close: ")", notIn: ["string", "comment", "identifier"] },
|
||||||
|
{ open: "{", close: "}", notIn: ["string", "comment", "identifier"] }
|
||||||
|
]
|
||||||
|
};
|
||||||
|
var language = {
|
||||||
|
defaultToken: "",
|
||||||
|
tokenPostfix: ".pq",
|
||||||
|
ignoreCase: false,
|
||||||
|
brackets: [
|
||||||
|
{ open: "[", close: "]", token: "delimiter.square" },
|
||||||
|
{ open: "{", close: "}", token: "delimiter.brackets" },
|
||||||
|
{ open: "(", close: ")", token: "delimiter.parenthesis" }
|
||||||
|
],
|
||||||
|
operatorKeywords: ["and", "not", "or"],
|
||||||
|
keywords: [
|
||||||
|
"as",
|
||||||
|
"each",
|
||||||
|
"else",
|
||||||
|
"error",
|
||||||
|
"false",
|
||||||
|
"if",
|
||||||
|
"in",
|
||||||
|
"is",
|
||||||
|
"let",
|
||||||
|
"meta",
|
||||||
|
"otherwise",
|
||||||
|
"section",
|
||||||
|
"shared",
|
||||||
|
"then",
|
||||||
|
"true",
|
||||||
|
"try",
|
||||||
|
"type"
|
||||||
|
],
|
||||||
|
constructors: ["#binary", "#date", "#datetime", "#datetimezone", "#duration", "#table", "#time"],
|
||||||
|
constants: ["#infinity", "#nan", "#sections", "#shared"],
|
||||||
|
typeKeywords: [
|
||||||
|
"action",
|
||||||
|
"any",
|
||||||
|
"anynonnull",
|
||||||
|
"none",
|
||||||
|
"null",
|
||||||
|
"logical",
|
||||||
|
"number",
|
||||||
|
"time",
|
||||||
|
"date",
|
||||||
|
"datetime",
|
||||||
|
"datetimezone",
|
||||||
|
"duration",
|
||||||
|
"text",
|
||||||
|
"binary",
|
||||||
|
"list",
|
||||||
|
"record",
|
||||||
|
"table",
|
||||||
|
"function"
|
||||||
|
],
|
||||||
|
builtinFunctions: [
|
||||||
|
"Access.Database",
|
||||||
|
"Action.Return",
|
||||||
|
"Action.Sequence",
|
||||||
|
"Action.Try",
|
||||||
|
"ActiveDirectory.Domains",
|
||||||
|
"AdoDotNet.DataSource",
|
||||||
|
"AdoDotNet.Query",
|
||||||
|
"AdobeAnalytics.Cubes",
|
||||||
|
"AnalysisServices.Database",
|
||||||
|
"AnalysisServices.Databases",
|
||||||
|
"AzureStorage.BlobContents",
|
||||||
|
"AzureStorage.Blobs",
|
||||||
|
"AzureStorage.Tables",
|
||||||
|
"Binary.Buffer",
|
||||||
|
"Binary.Combine",
|
||||||
|
"Binary.Compress",
|
||||||
|
"Binary.Decompress",
|
||||||
|
"Binary.End",
|
||||||
|
"Binary.From",
|
||||||
|
"Binary.FromList",
|
||||||
|
"Binary.FromText",
|
||||||
|
"Binary.InferContentType",
|
||||||
|
"Binary.Length",
|
||||||
|
"Binary.ToList",
|
||||||
|
"Binary.ToText",
|
||||||
|
"BinaryFormat.7BitEncodedSignedInteger",
|
||||||
|
"BinaryFormat.7BitEncodedUnsignedInteger",
|
||||||
|
"BinaryFormat.Binary",
|
||||||
|
"BinaryFormat.Byte",
|
||||||
|
"BinaryFormat.ByteOrder",
|
||||||
|
"BinaryFormat.Choice",
|
||||||
|
"BinaryFormat.Decimal",
|
||||||
|
"BinaryFormat.Double",
|
||||||
|
"BinaryFormat.Group",
|
||||||
|
"BinaryFormat.Length",
|
||||||
|
"BinaryFormat.List",
|
||||||
|
"BinaryFormat.Null",
|
||||||
|
"BinaryFormat.Record",
|
||||||
|
"BinaryFormat.SignedInteger16",
|
||||||
|
"BinaryFormat.SignedInteger32",
|
||||||
|
"BinaryFormat.SignedInteger64",
|
||||||
|
"BinaryFormat.Single",
|
||||||
|
"BinaryFormat.Text",
|
||||||
|
"BinaryFormat.Transform",
|
||||||
|
"BinaryFormat.UnsignedInteger16",
|
||||||
|
"BinaryFormat.UnsignedInteger32",
|
||||||
|
"BinaryFormat.UnsignedInteger64",
|
||||||
|
"Byte.From",
|
||||||
|
"Character.FromNumber",
|
||||||
|
"Character.ToNumber",
|
||||||
|
"Combiner.CombineTextByDelimiter",
|
||||||
|
"Combiner.CombineTextByEachDelimiter",
|
||||||
|
"Combiner.CombineTextByLengths",
|
||||||
|
"Combiner.CombineTextByPositions",
|
||||||
|
"Combiner.CombineTextByRanges",
|
||||||
|
"Comparer.Equals",
|
||||||
|
"Comparer.FromCulture",
|
||||||
|
"Comparer.Ordinal",
|
||||||
|
"Comparer.OrdinalIgnoreCase",
|
||||||
|
"Csv.Document",
|
||||||
|
"Cube.AddAndExpandDimensionColumn",
|
||||||
|
"Cube.AddMeasureColumn",
|
||||||
|
"Cube.ApplyParameter",
|
||||||
|
"Cube.AttributeMemberId",
|
||||||
|
"Cube.AttributeMemberProperty",
|
||||||
|
"Cube.CollapseAndRemoveColumns",
|
||||||
|
"Cube.Dimensions",
|
||||||
|
"Cube.DisplayFolders",
|
||||||
|
"Cube.Measures",
|
||||||
|
"Cube.Parameters",
|
||||||
|
"Cube.Properties",
|
||||||
|
"Cube.PropertyKey",
|
||||||
|
"Cube.ReplaceDimensions",
|
||||||
|
"Cube.Transform",
|
||||||
|
"Currency.From",
|
||||||
|
"DB2.Database",
|
||||||
|
"Date.AddDays",
|
||||||
|
"Date.AddMonths",
|
||||||
|
"Date.AddQuarters",
|
||||||
|
"Date.AddWeeks",
|
||||||
|
"Date.AddYears",
|
||||||
|
"Date.Day",
|
||||||
|
"Date.DayOfWeek",
|
||||||
|
"Date.DayOfWeekName",
|
||||||
|
"Date.DayOfYear",
|
||||||
|
"Date.DaysInMonth",
|
||||||
|
"Date.EndOfDay",
|
||||||
|
"Date.EndOfMonth",
|
||||||
|
"Date.EndOfQuarter",
|
||||||
|
"Date.EndOfWeek",
|
||||||
|
"Date.EndOfYear",
|
||||||
|
"Date.From",
|
||||||
|
"Date.FromText",
|
||||||
|
"Date.IsInCurrentDay",
|
||||||
|
"Date.IsInCurrentMonth",
|
||||||
|
"Date.IsInCurrentQuarter",
|
||||||
|
"Date.IsInCurrentWeek",
|
||||||
|
"Date.IsInCurrentYear",
|
||||||
|
"Date.IsInNextDay",
|
||||||
|
"Date.IsInNextMonth",
|
||||||
|
"Date.IsInNextNDays",
|
||||||
|
"Date.IsInNextNMonths",
|
||||||
|
"Date.IsInNextNQuarters",
|
||||||
|
"Date.IsInNextNWeeks",
|
||||||
|
"Date.IsInNextNYears",
|
||||||
|
"Date.IsInNextQuarter",
|
||||||
|
"Date.IsInNextWeek",
|
||||||
|
"Date.IsInNextYear",
|
||||||
|
"Date.IsInPreviousDay",
|
||||||
|
"Date.IsInPreviousMonth",
|
||||||
|
"Date.IsInPreviousNDays",
|
||||||
|
"Date.IsInPreviousNMonths",
|
||||||
|
"Date.IsInPreviousNQuarters",
|
||||||
|
"Date.IsInPreviousNWeeks",
|
||||||
|
"Date.IsInPreviousNYears",
|
||||||
|
"Date.IsInPreviousQuarter",
|
||||||
|
"Date.IsInPreviousWeek",
|
||||||
|
"Date.IsInPreviousYear",
|
||||||
|
"Date.IsInYearToDate",
|
||||||
|
"Date.IsLeapYear",
|
||||||
|
"Date.Month",
|
||||||
|
"Date.MonthName",
|
||||||
|
"Date.QuarterOfYear",
|
||||||
|
"Date.StartOfDay",
|
||||||
|
"Date.StartOfMonth",
|
||||||
|
"Date.StartOfQuarter",
|
||||||
|
"Date.StartOfWeek",
|
||||||
|
"Date.StartOfYear",
|
||||||
|
"Date.ToRecord",
|
||||||
|
"Date.ToText",
|
||||||
|
"Date.WeekOfMonth",
|
||||||
|
"Date.WeekOfYear",
|
||||||
|
"Date.Year",
|
||||||
|
"DateTime.AddZone",
|
||||||
|
"DateTime.Date",
|
||||||
|
"DateTime.FixedLocalNow",
|
||||||
|
"DateTime.From",
|
||||||
|
"DateTime.FromFileTime",
|
||||||
|
"DateTime.FromText",
|
||||||
|
"DateTime.IsInCurrentHour",
|
||||||
|
"DateTime.IsInCurrentMinute",
|
||||||
|
"DateTime.IsInCurrentSecond",
|
||||||
|
"DateTime.IsInNextHour",
|
||||||
|
"DateTime.IsInNextMinute",
|
||||||
|
"DateTime.IsInNextNHours",
|
||||||
|
"DateTime.IsInNextNMinutes",
|
||||||
|
"DateTime.IsInNextNSeconds",
|
||||||
|
"DateTime.IsInNextSecond",
|
||||||
|
"DateTime.IsInPreviousHour",
|
||||||
|
"DateTime.IsInPreviousMinute",
|
||||||
|
"DateTime.IsInPreviousNHours",
|
||||||
|
"DateTime.IsInPreviousNMinutes",
|
||||||
|
"DateTime.IsInPreviousNSeconds",
|
||||||
|
"DateTime.IsInPreviousSecond",
|
||||||
|
"DateTime.LocalNow",
|
||||||
|
"DateTime.Time",
|
||||||
|
"DateTime.ToRecord",
|
||||||
|
"DateTime.ToText",
|
||||||
|
"DateTimeZone.FixedLocalNow",
|
||||||
|
"DateTimeZone.FixedUtcNow",
|
||||||
|
"DateTimeZone.From",
|
||||||
|
"DateTimeZone.FromFileTime",
|
||||||
|
"DateTimeZone.FromText",
|
||||||
|
"DateTimeZone.LocalNow",
|
||||||
|
"DateTimeZone.RemoveZone",
|
||||||
|
"DateTimeZone.SwitchZone",
|
||||||
|
"DateTimeZone.ToLocal",
|
||||||
|
"DateTimeZone.ToRecord",
|
||||||
|
"DateTimeZone.ToText",
|
||||||
|
"DateTimeZone.ToUtc",
|
||||||
|
"DateTimeZone.UtcNow",
|
||||||
|
"DateTimeZone.ZoneHours",
|
||||||
|
"DateTimeZone.ZoneMinutes",
|
||||||
|
"Decimal.From",
|
||||||
|
"Diagnostics.ActivityId",
|
||||||
|
"Diagnostics.Trace",
|
||||||
|
"DirectQueryCapabilities.From",
|
||||||
|
"Double.From",
|
||||||
|
"Duration.Days",
|
||||||
|
"Duration.From",
|
||||||
|
"Duration.FromText",
|
||||||
|
"Duration.Hours",
|
||||||
|
"Duration.Minutes",
|
||||||
|
"Duration.Seconds",
|
||||||
|
"Duration.ToRecord",
|
||||||
|
"Duration.ToText",
|
||||||
|
"Duration.TotalDays",
|
||||||
|
"Duration.TotalHours",
|
||||||
|
"Duration.TotalMinutes",
|
||||||
|
"Duration.TotalSeconds",
|
||||||
|
"Embedded.Value",
|
||||||
|
"Error.Record",
|
||||||
|
"Excel.CurrentWorkbook",
|
||||||
|
"Excel.Workbook",
|
||||||
|
"Exchange.Contents",
|
||||||
|
"Expression.Constant",
|
||||||
|
"Expression.Evaluate",
|
||||||
|
"Expression.Identifier",
|
||||||
|
"Facebook.Graph",
|
||||||
|
"File.Contents",
|
||||||
|
"Folder.Contents",
|
||||||
|
"Folder.Files",
|
||||||
|
"Function.From",
|
||||||
|
"Function.Invoke",
|
||||||
|
"Function.InvokeAfter",
|
||||||
|
"Function.IsDataSource",
|
||||||
|
"GoogleAnalytics.Accounts",
|
||||||
|
"Guid.From",
|
||||||
|
"HdInsight.Containers",
|
||||||
|
"HdInsight.Contents",
|
||||||
|
"HdInsight.Files",
|
||||||
|
"Hdfs.Contents",
|
||||||
|
"Hdfs.Files",
|
||||||
|
"Informix.Database",
|
||||||
|
"Int16.From",
|
||||||
|
"Int32.From",
|
||||||
|
"Int64.From",
|
||||||
|
"Int8.From",
|
||||||
|
"ItemExpression.From",
|
||||||
|
"Json.Document",
|
||||||
|
"Json.FromValue",
|
||||||
|
"Lines.FromBinary",
|
||||||
|
"Lines.FromText",
|
||||||
|
"Lines.ToBinary",
|
||||||
|
"Lines.ToText",
|
||||||
|
"List.Accumulate",
|
||||||
|
"List.AllTrue",
|
||||||
|
"List.Alternate",
|
||||||
|
"List.AnyTrue",
|
||||||
|
"List.Average",
|
||||||
|
"List.Buffer",
|
||||||
|
"List.Combine",
|
||||||
|
"List.Contains",
|
||||||
|
"List.ContainsAll",
|
||||||
|
"List.ContainsAny",
|
||||||
|
"List.Count",
|
||||||
|
"List.Covariance",
|
||||||
|
"List.DateTimeZones",
|
||||||
|
"List.DateTimes",
|
||||||
|
"List.Dates",
|
||||||
|
"List.Difference",
|
||||||
|
"List.Distinct",
|
||||||
|
"List.Durations",
|
||||||
|
"List.FindText",
|
||||||
|
"List.First",
|
||||||
|
"List.FirstN",
|
||||||
|
"List.Generate",
|
||||||
|
"List.InsertRange",
|
||||||
|
"List.Intersect",
|
||||||
|
"List.IsDistinct",
|
||||||
|
"List.IsEmpty",
|
||||||
|
"List.Last",
|
||||||
|
"List.LastN",
|
||||||
|
"List.MatchesAll",
|
||||||
|
"List.MatchesAny",
|
||||||
|
"List.Max",
|
||||||
|
"List.MaxN",
|
||||||
|
"List.Median",
|
||||||
|
"List.Min",
|
||||||
|
"List.MinN",
|
||||||
|
"List.Mode",
|
||||||
|
"List.Modes",
|
||||||
|
"List.NonNullCount",
|
||||||
|
"List.Numbers",
|
||||||
|
"List.PositionOf",
|
||||||
|
"List.PositionOfAny",
|
||||||
|
"List.Positions",
|
||||||
|
"List.Product",
|
||||||
|
"List.Random",
|
||||||
|
"List.Range",
|
||||||
|
"List.RemoveFirstN",
|
||||||
|
"List.RemoveItems",
|
||||||
|
"List.RemoveLastN",
|
||||||
|
"List.RemoveMatchingItems",
|
||||||
|
"List.RemoveNulls",
|
||||||
|
"List.RemoveRange",
|
||||||
|
"List.Repeat",
|
||||||
|
"List.ReplaceMatchingItems",
|
||||||
|
"List.ReplaceRange",
|
||||||
|
"List.ReplaceValue",
|
||||||
|
"List.Reverse",
|
||||||
|
"List.Select",
|
||||||
|
"List.Single",
|
||||||
|
"List.SingleOrDefault",
|
||||||
|
"List.Skip",
|
||||||
|
"List.Sort",
|
||||||
|
"List.StandardDeviation",
|
||||||
|
"List.Sum",
|
||||||
|
"List.Times",
|
||||||
|
"List.Transform",
|
||||||
|
"List.TransformMany",
|
||||||
|
"List.Union",
|
||||||
|
"List.Zip",
|
||||||
|
"Logical.From",
|
||||||
|
"Logical.FromText",
|
||||||
|
"Logical.ToText",
|
||||||
|
"MQ.Queue",
|
||||||
|
"MySQL.Database",
|
||||||
|
"Number.Abs",
|
||||||
|
"Number.Acos",
|
||||||
|
"Number.Asin",
|
||||||
|
"Number.Atan",
|
||||||
|
"Number.Atan2",
|
||||||
|
"Number.BitwiseAnd",
|
||||||
|
"Number.BitwiseNot",
|
||||||
|
"Number.BitwiseOr",
|
||||||
|
"Number.BitwiseShiftLeft",
|
||||||
|
"Number.BitwiseShiftRight",
|
||||||
|
"Number.BitwiseXor",
|
||||||
|
"Number.Combinations",
|
||||||
|
"Number.Cos",
|
||||||
|
"Number.Cosh",
|
||||||
|
"Number.Exp",
|
||||||
|
"Number.Factorial",
|
||||||
|
"Number.From",
|
||||||
|
"Number.FromText",
|
||||||
|
"Number.IntegerDivide",
|
||||||
|
"Number.IsEven",
|
||||||
|
"Number.IsNaN",
|
||||||
|
"Number.IsOdd",
|
||||||
|
"Number.Ln",
|
||||||
|
"Number.Log",
|
||||||
|
"Number.Log10",
|
||||||
|
"Number.Mod",
|
||||||
|
"Number.Permutations",
|
||||||
|
"Number.Power",
|
||||||
|
"Number.Random",
|
||||||
|
"Number.RandomBetween",
|
||||||
|
"Number.Round",
|
||||||
|
"Number.RoundAwayFromZero",
|
||||||
|
"Number.RoundDown",
|
||||||
|
"Number.RoundTowardZero",
|
||||||
|
"Number.RoundUp",
|
||||||
|
"Number.Sign",
|
||||||
|
"Number.Sin",
|
||||||
|
"Number.Sinh",
|
||||||
|
"Number.Sqrt",
|
||||||
|
"Number.Tan",
|
||||||
|
"Number.Tanh",
|
||||||
|
"Number.ToText",
|
||||||
|
"OData.Feed",
|
||||||
|
"Odbc.DataSource",
|
||||||
|
"Odbc.Query",
|
||||||
|
"OleDb.DataSource",
|
||||||
|
"OleDb.Query",
|
||||||
|
"Oracle.Database",
|
||||||
|
"Percentage.From",
|
||||||
|
"PostgreSQL.Database",
|
||||||
|
"RData.FromBinary",
|
||||||
|
"Record.AddField",
|
||||||
|
"Record.Combine",
|
||||||
|
"Record.Field",
|
||||||
|
"Record.FieldCount",
|
||||||
|
"Record.FieldNames",
|
||||||
|
"Record.FieldOrDefault",
|
||||||
|
"Record.FieldValues",
|
||||||
|
"Record.FromList",
|
||||||
|
"Record.FromTable",
|
||||||
|
"Record.HasFields",
|
||||||
|
"Record.RemoveFields",
|
||||||
|
"Record.RenameFields",
|
||||||
|
"Record.ReorderFields",
|
||||||
|
"Record.SelectFields",
|
||||||
|
"Record.ToList",
|
||||||
|
"Record.ToTable",
|
||||||
|
"Record.TransformFields",
|
||||||
|
"Replacer.ReplaceText",
|
||||||
|
"Replacer.ReplaceValue",
|
||||||
|
"RowExpression.Column",
|
||||||
|
"RowExpression.From",
|
||||||
|
"Salesforce.Data",
|
||||||
|
"Salesforce.Reports",
|
||||||
|
"SapBusinessWarehouse.Cubes",
|
||||||
|
"SapHana.Database",
|
||||||
|
"SharePoint.Contents",
|
||||||
|
"SharePoint.Files",
|
||||||
|
"SharePoint.Tables",
|
||||||
|
"Single.From",
|
||||||
|
"Soda.Feed",
|
||||||
|
"Splitter.SplitByNothing",
|
||||||
|
"Splitter.SplitTextByAnyDelimiter",
|
||||||
|
"Splitter.SplitTextByDelimiter",
|
||||||
|
"Splitter.SplitTextByEachDelimiter",
|
||||||
|
"Splitter.SplitTextByLengths",
|
||||||
|
"Splitter.SplitTextByPositions",
|
||||||
|
"Splitter.SplitTextByRanges",
|
||||||
|
"Splitter.SplitTextByRepeatedLengths",
|
||||||
|
"Splitter.SplitTextByWhitespace",
|
||||||
|
"Sql.Database",
|
||||||
|
"Sql.Databases",
|
||||||
|
"SqlExpression.SchemaFrom",
|
||||||
|
"SqlExpression.ToExpression",
|
||||||
|
"Sybase.Database",
|
||||||
|
"Table.AddColumn",
|
||||||
|
"Table.AddIndexColumn",
|
||||||
|
"Table.AddJoinColumn",
|
||||||
|
"Table.AddKey",
|
||||||
|
"Table.AggregateTableColumn",
|
||||||
|
"Table.AlternateRows",
|
||||||
|
"Table.Buffer",
|
||||||
|
"Table.Column",
|
||||||
|
"Table.ColumnCount",
|
||||||
|
"Table.ColumnNames",
|
||||||
|
"Table.ColumnsOfType",
|
||||||
|
"Table.Combine",
|
||||||
|
"Table.CombineColumns",
|
||||||
|
"Table.Contains",
|
||||||
|
"Table.ContainsAll",
|
||||||
|
"Table.ContainsAny",
|
||||||
|
"Table.DemoteHeaders",
|
||||||
|
"Table.Distinct",
|
||||||
|
"Table.DuplicateColumn",
|
||||||
|
"Table.ExpandListColumn",
|
||||||
|
"Table.ExpandRecordColumn",
|
||||||
|
"Table.ExpandTableColumn",
|
||||||
|
"Table.FillDown",
|
||||||
|
"Table.FillUp",
|
||||||
|
"Table.FilterWithDataTable",
|
||||||
|
"Table.FindText",
|
||||||
|
"Table.First",
|
||||||
|
"Table.FirstN",
|
||||||
|
"Table.FirstValue",
|
||||||
|
"Table.FromColumns",
|
||||||
|
"Table.FromList",
|
||||||
|
"Table.FromPartitions",
|
||||||
|
"Table.FromRecords",
|
||||||
|
"Table.FromRows",
|
||||||
|
"Table.FromValue",
|
||||||
|
"Table.Group",
|
||||||
|
"Table.HasColumns",
|
||||||
|
"Table.InsertRows",
|
||||||
|
"Table.IsDistinct",
|
||||||
|
"Table.IsEmpty",
|
||||||
|
"Table.Join",
|
||||||
|
"Table.Keys",
|
||||||
|
"Table.Last",
|
||||||
|
"Table.LastN",
|
||||||
|
"Table.MatchesAllRows",
|
||||||
|
"Table.MatchesAnyRows",
|
||||||
|
"Table.Max",
|
||||||
|
"Table.MaxN",
|
||||||
|
"Table.Min",
|
||||||
|
"Table.MinN",
|
||||||
|
"Table.NestedJoin",
|
||||||
|
"Table.Partition",
|
||||||
|
"Table.PartitionValues",
|
||||||
|
"Table.Pivot",
|
||||||
|
"Table.PositionOf",
|
||||||
|
"Table.PositionOfAny",
|
||||||
|
"Table.PrefixColumns",
|
||||||
|
"Table.Profile",
|
||||||
|
"Table.PromoteHeaders",
|
||||||
|
"Table.Range",
|
||||||
|
"Table.RemoveColumns",
|
||||||
|
"Table.RemoveFirstN",
|
||||||
|
"Table.RemoveLastN",
|
||||||
|
"Table.RemoveMatchingRows",
|
||||||
|
"Table.RemoveRows",
|
||||||
|
"Table.RemoveRowsWithErrors",
|
||||||
|
"Table.RenameColumns",
|
||||||
|
"Table.ReorderColumns",
|
||||||
|
"Table.Repeat",
|
||||||
|
"Table.ReplaceErrorValues",
|
||||||
|
"Table.ReplaceKeys",
|
||||||
|
"Table.ReplaceMatchingRows",
|
||||||
|
"Table.ReplaceRelationshipIdentity",
|
||||||
|
"Table.ReplaceRows",
|
||||||
|
"Table.ReplaceValue",
|
||||||
|
"Table.ReverseRows",
|
||||||
|
"Table.RowCount",
|
||||||
|
"Table.Schema",
|
||||||
|
"Table.SelectColumns",
|
||||||
|
"Table.SelectRows",
|
||||||
|
"Table.SelectRowsWithErrors",
|
||||||
|
"Table.SingleRow",
|
||||||
|
"Table.Skip",
|
||||||
|
"Table.Sort",
|
||||||
|
"Table.SplitColumn",
|
||||||
|
"Table.ToColumns",
|
||||||
|
"Table.ToList",
|
||||||
|
"Table.ToRecords",
|
||||||
|
"Table.ToRows",
|
||||||
|
"Table.TransformColumnNames",
|
||||||
|
"Table.TransformColumnTypes",
|
||||||
|
"Table.TransformColumns",
|
||||||
|
"Table.TransformRows",
|
||||||
|
"Table.Transpose",
|
||||||
|
"Table.Unpivot",
|
||||||
|
"Table.UnpivotOtherColumns",
|
||||||
|
"Table.View",
|
||||||
|
"Table.ViewFunction",
|
||||||
|
"TableAction.DeleteRows",
|
||||||
|
"TableAction.InsertRows",
|
||||||
|
"TableAction.UpdateRows",
|
||||||
|
"Tables.GetRelationships",
|
||||||
|
"Teradata.Database",
|
||||||
|
"Text.AfterDelimiter",
|
||||||
|
"Text.At",
|
||||||
|
"Text.BeforeDelimiter",
|
||||||
|
"Text.BetweenDelimiters",
|
||||||
|
"Text.Clean",
|
||||||
|
"Text.Combine",
|
||||||
|
"Text.Contains",
|
||||||
|
"Text.End",
|
||||||
|
"Text.EndsWith",
|
||||||
|
"Text.Format",
|
||||||
|
"Text.From",
|
||||||
|
"Text.FromBinary",
|
||||||
|
"Text.Insert",
|
||||||
|
"Text.Length",
|
||||||
|
"Text.Lower",
|
||||||
|
"Text.Middle",
|
||||||
|
"Text.NewGuid",
|
||||||
|
"Text.PadEnd",
|
||||||
|
"Text.PadStart",
|
||||||
|
"Text.PositionOf",
|
||||||
|
"Text.PositionOfAny",
|
||||||
|
"Text.Proper",
|
||||||
|
"Text.Range",
|
||||||
|
"Text.Remove",
|
||||||
|
"Text.RemoveRange",
|
||||||
|
"Text.Repeat",
|
||||||
|
"Text.Replace",
|
||||||
|
"Text.ReplaceRange",
|
||||||
|
"Text.Select",
|
||||||
|
"Text.Split",
|
||||||
|
"Text.SplitAny",
|
||||||
|
"Text.Start",
|
||||||
|
"Text.StartsWith",
|
||||||
|
"Text.ToBinary",
|
||||||
|
"Text.ToList",
|
||||||
|
"Text.Trim",
|
||||||
|
"Text.TrimEnd",
|
||||||
|
"Text.TrimStart",
|
||||||
|
"Text.Upper",
|
||||||
|
"Time.EndOfHour",
|
||||||
|
"Time.From",
|
||||||
|
"Time.FromText",
|
||||||
|
"Time.Hour",
|
||||||
|
"Time.Minute",
|
||||||
|
"Time.Second",
|
||||||
|
"Time.StartOfHour",
|
||||||
|
"Time.ToRecord",
|
||||||
|
"Time.ToText",
|
||||||
|
"Type.AddTableKey",
|
||||||
|
"Type.ClosedRecord",
|
||||||
|
"Type.Facets",
|
||||||
|
"Type.ForFunction",
|
||||||
|
"Type.ForRecord",
|
||||||
|
"Type.FunctionParameters",
|
||||||
|
"Type.FunctionRequiredParameters",
|
||||||
|
"Type.FunctionReturn",
|
||||||
|
"Type.Is",
|
||||||
|
"Type.IsNullable",
|
||||||
|
"Type.IsOpenRecord",
|
||||||
|
"Type.ListItem",
|
||||||
|
"Type.NonNullable",
|
||||||
|
"Type.OpenRecord",
|
||||||
|
"Type.RecordFields",
|
||||||
|
"Type.ReplaceFacets",
|
||||||
|
"Type.ReplaceTableKeys",
|
||||||
|
"Type.TableColumn",
|
||||||
|
"Type.TableKeys",
|
||||||
|
"Type.TableRow",
|
||||||
|
"Type.TableSchema",
|
||||||
|
"Type.Union",
|
||||||
|
"Uri.BuildQueryString",
|
||||||
|
"Uri.Combine",
|
||||||
|
"Uri.EscapeDataString",
|
||||||
|
"Uri.Parts",
|
||||||
|
"Value.Add",
|
||||||
|
"Value.As",
|
||||||
|
"Value.Compare",
|
||||||
|
"Value.Divide",
|
||||||
|
"Value.Equals",
|
||||||
|
"Value.Firewall",
|
||||||
|
"Value.FromText",
|
||||||
|
"Value.Is",
|
||||||
|
"Value.Metadata",
|
||||||
|
"Value.Multiply",
|
||||||
|
"Value.NativeQuery",
|
||||||
|
"Value.NullableEquals",
|
||||||
|
"Value.RemoveMetadata",
|
||||||
|
"Value.ReplaceMetadata",
|
||||||
|
"Value.ReplaceType",
|
||||||
|
"Value.Subtract",
|
||||||
|
"Value.Type",
|
||||||
|
"ValueAction.NativeStatement",
|
||||||
|
"ValueAction.Replace",
|
||||||
|
"Variable.Value",
|
||||||
|
"Web.Contents",
|
||||||
|
"Web.Page",
|
||||||
|
"WebAction.Request",
|
||||||
|
"Xml.Document",
|
||||||
|
"Xml.Tables"
|
||||||
|
],
|
||||||
|
builtinConstants: [
|
||||||
|
"BinaryEncoding.Base64",
|
||||||
|
"BinaryEncoding.Hex",
|
||||||
|
"BinaryOccurrence.Optional",
|
||||||
|
"BinaryOccurrence.Repeating",
|
||||||
|
"BinaryOccurrence.Required",
|
||||||
|
"ByteOrder.BigEndian",
|
||||||
|
"ByteOrder.LittleEndian",
|
||||||
|
"Compression.Deflate",
|
||||||
|
"Compression.GZip",
|
||||||
|
"CsvStyle.QuoteAfterDelimiter",
|
||||||
|
"CsvStyle.QuoteAlways",
|
||||||
|
"Culture.Current",
|
||||||
|
"Day.Friday",
|
||||||
|
"Day.Monday",
|
||||||
|
"Day.Saturday",
|
||||||
|
"Day.Sunday",
|
||||||
|
"Day.Thursday",
|
||||||
|
"Day.Tuesday",
|
||||||
|
"Day.Wednesday",
|
||||||
|
"ExtraValues.Error",
|
||||||
|
"ExtraValues.Ignore",
|
||||||
|
"ExtraValues.List",
|
||||||
|
"GroupKind.Global",
|
||||||
|
"GroupKind.Local",
|
||||||
|
"JoinAlgorithm.Dynamic",
|
||||||
|
"JoinAlgorithm.LeftHash",
|
||||||
|
"JoinAlgorithm.LeftIndex",
|
||||||
|
"JoinAlgorithm.PairwiseHash",
|
||||||
|
"JoinAlgorithm.RightHash",
|
||||||
|
"JoinAlgorithm.RightIndex",
|
||||||
|
"JoinAlgorithm.SortMerge",
|
||||||
|
"JoinKind.FullOuter",
|
||||||
|
"JoinKind.Inner",
|
||||||
|
"JoinKind.LeftAnti",
|
||||||
|
"JoinKind.LeftOuter",
|
||||||
|
"JoinKind.RightAnti",
|
||||||
|
"JoinKind.RightOuter",
|
||||||
|
"JoinSide.Left",
|
||||||
|
"JoinSide.Right",
|
||||||
|
"MissingField.Error",
|
||||||
|
"MissingField.Ignore",
|
||||||
|
"MissingField.UseNull",
|
||||||
|
"Number.E",
|
||||||
|
"Number.Epsilon",
|
||||||
|
"Number.NaN",
|
||||||
|
"Number.NegativeInfinity",
|
||||||
|
"Number.PI",
|
||||||
|
"Number.PositiveInfinity",
|
||||||
|
"Occurrence.All",
|
||||||
|
"Occurrence.First",
|
||||||
|
"Occurrence.Last",
|
||||||
|
"Occurrence.Optional",
|
||||||
|
"Occurrence.Repeating",
|
||||||
|
"Occurrence.Required",
|
||||||
|
"Order.Ascending",
|
||||||
|
"Order.Descending",
|
||||||
|
"Precision.Decimal",
|
||||||
|
"Precision.Double",
|
||||||
|
"QuoteStyle.Csv",
|
||||||
|
"QuoteStyle.None",
|
||||||
|
"RelativePosition.FromEnd",
|
||||||
|
"RelativePosition.FromStart",
|
||||||
|
"RoundingMode.AwayFromZero",
|
||||||
|
"RoundingMode.Down",
|
||||||
|
"RoundingMode.ToEven",
|
||||||
|
"RoundingMode.TowardZero",
|
||||||
|
"RoundingMode.Up",
|
||||||
|
"SapHanaDistribution.All",
|
||||||
|
"SapHanaDistribution.Connection",
|
||||||
|
"SapHanaDistribution.Off",
|
||||||
|
"SapHanaDistribution.Statement",
|
||||||
|
"SapHanaRangeOperator.Equals",
|
||||||
|
"SapHanaRangeOperator.GreaterThan",
|
||||||
|
"SapHanaRangeOperator.GreaterThanOrEquals",
|
||||||
|
"SapHanaRangeOperator.LessThan",
|
||||||
|
"SapHanaRangeOperator.LessThanOrEquals",
|
||||||
|
"SapHanaRangeOperator.NotEquals",
|
||||||
|
"TextEncoding.Ascii",
|
||||||
|
"TextEncoding.BigEndianUnicode",
|
||||||
|
"TextEncoding.Unicode",
|
||||||
|
"TextEncoding.Utf16",
|
||||||
|
"TextEncoding.Utf8",
|
||||||
|
"TextEncoding.Windows",
|
||||||
|
"TraceLevel.Critical",
|
||||||
|
"TraceLevel.Error",
|
||||||
|
"TraceLevel.Information",
|
||||||
|
"TraceLevel.Verbose",
|
||||||
|
"TraceLevel.Warning",
|
||||||
|
"WebMethod.Delete",
|
||||||
|
"WebMethod.Get",
|
||||||
|
"WebMethod.Head",
|
||||||
|
"WebMethod.Patch",
|
||||||
|
"WebMethod.Post",
|
||||||
|
"WebMethod.Put"
|
||||||
|
],
|
||||||
|
builtinTypes: [
|
||||||
|
"Action.Type",
|
||||||
|
"Any.Type",
|
||||||
|
"Binary.Type",
|
||||||
|
"BinaryEncoding.Type",
|
||||||
|
"BinaryOccurrence.Type",
|
||||||
|
"Byte.Type",
|
||||||
|
"ByteOrder.Type",
|
||||||
|
"Character.Type",
|
||||||
|
"Compression.Type",
|
||||||
|
"CsvStyle.Type",
|
||||||
|
"Currency.Type",
|
||||||
|
"Date.Type",
|
||||||
|
"DateTime.Type",
|
||||||
|
"DateTimeZone.Type",
|
||||||
|
"Day.Type",
|
||||||
|
"Decimal.Type",
|
||||||
|
"Double.Type",
|
||||||
|
"Duration.Type",
|
||||||
|
"ExtraValues.Type",
|
||||||
|
"Function.Type",
|
||||||
|
"GroupKind.Type",
|
||||||
|
"Guid.Type",
|
||||||
|
"Int16.Type",
|
||||||
|
"Int32.Type",
|
||||||
|
"Int64.Type",
|
||||||
|
"Int8.Type",
|
||||||
|
"JoinAlgorithm.Type",
|
||||||
|
"JoinKind.Type",
|
||||||
|
"JoinSide.Type",
|
||||||
|
"List.Type",
|
||||||
|
"Logical.Type",
|
||||||
|
"MissingField.Type",
|
||||||
|
"None.Type",
|
||||||
|
"Null.Type",
|
||||||
|
"Number.Type",
|
||||||
|
"Occurrence.Type",
|
||||||
|
"Order.Type",
|
||||||
|
"Password.Type",
|
||||||
|
"Percentage.Type",
|
||||||
|
"Precision.Type",
|
||||||
|
"QuoteStyle.Type",
|
||||||
|
"Record.Type",
|
||||||
|
"RelativePosition.Type",
|
||||||
|
"RoundingMode.Type",
|
||||||
|
"SapHanaDistribution.Type",
|
||||||
|
"SapHanaRangeOperator.Type",
|
||||||
|
"Single.Type",
|
||||||
|
"Table.Type",
|
||||||
|
"Text.Type",
|
||||||
|
"TextEncoding.Type",
|
||||||
|
"Time.Type",
|
||||||
|
"TraceLevel.Type",
|
||||||
|
"Type.Type",
|
||||||
|
"Uri.Type",
|
||||||
|
"WebMethod.Type"
|
||||||
|
],
|
||||||
|
tokenizer: {
|
||||||
|
root: [
|
||||||
|
[/#"[\w \.]+"/, "identifier.quote"],
|
||||||
|
[/\d*\.\d+([eE][\-+]?\d+)?/, "number.float"],
|
||||||
|
[/0[xX][0-9a-fA-F]+/, "number.hex"],
|
||||||
|
[/\d+([eE][\-+]?\d+)?/, "number"],
|
||||||
|
[
|
||||||
|
/(#?[a-z]+)\b/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"@typeKeywords": "type",
|
||||||
|
"@keywords": "keyword",
|
||||||
|
"@constants": "constant",
|
||||||
|
"@constructors": "constructor",
|
||||||
|
"@operatorKeywords": "operators",
|
||||||
|
"@default": "identifier"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[
|
||||||
|
/\b([A-Z][a-zA-Z0-9]+\.Type)\b/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"@builtinTypes": "type",
|
||||||
|
"@default": "identifier"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[
|
||||||
|
/\b([A-Z][a-zA-Z0-9]+\.[A-Z][a-zA-Z0-9]+)\b/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"@builtinFunctions": "keyword.function",
|
||||||
|
"@builtinConstants": "constant",
|
||||||
|
"@default": "identifier"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/\b([a-zA-Z_][\w\.]*)\b/, "identifier"],
|
||||||
|
{ include: "@whitespace" },
|
||||||
|
{ include: "@comments" },
|
||||||
|
{ include: "@strings" },
|
||||||
|
[/[{}()\[\]]/, "@brackets"],
|
||||||
|
[/([=\+<>\-\*&@\?\/!])|([<>]=)|(<>)|(=>)|(\.\.\.)|(\.\.)/, "operators"],
|
||||||
|
[/[,;]/, "delimiter"]
|
||||||
|
],
|
||||||
|
whitespace: [[/\s+/, "white"]],
|
||||||
|
comments: [
|
||||||
|
["\\/\\*", "comment", "@comment"],
|
||||||
|
["\\/\\/+.*", "comment"]
|
||||||
|
],
|
||||||
|
comment: [
|
||||||
|
["\\*\\/", "comment", "@pop"],
|
||||||
|
[".", "comment"]
|
||||||
|
],
|
||||||
|
strings: [['"', "string", "@string"]],
|
||||||
|
string: [
|
||||||
|
['""', "string.escape"],
|
||||||
|
['"', "string", "@pop"],
|
||||||
|
[".", "string"]
|
||||||
|
]
|
||||||
|
}
|
||||||
|
};
|
||||||
|
return __toCommonJS(powerquery_exports);
|
||||||
|
})();
|
||||||
|
return moduleExports;
|
||||||
|
});
|
||||||
@@ -0,0 +1,265 @@
|
|||||||
|
/*!-----------------------------------------------------------------------------
|
||||||
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||||
|
* Version: 0.33.0(4b1abad427e58dbedc1215d99a0902ffc885fcd4)
|
||||||
|
* Released under the MIT license
|
||||||
|
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
||||||
|
*-----------------------------------------------------------------------------*/
|
||||||
|
define("vs/basic-languages/powershell/powershell", ["require"],(require)=>{
|
||||||
|
var moduleExports = (() => {
|
||||||
|
var __defProp = Object.defineProperty;
|
||||||
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||||
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||||
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||||
|
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
||||||
|
var __export = (target, all) => {
|
||||||
|
for (var name in all)
|
||||||
|
__defProp(target, name, { get: all[name], enumerable: true });
|
||||||
|
};
|
||||||
|
var __reExport = (target, module, copyDefault, desc) => {
|
||||||
|
if (module && typeof module === "object" || typeof module === "function") {
|
||||||
|
for (let key of __getOwnPropNames(module))
|
||||||
|
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
||||||
|
__defProp(target, key, { get: () => module[key], enumerable: !(desc = __getOwnPropDesc(module, key)) || desc.enumerable });
|
||||||
|
}
|
||||||
|
return target;
|
||||||
|
};
|
||||||
|
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
||||||
|
return (module, temp) => {
|
||||||
|
return cache && cache.get(module) || (temp = __reExport(__markAsModule({}), module, 1), cache && cache.set(module, temp), temp);
|
||||||
|
};
|
||||||
|
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
||||||
|
|
||||||
|
// src/basic-languages/powershell/powershell.ts
|
||||||
|
var powershell_exports = {};
|
||||||
|
__export(powershell_exports, {
|
||||||
|
conf: () => conf,
|
||||||
|
language: () => language
|
||||||
|
});
|
||||||
|
var conf = {
|
||||||
|
wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\@\#%\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,
|
||||||
|
comments: {
|
||||||
|
lineComment: "#",
|
||||||
|
blockComment: ["<#", "#>"]
|
||||||
|
},
|
||||||
|
brackets: [
|
||||||
|
["{", "}"],
|
||||||
|
["[", "]"],
|
||||||
|
["(", ")"]
|
||||||
|
],
|
||||||
|
autoClosingPairs: [
|
||||||
|
{ open: "{", close: "}" },
|
||||||
|
{ open: "[", close: "]" },
|
||||||
|
{ open: "(", close: ")" },
|
||||||
|
{ open: '"', close: '"', notIn: ["string"] },
|
||||||
|
{ open: "'", close: "'", notIn: ["string", "comment"] }
|
||||||
|
],
|
||||||
|
surroundingPairs: [
|
||||||
|
{ open: "{", close: "}" },
|
||||||
|
{ open: "[", close: "]" },
|
||||||
|
{ open: "(", close: ")" },
|
||||||
|
{ open: '"', close: '"' },
|
||||||
|
{ open: "'", close: "'" }
|
||||||
|
],
|
||||||
|
folding: {
|
||||||
|
markers: {
|
||||||
|
start: new RegExp("^\\s*#region\\b"),
|
||||||
|
end: new RegExp("^\\s*#endregion\\b")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
var language = {
|
||||||
|
defaultToken: "",
|
||||||
|
ignoreCase: true,
|
||||||
|
tokenPostfix: ".ps1",
|
||||||
|
brackets: [
|
||||||
|
{ token: "delimiter.curly", open: "{", close: "}" },
|
||||||
|
{ token: "delimiter.square", open: "[", close: "]" },
|
||||||
|
{ token: "delimiter.parenthesis", open: "(", close: ")" }
|
||||||
|
],
|
||||||
|
keywords: [
|
||||||
|
"begin",
|
||||||
|
"break",
|
||||||
|
"catch",
|
||||||
|
"class",
|
||||||
|
"continue",
|
||||||
|
"data",
|
||||||
|
"define",
|
||||||
|
"do",
|
||||||
|
"dynamicparam",
|
||||||
|
"else",
|
||||||
|
"elseif",
|
||||||
|
"end",
|
||||||
|
"exit",
|
||||||
|
"filter",
|
||||||
|
"finally",
|
||||||
|
"for",
|
||||||
|
"foreach",
|
||||||
|
"from",
|
||||||
|
"function",
|
||||||
|
"if",
|
||||||
|
"in",
|
||||||
|
"param",
|
||||||
|
"process",
|
||||||
|
"return",
|
||||||
|
"switch",
|
||||||
|
"throw",
|
||||||
|
"trap",
|
||||||
|
"try",
|
||||||
|
"until",
|
||||||
|
"using",
|
||||||
|
"var",
|
||||||
|
"while",
|
||||||
|
"workflow",
|
||||||
|
"parallel",
|
||||||
|
"sequence",
|
||||||
|
"inlinescript",
|
||||||
|
"configuration"
|
||||||
|
],
|
||||||
|
helpKeywords: /SYNOPSIS|DESCRIPTION|PARAMETER|EXAMPLE|INPUTS|OUTPUTS|NOTES|LINK|COMPONENT|ROLE|FUNCTIONALITY|FORWARDHELPTARGETNAME|FORWARDHELPCATEGORY|REMOTEHELPRUNSPACE|EXTERNALHELP/,
|
||||||
|
symbols: /[=><!~?&%|+\-*\/\^;\.,]+/,
|
||||||
|
escapes: /`(?:[abfnrtv\\"'$]|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
|
||||||
|
tokenizer: {
|
||||||
|
root: [
|
||||||
|
[
|
||||||
|
/[a-zA-Z_][\w-]*/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"@keywords": { token: "keyword.$0" },
|
||||||
|
"@default": ""
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/[ \t\r\n]+/, ""],
|
||||||
|
[/^:\w*/, "metatag"],
|
||||||
|
[
|
||||||
|
/\$(\{((global|local|private|script|using):)?[\w]+\}|((global|local|private|script|using):)?[\w]+)/,
|
||||||
|
"variable"
|
||||||
|
],
|
||||||
|
[/<#/, "comment", "@comment"],
|
||||||
|
[/#.*$/, "comment"],
|
||||||
|
[/[{}()\[\]]/, "@brackets"],
|
||||||
|
[/@symbols/, "delimiter"],
|
||||||
|
[/\d*\.\d+([eE][\-+]?\d+)?/, "number.float"],
|
||||||
|
[/0[xX][0-9a-fA-F_]*[0-9a-fA-F]/, "number.hex"],
|
||||||
|
[/\d+?/, "number"],
|
||||||
|
[/[;,.]/, "delimiter"],
|
||||||
|
[/\@"/, "string", '@herestring."'],
|
||||||
|
[/\@'/, "string", "@herestring.'"],
|
||||||
|
[
|
||||||
|
/"/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"@eos": "string",
|
||||||
|
"@default": { token: "string", next: '@string."' }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[
|
||||||
|
/'/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"@eos": "string",
|
||||||
|
"@default": { token: "string", next: "@string.'" }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
],
|
||||||
|
string: [
|
||||||
|
[
|
||||||
|
/[^"'\$`]+/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"@eos": { token: "string", next: "@popall" },
|
||||||
|
"@default": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[
|
||||||
|
/@escapes/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"@eos": { token: "string.escape", next: "@popall" },
|
||||||
|
"@default": "string.escape"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[
|
||||||
|
/`./,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"@eos": {
|
||||||
|
token: "string.escape.invalid",
|
||||||
|
next: "@popall"
|
||||||
|
},
|
||||||
|
"@default": "string.escape.invalid"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[
|
||||||
|
/\$[\w]+$/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
'$S2=="': { token: "variable", next: "@popall" },
|
||||||
|
"@default": { token: "string", next: "@popall" }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[
|
||||||
|
/\$[\w]+/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
'$S2=="': "variable",
|
||||||
|
"@default": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[
|
||||||
|
/["']/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"$#==$S2": { token: "string", next: "@pop" },
|
||||||
|
"@default": {
|
||||||
|
cases: {
|
||||||
|
"@eos": { token: "string", next: "@popall" },
|
||||||
|
"@default": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
],
|
||||||
|
herestring: [
|
||||||
|
[
|
||||||
|
/^\s*(["'])@/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"$1==$S2": { token: "string", next: "@pop" },
|
||||||
|
"@default": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/[^\$`]+/, "string"],
|
||||||
|
[/@escapes/, "string.escape"],
|
||||||
|
[/`./, "string.escape.invalid"],
|
||||||
|
[
|
||||||
|
/\$[\w]+/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
'$S2=="': "variable",
|
||||||
|
"@default": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
],
|
||||||
|
comment: [
|
||||||
|
[/[^#\.]+/, "comment"],
|
||||||
|
[/#>/, "comment", "@pop"],
|
||||||
|
[/(\.)(@helpKeywords)(?!\w)/, { token: "comment.keyword.$2" }],
|
||||||
|
[/[\.#]/, "comment"]
|
||||||
|
]
|
||||||
|
}
|
||||||
|
};
|
||||||
|
return __toCommonJS(powershell_exports);
|
||||||
|
})();
|
||||||
|
return moduleExports;
|
||||||
|
});
|
||||||
@@ -0,0 +1,454 @@
|
|||||||
|
/*!-----------------------------------------------------------------------------
|
||||||
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||||
|
* Version: 0.33.0(4b1abad427e58dbedc1215d99a0902ffc885fcd4)
|
||||||
|
* Released under the MIT license
|
||||||
|
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
||||||
|
*-----------------------------------------------------------------------------*/
|
||||||
|
define("vs/basic-languages/protobuf/protobuf", ["require"],(require)=>{
|
||||||
|
var moduleExports = (() => {
|
||||||
|
var __defProp = Object.defineProperty;
|
||||||
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||||
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||||
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||||
|
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
||||||
|
var __export = (target, all) => {
|
||||||
|
for (var name in all)
|
||||||
|
__defProp(target, name, { get: all[name], enumerable: true });
|
||||||
|
};
|
||||||
|
var __reExport = (target, module, copyDefault, desc) => {
|
||||||
|
if (module && typeof module === "object" || typeof module === "function") {
|
||||||
|
for (let key of __getOwnPropNames(module))
|
||||||
|
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
||||||
|
__defProp(target, key, { get: () => module[key], enumerable: !(desc = __getOwnPropDesc(module, key)) || desc.enumerable });
|
||||||
|
}
|
||||||
|
return target;
|
||||||
|
};
|
||||||
|
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
||||||
|
return (module, temp) => {
|
||||||
|
return cache && cache.get(module) || (temp = __reExport(__markAsModule({}), module, 1), cache && cache.set(module, temp), temp);
|
||||||
|
};
|
||||||
|
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
||||||
|
|
||||||
|
// src/basic-languages/protobuf/protobuf.ts
|
||||||
|
var protobuf_exports = {};
|
||||||
|
__export(protobuf_exports, {
|
||||||
|
conf: () => conf,
|
||||||
|
language: () => language
|
||||||
|
});
|
||||||
|
var namedLiterals = ["true", "false"];
|
||||||
|
var conf = {
|
||||||
|
comments: {
|
||||||
|
lineComment: "//",
|
||||||
|
blockComment: ["/*", "*/"]
|
||||||
|
},
|
||||||
|
brackets: [
|
||||||
|
["{", "}"],
|
||||||
|
["[", "]"],
|
||||||
|
["(", ")"],
|
||||||
|
["<", ">"]
|
||||||
|
],
|
||||||
|
surroundingPairs: [
|
||||||
|
{ open: "{", close: "}" },
|
||||||
|
{ open: "[", close: "]" },
|
||||||
|
{ open: "(", close: ")" },
|
||||||
|
{ open: "<", close: ">" },
|
||||||
|
{ open: '"', close: '"' },
|
||||||
|
{ open: "'", close: "'" }
|
||||||
|
],
|
||||||
|
autoClosingPairs: [
|
||||||
|
{ open: "{", close: "}" },
|
||||||
|
{ open: "[", close: "]" },
|
||||||
|
{ open: "(", close: ")" },
|
||||||
|
{ open: "<", close: ">" },
|
||||||
|
{ open: '"', close: '"', notIn: ["string"] },
|
||||||
|
{ open: "'", close: "'", notIn: ["string"] }
|
||||||
|
],
|
||||||
|
autoCloseBefore: ".,=}])>' \n ",
|
||||||
|
indentationRules: {
|
||||||
|
increaseIndentPattern: new RegExp("^((?!\\/\\/).)*(\\{[^}\"'`]*|\\([^)\"'`]*|\\[[^\\]\"'`]*)$"),
|
||||||
|
decreaseIndentPattern: new RegExp("^((?!.*?\\/\\*).*\\*/)?\\s*[\\}\\]].*$")
|
||||||
|
}
|
||||||
|
};
|
||||||
|
var language = {
|
||||||
|
defaultToken: "",
|
||||||
|
tokenPostfix: ".proto",
|
||||||
|
brackets: [
|
||||||
|
{ open: "{", close: "}", token: "delimiter.curly" },
|
||||||
|
{ open: "[", close: "]", token: "delimiter.square" },
|
||||||
|
{ open: "(", close: ")", token: "delimiter.parenthesis" },
|
||||||
|
{ open: "<", close: ">", token: "delimiter.angle" }
|
||||||
|
],
|
||||||
|
symbols: /[=><!~?:&|+\-*/^%]+/,
|
||||||
|
keywords: [
|
||||||
|
"syntax",
|
||||||
|
"import",
|
||||||
|
"weak",
|
||||||
|
"public",
|
||||||
|
"package",
|
||||||
|
"option",
|
||||||
|
"repeated",
|
||||||
|
"oneof",
|
||||||
|
"map",
|
||||||
|
"reserved",
|
||||||
|
"to",
|
||||||
|
"max",
|
||||||
|
"enum",
|
||||||
|
"message",
|
||||||
|
"service",
|
||||||
|
"rpc",
|
||||||
|
"stream",
|
||||||
|
"returns",
|
||||||
|
"package",
|
||||||
|
"optional",
|
||||||
|
"true",
|
||||||
|
"false"
|
||||||
|
],
|
||||||
|
builtinTypes: [
|
||||||
|
"double",
|
||||||
|
"float",
|
||||||
|
"int32",
|
||||||
|
"int64",
|
||||||
|
"uint32",
|
||||||
|
"uint64",
|
||||||
|
"sint32",
|
||||||
|
"sint64",
|
||||||
|
"fixed32",
|
||||||
|
"fixed64",
|
||||||
|
"sfixed32",
|
||||||
|
"sfixed64",
|
||||||
|
"bool",
|
||||||
|
"string",
|
||||||
|
"bytes"
|
||||||
|
],
|
||||||
|
operators: ["=", "+", "-"],
|
||||||
|
namedLiterals,
|
||||||
|
escapes: `\\\\(u{[0-9A-Fa-f]+}|n|r|t|\\\\|'|\\\${)`,
|
||||||
|
identifier: /[a-zA-Z]\w*/,
|
||||||
|
fullIdentifier: /@identifier(?:\s*\.\s*@identifier)*/,
|
||||||
|
optionName: /(?:@identifier|\(\s*@fullIdentifier\s*\))(?:\s*\.\s*@identifier)*/,
|
||||||
|
messageName: /@identifier/,
|
||||||
|
enumName: /@identifier/,
|
||||||
|
messageType: /\.?\s*(?:@identifier\s*\.\s*)*@messageName/,
|
||||||
|
enumType: /\.?\s*(?:@identifier\s*\.\s*)*@enumName/,
|
||||||
|
floatLit: /[0-9]+\s*\.\s*[0-9]*(?:@exponent)?|[0-9]+@exponent|\.[0-9]+(?:@exponent)?/,
|
||||||
|
exponent: /[eE]\s*[+-]?\s*[0-9]+/,
|
||||||
|
boolLit: /true\b|false\b/,
|
||||||
|
decimalLit: /[1-9][0-9]*/,
|
||||||
|
octalLit: /0[0-7]*/,
|
||||||
|
hexLit: /0[xX][0-9a-fA-F]+/,
|
||||||
|
type: /double|float|int32|int64|uint32|uint64|sint32|sint64|fixed32|fixed64|sfixed32|sfixed64|bool|string|bytes|@messageType|@enumType/,
|
||||||
|
keyType: /int32|int64|uint32|uint64|sint32|sint64|fixed32|fixed64|sfixed32|sfixed64|bool|string/,
|
||||||
|
tokenizer: {
|
||||||
|
root: [
|
||||||
|
{ include: "@whitespace" },
|
||||||
|
[/syntax/, "keyword"],
|
||||||
|
[/=/, "operators"],
|
||||||
|
[/;/, "delimiter"],
|
||||||
|
[
|
||||||
|
/(")(proto3)(")/,
|
||||||
|
["string.quote", "string", { token: "string.quote", switchTo: "@topLevel.proto3" }]
|
||||||
|
],
|
||||||
|
[
|
||||||
|
/(")(proto2)(")/,
|
||||||
|
["string.quote", "string", { token: "string.quote", switchTo: "@topLevel.proto2" }]
|
||||||
|
],
|
||||||
|
[
|
||||||
|
/.*?/,
|
||||||
|
{ token: "", switchTo: "@topLevel.proto2" }
|
||||||
|
]
|
||||||
|
],
|
||||||
|
topLevel: [
|
||||||
|
{ include: "@whitespace" },
|
||||||
|
{ include: "@constant" },
|
||||||
|
[/=/, "operators"],
|
||||||
|
[/[;.]/, "delimiter"],
|
||||||
|
[
|
||||||
|
/@fullIdentifier/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
option: { token: "keyword", next: "@option.$S2" },
|
||||||
|
enum: { token: "keyword", next: "@enumDecl.$S2" },
|
||||||
|
message: { token: "keyword", next: "@messageDecl.$S2" },
|
||||||
|
service: { token: "keyword", next: "@serviceDecl.$S2" },
|
||||||
|
extend: {
|
||||||
|
cases: {
|
||||||
|
"$S2==proto2": { token: "keyword", next: "@extendDecl.$S2" }
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"@keywords": "keyword",
|
||||||
|
"@default": "identifier"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
],
|
||||||
|
enumDecl: [
|
||||||
|
{ include: "@whitespace" },
|
||||||
|
[/@identifier/, "type.identifier"],
|
||||||
|
[/{/, { token: "@brackets", bracket: "@open", switchTo: "@enumBody.$S2" }]
|
||||||
|
],
|
||||||
|
enumBody: [
|
||||||
|
{ include: "@whitespace" },
|
||||||
|
{ include: "@constant" },
|
||||||
|
[/=/, "operators"],
|
||||||
|
[/;/, "delimiter"],
|
||||||
|
[/option\b/, "keyword", "@option.$S2"],
|
||||||
|
[/@identifier/, "identifier"],
|
||||||
|
[/\[/, { token: "@brackets", bracket: "@open", next: "@options.$S2" }],
|
||||||
|
[/}/, { token: "@brackets", bracket: "@close", next: "@pop" }]
|
||||||
|
],
|
||||||
|
messageDecl: [
|
||||||
|
{ include: "@whitespace" },
|
||||||
|
[/@identifier/, "type.identifier"],
|
||||||
|
[/{/, { token: "@brackets", bracket: "@open", switchTo: "@messageBody.$S2" }]
|
||||||
|
],
|
||||||
|
messageBody: [
|
||||||
|
{ include: "@whitespace" },
|
||||||
|
{ include: "@constant" },
|
||||||
|
[/=/, "operators"],
|
||||||
|
[/;/, "delimiter"],
|
||||||
|
[
|
||||||
|
"(map)(s*)(<)",
|
||||||
|
["keyword", "white", { token: "@brackets", bracket: "@open", next: "@map.$S2" }]
|
||||||
|
],
|
||||||
|
[
|
||||||
|
/@identifier/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
option: { token: "keyword", next: "@option.$S2" },
|
||||||
|
enum: { token: "keyword", next: "@enumDecl.$S2" },
|
||||||
|
message: { token: "keyword", next: "@messageDecl.$S2" },
|
||||||
|
oneof: { token: "keyword", next: "@oneofDecl.$S2" },
|
||||||
|
extensions: {
|
||||||
|
cases: {
|
||||||
|
"$S2==proto2": { token: "keyword", next: "@reserved.$S2" }
|
||||||
|
}
|
||||||
|
},
|
||||||
|
reserved: { token: "keyword", next: "@reserved.$S2" },
|
||||||
|
"(?:repeated|optional)": { token: "keyword", next: "@field.$S2" },
|
||||||
|
required: {
|
||||||
|
cases: {
|
||||||
|
"$S2==proto2": { token: "keyword", next: "@field.$S2" }
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"$S2==proto3": { token: "@rematch", next: "@field.$S2" }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/\[/, { token: "@brackets", bracket: "@open", next: "@options.$S2" }],
|
||||||
|
[/}/, { token: "@brackets", bracket: "@close", next: "@pop" }]
|
||||||
|
],
|
||||||
|
extendDecl: [
|
||||||
|
{ include: "@whitespace" },
|
||||||
|
[/@identifier/, "type.identifier"],
|
||||||
|
[/{/, { token: "@brackets", bracket: "@open", switchTo: "@extendBody.$S2" }]
|
||||||
|
],
|
||||||
|
extendBody: [
|
||||||
|
{ include: "@whitespace" },
|
||||||
|
{ include: "@constant" },
|
||||||
|
[/;/, "delimiter"],
|
||||||
|
[/(?:repeated|optional|required)/, "keyword", "@field.$S2"],
|
||||||
|
[/\[/, { token: "@brackets", bracket: "@open", next: "@options.$S2" }],
|
||||||
|
[/}/, { token: "@brackets", bracket: "@close", next: "@pop" }]
|
||||||
|
],
|
||||||
|
options: [
|
||||||
|
{ include: "@whitespace" },
|
||||||
|
{ include: "@constant" },
|
||||||
|
[/;/, "delimiter"],
|
||||||
|
[/@optionName/, "annotation"],
|
||||||
|
[/[()]/, "annotation.brackets"],
|
||||||
|
[/=/, "operator"],
|
||||||
|
[/\]/, { token: "@brackets", bracket: "@close", next: "@pop" }]
|
||||||
|
],
|
||||||
|
option: [
|
||||||
|
{ include: "@whitespace" },
|
||||||
|
[/@optionName/, "annotation"],
|
||||||
|
[/[()]/, "annotation.brackets"],
|
||||||
|
[/=/, "operator", "@pop"]
|
||||||
|
],
|
||||||
|
oneofDecl: [
|
||||||
|
{ include: "@whitespace" },
|
||||||
|
[/@identifier/, "identifier"],
|
||||||
|
[/{/, { token: "@brackets", bracket: "@open", switchTo: "@oneofBody.$S2" }]
|
||||||
|
],
|
||||||
|
oneofBody: [
|
||||||
|
{ include: "@whitespace" },
|
||||||
|
{ include: "@constant" },
|
||||||
|
[/;/, "delimiter"],
|
||||||
|
[/(@identifier)(\s*)(=)/, ["identifier", "white", "delimiter"]],
|
||||||
|
[
|
||||||
|
/@fullIdentifier|\./,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"@builtinTypes": "keyword",
|
||||||
|
"@default": "type.identifier"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/\[/, { token: "@brackets", bracket: "@open", next: "@options.$S2" }],
|
||||||
|
[/}/, { token: "@brackets", bracket: "@close", next: "@pop" }]
|
||||||
|
],
|
||||||
|
reserved: [
|
||||||
|
{ include: "@whitespace" },
|
||||||
|
[/,/, "delimiter"],
|
||||||
|
[/;/, "delimiter", "@pop"],
|
||||||
|
{ include: "@constant" },
|
||||||
|
[/to\b|max\b/, "keyword"]
|
||||||
|
],
|
||||||
|
map: [
|
||||||
|
{ include: "@whitespace" },
|
||||||
|
[
|
||||||
|
/@fullIdentifier|\./,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"@builtinTypes": "keyword",
|
||||||
|
"@default": "type.identifier"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/,/, "delimiter"],
|
||||||
|
[/>/, { token: "@brackets", bracket: "@close", switchTo: "identifier" }]
|
||||||
|
],
|
||||||
|
field: [
|
||||||
|
{ include: "@whitespace" },
|
||||||
|
[
|
||||||
|
"group",
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"$S2==proto2": { token: "keyword", switchTo: "@groupDecl.$S2" }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/(@identifier)(\s*)(=)/, ["identifier", "white", { token: "delimiter", next: "@pop" }]],
|
||||||
|
[
|
||||||
|
/@fullIdentifier|\./,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"@builtinTypes": "keyword",
|
||||||
|
"@default": "type.identifier"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
],
|
||||||
|
groupDecl: [
|
||||||
|
{ include: "@whitespace" },
|
||||||
|
[/@identifier/, "identifier"],
|
||||||
|
["=", "operator"],
|
||||||
|
[/{/, { token: "@brackets", bracket: "@open", switchTo: "@messageBody.$S2" }],
|
||||||
|
{ include: "@constant" }
|
||||||
|
],
|
||||||
|
type: [
|
||||||
|
{ include: "@whitespace" },
|
||||||
|
[/@identifier/, "type.identifier", "@pop"],
|
||||||
|
[/./, "delimiter"]
|
||||||
|
],
|
||||||
|
identifier: [{ include: "@whitespace" }, [/@identifier/, "identifier", "@pop"]],
|
||||||
|
serviceDecl: [
|
||||||
|
{ include: "@whitespace" },
|
||||||
|
[/@identifier/, "identifier"],
|
||||||
|
[/{/, { token: "@brackets", bracket: "@open", switchTo: "@serviceBody.$S2" }]
|
||||||
|
],
|
||||||
|
serviceBody: [
|
||||||
|
{ include: "@whitespace" },
|
||||||
|
{ include: "@constant" },
|
||||||
|
[/;/, "delimiter"],
|
||||||
|
[/option\b/, "keyword", "@option.$S2"],
|
||||||
|
[/rpc\b/, "keyword", "@rpc.$S2"],
|
||||||
|
[/\[/, { token: "@brackets", bracket: "@open", next: "@options.$S2" }],
|
||||||
|
[/}/, { token: "@brackets", bracket: "@close", next: "@pop" }]
|
||||||
|
],
|
||||||
|
rpc: [
|
||||||
|
{ include: "@whitespace" },
|
||||||
|
[/@identifier/, "identifier"],
|
||||||
|
[/\(/, { token: "@brackets", bracket: "@open", switchTo: "@request.$S2" }],
|
||||||
|
[/{/, { token: "@brackets", bracket: "@open", next: "@methodOptions.$S2" }],
|
||||||
|
[/;/, "delimiter", "@pop"]
|
||||||
|
],
|
||||||
|
request: [
|
||||||
|
{ include: "@whitespace" },
|
||||||
|
[
|
||||||
|
/@messageType/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
stream: { token: "keyword", next: "@type.$S2" },
|
||||||
|
"@default": "type.identifier"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/\)/, { token: "@brackets", bracket: "@close", switchTo: "@returns.$S2" }]
|
||||||
|
],
|
||||||
|
returns: [
|
||||||
|
{ include: "@whitespace" },
|
||||||
|
[/returns\b/, "keyword"],
|
||||||
|
[/\(/, { token: "@brackets", bracket: "@open", switchTo: "@response.$S2" }]
|
||||||
|
],
|
||||||
|
response: [
|
||||||
|
{ include: "@whitespace" },
|
||||||
|
[
|
||||||
|
/@messageType/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
stream: { token: "keyword", next: "@type.$S2" },
|
||||||
|
"@default": "type.identifier"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/\)/, { token: "@brackets", bracket: "@close", switchTo: "@rpc.$S2" }]
|
||||||
|
],
|
||||||
|
methodOptions: [
|
||||||
|
{ include: "@whitespace" },
|
||||||
|
{ include: "@constant" },
|
||||||
|
[/;/, "delimiter"],
|
||||||
|
["option", "keyword"],
|
||||||
|
[/@optionName/, "annotation"],
|
||||||
|
[/[()]/, "annotation.brackets"],
|
||||||
|
[/=/, "operator"],
|
||||||
|
[/}/, { token: "@brackets", bracket: "@close", next: "@pop" }]
|
||||||
|
],
|
||||||
|
comment: [
|
||||||
|
[/[^\/*]+/, "comment"],
|
||||||
|
[/\/\*/, "comment", "@push"],
|
||||||
|
["\\*/", "comment", "@pop"],
|
||||||
|
[/[\/*]/, "comment"]
|
||||||
|
],
|
||||||
|
string: [
|
||||||
|
[/[^\\"]+/, "string"],
|
||||||
|
[/@escapes/, "string.escape"],
|
||||||
|
[/\\./, "string.escape.invalid"],
|
||||||
|
[/"/, { token: "string.quote", bracket: "@close", next: "@pop" }]
|
||||||
|
],
|
||||||
|
stringSingle: [
|
||||||
|
[/[^\\']+/, "string"],
|
||||||
|
[/@escapes/, "string.escape"],
|
||||||
|
[/\\./, "string.escape.invalid"],
|
||||||
|
[/'/, { token: "string.quote", bracket: "@close", next: "@pop" }]
|
||||||
|
],
|
||||||
|
constant: [
|
||||||
|
["@boolLit", "keyword.constant"],
|
||||||
|
["@hexLit", "number.hex"],
|
||||||
|
["@octalLit", "number.octal"],
|
||||||
|
["@decimalLit", "number"],
|
||||||
|
["@floatLit", "number.float"],
|
||||||
|
[/("([^"\\]|\\.)*|'([^'\\]|\\.)*)$/, "string.invalid"],
|
||||||
|
[/"/, { token: "string.quote", bracket: "@open", next: "@string" }],
|
||||||
|
[/'/, { token: "string.quote", bracket: "@open", next: "@stringSingle" }],
|
||||||
|
[/{/, { token: "@brackets", bracket: "@open", next: "@prototext" }],
|
||||||
|
[/identifier/, "identifier"]
|
||||||
|
],
|
||||||
|
whitespace: [
|
||||||
|
[/[ \t\r\n]+/, "white"],
|
||||||
|
[/\/\*/, "comment", "@comment"],
|
||||||
|
[/\/\/.*$/, "comment"]
|
||||||
|
],
|
||||||
|
prototext: [
|
||||||
|
{ include: "@whitespace" },
|
||||||
|
{ include: "@constant" },
|
||||||
|
[/@identifier/, "identifier"],
|
||||||
|
[/[:;]/, "delimiter"],
|
||||||
|
[/}/, { token: "@brackets", bracket: "@close", next: "@pop" }]
|
||||||
|
]
|
||||||
|
}
|
||||||
|
};
|
||||||
|
return __toCommonJS(protobuf_exports);
|
||||||
|
})();
|
||||||
|
return moduleExports;
|
||||||
|
});
|
||||||
@@ -0,0 +1,425 @@
|
|||||||
|
/*!-----------------------------------------------------------------------------
|
||||||
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||||
|
* Version: 0.33.0(4b1abad427e58dbedc1215d99a0902ffc885fcd4)
|
||||||
|
* Released under the MIT license
|
||||||
|
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
||||||
|
*-----------------------------------------------------------------------------*/
|
||||||
|
define("vs/basic-languages/pug/pug", ["require"],(require)=>{
|
||||||
|
var moduleExports = (() => {
|
||||||
|
var __defProp = Object.defineProperty;
|
||||||
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||||
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||||
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||||
|
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
||||||
|
var __export = (target, all) => {
|
||||||
|
for (var name in all)
|
||||||
|
__defProp(target, name, { get: all[name], enumerable: true });
|
||||||
|
};
|
||||||
|
var __reExport = (target, module, copyDefault, desc) => {
|
||||||
|
if (module && typeof module === "object" || typeof module === "function") {
|
||||||
|
for (let key of __getOwnPropNames(module))
|
||||||
|
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
||||||
|
__defProp(target, key, { get: () => module[key], enumerable: !(desc = __getOwnPropDesc(module, key)) || desc.enumerable });
|
||||||
|
}
|
||||||
|
return target;
|
||||||
|
};
|
||||||
|
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
||||||
|
return (module, temp) => {
|
||||||
|
return cache && cache.get(module) || (temp = __reExport(__markAsModule({}), module, 1), cache && cache.set(module, temp), temp);
|
||||||
|
};
|
||||||
|
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
||||||
|
|
||||||
|
// src/basic-languages/pug/pug.ts
|
||||||
|
var pug_exports = {};
|
||||||
|
__export(pug_exports, {
|
||||||
|
conf: () => conf,
|
||||||
|
language: () => language
|
||||||
|
});
|
||||||
|
var conf = {
|
||||||
|
comments: {
|
||||||
|
lineComment: "//"
|
||||||
|
},
|
||||||
|
brackets: [
|
||||||
|
["{", "}"],
|
||||||
|
["[", "]"],
|
||||||
|
["(", ")"]
|
||||||
|
],
|
||||||
|
autoClosingPairs: [
|
||||||
|
{ open: '"', close: '"', notIn: ["string", "comment"] },
|
||||||
|
{ open: "'", close: "'", notIn: ["string", "comment"] },
|
||||||
|
{ open: "{", close: "}", notIn: ["string", "comment"] },
|
||||||
|
{ open: "[", close: "]", notIn: ["string", "comment"] },
|
||||||
|
{ open: "(", close: ")", notIn: ["string", "comment"] }
|
||||||
|
],
|
||||||
|
folding: {
|
||||||
|
offSide: true
|
||||||
|
}
|
||||||
|
};
|
||||||
|
var language = {
|
||||||
|
defaultToken: "",
|
||||||
|
tokenPostfix: ".pug",
|
||||||
|
ignoreCase: true,
|
||||||
|
brackets: [
|
||||||
|
{ token: "delimiter.curly", open: "{", close: "}" },
|
||||||
|
{ token: "delimiter.array", open: "[", close: "]" },
|
||||||
|
{ token: "delimiter.parenthesis", open: "(", close: ")" }
|
||||||
|
],
|
||||||
|
keywords: [
|
||||||
|
"append",
|
||||||
|
"block",
|
||||||
|
"case",
|
||||||
|
"default",
|
||||||
|
"doctype",
|
||||||
|
"each",
|
||||||
|
"else",
|
||||||
|
"extends",
|
||||||
|
"for",
|
||||||
|
"if",
|
||||||
|
"in",
|
||||||
|
"include",
|
||||||
|
"mixin",
|
||||||
|
"typeof",
|
||||||
|
"unless",
|
||||||
|
"var",
|
||||||
|
"when"
|
||||||
|
],
|
||||||
|
tags: [
|
||||||
|
"a",
|
||||||
|
"abbr",
|
||||||
|
"acronym",
|
||||||
|
"address",
|
||||||
|
"area",
|
||||||
|
"article",
|
||||||
|
"aside",
|
||||||
|
"audio",
|
||||||
|
"b",
|
||||||
|
"base",
|
||||||
|
"basefont",
|
||||||
|
"bdi",
|
||||||
|
"bdo",
|
||||||
|
"blockquote",
|
||||||
|
"body",
|
||||||
|
"br",
|
||||||
|
"button",
|
||||||
|
"canvas",
|
||||||
|
"caption",
|
||||||
|
"center",
|
||||||
|
"cite",
|
||||||
|
"code",
|
||||||
|
"col",
|
||||||
|
"colgroup",
|
||||||
|
"command",
|
||||||
|
"datalist",
|
||||||
|
"dd",
|
||||||
|
"del",
|
||||||
|
"details",
|
||||||
|
"dfn",
|
||||||
|
"div",
|
||||||
|
"dl",
|
||||||
|
"dt",
|
||||||
|
"em",
|
||||||
|
"embed",
|
||||||
|
"fieldset",
|
||||||
|
"figcaption",
|
||||||
|
"figure",
|
||||||
|
"font",
|
||||||
|
"footer",
|
||||||
|
"form",
|
||||||
|
"frame",
|
||||||
|
"frameset",
|
||||||
|
"h1",
|
||||||
|
"h2",
|
||||||
|
"h3",
|
||||||
|
"h4",
|
||||||
|
"h5",
|
||||||
|
"h6",
|
||||||
|
"head",
|
||||||
|
"header",
|
||||||
|
"hgroup",
|
||||||
|
"hr",
|
||||||
|
"html",
|
||||||
|
"i",
|
||||||
|
"iframe",
|
||||||
|
"img",
|
||||||
|
"input",
|
||||||
|
"ins",
|
||||||
|
"keygen",
|
||||||
|
"kbd",
|
||||||
|
"label",
|
||||||
|
"li",
|
||||||
|
"link",
|
||||||
|
"map",
|
||||||
|
"mark",
|
||||||
|
"menu",
|
||||||
|
"meta",
|
||||||
|
"meter",
|
||||||
|
"nav",
|
||||||
|
"noframes",
|
||||||
|
"noscript",
|
||||||
|
"object",
|
||||||
|
"ol",
|
||||||
|
"optgroup",
|
||||||
|
"option",
|
||||||
|
"output",
|
||||||
|
"p",
|
||||||
|
"param",
|
||||||
|
"pre",
|
||||||
|
"progress",
|
||||||
|
"q",
|
||||||
|
"rp",
|
||||||
|
"rt",
|
||||||
|
"ruby",
|
||||||
|
"s",
|
||||||
|
"samp",
|
||||||
|
"script",
|
||||||
|
"section",
|
||||||
|
"select",
|
||||||
|
"small",
|
||||||
|
"source",
|
||||||
|
"span",
|
||||||
|
"strike",
|
||||||
|
"strong",
|
||||||
|
"style",
|
||||||
|
"sub",
|
||||||
|
"summary",
|
||||||
|
"sup",
|
||||||
|
"table",
|
||||||
|
"tbody",
|
||||||
|
"td",
|
||||||
|
"textarea",
|
||||||
|
"tfoot",
|
||||||
|
"th",
|
||||||
|
"thead",
|
||||||
|
"time",
|
||||||
|
"title",
|
||||||
|
"tr",
|
||||||
|
"tracks",
|
||||||
|
"tt",
|
||||||
|
"u",
|
||||||
|
"ul",
|
||||||
|
"video",
|
||||||
|
"wbr"
|
||||||
|
],
|
||||||
|
symbols: /[\+\-\*\%\&\|\!\=\/\.\,\:]+/,
|
||||||
|
escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
|
||||||
|
tokenizer: {
|
||||||
|
root: [
|
||||||
|
[
|
||||||
|
/^(\s*)([a-zA-Z_-][\w-]*)/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"$2@tags": {
|
||||||
|
cases: {
|
||||||
|
"@eos": ["", "tag"],
|
||||||
|
"@default": ["", { token: "tag", next: "@tag.$1" }]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"$2@keywords": ["", { token: "keyword.$2" }],
|
||||||
|
"@default": ["", ""]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[
|
||||||
|
/^(\s*)(#[a-zA-Z_-][\w-]*)/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"@eos": ["", "tag.id"],
|
||||||
|
"@default": ["", { token: "tag.id", next: "@tag.$1" }]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[
|
||||||
|
/^(\s*)(\.[a-zA-Z_-][\w-]*)/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"@eos": ["", "tag.class"],
|
||||||
|
"@default": ["", { token: "tag.class", next: "@tag.$1" }]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/^(\s*)(\|.*)$/, ""],
|
||||||
|
{ include: "@whitespace" },
|
||||||
|
[
|
||||||
|
/[a-zA-Z_$][\w$]*/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"@keywords": { token: "keyword.$0" },
|
||||||
|
"@default": ""
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/[{}()\[\]]/, "@brackets"],
|
||||||
|
[/@symbols/, "delimiter"],
|
||||||
|
[/\d+\.\d+([eE][\-+]?\d+)?/, "number.float"],
|
||||||
|
[/\d+/, "number"],
|
||||||
|
[/"/, "string", '@string."'],
|
||||||
|
[/'/, "string", "@string.'"]
|
||||||
|
],
|
||||||
|
tag: [
|
||||||
|
[/(\.)(\s*$)/, [{ token: "delimiter", next: "@blockText.$S2." }, ""]],
|
||||||
|
[/\s+/, { token: "", next: "@simpleText" }],
|
||||||
|
[
|
||||||
|
/#[a-zA-Z_-][\w-]*/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"@eos": { token: "tag.id", next: "@pop" },
|
||||||
|
"@default": "tag.id"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[
|
||||||
|
/\.[a-zA-Z_-][\w-]*/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"@eos": { token: "tag.class", next: "@pop" },
|
||||||
|
"@default": "tag.class"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/\(/, { token: "delimiter.parenthesis", next: "@attributeList" }]
|
||||||
|
],
|
||||||
|
simpleText: [
|
||||||
|
[/[^#]+$/, { token: "", next: "@popall" }],
|
||||||
|
[/[^#]+/, { token: "" }],
|
||||||
|
[
|
||||||
|
/(#{)([^}]*)(})/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"@eos": [
|
||||||
|
"interpolation.delimiter",
|
||||||
|
"interpolation",
|
||||||
|
{
|
||||||
|
token: "interpolation.delimiter",
|
||||||
|
next: "@popall"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"@default": ["interpolation.delimiter", "interpolation", "interpolation.delimiter"]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/#$/, { token: "", next: "@popall" }],
|
||||||
|
[/#/, ""]
|
||||||
|
],
|
||||||
|
attributeList: [
|
||||||
|
[/\s+/, ""],
|
||||||
|
[
|
||||||
|
/(\w+)(\s*=\s*)("|')/,
|
||||||
|
["attribute.name", "delimiter", { token: "attribute.value", next: "@value.$3" }]
|
||||||
|
],
|
||||||
|
[/\w+/, "attribute.name"],
|
||||||
|
[
|
||||||
|
/,/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"@eos": {
|
||||||
|
token: "attribute.delimiter",
|
||||||
|
next: "@popall"
|
||||||
|
},
|
||||||
|
"@default": "attribute.delimiter"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/\)$/, { token: "delimiter.parenthesis", next: "@popall" }],
|
||||||
|
[/\)/, { token: "delimiter.parenthesis", next: "@pop" }]
|
||||||
|
],
|
||||||
|
whitespace: [
|
||||||
|
[/^(\s*)(\/\/.*)$/, { token: "comment", next: "@blockText.$1.comment" }],
|
||||||
|
[/[ \t\r\n]+/, ""],
|
||||||
|
[/<!--/, { token: "comment", next: "@comment" }]
|
||||||
|
],
|
||||||
|
blockText: [
|
||||||
|
[
|
||||||
|
/^\s+.*$/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"($S2\\s+.*$)": { token: "$S3" },
|
||||||
|
"@default": { token: "@rematch", next: "@popall" }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/./, { token: "@rematch", next: "@popall" }]
|
||||||
|
],
|
||||||
|
comment: [
|
||||||
|
[/[^<\-]+/, "comment.content"],
|
||||||
|
[/-->/, { token: "comment", next: "@pop" }],
|
||||||
|
[/<!--/, "comment.content.invalid"],
|
||||||
|
[/[<\-]/, "comment.content"]
|
||||||
|
],
|
||||||
|
string: [
|
||||||
|
[
|
||||||
|
/[^\\"'#]+/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"@eos": { token: "string", next: "@popall" },
|
||||||
|
"@default": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[
|
||||||
|
/@escapes/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"@eos": { token: "string.escape", next: "@popall" },
|
||||||
|
"@default": "string.escape"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[
|
||||||
|
/\\./,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"@eos": {
|
||||||
|
token: "string.escape.invalid",
|
||||||
|
next: "@popall"
|
||||||
|
},
|
||||||
|
"@default": "string.escape.invalid"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/(#{)([^}]*)(})/, ["interpolation.delimiter", "interpolation", "interpolation.delimiter"]],
|
||||||
|
[/#/, "string"],
|
||||||
|
[
|
||||||
|
/["']/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"$#==$S2": { token: "string", next: "@pop" },
|
||||||
|
"@default": { token: "string" }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
],
|
||||||
|
value: [
|
||||||
|
[
|
||||||
|
/[^\\"']+/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"@eos": { token: "attribute.value", next: "@popall" },
|
||||||
|
"@default": "attribute.value"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[
|
||||||
|
/\\./,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"@eos": { token: "attribute.value", next: "@popall" },
|
||||||
|
"@default": "attribute.value"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[
|
||||||
|
/["']/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"$#==$S2": { token: "attribute.value", next: "@pop" },
|
||||||
|
"@default": { token: "attribute.value" }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
]
|
||||||
|
}
|
||||||
|
};
|
||||||
|
return __toCommonJS(pug_exports);
|
||||||
|
})();
|
||||||
|
return moduleExports;
|
||||||
|
});
|
||||||
@@ -0,0 +1,309 @@
|
|||||||
|
/*!-----------------------------------------------------------------------------
|
||||||
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||||
|
* Version: 0.33.0(4b1abad427e58dbedc1215d99a0902ffc885fcd4)
|
||||||
|
* Released under the MIT license
|
||||||
|
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
||||||
|
*-----------------------------------------------------------------------------*/
|
||||||
|
define("vs/basic-languages/python/python", ["require"],(require)=>{
|
||||||
|
var moduleExports = (() => {
|
||||||
|
var __create = Object.create;
|
||||||
|
var __defProp = Object.defineProperty;
|
||||||
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||||
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||||
|
var __getProtoOf = Object.getPrototypeOf;
|
||||||
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||||
|
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
||||||
|
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
||||||
|
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
||||||
|
}) : x)(function(x) {
|
||||||
|
if (typeof require !== "undefined")
|
||||||
|
return require.apply(this, arguments);
|
||||||
|
throw new Error('Dynamic require of "' + x + '" is not supported');
|
||||||
|
});
|
||||||
|
var __commonJS = (cb, mod) => function __require2() {
|
||||||
|
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
||||||
|
};
|
||||||
|
var __export = (target, all) => {
|
||||||
|
for (var name in all)
|
||||||
|
__defProp(target, name, { get: all[name], enumerable: true });
|
||||||
|
};
|
||||||
|
var __reExport = (target, module, copyDefault, desc) => {
|
||||||
|
if (module && typeof module === "object" || typeof module === "function") {
|
||||||
|
for (let key of __getOwnPropNames(module))
|
||||||
|
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
||||||
|
__defProp(target, key, { get: () => module[key], enumerable: !(desc = __getOwnPropDesc(module, key)) || desc.enumerable });
|
||||||
|
}
|
||||||
|
return target;
|
||||||
|
};
|
||||||
|
var __toESM = (module, isNodeMode) => {
|
||||||
|
return __reExport(__markAsModule(__defProp(module != null ? __create(__getProtoOf(module)) : {}, "default", !isNodeMode && module && module.__esModule ? { get: () => module.default, enumerable: true } : { value: module, enumerable: true })), module);
|
||||||
|
};
|
||||||
|
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
||||||
|
return (module, temp) => {
|
||||||
|
return cache && cache.get(module) || (temp = __reExport(__markAsModule({}), module, 1), cache && cache.set(module, temp), temp);
|
||||||
|
};
|
||||||
|
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
||||||
|
|
||||||
|
// src/fillers/monaco-editor-core-amd.ts
|
||||||
|
var require_monaco_editor_core_amd = __commonJS({
|
||||||
|
"src/fillers/monaco-editor-core-amd.ts"(exports, module) {
|
||||||
|
var api = __toESM(__require("vs/editor/editor.api"));
|
||||||
|
module.exports = api;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
// src/basic-languages/python/python.ts
|
||||||
|
var python_exports = {};
|
||||||
|
__export(python_exports, {
|
||||||
|
conf: () => conf,
|
||||||
|
language: () => language
|
||||||
|
});
|
||||||
|
|
||||||
|
// src/fillers/monaco-editor-core.ts
|
||||||
|
var monaco_editor_core_exports = {};
|
||||||
|
__reExport(monaco_editor_core_exports, __toESM(require_monaco_editor_core_amd()));
|
||||||
|
|
||||||
|
// src/basic-languages/python/python.ts
|
||||||
|
var conf = {
|
||||||
|
comments: {
|
||||||
|
lineComment: "#",
|
||||||
|
blockComment: ["'''", "'''"]
|
||||||
|
},
|
||||||
|
brackets: [
|
||||||
|
["{", "}"],
|
||||||
|
["[", "]"],
|
||||||
|
["(", ")"]
|
||||||
|
],
|
||||||
|
autoClosingPairs: [
|
||||||
|
{ open: "{", close: "}" },
|
||||||
|
{ open: "[", close: "]" },
|
||||||
|
{ open: "(", close: ")" },
|
||||||
|
{ open: '"', close: '"', notIn: ["string"] },
|
||||||
|
{ open: "'", close: "'", notIn: ["string", "comment"] }
|
||||||
|
],
|
||||||
|
surroundingPairs: [
|
||||||
|
{ open: "{", close: "}" },
|
||||||
|
{ open: "[", close: "]" },
|
||||||
|
{ open: "(", close: ")" },
|
||||||
|
{ open: '"', close: '"' },
|
||||||
|
{ open: "'", close: "'" }
|
||||||
|
],
|
||||||
|
onEnterRules: [
|
||||||
|
{
|
||||||
|
beforeText: new RegExp("^\\s*(?:def|class|for|if|elif|else|while|try|with|finally|except|async).*?:\\s*$"),
|
||||||
|
action: { indentAction: monaco_editor_core_exports.languages.IndentAction.Indent }
|
||||||
|
}
|
||||||
|
],
|
||||||
|
folding: {
|
||||||
|
offSide: true,
|
||||||
|
markers: {
|
||||||
|
start: new RegExp("^\\s*#region\\b"),
|
||||||
|
end: new RegExp("^\\s*#endregion\\b")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
var language = {
|
||||||
|
defaultToken: "",
|
||||||
|
tokenPostfix: ".python",
|
||||||
|
keywords: [
|
||||||
|
"False",
|
||||||
|
"None",
|
||||||
|
"True",
|
||||||
|
"and",
|
||||||
|
"as",
|
||||||
|
"assert",
|
||||||
|
"async",
|
||||||
|
"await",
|
||||||
|
"break",
|
||||||
|
"class",
|
||||||
|
"continue",
|
||||||
|
"def",
|
||||||
|
"del",
|
||||||
|
"elif",
|
||||||
|
"else",
|
||||||
|
"except",
|
||||||
|
"exec",
|
||||||
|
"finally",
|
||||||
|
"for",
|
||||||
|
"from",
|
||||||
|
"global",
|
||||||
|
"if",
|
||||||
|
"import",
|
||||||
|
"in",
|
||||||
|
"is",
|
||||||
|
"lambda",
|
||||||
|
"nonlocal",
|
||||||
|
"not",
|
||||||
|
"or",
|
||||||
|
"pass",
|
||||||
|
"print",
|
||||||
|
"raise",
|
||||||
|
"return",
|
||||||
|
"try",
|
||||||
|
"while",
|
||||||
|
"with",
|
||||||
|
"yield",
|
||||||
|
"int",
|
||||||
|
"float",
|
||||||
|
"long",
|
||||||
|
"complex",
|
||||||
|
"hex",
|
||||||
|
"abs",
|
||||||
|
"all",
|
||||||
|
"any",
|
||||||
|
"apply",
|
||||||
|
"basestring",
|
||||||
|
"bin",
|
||||||
|
"bool",
|
||||||
|
"buffer",
|
||||||
|
"bytearray",
|
||||||
|
"callable",
|
||||||
|
"chr",
|
||||||
|
"classmethod",
|
||||||
|
"cmp",
|
||||||
|
"coerce",
|
||||||
|
"compile",
|
||||||
|
"complex",
|
||||||
|
"delattr",
|
||||||
|
"dict",
|
||||||
|
"dir",
|
||||||
|
"divmod",
|
||||||
|
"enumerate",
|
||||||
|
"eval",
|
||||||
|
"execfile",
|
||||||
|
"file",
|
||||||
|
"filter",
|
||||||
|
"format",
|
||||||
|
"frozenset",
|
||||||
|
"getattr",
|
||||||
|
"globals",
|
||||||
|
"hasattr",
|
||||||
|
"hash",
|
||||||
|
"help",
|
||||||
|
"id",
|
||||||
|
"input",
|
||||||
|
"intern",
|
||||||
|
"isinstance",
|
||||||
|
"issubclass",
|
||||||
|
"iter",
|
||||||
|
"len",
|
||||||
|
"locals",
|
||||||
|
"list",
|
||||||
|
"map",
|
||||||
|
"max",
|
||||||
|
"memoryview",
|
||||||
|
"min",
|
||||||
|
"next",
|
||||||
|
"object",
|
||||||
|
"oct",
|
||||||
|
"open",
|
||||||
|
"ord",
|
||||||
|
"pow",
|
||||||
|
"print",
|
||||||
|
"property",
|
||||||
|
"reversed",
|
||||||
|
"range",
|
||||||
|
"raw_input",
|
||||||
|
"reduce",
|
||||||
|
"reload",
|
||||||
|
"repr",
|
||||||
|
"reversed",
|
||||||
|
"round",
|
||||||
|
"self",
|
||||||
|
"set",
|
||||||
|
"setattr",
|
||||||
|
"slice",
|
||||||
|
"sorted",
|
||||||
|
"staticmethod",
|
||||||
|
"str",
|
||||||
|
"sum",
|
||||||
|
"super",
|
||||||
|
"tuple",
|
||||||
|
"type",
|
||||||
|
"unichr",
|
||||||
|
"unicode",
|
||||||
|
"vars",
|
||||||
|
"xrange",
|
||||||
|
"zip",
|
||||||
|
"__dict__",
|
||||||
|
"__methods__",
|
||||||
|
"__members__",
|
||||||
|
"__class__",
|
||||||
|
"__bases__",
|
||||||
|
"__name__",
|
||||||
|
"__mro__",
|
||||||
|
"__subclasses__",
|
||||||
|
"__init__",
|
||||||
|
"__import__"
|
||||||
|
],
|
||||||
|
brackets: [
|
||||||
|
{ open: "{", close: "}", token: "delimiter.curly" },
|
||||||
|
{ open: "[", close: "]", token: "delimiter.bracket" },
|
||||||
|
{ open: "(", close: ")", token: "delimiter.parenthesis" }
|
||||||
|
],
|
||||||
|
tokenizer: {
|
||||||
|
root: [
|
||||||
|
{ include: "@whitespace" },
|
||||||
|
{ include: "@numbers" },
|
||||||
|
{ include: "@strings" },
|
||||||
|
[/[,:;]/, "delimiter"],
|
||||||
|
[/[{}\[\]()]/, "@brackets"],
|
||||||
|
[/@[a-zA-Z_]\w*/, "tag"],
|
||||||
|
[
|
||||||
|
/[a-zA-Z_]\w*/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"@keywords": "keyword",
|
||||||
|
"@default": "identifier"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
],
|
||||||
|
whitespace: [
|
||||||
|
[/\s+/, "white"],
|
||||||
|
[/(^#.*$)/, "comment"],
|
||||||
|
[/'''/, "string", "@endDocString"],
|
||||||
|
[/"""/, "string", "@endDblDocString"]
|
||||||
|
],
|
||||||
|
endDocString: [
|
||||||
|
[/[^']+/, "string"],
|
||||||
|
[/\\'/, "string"],
|
||||||
|
[/'''/, "string", "@popall"],
|
||||||
|
[/'/, "string"]
|
||||||
|
],
|
||||||
|
endDblDocString: [
|
||||||
|
[/[^"]+/, "string"],
|
||||||
|
[/\\"/, "string"],
|
||||||
|
[/"""/, "string", "@popall"],
|
||||||
|
[/"/, "string"]
|
||||||
|
],
|
||||||
|
numbers: [
|
||||||
|
[/-?0x([abcdef]|[ABCDEF]|\d)+[lL]?/, "number.hex"],
|
||||||
|
[/-?(\d*\.)?\d+([eE][+\-]?\d+)?[jJ]?[lL]?/, "number"]
|
||||||
|
],
|
||||||
|
strings: [
|
||||||
|
[/'$/, "string.escape", "@popall"],
|
||||||
|
[/'/, "string.escape", "@stringBody"],
|
||||||
|
[/"$/, "string.escape", "@popall"],
|
||||||
|
[/"/, "string.escape", "@dblStringBody"]
|
||||||
|
],
|
||||||
|
stringBody: [
|
||||||
|
[/[^\\']+$/, "string", "@popall"],
|
||||||
|
[/[^\\']+/, "string"],
|
||||||
|
[/\\./, "string"],
|
||||||
|
[/'/, "string.escape", "@popall"],
|
||||||
|
[/\\$/, "string"]
|
||||||
|
],
|
||||||
|
dblStringBody: [
|
||||||
|
[/[^\\"]+$/, "string", "@popall"],
|
||||||
|
[/[^\\"]+/, "string"],
|
||||||
|
[/\\./, "string"],
|
||||||
|
[/"/, "string.escape", "@popall"],
|
||||||
|
[/\\$/, "string"]
|
||||||
|
]
|
||||||
|
}
|
||||||
|
};
|
||||||
|
return __toCommonJS(python_exports);
|
||||||
|
})();
|
||||||
|
return moduleExports;
|
||||||
|
});
|
||||||
@@ -0,0 +1,313 @@
|
|||||||
|
/*!-----------------------------------------------------------------------------
|
||||||
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||||
|
* Version: 0.33.0(4b1abad427e58dbedc1215d99a0902ffc885fcd4)
|
||||||
|
* Released under the MIT license
|
||||||
|
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
||||||
|
*-----------------------------------------------------------------------------*/
|
||||||
|
define("vs/basic-languages/qsharp/qsharp", ["require"],(require)=>{
|
||||||
|
var moduleExports = (() => {
|
||||||
|
var __defProp = Object.defineProperty;
|
||||||
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||||
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||||
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||||
|
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
||||||
|
var __export = (target, all) => {
|
||||||
|
for (var name in all)
|
||||||
|
__defProp(target, name, { get: all[name], enumerable: true });
|
||||||
|
};
|
||||||
|
var __reExport = (target, module, copyDefault, desc) => {
|
||||||
|
if (module && typeof module === "object" || typeof module === "function") {
|
||||||
|
for (let key of __getOwnPropNames(module))
|
||||||
|
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
||||||
|
__defProp(target, key, { get: () => module[key], enumerable: !(desc = __getOwnPropDesc(module, key)) || desc.enumerable });
|
||||||
|
}
|
||||||
|
return target;
|
||||||
|
};
|
||||||
|
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
||||||
|
return (module, temp) => {
|
||||||
|
return cache && cache.get(module) || (temp = __reExport(__markAsModule({}), module, 1), cache && cache.set(module, temp), temp);
|
||||||
|
};
|
||||||
|
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
||||||
|
|
||||||
|
// src/basic-languages/qsharp/qsharp.ts
|
||||||
|
var qsharp_exports = {};
|
||||||
|
__export(qsharp_exports, {
|
||||||
|
conf: () => conf,
|
||||||
|
language: () => language
|
||||||
|
});
|
||||||
|
var conf = {
|
||||||
|
comments: {
|
||||||
|
lineComment: "//"
|
||||||
|
},
|
||||||
|
brackets: [
|
||||||
|
["{", "}"],
|
||||||
|
["[", "]"],
|
||||||
|
["(", ")"]
|
||||||
|
],
|
||||||
|
autoClosingPairs: [
|
||||||
|
{ open: "{", close: "}" },
|
||||||
|
{ open: "[", close: "]" },
|
||||||
|
{ open: "(", close: ")" },
|
||||||
|
{ open: '"', close: '"', notIn: ["string", "comment"] }
|
||||||
|
],
|
||||||
|
surroundingPairs: [
|
||||||
|
{ open: "{", close: "}" },
|
||||||
|
{ open: "[", close: "]" },
|
||||||
|
{ open: "(", close: ")" },
|
||||||
|
{ open: '"', close: '"' }
|
||||||
|
]
|
||||||
|
};
|
||||||
|
var language = {
|
||||||
|
keywords: [
|
||||||
|
"namespace",
|
||||||
|
"open",
|
||||||
|
"as",
|
||||||
|
"operation",
|
||||||
|
"function",
|
||||||
|
"body",
|
||||||
|
"adjoint",
|
||||||
|
"newtype",
|
||||||
|
"controlled",
|
||||||
|
"if",
|
||||||
|
"elif",
|
||||||
|
"else",
|
||||||
|
"repeat",
|
||||||
|
"until",
|
||||||
|
"fixup",
|
||||||
|
"for",
|
||||||
|
"in",
|
||||||
|
"while",
|
||||||
|
"return",
|
||||||
|
"fail",
|
||||||
|
"within",
|
||||||
|
"apply",
|
||||||
|
"Adjoint",
|
||||||
|
"Controlled",
|
||||||
|
"Adj",
|
||||||
|
"Ctl",
|
||||||
|
"is",
|
||||||
|
"self",
|
||||||
|
"auto",
|
||||||
|
"distribute",
|
||||||
|
"invert",
|
||||||
|
"intrinsic",
|
||||||
|
"let",
|
||||||
|
"set",
|
||||||
|
"w/",
|
||||||
|
"new",
|
||||||
|
"not",
|
||||||
|
"and",
|
||||||
|
"or",
|
||||||
|
"use",
|
||||||
|
"borrow",
|
||||||
|
"using",
|
||||||
|
"borrowing",
|
||||||
|
"mutable"
|
||||||
|
],
|
||||||
|
typeKeywords: [
|
||||||
|
"Unit",
|
||||||
|
"Int",
|
||||||
|
"BigInt",
|
||||||
|
"Double",
|
||||||
|
"Bool",
|
||||||
|
"String",
|
||||||
|
"Qubit",
|
||||||
|
"Result",
|
||||||
|
"Pauli",
|
||||||
|
"Range"
|
||||||
|
],
|
||||||
|
invalidKeywords: [
|
||||||
|
"abstract",
|
||||||
|
"base",
|
||||||
|
"bool",
|
||||||
|
"break",
|
||||||
|
"byte",
|
||||||
|
"case",
|
||||||
|
"catch",
|
||||||
|
"char",
|
||||||
|
"checked",
|
||||||
|
"class",
|
||||||
|
"const",
|
||||||
|
"continue",
|
||||||
|
"decimal",
|
||||||
|
"default",
|
||||||
|
"delegate",
|
||||||
|
"do",
|
||||||
|
"double",
|
||||||
|
"enum",
|
||||||
|
"event",
|
||||||
|
"explicit",
|
||||||
|
"extern",
|
||||||
|
"finally",
|
||||||
|
"fixed",
|
||||||
|
"float",
|
||||||
|
"foreach",
|
||||||
|
"goto",
|
||||||
|
"implicit",
|
||||||
|
"int",
|
||||||
|
"interface",
|
||||||
|
"lock",
|
||||||
|
"long",
|
||||||
|
"null",
|
||||||
|
"object",
|
||||||
|
"operator",
|
||||||
|
"out",
|
||||||
|
"override",
|
||||||
|
"params",
|
||||||
|
"private",
|
||||||
|
"protected",
|
||||||
|
"public",
|
||||||
|
"readonly",
|
||||||
|
"ref",
|
||||||
|
"sbyte",
|
||||||
|
"sealed",
|
||||||
|
"short",
|
||||||
|
"sizeof",
|
||||||
|
"stackalloc",
|
||||||
|
"static",
|
||||||
|
"string",
|
||||||
|
"struct",
|
||||||
|
"switch",
|
||||||
|
"this",
|
||||||
|
"throw",
|
||||||
|
"try",
|
||||||
|
"typeof",
|
||||||
|
"unit",
|
||||||
|
"ulong",
|
||||||
|
"unchecked",
|
||||||
|
"unsafe",
|
||||||
|
"ushort",
|
||||||
|
"virtual",
|
||||||
|
"void",
|
||||||
|
"volatile"
|
||||||
|
],
|
||||||
|
constants: ["true", "false", "PauliI", "PauliX", "PauliY", "PauliZ", "One", "Zero"],
|
||||||
|
builtin: [
|
||||||
|
"X",
|
||||||
|
"Y",
|
||||||
|
"Z",
|
||||||
|
"H",
|
||||||
|
"HY",
|
||||||
|
"S",
|
||||||
|
"T",
|
||||||
|
"SWAP",
|
||||||
|
"CNOT",
|
||||||
|
"CCNOT",
|
||||||
|
"MultiX",
|
||||||
|
"R",
|
||||||
|
"RFrac",
|
||||||
|
"Rx",
|
||||||
|
"Ry",
|
||||||
|
"Rz",
|
||||||
|
"R1",
|
||||||
|
"R1Frac",
|
||||||
|
"Exp",
|
||||||
|
"ExpFrac",
|
||||||
|
"Measure",
|
||||||
|
"M",
|
||||||
|
"MultiM",
|
||||||
|
"Message",
|
||||||
|
"Length",
|
||||||
|
"Assert",
|
||||||
|
"AssertProb",
|
||||||
|
"AssertEqual"
|
||||||
|
],
|
||||||
|
operators: [
|
||||||
|
"and=",
|
||||||
|
"<-",
|
||||||
|
"->",
|
||||||
|
"*",
|
||||||
|
"*=",
|
||||||
|
"@",
|
||||||
|
"!",
|
||||||
|
"^",
|
||||||
|
"^=",
|
||||||
|
":",
|
||||||
|
"::",
|
||||||
|
"..",
|
||||||
|
"==",
|
||||||
|
"...",
|
||||||
|
"=",
|
||||||
|
"=>",
|
||||||
|
">",
|
||||||
|
">=",
|
||||||
|
"<",
|
||||||
|
"<=",
|
||||||
|
"-",
|
||||||
|
"-=",
|
||||||
|
"!=",
|
||||||
|
"or=",
|
||||||
|
"%",
|
||||||
|
"%=",
|
||||||
|
"|",
|
||||||
|
"+",
|
||||||
|
"+=",
|
||||||
|
"?",
|
||||||
|
"/",
|
||||||
|
"/=",
|
||||||
|
"&&&",
|
||||||
|
"&&&=",
|
||||||
|
"^^^",
|
||||||
|
"^^^=",
|
||||||
|
">>>",
|
||||||
|
">>>=",
|
||||||
|
"<<<",
|
||||||
|
"<<<=",
|
||||||
|
"|||",
|
||||||
|
"|||=",
|
||||||
|
"~~~",
|
||||||
|
"_",
|
||||||
|
"w/",
|
||||||
|
"w/="
|
||||||
|
],
|
||||||
|
namespaceFollows: ["namespace", "open"],
|
||||||
|
symbols: /[=><!~?:&|+\-*\/\^%@._]+/,
|
||||||
|
escapes: /\\[\s\S]/,
|
||||||
|
tokenizer: {
|
||||||
|
root: [
|
||||||
|
[
|
||||||
|
/[a-zA-Z_$][\w$]*/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"@namespaceFollows": {
|
||||||
|
token: "keyword.$0",
|
||||||
|
next: "@namespace"
|
||||||
|
},
|
||||||
|
"@typeKeywords": "type",
|
||||||
|
"@keywords": "keyword",
|
||||||
|
"@constants": "constant",
|
||||||
|
"@builtin": "keyword",
|
||||||
|
"@invalidKeywords": "invalid",
|
||||||
|
"@default": "identifier"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
{ include: "@whitespace" },
|
||||||
|
[/[{}()\[\]]/, "@brackets"],
|
||||||
|
[/@symbols/, { cases: { "@operators": "operator", "@default": "" } }],
|
||||||
|
[/\d*\.\d+([eE][\-+]?\d+)?/, "number.float"],
|
||||||
|
[/\d+/, "number"],
|
||||||
|
[/[;,.]/, "delimiter"],
|
||||||
|
[/"/, { token: "string.quote", bracket: "@open", next: "@string" }]
|
||||||
|
],
|
||||||
|
string: [
|
||||||
|
[/[^\\"]+/, "string"],
|
||||||
|
[/@escapes/, "string.escape"],
|
||||||
|
[/"/, { token: "string.quote", bracket: "@close", next: "@pop" }]
|
||||||
|
],
|
||||||
|
namespace: [
|
||||||
|
{ include: "@whitespace" },
|
||||||
|
[/[A-Za-z]\w*/, "namespace"],
|
||||||
|
[/[\.=]/, "delimiter"],
|
||||||
|
["", "", "@pop"]
|
||||||
|
],
|
||||||
|
whitespace: [
|
||||||
|
[/[ \t\r\n]+/, "white"],
|
||||||
|
[/(\/\/).*/, "comment"]
|
||||||
|
]
|
||||||
|
}
|
||||||
|
};
|
||||||
|
return __toCommonJS(qsharp_exports);
|
||||||
|
})();
|
||||||
|
return moduleExports;
|
||||||
|
});
|
||||||
@@ -0,0 +1,277 @@
|
|||||||
|
/*!-----------------------------------------------------------------------------
|
||||||
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||||
|
* Version: 0.33.0(4b1abad427e58dbedc1215d99a0902ffc885fcd4)
|
||||||
|
* Released under the MIT license
|
||||||
|
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
||||||
|
*-----------------------------------------------------------------------------*/
|
||||||
|
define("vs/basic-languages/r/r", ["require"],(require)=>{
|
||||||
|
var moduleExports = (() => {
|
||||||
|
var __defProp = Object.defineProperty;
|
||||||
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||||
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||||
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||||
|
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
||||||
|
var __export = (target, all) => {
|
||||||
|
for (var name in all)
|
||||||
|
__defProp(target, name, { get: all[name], enumerable: true });
|
||||||
|
};
|
||||||
|
var __reExport = (target, module, copyDefault, desc) => {
|
||||||
|
if (module && typeof module === "object" || typeof module === "function") {
|
||||||
|
for (let key of __getOwnPropNames(module))
|
||||||
|
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
||||||
|
__defProp(target, key, { get: () => module[key], enumerable: !(desc = __getOwnPropDesc(module, key)) || desc.enumerable });
|
||||||
|
}
|
||||||
|
return target;
|
||||||
|
};
|
||||||
|
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
||||||
|
return (module, temp) => {
|
||||||
|
return cache && cache.get(module) || (temp = __reExport(__markAsModule({}), module, 1), cache && cache.set(module, temp), temp);
|
||||||
|
};
|
||||||
|
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
||||||
|
|
||||||
|
// src/basic-languages/r/r.ts
|
||||||
|
var r_exports = {};
|
||||||
|
__export(r_exports, {
|
||||||
|
conf: () => conf,
|
||||||
|
language: () => language
|
||||||
|
});
|
||||||
|
var conf = {
|
||||||
|
comments: {
|
||||||
|
lineComment: "#"
|
||||||
|
},
|
||||||
|
brackets: [
|
||||||
|
["{", "}"],
|
||||||
|
["[", "]"],
|
||||||
|
["(", ")"]
|
||||||
|
],
|
||||||
|
autoClosingPairs: [
|
||||||
|
{ open: "{", close: "}" },
|
||||||
|
{ open: "[", close: "]" },
|
||||||
|
{ open: "(", close: ")" },
|
||||||
|
{ open: '"', close: '"' }
|
||||||
|
],
|
||||||
|
surroundingPairs: [
|
||||||
|
{ open: "{", close: "}" },
|
||||||
|
{ open: "[", close: "]" },
|
||||||
|
{ open: "(", close: ")" },
|
||||||
|
{ open: '"', close: '"' }
|
||||||
|
]
|
||||||
|
};
|
||||||
|
var language = {
|
||||||
|
defaultToken: "",
|
||||||
|
tokenPostfix: ".r",
|
||||||
|
roxygen: [
|
||||||
|
"@alias",
|
||||||
|
"@aliases",
|
||||||
|
"@assignee",
|
||||||
|
"@author",
|
||||||
|
"@backref",
|
||||||
|
"@callGraph",
|
||||||
|
"@callGraphDepth",
|
||||||
|
"@callGraphPrimitives",
|
||||||
|
"@concept",
|
||||||
|
"@describeIn",
|
||||||
|
"@description",
|
||||||
|
"@details",
|
||||||
|
"@docType",
|
||||||
|
"@encoding",
|
||||||
|
"@evalNamespace",
|
||||||
|
"@evalRd",
|
||||||
|
"@example",
|
||||||
|
"@examples",
|
||||||
|
"@export",
|
||||||
|
"@exportClass",
|
||||||
|
"@exportMethod",
|
||||||
|
"@exportPattern",
|
||||||
|
"@family",
|
||||||
|
"@field",
|
||||||
|
"@formals",
|
||||||
|
"@format",
|
||||||
|
"@import",
|
||||||
|
"@importClassesFrom",
|
||||||
|
"@importFrom",
|
||||||
|
"@importMethodsFrom",
|
||||||
|
"@include",
|
||||||
|
"@inherit",
|
||||||
|
"@inheritDotParams",
|
||||||
|
"@inheritParams",
|
||||||
|
"@inheritSection",
|
||||||
|
"@keywords",
|
||||||
|
"@md",
|
||||||
|
"@method",
|
||||||
|
"@name",
|
||||||
|
"@noMd",
|
||||||
|
"@noRd",
|
||||||
|
"@note",
|
||||||
|
"@param",
|
||||||
|
"@rawNamespace",
|
||||||
|
"@rawRd",
|
||||||
|
"@rdname",
|
||||||
|
"@references",
|
||||||
|
"@return",
|
||||||
|
"@S3method",
|
||||||
|
"@section",
|
||||||
|
"@seealso",
|
||||||
|
"@setClass",
|
||||||
|
"@slot",
|
||||||
|
"@source",
|
||||||
|
"@template",
|
||||||
|
"@templateVar",
|
||||||
|
"@title",
|
||||||
|
"@TODO",
|
||||||
|
"@usage",
|
||||||
|
"@useDynLib"
|
||||||
|
],
|
||||||
|
constants: [
|
||||||
|
"NULL",
|
||||||
|
"FALSE",
|
||||||
|
"TRUE",
|
||||||
|
"NA",
|
||||||
|
"Inf",
|
||||||
|
"NaN",
|
||||||
|
"NA_integer_",
|
||||||
|
"NA_real_",
|
||||||
|
"NA_complex_",
|
||||||
|
"NA_character_",
|
||||||
|
"T",
|
||||||
|
"F",
|
||||||
|
"LETTERS",
|
||||||
|
"letters",
|
||||||
|
"month.abb",
|
||||||
|
"month.name",
|
||||||
|
"pi",
|
||||||
|
"R.version.string"
|
||||||
|
],
|
||||||
|
keywords: [
|
||||||
|
"break",
|
||||||
|
"next",
|
||||||
|
"return",
|
||||||
|
"if",
|
||||||
|
"else",
|
||||||
|
"for",
|
||||||
|
"in",
|
||||||
|
"repeat",
|
||||||
|
"while",
|
||||||
|
"array",
|
||||||
|
"category",
|
||||||
|
"character",
|
||||||
|
"complex",
|
||||||
|
"double",
|
||||||
|
"function",
|
||||||
|
"integer",
|
||||||
|
"list",
|
||||||
|
"logical",
|
||||||
|
"matrix",
|
||||||
|
"numeric",
|
||||||
|
"vector",
|
||||||
|
"data.frame",
|
||||||
|
"factor",
|
||||||
|
"library",
|
||||||
|
"require",
|
||||||
|
"attach",
|
||||||
|
"detach",
|
||||||
|
"source"
|
||||||
|
],
|
||||||
|
special: ["\\n", "\\r", "\\t", "\\b", "\\a", "\\f", "\\v", "\\'", '\\"', "\\\\"],
|
||||||
|
brackets: [
|
||||||
|
{ open: "{", close: "}", token: "delimiter.curly" },
|
||||||
|
{ open: "[", close: "]", token: "delimiter.bracket" },
|
||||||
|
{ open: "(", close: ")", token: "delimiter.parenthesis" }
|
||||||
|
],
|
||||||
|
tokenizer: {
|
||||||
|
root: [
|
||||||
|
{ include: "@numbers" },
|
||||||
|
{ include: "@strings" },
|
||||||
|
[/[{}\[\]()]/, "@brackets"],
|
||||||
|
{ include: "@operators" },
|
||||||
|
[/#'$/, "comment.doc"],
|
||||||
|
[/#'/, "comment.doc", "@roxygen"],
|
||||||
|
[/(^#.*$)/, "comment"],
|
||||||
|
[/\s+/, "white"],
|
||||||
|
[/[,:;]/, "delimiter"],
|
||||||
|
[/@[a-zA-Z]\w*/, "tag"],
|
||||||
|
[
|
||||||
|
/[a-zA-Z]\w*/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"@keywords": "keyword",
|
||||||
|
"@constants": "constant",
|
||||||
|
"@default": "identifier"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
],
|
||||||
|
roxygen: [
|
||||||
|
[
|
||||||
|
/@\w+/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"@roxygen": "tag",
|
||||||
|
"@eos": { token: "comment.doc", next: "@pop" },
|
||||||
|
"@default": "comment.doc"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[
|
||||||
|
/\s+/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"@eos": { token: "comment.doc", next: "@pop" },
|
||||||
|
"@default": "comment.doc"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/.*/, { token: "comment.doc", next: "@pop" }]
|
||||||
|
],
|
||||||
|
numbers: [
|
||||||
|
[/0[xX][0-9a-fA-F]+/, "number.hex"],
|
||||||
|
[/-?(\d*\.)?\d+([eE][+\-]?\d+)?/, "number"]
|
||||||
|
],
|
||||||
|
operators: [
|
||||||
|
[/<{1,2}-/, "operator"],
|
||||||
|
[/->{1,2}/, "operator"],
|
||||||
|
[/%[^%\s]+%/, "operator"],
|
||||||
|
[/\*\*/, "operator"],
|
||||||
|
[/%%/, "operator"],
|
||||||
|
[/&&/, "operator"],
|
||||||
|
[/\|\|/, "operator"],
|
||||||
|
[/<</, "operator"],
|
||||||
|
[/>>/, "operator"],
|
||||||
|
[/[-+=&|!<>^~*/:$]/, "operator"]
|
||||||
|
],
|
||||||
|
strings: [
|
||||||
|
[/'/, "string.escape", "@stringBody"],
|
||||||
|
[/"/, "string.escape", "@dblStringBody"]
|
||||||
|
],
|
||||||
|
stringBody: [
|
||||||
|
[
|
||||||
|
/\\./,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"@special": "string",
|
||||||
|
"@default": "error-token"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/'/, "string.escape", "@popall"],
|
||||||
|
[/./, "string"]
|
||||||
|
],
|
||||||
|
dblStringBody: [
|
||||||
|
[
|
||||||
|
/\\./,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"@special": "string",
|
||||||
|
"@default": "error-token"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/"/, "string.escape", "@popall"],
|
||||||
|
[/./, "string"]
|
||||||
|
]
|
||||||
|
}
|
||||||
|
};
|
||||||
|
return __toCommonJS(r_exports);
|
||||||
|
})();
|
||||||
|
return moduleExports;
|
||||||
|
});
|
||||||
@@ -0,0 +1,566 @@
|
|||||||
|
/*!-----------------------------------------------------------------------------
|
||||||
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||||
|
* Version: 0.33.0(4b1abad427e58dbedc1215d99a0902ffc885fcd4)
|
||||||
|
* Released under the MIT license
|
||||||
|
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
||||||
|
*-----------------------------------------------------------------------------*/
|
||||||
|
define("vs/basic-languages/razor/razor", ["require"],(require)=>{
|
||||||
|
var moduleExports = (() => {
|
||||||
|
var __create = Object.create;
|
||||||
|
var __defProp = Object.defineProperty;
|
||||||
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||||
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||||
|
var __getProtoOf = Object.getPrototypeOf;
|
||||||
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||||
|
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
||||||
|
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
||||||
|
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
||||||
|
}) : x)(function(x) {
|
||||||
|
if (typeof require !== "undefined")
|
||||||
|
return require.apply(this, arguments);
|
||||||
|
throw new Error('Dynamic require of "' + x + '" is not supported');
|
||||||
|
});
|
||||||
|
var __commonJS = (cb, mod) => function __require2() {
|
||||||
|
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
||||||
|
};
|
||||||
|
var __export = (target, all) => {
|
||||||
|
for (var name in all)
|
||||||
|
__defProp(target, name, { get: all[name], enumerable: true });
|
||||||
|
};
|
||||||
|
var __reExport = (target, module, copyDefault, desc) => {
|
||||||
|
if (module && typeof module === "object" || typeof module === "function") {
|
||||||
|
for (let key of __getOwnPropNames(module))
|
||||||
|
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
||||||
|
__defProp(target, key, { get: () => module[key], enumerable: !(desc = __getOwnPropDesc(module, key)) || desc.enumerable });
|
||||||
|
}
|
||||||
|
return target;
|
||||||
|
};
|
||||||
|
var __toESM = (module, isNodeMode) => {
|
||||||
|
return __reExport(__markAsModule(__defProp(module != null ? __create(__getProtoOf(module)) : {}, "default", !isNodeMode && module && module.__esModule ? { get: () => module.default, enumerable: true } : { value: module, enumerable: true })), module);
|
||||||
|
};
|
||||||
|
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
||||||
|
return (module, temp) => {
|
||||||
|
return cache && cache.get(module) || (temp = __reExport(__markAsModule({}), module, 1), cache && cache.set(module, temp), temp);
|
||||||
|
};
|
||||||
|
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
||||||
|
|
||||||
|
// src/fillers/monaco-editor-core-amd.ts
|
||||||
|
var require_monaco_editor_core_amd = __commonJS({
|
||||||
|
"src/fillers/monaco-editor-core-amd.ts"(exports, module) {
|
||||||
|
var api = __toESM(__require("vs/editor/editor.api"));
|
||||||
|
module.exports = api;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
// src/basic-languages/razor/razor.ts
|
||||||
|
var razor_exports = {};
|
||||||
|
__export(razor_exports, {
|
||||||
|
conf: () => conf,
|
||||||
|
language: () => language
|
||||||
|
});
|
||||||
|
|
||||||
|
// src/fillers/monaco-editor-core.ts
|
||||||
|
var monaco_editor_core_exports = {};
|
||||||
|
__reExport(monaco_editor_core_exports, __toESM(require_monaco_editor_core_amd()));
|
||||||
|
|
||||||
|
// src/basic-languages/razor/razor.ts
|
||||||
|
var EMPTY_ELEMENTS = [
|
||||||
|
"area",
|
||||||
|
"base",
|
||||||
|
"br",
|
||||||
|
"col",
|
||||||
|
"embed",
|
||||||
|
"hr",
|
||||||
|
"img",
|
||||||
|
"input",
|
||||||
|
"keygen",
|
||||||
|
"link",
|
||||||
|
"menuitem",
|
||||||
|
"meta",
|
||||||
|
"param",
|
||||||
|
"source",
|
||||||
|
"track",
|
||||||
|
"wbr"
|
||||||
|
];
|
||||||
|
var conf = {
|
||||||
|
wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,
|
||||||
|
comments: {
|
||||||
|
blockComment: ["<!--", "-->"]
|
||||||
|
},
|
||||||
|
brackets: [
|
||||||
|
["<!--", "-->"],
|
||||||
|
["<", ">"],
|
||||||
|
["{", "}"],
|
||||||
|
["(", ")"]
|
||||||
|
],
|
||||||
|
autoClosingPairs: [
|
||||||
|
{ open: "{", close: "}" },
|
||||||
|
{ open: "[", close: "]" },
|
||||||
|
{ open: "(", close: ")" },
|
||||||
|
{ open: '"', close: '"' },
|
||||||
|
{ open: "'", close: "'" }
|
||||||
|
],
|
||||||
|
surroundingPairs: [
|
||||||
|
{ open: '"', close: '"' },
|
||||||
|
{ open: "'", close: "'" },
|
||||||
|
{ open: "<", close: ">" }
|
||||||
|
],
|
||||||
|
onEnterRules: [
|
||||||
|
{
|
||||||
|
beforeText: new RegExp(`<(?!(?:${EMPTY_ELEMENTS.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`, "i"),
|
||||||
|
afterText: /^<\/(\w[\w\d]*)\s*>$/i,
|
||||||
|
action: {
|
||||||
|
indentAction: monaco_editor_core_exports.languages.IndentAction.IndentOutdent
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
beforeText: new RegExp(`<(?!(?:${EMPTY_ELEMENTS.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`, "i"),
|
||||||
|
action: { indentAction: monaco_editor_core_exports.languages.IndentAction.Indent }
|
||||||
|
}
|
||||||
|
]
|
||||||
|
};
|
||||||
|
var language = {
|
||||||
|
defaultToken: "",
|
||||||
|
tokenPostfix: "",
|
||||||
|
tokenizer: {
|
||||||
|
root: [
|
||||||
|
[/@@@@/],
|
||||||
|
[/@[^@]/, { token: "@rematch", switchTo: "@razorInSimpleState.root" }],
|
||||||
|
[/<!DOCTYPE/, "metatag.html", "@doctype"],
|
||||||
|
[/<!--/, "comment.html", "@comment"],
|
||||||
|
[/(<)([\w\-]+)(\/>)/, ["delimiter.html", "tag.html", "delimiter.html"]],
|
||||||
|
[/(<)(script)/, ["delimiter.html", { token: "tag.html", next: "@script" }]],
|
||||||
|
[/(<)(style)/, ["delimiter.html", { token: "tag.html", next: "@style" }]],
|
||||||
|
[/(<)([:\w\-]+)/, ["delimiter.html", { token: "tag.html", next: "@otherTag" }]],
|
||||||
|
[/(<\/)([\w\-]+)/, ["delimiter.html", { token: "tag.html", next: "@otherTag" }]],
|
||||||
|
[/</, "delimiter.html"],
|
||||||
|
[/[ \t\r\n]+/],
|
||||||
|
[/[^<@]+/]
|
||||||
|
],
|
||||||
|
doctype: [
|
||||||
|
[/@[^@]/, { token: "@rematch", switchTo: "@razorInSimpleState.comment" }],
|
||||||
|
[/[^>]+/, "metatag.content.html"],
|
||||||
|
[/>/, "metatag.html", "@pop"]
|
||||||
|
],
|
||||||
|
comment: [
|
||||||
|
[/@[^@]/, { token: "@rematch", switchTo: "@razorInSimpleState.comment" }],
|
||||||
|
[/-->/, "comment.html", "@pop"],
|
||||||
|
[/[^-]+/, "comment.content.html"],
|
||||||
|
[/./, "comment.content.html"]
|
||||||
|
],
|
||||||
|
otherTag: [
|
||||||
|
[/@[^@]/, { token: "@rematch", switchTo: "@razorInSimpleState.otherTag" }],
|
||||||
|
[/\/?>/, "delimiter.html", "@pop"],
|
||||||
|
[/"([^"]*)"/, "attribute.value"],
|
||||||
|
[/'([^']*)'/, "attribute.value"],
|
||||||
|
[/[\w\-]+/, "attribute.name"],
|
||||||
|
[/=/, "delimiter"],
|
||||||
|
[/[ \t\r\n]+/]
|
||||||
|
],
|
||||||
|
script: [
|
||||||
|
[/@[^@]/, { token: "@rematch", switchTo: "@razorInSimpleState.script" }],
|
||||||
|
[/type/, "attribute.name", "@scriptAfterType"],
|
||||||
|
[/"([^"]*)"/, "attribute.value"],
|
||||||
|
[/'([^']*)'/, "attribute.value"],
|
||||||
|
[/[\w\-]+/, "attribute.name"],
|
||||||
|
[/=/, "delimiter"],
|
||||||
|
[
|
||||||
|
/>/,
|
||||||
|
{
|
||||||
|
token: "delimiter.html",
|
||||||
|
next: "@scriptEmbedded.text/javascript",
|
||||||
|
nextEmbedded: "text/javascript"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/[ \t\r\n]+/],
|
||||||
|
[
|
||||||
|
/(<\/)(script\s*)(>)/,
|
||||||
|
["delimiter.html", "tag.html", { token: "delimiter.html", next: "@pop" }]
|
||||||
|
]
|
||||||
|
],
|
||||||
|
scriptAfterType: [
|
||||||
|
[
|
||||||
|
/@[^@]/,
|
||||||
|
{
|
||||||
|
token: "@rematch",
|
||||||
|
switchTo: "@razorInSimpleState.scriptAfterType"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/=/, "delimiter", "@scriptAfterTypeEquals"],
|
||||||
|
[
|
||||||
|
/>/,
|
||||||
|
{
|
||||||
|
token: "delimiter.html",
|
||||||
|
next: "@scriptEmbedded.text/javascript",
|
||||||
|
nextEmbedded: "text/javascript"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/[ \t\r\n]+/],
|
||||||
|
[/<\/script\s*>/, { token: "@rematch", next: "@pop" }]
|
||||||
|
],
|
||||||
|
scriptAfterTypeEquals: [
|
||||||
|
[
|
||||||
|
/@[^@]/,
|
||||||
|
{
|
||||||
|
token: "@rematch",
|
||||||
|
switchTo: "@razorInSimpleState.scriptAfterTypeEquals"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[
|
||||||
|
/"([^"]*)"/,
|
||||||
|
{
|
||||||
|
token: "attribute.value",
|
||||||
|
switchTo: "@scriptWithCustomType.$1"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[
|
||||||
|
/'([^']*)'/,
|
||||||
|
{
|
||||||
|
token: "attribute.value",
|
||||||
|
switchTo: "@scriptWithCustomType.$1"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[
|
||||||
|
/>/,
|
||||||
|
{
|
||||||
|
token: "delimiter.html",
|
||||||
|
next: "@scriptEmbedded.text/javascript",
|
||||||
|
nextEmbedded: "text/javascript"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/[ \t\r\n]+/],
|
||||||
|
[/<\/script\s*>/, { token: "@rematch", next: "@pop" }]
|
||||||
|
],
|
||||||
|
scriptWithCustomType: [
|
||||||
|
[
|
||||||
|
/@[^@]/,
|
||||||
|
{
|
||||||
|
token: "@rematch",
|
||||||
|
switchTo: "@razorInSimpleState.scriptWithCustomType.$S2"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[
|
||||||
|
/>/,
|
||||||
|
{
|
||||||
|
token: "delimiter.html",
|
||||||
|
next: "@scriptEmbedded.$S2",
|
||||||
|
nextEmbedded: "$S2"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/"([^"]*)"/, "attribute.value"],
|
||||||
|
[/'([^']*)'/, "attribute.value"],
|
||||||
|
[/[\w\-]+/, "attribute.name"],
|
||||||
|
[/=/, "delimiter"],
|
||||||
|
[/[ \t\r\n]+/],
|
||||||
|
[/<\/script\s*>/, { token: "@rematch", next: "@pop" }]
|
||||||
|
],
|
||||||
|
scriptEmbedded: [
|
||||||
|
[
|
||||||
|
/@[^@]/,
|
||||||
|
{
|
||||||
|
token: "@rematch",
|
||||||
|
switchTo: "@razorInEmbeddedState.scriptEmbedded.$S2",
|
||||||
|
nextEmbedded: "@pop"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/<\/script/, { token: "@rematch", next: "@pop", nextEmbedded: "@pop" }]
|
||||||
|
],
|
||||||
|
style: [
|
||||||
|
[/@[^@]/, { token: "@rematch", switchTo: "@razorInSimpleState.style" }],
|
||||||
|
[/type/, "attribute.name", "@styleAfterType"],
|
||||||
|
[/"([^"]*)"/, "attribute.value"],
|
||||||
|
[/'([^']*)'/, "attribute.value"],
|
||||||
|
[/[\w\-]+/, "attribute.name"],
|
||||||
|
[/=/, "delimiter"],
|
||||||
|
[
|
||||||
|
/>/,
|
||||||
|
{
|
||||||
|
token: "delimiter.html",
|
||||||
|
next: "@styleEmbedded.text/css",
|
||||||
|
nextEmbedded: "text/css"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/[ \t\r\n]+/],
|
||||||
|
[
|
||||||
|
/(<\/)(style\s*)(>)/,
|
||||||
|
["delimiter.html", "tag.html", { token: "delimiter.html", next: "@pop" }]
|
||||||
|
]
|
||||||
|
],
|
||||||
|
styleAfterType: [
|
||||||
|
[
|
||||||
|
/@[^@]/,
|
||||||
|
{
|
||||||
|
token: "@rematch",
|
||||||
|
switchTo: "@razorInSimpleState.styleAfterType"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/=/, "delimiter", "@styleAfterTypeEquals"],
|
||||||
|
[
|
||||||
|
/>/,
|
||||||
|
{
|
||||||
|
token: "delimiter.html",
|
||||||
|
next: "@styleEmbedded.text/css",
|
||||||
|
nextEmbedded: "text/css"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/[ \t\r\n]+/],
|
||||||
|
[/<\/style\s*>/, { token: "@rematch", next: "@pop" }]
|
||||||
|
],
|
||||||
|
styleAfterTypeEquals: [
|
||||||
|
[
|
||||||
|
/@[^@]/,
|
||||||
|
{
|
||||||
|
token: "@rematch",
|
||||||
|
switchTo: "@razorInSimpleState.styleAfterTypeEquals"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[
|
||||||
|
/"([^"]*)"/,
|
||||||
|
{
|
||||||
|
token: "attribute.value",
|
||||||
|
switchTo: "@styleWithCustomType.$1"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[
|
||||||
|
/'([^']*)'/,
|
||||||
|
{
|
||||||
|
token: "attribute.value",
|
||||||
|
switchTo: "@styleWithCustomType.$1"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[
|
||||||
|
/>/,
|
||||||
|
{
|
||||||
|
token: "delimiter.html",
|
||||||
|
next: "@styleEmbedded.text/css",
|
||||||
|
nextEmbedded: "text/css"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/[ \t\r\n]+/],
|
||||||
|
[/<\/style\s*>/, { token: "@rematch", next: "@pop" }]
|
||||||
|
],
|
||||||
|
styleWithCustomType: [
|
||||||
|
[
|
||||||
|
/@[^@]/,
|
||||||
|
{
|
||||||
|
token: "@rematch",
|
||||||
|
switchTo: "@razorInSimpleState.styleWithCustomType.$S2"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[
|
||||||
|
/>/,
|
||||||
|
{
|
||||||
|
token: "delimiter.html",
|
||||||
|
next: "@styleEmbedded.$S2",
|
||||||
|
nextEmbedded: "$S2"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/"([^"]*)"/, "attribute.value"],
|
||||||
|
[/'([^']*)'/, "attribute.value"],
|
||||||
|
[/[\w\-]+/, "attribute.name"],
|
||||||
|
[/=/, "delimiter"],
|
||||||
|
[/[ \t\r\n]+/],
|
||||||
|
[/<\/style\s*>/, { token: "@rematch", next: "@pop" }]
|
||||||
|
],
|
||||||
|
styleEmbedded: [
|
||||||
|
[
|
||||||
|
/@[^@]/,
|
||||||
|
{
|
||||||
|
token: "@rematch",
|
||||||
|
switchTo: "@razorInEmbeddedState.styleEmbedded.$S2",
|
||||||
|
nextEmbedded: "@pop"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/<\/style/, { token: "@rematch", next: "@pop", nextEmbedded: "@pop" }]
|
||||||
|
],
|
||||||
|
razorInSimpleState: [
|
||||||
|
[/@\*/, "comment.cs", "@razorBlockCommentTopLevel"],
|
||||||
|
[/@[{(]/, "metatag.cs", "@razorRootTopLevel"],
|
||||||
|
[/(@)(\s*[\w]+)/, ["metatag.cs", { token: "identifier.cs", switchTo: "@$S2.$S3" }]],
|
||||||
|
[/[})]/, { token: "metatag.cs", switchTo: "@$S2.$S3" }],
|
||||||
|
[/\*@/, { token: "comment.cs", switchTo: "@$S2.$S3" }]
|
||||||
|
],
|
||||||
|
razorInEmbeddedState: [
|
||||||
|
[/@\*/, "comment.cs", "@razorBlockCommentTopLevel"],
|
||||||
|
[/@[{(]/, "metatag.cs", "@razorRootTopLevel"],
|
||||||
|
[
|
||||||
|
/(@)(\s*[\w]+)/,
|
||||||
|
[
|
||||||
|
"metatag.cs",
|
||||||
|
{
|
||||||
|
token: "identifier.cs",
|
||||||
|
switchTo: "@$S2.$S3",
|
||||||
|
nextEmbedded: "$S3"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
],
|
||||||
|
[
|
||||||
|
/[})]/,
|
||||||
|
{
|
||||||
|
token: "metatag.cs",
|
||||||
|
switchTo: "@$S2.$S3",
|
||||||
|
nextEmbedded: "$S3"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[
|
||||||
|
/\*@/,
|
||||||
|
{
|
||||||
|
token: "comment.cs",
|
||||||
|
switchTo: "@$S2.$S3",
|
||||||
|
nextEmbedded: "$S3"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
],
|
||||||
|
razorBlockCommentTopLevel: [
|
||||||
|
[/\*@/, "@rematch", "@pop"],
|
||||||
|
[/[^*]+/, "comment.cs"],
|
||||||
|
[/./, "comment.cs"]
|
||||||
|
],
|
||||||
|
razorBlockComment: [
|
||||||
|
[/\*@/, "comment.cs", "@pop"],
|
||||||
|
[/[^*]+/, "comment.cs"],
|
||||||
|
[/./, "comment.cs"]
|
||||||
|
],
|
||||||
|
razorRootTopLevel: [
|
||||||
|
[/\{/, "delimiter.bracket.cs", "@razorRoot"],
|
||||||
|
[/\(/, "delimiter.parenthesis.cs", "@razorRoot"],
|
||||||
|
[/[})]/, "@rematch", "@pop"],
|
||||||
|
{ include: "razorCommon" }
|
||||||
|
],
|
||||||
|
razorRoot: [
|
||||||
|
[/\{/, "delimiter.bracket.cs", "@razorRoot"],
|
||||||
|
[/\(/, "delimiter.parenthesis.cs", "@razorRoot"],
|
||||||
|
[/\}/, "delimiter.bracket.cs", "@pop"],
|
||||||
|
[/\)/, "delimiter.parenthesis.cs", "@pop"],
|
||||||
|
{ include: "razorCommon" }
|
||||||
|
],
|
||||||
|
razorCommon: [
|
||||||
|
[
|
||||||
|
/[a-zA-Z_]\w*/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"@razorKeywords": { token: "keyword.cs" },
|
||||||
|
"@default": "identifier.cs"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/[\[\]]/, "delimiter.array.cs"],
|
||||||
|
[/[ \t\r\n]+/],
|
||||||
|
[/\/\/.*$/, "comment.cs"],
|
||||||
|
[/@\*/, "comment.cs", "@razorBlockComment"],
|
||||||
|
[/"([^"]*)"/, "string.cs"],
|
||||||
|
[/'([^']*)'/, "string.cs"],
|
||||||
|
[/(<)([\w\-]+)(\/>)/, ["delimiter.html", "tag.html", "delimiter.html"]],
|
||||||
|
[/(<)([\w\-]+)(>)/, ["delimiter.html", "tag.html", "delimiter.html"]],
|
||||||
|
[/(<\/)([\w\-]+)(>)/, ["delimiter.html", "tag.html", "delimiter.html"]],
|
||||||
|
[/[\+\-\*\%\&\|\^\~\!\=\<\>\/\?\;\:\.\,]/, "delimiter.cs"],
|
||||||
|
[/\d*\d+[eE]([\-+]?\d+)?/, "number.float.cs"],
|
||||||
|
[/\d*\.\d+([eE][\-+]?\d+)?/, "number.float.cs"],
|
||||||
|
[/0[xX][0-9a-fA-F']*[0-9a-fA-F]/, "number.hex.cs"],
|
||||||
|
[/0[0-7']*[0-7]/, "number.octal.cs"],
|
||||||
|
[/0[bB][0-1']*[0-1]/, "number.binary.cs"],
|
||||||
|
[/\d[\d']*/, "number.cs"],
|
||||||
|
[/\d/, "number.cs"]
|
||||||
|
]
|
||||||
|
},
|
||||||
|
razorKeywords: [
|
||||||
|
"abstract",
|
||||||
|
"as",
|
||||||
|
"async",
|
||||||
|
"await",
|
||||||
|
"base",
|
||||||
|
"bool",
|
||||||
|
"break",
|
||||||
|
"by",
|
||||||
|
"byte",
|
||||||
|
"case",
|
||||||
|
"catch",
|
||||||
|
"char",
|
||||||
|
"checked",
|
||||||
|
"class",
|
||||||
|
"const",
|
||||||
|
"continue",
|
||||||
|
"decimal",
|
||||||
|
"default",
|
||||||
|
"delegate",
|
||||||
|
"do",
|
||||||
|
"double",
|
||||||
|
"descending",
|
||||||
|
"explicit",
|
||||||
|
"event",
|
||||||
|
"extern",
|
||||||
|
"else",
|
||||||
|
"enum",
|
||||||
|
"false",
|
||||||
|
"finally",
|
||||||
|
"fixed",
|
||||||
|
"float",
|
||||||
|
"for",
|
||||||
|
"foreach",
|
||||||
|
"from",
|
||||||
|
"goto",
|
||||||
|
"group",
|
||||||
|
"if",
|
||||||
|
"implicit",
|
||||||
|
"in",
|
||||||
|
"int",
|
||||||
|
"interface",
|
||||||
|
"internal",
|
||||||
|
"into",
|
||||||
|
"is",
|
||||||
|
"lock",
|
||||||
|
"long",
|
||||||
|
"nameof",
|
||||||
|
"new",
|
||||||
|
"null",
|
||||||
|
"namespace",
|
||||||
|
"object",
|
||||||
|
"operator",
|
||||||
|
"out",
|
||||||
|
"override",
|
||||||
|
"orderby",
|
||||||
|
"params",
|
||||||
|
"private",
|
||||||
|
"protected",
|
||||||
|
"public",
|
||||||
|
"readonly",
|
||||||
|
"ref",
|
||||||
|
"return",
|
||||||
|
"switch",
|
||||||
|
"struct",
|
||||||
|
"sbyte",
|
||||||
|
"sealed",
|
||||||
|
"short",
|
||||||
|
"sizeof",
|
||||||
|
"stackalloc",
|
||||||
|
"static",
|
||||||
|
"string",
|
||||||
|
"select",
|
||||||
|
"this",
|
||||||
|
"throw",
|
||||||
|
"true",
|
||||||
|
"try",
|
||||||
|
"typeof",
|
||||||
|
"uint",
|
||||||
|
"ulong",
|
||||||
|
"unchecked",
|
||||||
|
"unsafe",
|
||||||
|
"ushort",
|
||||||
|
"using",
|
||||||
|
"var",
|
||||||
|
"virtual",
|
||||||
|
"volatile",
|
||||||
|
"void",
|
||||||
|
"when",
|
||||||
|
"while",
|
||||||
|
"where",
|
||||||
|
"yield",
|
||||||
|
"model",
|
||||||
|
"inject"
|
||||||
|
],
|
||||||
|
escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/
|
||||||
|
};
|
||||||
|
return __toCommonJS(razor_exports);
|
||||||
|
})();
|
||||||
|
return moduleExports;
|
||||||
|
});
|
||||||
@@ -0,0 +1,330 @@
|
|||||||
|
/*!-----------------------------------------------------------------------------
|
||||||
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||||
|
* Version: 0.33.0(4b1abad427e58dbedc1215d99a0902ffc885fcd4)
|
||||||
|
* Released under the MIT license
|
||||||
|
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
||||||
|
*-----------------------------------------------------------------------------*/
|
||||||
|
define("vs/basic-languages/redis/redis", ["require"],(require)=>{
|
||||||
|
var moduleExports = (() => {
|
||||||
|
var __defProp = Object.defineProperty;
|
||||||
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||||
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||||
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||||
|
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
||||||
|
var __export = (target, all) => {
|
||||||
|
for (var name in all)
|
||||||
|
__defProp(target, name, { get: all[name], enumerable: true });
|
||||||
|
};
|
||||||
|
var __reExport = (target, module, copyDefault, desc) => {
|
||||||
|
if (module && typeof module === "object" || typeof module === "function") {
|
||||||
|
for (let key of __getOwnPropNames(module))
|
||||||
|
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
||||||
|
__defProp(target, key, { get: () => module[key], enumerable: !(desc = __getOwnPropDesc(module, key)) || desc.enumerable });
|
||||||
|
}
|
||||||
|
return target;
|
||||||
|
};
|
||||||
|
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
||||||
|
return (module, temp) => {
|
||||||
|
return cache && cache.get(module) || (temp = __reExport(__markAsModule({}), module, 1), cache && cache.set(module, temp), temp);
|
||||||
|
};
|
||||||
|
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
||||||
|
|
||||||
|
// src/basic-languages/redis/redis.ts
|
||||||
|
var redis_exports = {};
|
||||||
|
__export(redis_exports, {
|
||||||
|
conf: () => conf,
|
||||||
|
language: () => language
|
||||||
|
});
|
||||||
|
var conf = {
|
||||||
|
brackets: [
|
||||||
|
["{", "}"],
|
||||||
|
["[", "]"],
|
||||||
|
["(", ")"]
|
||||||
|
],
|
||||||
|
autoClosingPairs: [
|
||||||
|
{ open: "{", close: "}" },
|
||||||
|
{ open: "[", close: "]" },
|
||||||
|
{ open: "(", close: ")" },
|
||||||
|
{ open: '"', close: '"' },
|
||||||
|
{ open: "'", close: "'" }
|
||||||
|
],
|
||||||
|
surroundingPairs: [
|
||||||
|
{ open: "{", close: "}" },
|
||||||
|
{ open: "[", close: "]" },
|
||||||
|
{ open: "(", close: ")" },
|
||||||
|
{ open: '"', close: '"' },
|
||||||
|
{ open: "'", close: "'" }
|
||||||
|
]
|
||||||
|
};
|
||||||
|
var language = {
|
||||||
|
defaultToken: "",
|
||||||
|
tokenPostfix: ".redis",
|
||||||
|
ignoreCase: true,
|
||||||
|
brackets: [
|
||||||
|
{ open: "[", close: "]", token: "delimiter.square" },
|
||||||
|
{ open: "(", close: ")", token: "delimiter.parenthesis" }
|
||||||
|
],
|
||||||
|
keywords: [
|
||||||
|
"APPEND",
|
||||||
|
"AUTH",
|
||||||
|
"BGREWRITEAOF",
|
||||||
|
"BGSAVE",
|
||||||
|
"BITCOUNT",
|
||||||
|
"BITFIELD",
|
||||||
|
"BITOP",
|
||||||
|
"BITPOS",
|
||||||
|
"BLPOP",
|
||||||
|
"BRPOP",
|
||||||
|
"BRPOPLPUSH",
|
||||||
|
"CLIENT",
|
||||||
|
"KILL",
|
||||||
|
"LIST",
|
||||||
|
"GETNAME",
|
||||||
|
"PAUSE",
|
||||||
|
"REPLY",
|
||||||
|
"SETNAME",
|
||||||
|
"CLUSTER",
|
||||||
|
"ADDSLOTS",
|
||||||
|
"COUNT-FAILURE-REPORTS",
|
||||||
|
"COUNTKEYSINSLOT",
|
||||||
|
"DELSLOTS",
|
||||||
|
"FAILOVER",
|
||||||
|
"FORGET",
|
||||||
|
"GETKEYSINSLOT",
|
||||||
|
"INFO",
|
||||||
|
"KEYSLOT",
|
||||||
|
"MEET",
|
||||||
|
"NODES",
|
||||||
|
"REPLICATE",
|
||||||
|
"RESET",
|
||||||
|
"SAVECONFIG",
|
||||||
|
"SET-CONFIG-EPOCH",
|
||||||
|
"SETSLOT",
|
||||||
|
"SLAVES",
|
||||||
|
"SLOTS",
|
||||||
|
"COMMAND",
|
||||||
|
"COUNT",
|
||||||
|
"GETKEYS",
|
||||||
|
"CONFIG",
|
||||||
|
"GET",
|
||||||
|
"REWRITE",
|
||||||
|
"SET",
|
||||||
|
"RESETSTAT",
|
||||||
|
"DBSIZE",
|
||||||
|
"DEBUG",
|
||||||
|
"OBJECT",
|
||||||
|
"SEGFAULT",
|
||||||
|
"DECR",
|
||||||
|
"DECRBY",
|
||||||
|
"DEL",
|
||||||
|
"DISCARD",
|
||||||
|
"DUMP",
|
||||||
|
"ECHO",
|
||||||
|
"EVAL",
|
||||||
|
"EVALSHA",
|
||||||
|
"EXEC",
|
||||||
|
"EXISTS",
|
||||||
|
"EXPIRE",
|
||||||
|
"EXPIREAT",
|
||||||
|
"FLUSHALL",
|
||||||
|
"FLUSHDB",
|
||||||
|
"GEOADD",
|
||||||
|
"GEOHASH",
|
||||||
|
"GEOPOS",
|
||||||
|
"GEODIST",
|
||||||
|
"GEORADIUS",
|
||||||
|
"GEORADIUSBYMEMBER",
|
||||||
|
"GETBIT",
|
||||||
|
"GETRANGE",
|
||||||
|
"GETSET",
|
||||||
|
"HDEL",
|
||||||
|
"HEXISTS",
|
||||||
|
"HGET",
|
||||||
|
"HGETALL",
|
||||||
|
"HINCRBY",
|
||||||
|
"HINCRBYFLOAT",
|
||||||
|
"HKEYS",
|
||||||
|
"HLEN",
|
||||||
|
"HMGET",
|
||||||
|
"HMSET",
|
||||||
|
"HSET",
|
||||||
|
"HSETNX",
|
||||||
|
"HSTRLEN",
|
||||||
|
"HVALS",
|
||||||
|
"INCR",
|
||||||
|
"INCRBY",
|
||||||
|
"INCRBYFLOAT",
|
||||||
|
"KEYS",
|
||||||
|
"LASTSAVE",
|
||||||
|
"LINDEX",
|
||||||
|
"LINSERT",
|
||||||
|
"LLEN",
|
||||||
|
"LPOP",
|
||||||
|
"LPUSH",
|
||||||
|
"LPUSHX",
|
||||||
|
"LRANGE",
|
||||||
|
"LREM",
|
||||||
|
"LSET",
|
||||||
|
"LTRIM",
|
||||||
|
"MGET",
|
||||||
|
"MIGRATE",
|
||||||
|
"MONITOR",
|
||||||
|
"MOVE",
|
||||||
|
"MSET",
|
||||||
|
"MSETNX",
|
||||||
|
"MULTI",
|
||||||
|
"PERSIST",
|
||||||
|
"PEXPIRE",
|
||||||
|
"PEXPIREAT",
|
||||||
|
"PFADD",
|
||||||
|
"PFCOUNT",
|
||||||
|
"PFMERGE",
|
||||||
|
"PING",
|
||||||
|
"PSETEX",
|
||||||
|
"PSUBSCRIBE",
|
||||||
|
"PUBSUB",
|
||||||
|
"PTTL",
|
||||||
|
"PUBLISH",
|
||||||
|
"PUNSUBSCRIBE",
|
||||||
|
"QUIT",
|
||||||
|
"RANDOMKEY",
|
||||||
|
"READONLY",
|
||||||
|
"READWRITE",
|
||||||
|
"RENAME",
|
||||||
|
"RENAMENX",
|
||||||
|
"RESTORE",
|
||||||
|
"ROLE",
|
||||||
|
"RPOP",
|
||||||
|
"RPOPLPUSH",
|
||||||
|
"RPUSH",
|
||||||
|
"RPUSHX",
|
||||||
|
"SADD",
|
||||||
|
"SAVE",
|
||||||
|
"SCARD",
|
||||||
|
"SCRIPT",
|
||||||
|
"FLUSH",
|
||||||
|
"LOAD",
|
||||||
|
"SDIFF",
|
||||||
|
"SDIFFSTORE",
|
||||||
|
"SELECT",
|
||||||
|
"SETBIT",
|
||||||
|
"SETEX",
|
||||||
|
"SETNX",
|
||||||
|
"SETRANGE",
|
||||||
|
"SHUTDOWN",
|
||||||
|
"SINTER",
|
||||||
|
"SINTERSTORE",
|
||||||
|
"SISMEMBER",
|
||||||
|
"SLAVEOF",
|
||||||
|
"SLOWLOG",
|
||||||
|
"SMEMBERS",
|
||||||
|
"SMOVE",
|
||||||
|
"SORT",
|
||||||
|
"SPOP",
|
||||||
|
"SRANDMEMBER",
|
||||||
|
"SREM",
|
||||||
|
"STRLEN",
|
||||||
|
"SUBSCRIBE",
|
||||||
|
"SUNION",
|
||||||
|
"SUNIONSTORE",
|
||||||
|
"SWAPDB",
|
||||||
|
"SYNC",
|
||||||
|
"TIME",
|
||||||
|
"TOUCH",
|
||||||
|
"TTL",
|
||||||
|
"TYPE",
|
||||||
|
"UNSUBSCRIBE",
|
||||||
|
"UNLINK",
|
||||||
|
"UNWATCH",
|
||||||
|
"WAIT",
|
||||||
|
"WATCH",
|
||||||
|
"ZADD",
|
||||||
|
"ZCARD",
|
||||||
|
"ZCOUNT",
|
||||||
|
"ZINCRBY",
|
||||||
|
"ZINTERSTORE",
|
||||||
|
"ZLEXCOUNT",
|
||||||
|
"ZRANGE",
|
||||||
|
"ZRANGEBYLEX",
|
||||||
|
"ZREVRANGEBYLEX",
|
||||||
|
"ZRANGEBYSCORE",
|
||||||
|
"ZRANK",
|
||||||
|
"ZREM",
|
||||||
|
"ZREMRANGEBYLEX",
|
||||||
|
"ZREMRANGEBYRANK",
|
||||||
|
"ZREMRANGEBYSCORE",
|
||||||
|
"ZREVRANGE",
|
||||||
|
"ZREVRANGEBYSCORE",
|
||||||
|
"ZREVRANK",
|
||||||
|
"ZSCORE",
|
||||||
|
"ZUNIONSTORE",
|
||||||
|
"SCAN",
|
||||||
|
"SSCAN",
|
||||||
|
"HSCAN",
|
||||||
|
"ZSCAN"
|
||||||
|
],
|
||||||
|
operators: [],
|
||||||
|
builtinFunctions: [],
|
||||||
|
builtinVariables: [],
|
||||||
|
pseudoColumns: [],
|
||||||
|
tokenizer: {
|
||||||
|
root: [
|
||||||
|
{ include: "@whitespace" },
|
||||||
|
{ include: "@pseudoColumns" },
|
||||||
|
{ include: "@numbers" },
|
||||||
|
{ include: "@strings" },
|
||||||
|
{ include: "@scopes" },
|
||||||
|
[/[;,.]/, "delimiter"],
|
||||||
|
[/[()]/, "@brackets"],
|
||||||
|
[
|
||||||
|
/[\w@#$]+/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"@keywords": "keyword",
|
||||||
|
"@operators": "operator",
|
||||||
|
"@builtinVariables": "predefined",
|
||||||
|
"@builtinFunctions": "predefined",
|
||||||
|
"@default": "identifier"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/[<>=!%&+\-*/|~^]/, "operator"]
|
||||||
|
],
|
||||||
|
whitespace: [[/\s+/, "white"]],
|
||||||
|
pseudoColumns: [
|
||||||
|
[
|
||||||
|
/[$][A-Za-z_][\w@#$]*/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"@pseudoColumns": "predefined",
|
||||||
|
"@default": "identifier"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
],
|
||||||
|
numbers: [
|
||||||
|
[/0[xX][0-9a-fA-F]*/, "number"],
|
||||||
|
[/[$][+-]*\d*(\.\d*)?/, "number"],
|
||||||
|
[/((\d+(\.\d*)?)|(\.\d+))([eE][\-+]?\d+)?/, "number"]
|
||||||
|
],
|
||||||
|
strings: [
|
||||||
|
[/'/, { token: "string", next: "@string" }],
|
||||||
|
[/"/, { token: "string.double", next: "@stringDouble" }]
|
||||||
|
],
|
||||||
|
string: [
|
||||||
|
[/[^']+/, "string"],
|
||||||
|
[/''/, "string"],
|
||||||
|
[/'/, { token: "string", next: "@pop" }]
|
||||||
|
],
|
||||||
|
stringDouble: [
|
||||||
|
[/[^"]+/, "string.double"],
|
||||||
|
[/""/, "string.double"],
|
||||||
|
[/"/, { token: "string.double", next: "@pop" }]
|
||||||
|
],
|
||||||
|
scopes: []
|
||||||
|
}
|
||||||
|
};
|
||||||
|
return __toCommonJS(redis_exports);
|
||||||
|
})();
|
||||||
|
return moduleExports;
|
||||||
|
});
|
||||||
@@ -0,0 +1,838 @@
|
|||||||
|
/*!-----------------------------------------------------------------------------
|
||||||
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||||
|
* Version: 0.33.0(4b1abad427e58dbedc1215d99a0902ffc885fcd4)
|
||||||
|
* Released under the MIT license
|
||||||
|
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
||||||
|
*-----------------------------------------------------------------------------*/
|
||||||
|
define("vs/basic-languages/redshift/redshift", ["require"],(require)=>{
|
||||||
|
var moduleExports = (() => {
|
||||||
|
var __defProp = Object.defineProperty;
|
||||||
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||||
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||||
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||||
|
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
||||||
|
var __export = (target, all) => {
|
||||||
|
for (var name in all)
|
||||||
|
__defProp(target, name, { get: all[name], enumerable: true });
|
||||||
|
};
|
||||||
|
var __reExport = (target, module, copyDefault, desc) => {
|
||||||
|
if (module && typeof module === "object" || typeof module === "function") {
|
||||||
|
for (let key of __getOwnPropNames(module))
|
||||||
|
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
||||||
|
__defProp(target, key, { get: () => module[key], enumerable: !(desc = __getOwnPropDesc(module, key)) || desc.enumerable });
|
||||||
|
}
|
||||||
|
return target;
|
||||||
|
};
|
||||||
|
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
||||||
|
return (module, temp) => {
|
||||||
|
return cache && cache.get(module) || (temp = __reExport(__markAsModule({}), module, 1), cache && cache.set(module, temp), temp);
|
||||||
|
};
|
||||||
|
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
||||||
|
|
||||||
|
// src/basic-languages/redshift/redshift.ts
|
||||||
|
var redshift_exports = {};
|
||||||
|
__export(redshift_exports, {
|
||||||
|
conf: () => conf,
|
||||||
|
language: () => language
|
||||||
|
});
|
||||||
|
var conf = {
|
||||||
|
comments: {
|
||||||
|
lineComment: "--",
|
||||||
|
blockComment: ["/*", "*/"]
|
||||||
|
},
|
||||||
|
brackets: [
|
||||||
|
["{", "}"],
|
||||||
|
["[", "]"],
|
||||||
|
["(", ")"]
|
||||||
|
],
|
||||||
|
autoClosingPairs: [
|
||||||
|
{ open: "{", close: "}" },
|
||||||
|
{ open: "[", close: "]" },
|
||||||
|
{ open: "(", close: ")" },
|
||||||
|
{ open: '"', close: '"' },
|
||||||
|
{ open: "'", close: "'" }
|
||||||
|
],
|
||||||
|
surroundingPairs: [
|
||||||
|
{ open: "{", close: "}" },
|
||||||
|
{ open: "[", close: "]" },
|
||||||
|
{ open: "(", close: ")" },
|
||||||
|
{ open: '"', close: '"' },
|
||||||
|
{ open: "'", close: "'" }
|
||||||
|
]
|
||||||
|
};
|
||||||
|
var language = {
|
||||||
|
defaultToken: "",
|
||||||
|
tokenPostfix: ".sql",
|
||||||
|
ignoreCase: true,
|
||||||
|
brackets: [
|
||||||
|
{ open: "[", close: "]", token: "delimiter.square" },
|
||||||
|
{ open: "(", close: ")", token: "delimiter.parenthesis" }
|
||||||
|
],
|
||||||
|
keywords: [
|
||||||
|
"AES128",
|
||||||
|
"AES256",
|
||||||
|
"ALL",
|
||||||
|
"ALLOWOVERWRITE",
|
||||||
|
"ANALYSE",
|
||||||
|
"ANALYZE",
|
||||||
|
"AND",
|
||||||
|
"ANY",
|
||||||
|
"ARRAY",
|
||||||
|
"AS",
|
||||||
|
"ASC",
|
||||||
|
"AUTHORIZATION",
|
||||||
|
"AZ64",
|
||||||
|
"BACKUP",
|
||||||
|
"BETWEEN",
|
||||||
|
"BINARY",
|
||||||
|
"BLANKSASNULL",
|
||||||
|
"BOTH",
|
||||||
|
"BYTEDICT",
|
||||||
|
"BZIP2",
|
||||||
|
"CASE",
|
||||||
|
"CAST",
|
||||||
|
"CHECK",
|
||||||
|
"COLLATE",
|
||||||
|
"COLUMN",
|
||||||
|
"CONSTRAINT",
|
||||||
|
"CREATE",
|
||||||
|
"CREDENTIALS",
|
||||||
|
"CROSS",
|
||||||
|
"CURRENT_DATE",
|
||||||
|
"CURRENT_TIME",
|
||||||
|
"CURRENT_TIMESTAMP",
|
||||||
|
"CURRENT_USER",
|
||||||
|
"CURRENT_USER_ID",
|
||||||
|
"DEFAULT",
|
||||||
|
"DEFERRABLE",
|
||||||
|
"DEFLATE",
|
||||||
|
"DEFRAG",
|
||||||
|
"DELTA",
|
||||||
|
"DELTA32K",
|
||||||
|
"DESC",
|
||||||
|
"DISABLE",
|
||||||
|
"DISTINCT",
|
||||||
|
"DO",
|
||||||
|
"ELSE",
|
||||||
|
"EMPTYASNULL",
|
||||||
|
"ENABLE",
|
||||||
|
"ENCODE",
|
||||||
|
"ENCRYPT",
|
||||||
|
"ENCRYPTION",
|
||||||
|
"END",
|
||||||
|
"EXCEPT",
|
||||||
|
"EXPLICIT",
|
||||||
|
"FALSE",
|
||||||
|
"FOR",
|
||||||
|
"FOREIGN",
|
||||||
|
"FREEZE",
|
||||||
|
"FROM",
|
||||||
|
"FULL",
|
||||||
|
"GLOBALDICT256",
|
||||||
|
"GLOBALDICT64K",
|
||||||
|
"GRANT",
|
||||||
|
"GROUP",
|
||||||
|
"GZIP",
|
||||||
|
"HAVING",
|
||||||
|
"IDENTITY",
|
||||||
|
"IGNORE",
|
||||||
|
"ILIKE",
|
||||||
|
"IN",
|
||||||
|
"INITIALLY",
|
||||||
|
"INNER",
|
||||||
|
"INTERSECT",
|
||||||
|
"INTO",
|
||||||
|
"IS",
|
||||||
|
"ISNULL",
|
||||||
|
"JOIN",
|
||||||
|
"LANGUAGE",
|
||||||
|
"LEADING",
|
||||||
|
"LEFT",
|
||||||
|
"LIKE",
|
||||||
|
"LIMIT",
|
||||||
|
"LOCALTIME",
|
||||||
|
"LOCALTIMESTAMP",
|
||||||
|
"LUN",
|
||||||
|
"LUNS",
|
||||||
|
"LZO",
|
||||||
|
"LZOP",
|
||||||
|
"MINUS",
|
||||||
|
"MOSTLY16",
|
||||||
|
"MOSTLY32",
|
||||||
|
"MOSTLY8",
|
||||||
|
"NATURAL",
|
||||||
|
"NEW",
|
||||||
|
"NOT",
|
||||||
|
"NOTNULL",
|
||||||
|
"NULL",
|
||||||
|
"NULLS",
|
||||||
|
"OFF",
|
||||||
|
"OFFLINE",
|
||||||
|
"OFFSET",
|
||||||
|
"OID",
|
||||||
|
"OLD",
|
||||||
|
"ON",
|
||||||
|
"ONLY",
|
||||||
|
"OPEN",
|
||||||
|
"OR",
|
||||||
|
"ORDER",
|
||||||
|
"OUTER",
|
||||||
|
"OVERLAPS",
|
||||||
|
"PARALLEL",
|
||||||
|
"PARTITION",
|
||||||
|
"PERCENT",
|
||||||
|
"PERMISSIONS",
|
||||||
|
"PLACING",
|
||||||
|
"PRIMARY",
|
||||||
|
"RAW",
|
||||||
|
"READRATIO",
|
||||||
|
"RECOVER",
|
||||||
|
"REFERENCES",
|
||||||
|
"RESPECT",
|
||||||
|
"REJECTLOG",
|
||||||
|
"RESORT",
|
||||||
|
"RESTORE",
|
||||||
|
"RIGHT",
|
||||||
|
"SELECT",
|
||||||
|
"SESSION_USER",
|
||||||
|
"SIMILAR",
|
||||||
|
"SNAPSHOT",
|
||||||
|
"SOME",
|
||||||
|
"SYSDATE",
|
||||||
|
"SYSTEM",
|
||||||
|
"TABLE",
|
||||||
|
"TAG",
|
||||||
|
"TDES",
|
||||||
|
"TEXT255",
|
||||||
|
"TEXT32K",
|
||||||
|
"THEN",
|
||||||
|
"TIMESTAMP",
|
||||||
|
"TO",
|
||||||
|
"TOP",
|
||||||
|
"TRAILING",
|
||||||
|
"TRUE",
|
||||||
|
"TRUNCATECOLUMNS",
|
||||||
|
"UNION",
|
||||||
|
"UNIQUE",
|
||||||
|
"USER",
|
||||||
|
"USING",
|
||||||
|
"VERBOSE",
|
||||||
|
"WALLET",
|
||||||
|
"WHEN",
|
||||||
|
"WHERE",
|
||||||
|
"WITH",
|
||||||
|
"WITHOUT"
|
||||||
|
],
|
||||||
|
operators: [
|
||||||
|
"AND",
|
||||||
|
"BETWEEN",
|
||||||
|
"IN",
|
||||||
|
"LIKE",
|
||||||
|
"NOT",
|
||||||
|
"OR",
|
||||||
|
"IS",
|
||||||
|
"NULL",
|
||||||
|
"INTERSECT",
|
||||||
|
"UNION",
|
||||||
|
"INNER",
|
||||||
|
"JOIN",
|
||||||
|
"LEFT",
|
||||||
|
"OUTER",
|
||||||
|
"RIGHT"
|
||||||
|
],
|
||||||
|
builtinFunctions: [
|
||||||
|
"current_schema",
|
||||||
|
"current_schemas",
|
||||||
|
"has_database_privilege",
|
||||||
|
"has_schema_privilege",
|
||||||
|
"has_table_privilege",
|
||||||
|
"age",
|
||||||
|
"current_time",
|
||||||
|
"current_timestamp",
|
||||||
|
"localtime",
|
||||||
|
"isfinite",
|
||||||
|
"now",
|
||||||
|
"ascii",
|
||||||
|
"get_bit",
|
||||||
|
"get_byte",
|
||||||
|
"set_bit",
|
||||||
|
"set_byte",
|
||||||
|
"to_ascii",
|
||||||
|
"approximate percentile_disc",
|
||||||
|
"avg",
|
||||||
|
"count",
|
||||||
|
"listagg",
|
||||||
|
"max",
|
||||||
|
"median",
|
||||||
|
"min",
|
||||||
|
"percentile_cont",
|
||||||
|
"stddev_samp",
|
||||||
|
"stddev_pop",
|
||||||
|
"sum",
|
||||||
|
"var_samp",
|
||||||
|
"var_pop",
|
||||||
|
"bit_and",
|
||||||
|
"bit_or",
|
||||||
|
"bool_and",
|
||||||
|
"bool_or",
|
||||||
|
"cume_dist",
|
||||||
|
"first_value",
|
||||||
|
"lag",
|
||||||
|
"last_value",
|
||||||
|
"lead",
|
||||||
|
"nth_value",
|
||||||
|
"ratio_to_report",
|
||||||
|
"dense_rank",
|
||||||
|
"ntile",
|
||||||
|
"percent_rank",
|
||||||
|
"rank",
|
||||||
|
"row_number",
|
||||||
|
"case",
|
||||||
|
"coalesce",
|
||||||
|
"decode",
|
||||||
|
"greatest",
|
||||||
|
"least",
|
||||||
|
"nvl",
|
||||||
|
"nvl2",
|
||||||
|
"nullif",
|
||||||
|
"add_months",
|
||||||
|
"at time zone",
|
||||||
|
"convert_timezone",
|
||||||
|
"current_date",
|
||||||
|
"date_cmp",
|
||||||
|
"date_cmp_timestamp",
|
||||||
|
"date_cmp_timestamptz",
|
||||||
|
"date_part_year",
|
||||||
|
"dateadd",
|
||||||
|
"datediff",
|
||||||
|
"date_part",
|
||||||
|
"date_trunc",
|
||||||
|
"extract",
|
||||||
|
"getdate",
|
||||||
|
"interval_cmp",
|
||||||
|
"last_day",
|
||||||
|
"months_between",
|
||||||
|
"next_day",
|
||||||
|
"sysdate",
|
||||||
|
"timeofday",
|
||||||
|
"timestamp_cmp",
|
||||||
|
"timestamp_cmp_date",
|
||||||
|
"timestamp_cmp_timestamptz",
|
||||||
|
"timestamptz_cmp",
|
||||||
|
"timestamptz_cmp_date",
|
||||||
|
"timestamptz_cmp_timestamp",
|
||||||
|
"timezone",
|
||||||
|
"to_timestamp",
|
||||||
|
"trunc",
|
||||||
|
"abs",
|
||||||
|
"acos",
|
||||||
|
"asin",
|
||||||
|
"atan",
|
||||||
|
"atan2",
|
||||||
|
"cbrt",
|
||||||
|
"ceil",
|
||||||
|
"ceiling",
|
||||||
|
"checksum",
|
||||||
|
"cos",
|
||||||
|
"cot",
|
||||||
|
"degrees",
|
||||||
|
"dexp",
|
||||||
|
"dlog1",
|
||||||
|
"dlog10",
|
||||||
|
"exp",
|
||||||
|
"floor",
|
||||||
|
"ln",
|
||||||
|
"log",
|
||||||
|
"mod",
|
||||||
|
"pi",
|
||||||
|
"power",
|
||||||
|
"radians",
|
||||||
|
"random",
|
||||||
|
"round",
|
||||||
|
"sin",
|
||||||
|
"sign",
|
||||||
|
"sqrt",
|
||||||
|
"tan",
|
||||||
|
"to_hex",
|
||||||
|
"bpcharcmp",
|
||||||
|
"btrim",
|
||||||
|
"bttext_pattern_cmp",
|
||||||
|
"char_length",
|
||||||
|
"character_length",
|
||||||
|
"charindex",
|
||||||
|
"chr",
|
||||||
|
"concat",
|
||||||
|
"crc32",
|
||||||
|
"func_sha1",
|
||||||
|
"initcap",
|
||||||
|
"left and rights",
|
||||||
|
"len",
|
||||||
|
"length",
|
||||||
|
"lower",
|
||||||
|
"lpad and rpads",
|
||||||
|
"ltrim",
|
||||||
|
"md5",
|
||||||
|
"octet_length",
|
||||||
|
"position",
|
||||||
|
"quote_ident",
|
||||||
|
"quote_literal",
|
||||||
|
"regexp_count",
|
||||||
|
"regexp_instr",
|
||||||
|
"regexp_replace",
|
||||||
|
"regexp_substr",
|
||||||
|
"repeat",
|
||||||
|
"replace",
|
||||||
|
"replicate",
|
||||||
|
"reverse",
|
||||||
|
"rtrim",
|
||||||
|
"split_part",
|
||||||
|
"strpos",
|
||||||
|
"strtol",
|
||||||
|
"substring",
|
||||||
|
"textlen",
|
||||||
|
"translate",
|
||||||
|
"trim",
|
||||||
|
"upper",
|
||||||
|
"cast",
|
||||||
|
"convert",
|
||||||
|
"to_char",
|
||||||
|
"to_date",
|
||||||
|
"to_number",
|
||||||
|
"json_array_length",
|
||||||
|
"json_extract_array_element_text",
|
||||||
|
"json_extract_path_text",
|
||||||
|
"current_setting",
|
||||||
|
"pg_cancel_backend",
|
||||||
|
"pg_terminate_backend",
|
||||||
|
"set_config",
|
||||||
|
"current_database",
|
||||||
|
"current_user",
|
||||||
|
"current_user_id",
|
||||||
|
"pg_backend_pid",
|
||||||
|
"pg_last_copy_count",
|
||||||
|
"pg_last_copy_id",
|
||||||
|
"pg_last_query_id",
|
||||||
|
"pg_last_unload_count",
|
||||||
|
"session_user",
|
||||||
|
"slice_num",
|
||||||
|
"user",
|
||||||
|
"version",
|
||||||
|
"abbrev",
|
||||||
|
"acosd",
|
||||||
|
"any",
|
||||||
|
"area",
|
||||||
|
"array_agg",
|
||||||
|
"array_append",
|
||||||
|
"array_cat",
|
||||||
|
"array_dims",
|
||||||
|
"array_fill",
|
||||||
|
"array_length",
|
||||||
|
"array_lower",
|
||||||
|
"array_ndims",
|
||||||
|
"array_position",
|
||||||
|
"array_positions",
|
||||||
|
"array_prepend",
|
||||||
|
"array_remove",
|
||||||
|
"array_replace",
|
||||||
|
"array_to_json",
|
||||||
|
"array_to_string",
|
||||||
|
"array_to_tsvector",
|
||||||
|
"array_upper",
|
||||||
|
"asind",
|
||||||
|
"atan2d",
|
||||||
|
"atand",
|
||||||
|
"bit",
|
||||||
|
"bit_length",
|
||||||
|
"bound_box",
|
||||||
|
"box",
|
||||||
|
"brin_summarize_new_values",
|
||||||
|
"broadcast",
|
||||||
|
"cardinality",
|
||||||
|
"center",
|
||||||
|
"circle",
|
||||||
|
"clock_timestamp",
|
||||||
|
"col_description",
|
||||||
|
"concat_ws",
|
||||||
|
"convert_from",
|
||||||
|
"convert_to",
|
||||||
|
"corr",
|
||||||
|
"cosd",
|
||||||
|
"cotd",
|
||||||
|
"covar_pop",
|
||||||
|
"covar_samp",
|
||||||
|
"current_catalog",
|
||||||
|
"current_query",
|
||||||
|
"current_role",
|
||||||
|
"currval",
|
||||||
|
"cursor_to_xml",
|
||||||
|
"diameter",
|
||||||
|
"div",
|
||||||
|
"encode",
|
||||||
|
"enum_first",
|
||||||
|
"enum_last",
|
||||||
|
"enum_range",
|
||||||
|
"every",
|
||||||
|
"family",
|
||||||
|
"format",
|
||||||
|
"format_type",
|
||||||
|
"generate_series",
|
||||||
|
"generate_subscripts",
|
||||||
|
"get_current_ts_config",
|
||||||
|
"gin_clean_pending_list",
|
||||||
|
"grouping",
|
||||||
|
"has_any_column_privilege",
|
||||||
|
"has_column_privilege",
|
||||||
|
"has_foreign_data_wrapper_privilege",
|
||||||
|
"has_function_privilege",
|
||||||
|
"has_language_privilege",
|
||||||
|
"has_sequence_privilege",
|
||||||
|
"has_server_privilege",
|
||||||
|
"has_tablespace_privilege",
|
||||||
|
"has_type_privilege",
|
||||||
|
"height",
|
||||||
|
"host",
|
||||||
|
"hostmask",
|
||||||
|
"inet_client_addr",
|
||||||
|
"inet_client_port",
|
||||||
|
"inet_merge",
|
||||||
|
"inet_same_family",
|
||||||
|
"inet_server_addr",
|
||||||
|
"inet_server_port",
|
||||||
|
"isclosed",
|
||||||
|
"isempty",
|
||||||
|
"isopen",
|
||||||
|
"json_agg",
|
||||||
|
"json_object",
|
||||||
|
"json_object_agg",
|
||||||
|
"json_populate_record",
|
||||||
|
"json_populate_recordset",
|
||||||
|
"json_to_record",
|
||||||
|
"json_to_recordset",
|
||||||
|
"jsonb_agg",
|
||||||
|
"jsonb_object_agg",
|
||||||
|
"justify_days",
|
||||||
|
"justify_hours",
|
||||||
|
"justify_interval",
|
||||||
|
"lastval",
|
||||||
|
"left",
|
||||||
|
"line",
|
||||||
|
"localtimestamp",
|
||||||
|
"lower_inc",
|
||||||
|
"lower_inf",
|
||||||
|
"lpad",
|
||||||
|
"lseg",
|
||||||
|
"make_date",
|
||||||
|
"make_interval",
|
||||||
|
"make_time",
|
||||||
|
"make_timestamp",
|
||||||
|
"make_timestamptz",
|
||||||
|
"masklen",
|
||||||
|
"mode",
|
||||||
|
"netmask",
|
||||||
|
"network",
|
||||||
|
"nextval",
|
||||||
|
"npoints",
|
||||||
|
"num_nonnulls",
|
||||||
|
"num_nulls",
|
||||||
|
"numnode",
|
||||||
|
"obj_description",
|
||||||
|
"overlay",
|
||||||
|
"parse_ident",
|
||||||
|
"path",
|
||||||
|
"pclose",
|
||||||
|
"percentile_disc",
|
||||||
|
"pg_advisory_lock",
|
||||||
|
"pg_advisory_lock_shared",
|
||||||
|
"pg_advisory_unlock",
|
||||||
|
"pg_advisory_unlock_all",
|
||||||
|
"pg_advisory_unlock_shared",
|
||||||
|
"pg_advisory_xact_lock",
|
||||||
|
"pg_advisory_xact_lock_shared",
|
||||||
|
"pg_backup_start_time",
|
||||||
|
"pg_blocking_pids",
|
||||||
|
"pg_client_encoding",
|
||||||
|
"pg_collation_is_visible",
|
||||||
|
"pg_column_size",
|
||||||
|
"pg_conf_load_time",
|
||||||
|
"pg_control_checkpoint",
|
||||||
|
"pg_control_init",
|
||||||
|
"pg_control_recovery",
|
||||||
|
"pg_control_system",
|
||||||
|
"pg_conversion_is_visible",
|
||||||
|
"pg_create_logical_replication_slot",
|
||||||
|
"pg_create_physical_replication_slot",
|
||||||
|
"pg_create_restore_point",
|
||||||
|
"pg_current_xlog_flush_location",
|
||||||
|
"pg_current_xlog_insert_location",
|
||||||
|
"pg_current_xlog_location",
|
||||||
|
"pg_database_size",
|
||||||
|
"pg_describe_object",
|
||||||
|
"pg_drop_replication_slot",
|
||||||
|
"pg_export_snapshot",
|
||||||
|
"pg_filenode_relation",
|
||||||
|
"pg_function_is_visible",
|
||||||
|
"pg_get_constraintdef",
|
||||||
|
"pg_get_expr",
|
||||||
|
"pg_get_function_arguments",
|
||||||
|
"pg_get_function_identity_arguments",
|
||||||
|
"pg_get_function_result",
|
||||||
|
"pg_get_functiondef",
|
||||||
|
"pg_get_indexdef",
|
||||||
|
"pg_get_keywords",
|
||||||
|
"pg_get_object_address",
|
||||||
|
"pg_get_owned_sequence",
|
||||||
|
"pg_get_ruledef",
|
||||||
|
"pg_get_serial_sequence",
|
||||||
|
"pg_get_triggerdef",
|
||||||
|
"pg_get_userbyid",
|
||||||
|
"pg_get_viewdef",
|
||||||
|
"pg_has_role",
|
||||||
|
"pg_identify_object",
|
||||||
|
"pg_identify_object_as_address",
|
||||||
|
"pg_index_column_has_property",
|
||||||
|
"pg_index_has_property",
|
||||||
|
"pg_indexam_has_property",
|
||||||
|
"pg_indexes_size",
|
||||||
|
"pg_is_in_backup",
|
||||||
|
"pg_is_in_recovery",
|
||||||
|
"pg_is_other_temp_schema",
|
||||||
|
"pg_is_xlog_replay_paused",
|
||||||
|
"pg_last_committed_xact",
|
||||||
|
"pg_last_xact_replay_timestamp",
|
||||||
|
"pg_last_xlog_receive_location",
|
||||||
|
"pg_last_xlog_replay_location",
|
||||||
|
"pg_listening_channels",
|
||||||
|
"pg_logical_emit_message",
|
||||||
|
"pg_logical_slot_get_binary_changes",
|
||||||
|
"pg_logical_slot_get_changes",
|
||||||
|
"pg_logical_slot_peek_binary_changes",
|
||||||
|
"pg_logical_slot_peek_changes",
|
||||||
|
"pg_ls_dir",
|
||||||
|
"pg_my_temp_schema",
|
||||||
|
"pg_notification_queue_usage",
|
||||||
|
"pg_opclass_is_visible",
|
||||||
|
"pg_operator_is_visible",
|
||||||
|
"pg_opfamily_is_visible",
|
||||||
|
"pg_options_to_table",
|
||||||
|
"pg_postmaster_start_time",
|
||||||
|
"pg_read_binary_file",
|
||||||
|
"pg_read_file",
|
||||||
|
"pg_relation_filenode",
|
||||||
|
"pg_relation_filepath",
|
||||||
|
"pg_relation_size",
|
||||||
|
"pg_reload_conf",
|
||||||
|
"pg_replication_origin_create",
|
||||||
|
"pg_replication_origin_drop",
|
||||||
|
"pg_replication_origin_oid",
|
||||||
|
"pg_replication_origin_progress",
|
||||||
|
"pg_replication_origin_session_is_setup",
|
||||||
|
"pg_replication_origin_session_progress",
|
||||||
|
"pg_replication_origin_session_reset",
|
||||||
|
"pg_replication_origin_session_setup",
|
||||||
|
"pg_replication_origin_xact_reset",
|
||||||
|
"pg_replication_origin_xact_setup",
|
||||||
|
"pg_rotate_logfile",
|
||||||
|
"pg_size_bytes",
|
||||||
|
"pg_size_pretty",
|
||||||
|
"pg_sleep",
|
||||||
|
"pg_sleep_for",
|
||||||
|
"pg_sleep_until",
|
||||||
|
"pg_start_backup",
|
||||||
|
"pg_stat_file",
|
||||||
|
"pg_stop_backup",
|
||||||
|
"pg_switch_xlog",
|
||||||
|
"pg_table_is_visible",
|
||||||
|
"pg_table_size",
|
||||||
|
"pg_tablespace_databases",
|
||||||
|
"pg_tablespace_location",
|
||||||
|
"pg_tablespace_size",
|
||||||
|
"pg_total_relation_size",
|
||||||
|
"pg_trigger_depth",
|
||||||
|
"pg_try_advisory_lock",
|
||||||
|
"pg_try_advisory_lock_shared",
|
||||||
|
"pg_try_advisory_xact_lock",
|
||||||
|
"pg_try_advisory_xact_lock_shared",
|
||||||
|
"pg_ts_config_is_visible",
|
||||||
|
"pg_ts_dict_is_visible",
|
||||||
|
"pg_ts_parser_is_visible",
|
||||||
|
"pg_ts_template_is_visible",
|
||||||
|
"pg_type_is_visible",
|
||||||
|
"pg_typeof",
|
||||||
|
"pg_xact_commit_timestamp",
|
||||||
|
"pg_xlog_location_diff",
|
||||||
|
"pg_xlog_replay_pause",
|
||||||
|
"pg_xlog_replay_resume",
|
||||||
|
"pg_xlogfile_name",
|
||||||
|
"pg_xlogfile_name_offset",
|
||||||
|
"phraseto_tsquery",
|
||||||
|
"plainto_tsquery",
|
||||||
|
"point",
|
||||||
|
"polygon",
|
||||||
|
"popen",
|
||||||
|
"pqserverversion",
|
||||||
|
"query_to_xml",
|
||||||
|
"querytree",
|
||||||
|
"quote_nullable",
|
||||||
|
"radius",
|
||||||
|
"range_merge",
|
||||||
|
"regexp_matches",
|
||||||
|
"regexp_split_to_array",
|
||||||
|
"regexp_split_to_table",
|
||||||
|
"regr_avgx",
|
||||||
|
"regr_avgy",
|
||||||
|
"regr_count",
|
||||||
|
"regr_intercept",
|
||||||
|
"regr_r2",
|
||||||
|
"regr_slope",
|
||||||
|
"regr_sxx",
|
||||||
|
"regr_sxy",
|
||||||
|
"regr_syy",
|
||||||
|
"right",
|
||||||
|
"row_security_active",
|
||||||
|
"row_to_json",
|
||||||
|
"rpad",
|
||||||
|
"scale",
|
||||||
|
"set_masklen",
|
||||||
|
"setseed",
|
||||||
|
"setval",
|
||||||
|
"setweight",
|
||||||
|
"shobj_description",
|
||||||
|
"sind",
|
||||||
|
"sprintf",
|
||||||
|
"statement_timestamp",
|
||||||
|
"stddev",
|
||||||
|
"string_agg",
|
||||||
|
"string_to_array",
|
||||||
|
"strip",
|
||||||
|
"substr",
|
||||||
|
"table_to_xml",
|
||||||
|
"table_to_xml_and_xmlschema",
|
||||||
|
"tand",
|
||||||
|
"text",
|
||||||
|
"to_json",
|
||||||
|
"to_regclass",
|
||||||
|
"to_regnamespace",
|
||||||
|
"to_regoper",
|
||||||
|
"to_regoperator",
|
||||||
|
"to_regproc",
|
||||||
|
"to_regprocedure",
|
||||||
|
"to_regrole",
|
||||||
|
"to_regtype",
|
||||||
|
"to_tsquery",
|
||||||
|
"to_tsvector",
|
||||||
|
"transaction_timestamp",
|
||||||
|
"ts_debug",
|
||||||
|
"ts_delete",
|
||||||
|
"ts_filter",
|
||||||
|
"ts_headline",
|
||||||
|
"ts_lexize",
|
||||||
|
"ts_parse",
|
||||||
|
"ts_rank",
|
||||||
|
"ts_rank_cd",
|
||||||
|
"ts_rewrite",
|
||||||
|
"ts_stat",
|
||||||
|
"ts_token_type",
|
||||||
|
"tsquery_phrase",
|
||||||
|
"tsvector_to_array",
|
||||||
|
"tsvector_update_trigger",
|
||||||
|
"tsvector_update_trigger_column",
|
||||||
|
"txid_current",
|
||||||
|
"txid_current_snapshot",
|
||||||
|
"txid_snapshot_xip",
|
||||||
|
"txid_snapshot_xmax",
|
||||||
|
"txid_snapshot_xmin",
|
||||||
|
"txid_visible_in_snapshot",
|
||||||
|
"unnest",
|
||||||
|
"upper_inc",
|
||||||
|
"upper_inf",
|
||||||
|
"variance",
|
||||||
|
"width",
|
||||||
|
"width_bucket",
|
||||||
|
"xml_is_well_formed",
|
||||||
|
"xml_is_well_formed_content",
|
||||||
|
"xml_is_well_formed_document",
|
||||||
|
"xmlagg",
|
||||||
|
"xmlcomment",
|
||||||
|
"xmlconcat",
|
||||||
|
"xmlelement",
|
||||||
|
"xmlexists",
|
||||||
|
"xmlforest",
|
||||||
|
"xmlparse",
|
||||||
|
"xmlpi",
|
||||||
|
"xmlroot",
|
||||||
|
"xmlserialize",
|
||||||
|
"xpath",
|
||||||
|
"xpath_exists"
|
||||||
|
],
|
||||||
|
builtinVariables: [],
|
||||||
|
pseudoColumns: [],
|
||||||
|
tokenizer: {
|
||||||
|
root: [
|
||||||
|
{ include: "@comments" },
|
||||||
|
{ include: "@whitespace" },
|
||||||
|
{ include: "@pseudoColumns" },
|
||||||
|
{ include: "@numbers" },
|
||||||
|
{ include: "@strings" },
|
||||||
|
{ include: "@complexIdentifiers" },
|
||||||
|
{ include: "@scopes" },
|
||||||
|
[/[;,.]/, "delimiter"],
|
||||||
|
[/[()]/, "@brackets"],
|
||||||
|
[
|
||||||
|
/[\w@#$]+/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"@keywords": "keyword",
|
||||||
|
"@operators": "operator",
|
||||||
|
"@builtinVariables": "predefined",
|
||||||
|
"@builtinFunctions": "predefined",
|
||||||
|
"@default": "identifier"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/[<>=!%&+\-*/|~^]/, "operator"]
|
||||||
|
],
|
||||||
|
whitespace: [[/\s+/, "white"]],
|
||||||
|
comments: [
|
||||||
|
[/--+.*/, "comment"],
|
||||||
|
[/\/\*/, { token: "comment.quote", next: "@comment" }]
|
||||||
|
],
|
||||||
|
comment: [
|
||||||
|
[/[^*/]+/, "comment"],
|
||||||
|
[/\*\//, { token: "comment.quote", next: "@pop" }],
|
||||||
|
[/./, "comment"]
|
||||||
|
],
|
||||||
|
pseudoColumns: [
|
||||||
|
[
|
||||||
|
/[$][A-Za-z_][\w@#$]*/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"@pseudoColumns": "predefined",
|
||||||
|
"@default": "identifier"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
],
|
||||||
|
numbers: [
|
||||||
|
[/0[xX][0-9a-fA-F]*/, "number"],
|
||||||
|
[/[$][+-]*\d*(\.\d*)?/, "number"],
|
||||||
|
[/((\d+(\.\d*)?)|(\.\d+))([eE][\-+]?\d+)?/, "number"]
|
||||||
|
],
|
||||||
|
strings: [[/'/, { token: "string", next: "@string" }]],
|
||||||
|
string: [
|
||||||
|
[/[^']+/, "string"],
|
||||||
|
[/''/, "string"],
|
||||||
|
[/'/, { token: "string", next: "@pop" }]
|
||||||
|
],
|
||||||
|
complexIdentifiers: [[/"/, { token: "identifier.quote", next: "@quotedIdentifier" }]],
|
||||||
|
quotedIdentifier: [
|
||||||
|
[/[^"]+/, "identifier"],
|
||||||
|
[/""/, "identifier"],
|
||||||
|
[/"/, { token: "identifier.quote", next: "@pop" }]
|
||||||
|
],
|
||||||
|
scopes: []
|
||||||
|
}
|
||||||
|
};
|
||||||
|
return __toCommonJS(redshift_exports);
|
||||||
|
})();
|
||||||
|
return moduleExports;
|
||||||
|
});
|
||||||
@@ -0,0 +1,194 @@
|
|||||||
|
/*!-----------------------------------------------------------------------------
|
||||||
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||||
|
* Version: 0.33.0(4b1abad427e58dbedc1215d99a0902ffc885fcd4)
|
||||||
|
* Released under the MIT license
|
||||||
|
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
||||||
|
*-----------------------------------------------------------------------------*/
|
||||||
|
define("vs/basic-languages/restructuredtext/restructuredtext", ["require"],(require)=>{
|
||||||
|
var moduleExports = (() => {
|
||||||
|
var __defProp = Object.defineProperty;
|
||||||
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||||
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||||
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||||
|
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
||||||
|
var __export = (target, all) => {
|
||||||
|
for (var name in all)
|
||||||
|
__defProp(target, name, { get: all[name], enumerable: true });
|
||||||
|
};
|
||||||
|
var __reExport = (target, module, copyDefault, desc) => {
|
||||||
|
if (module && typeof module === "object" || typeof module === "function") {
|
||||||
|
for (let key of __getOwnPropNames(module))
|
||||||
|
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
||||||
|
__defProp(target, key, { get: () => module[key], enumerable: !(desc = __getOwnPropDesc(module, key)) || desc.enumerable });
|
||||||
|
}
|
||||||
|
return target;
|
||||||
|
};
|
||||||
|
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
||||||
|
return (module, temp) => {
|
||||||
|
return cache && cache.get(module) || (temp = __reExport(__markAsModule({}), module, 1), cache && cache.set(module, temp), temp);
|
||||||
|
};
|
||||||
|
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
||||||
|
|
||||||
|
// src/basic-languages/restructuredtext/restructuredtext.ts
|
||||||
|
var restructuredtext_exports = {};
|
||||||
|
__export(restructuredtext_exports, {
|
||||||
|
conf: () => conf,
|
||||||
|
language: () => language
|
||||||
|
});
|
||||||
|
var conf = {
|
||||||
|
brackets: [
|
||||||
|
["{", "}"],
|
||||||
|
["[", "]"],
|
||||||
|
["(", ")"]
|
||||||
|
],
|
||||||
|
autoClosingPairs: [
|
||||||
|
{ open: "{", close: "}" },
|
||||||
|
{ open: "[", close: "]" },
|
||||||
|
{ open: "(", close: ")" },
|
||||||
|
{ open: "<", close: ">", notIn: ["string"] }
|
||||||
|
],
|
||||||
|
surroundingPairs: [
|
||||||
|
{ open: "(", close: ")" },
|
||||||
|
{ open: "[", close: "]" },
|
||||||
|
{ open: "`", close: "`" }
|
||||||
|
],
|
||||||
|
folding: {
|
||||||
|
markers: {
|
||||||
|
start: new RegExp("^\\s*<!--\\s*#?region\\b.*-->"),
|
||||||
|
end: new RegExp("^\\s*<!--\\s*#?endregion\\b.*-->")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
var language = {
|
||||||
|
defaultToken: "",
|
||||||
|
tokenPostfix: ".rst",
|
||||||
|
control: /[\\`*_\[\]{}()#+\-\.!]/,
|
||||||
|
escapes: /\\(?:@control)/,
|
||||||
|
empty: [
|
||||||
|
"area",
|
||||||
|
"base",
|
||||||
|
"basefont",
|
||||||
|
"br",
|
||||||
|
"col",
|
||||||
|
"frame",
|
||||||
|
"hr",
|
||||||
|
"img",
|
||||||
|
"input",
|
||||||
|
"isindex",
|
||||||
|
"link",
|
||||||
|
"meta",
|
||||||
|
"param"
|
||||||
|
],
|
||||||
|
alphanumerics: /[A-Za-z0-9]/,
|
||||||
|
simpleRefNameWithoutBq: /(?:@alphanumerics[-_+:.]*@alphanumerics)+|(?:@alphanumerics+)/,
|
||||||
|
simpleRefName: /(?:`@phrase`|@simpleRefNameWithoutBq)/,
|
||||||
|
phrase: /@simpleRefNameWithoutBq(?:\s@simpleRefNameWithoutBq)*/,
|
||||||
|
citationName: /[A-Za-z][A-Za-z0-9-_.]*/,
|
||||||
|
blockLiteralStart: /(?:[!"#$%&'()*+,-./:;<=>?@\[\]^_`{|}~]|[\s])/,
|
||||||
|
precedingChars: /(?:[ -:/'"<([{])/,
|
||||||
|
followingChars: /(?:[ -.,:;!?/'")\]}>]|$)/,
|
||||||
|
punctuation: /(=|-|~|`|#|"|\^|\+|\*|:|\.|'|_|\+)/,
|
||||||
|
tokenizer: {
|
||||||
|
root: [
|
||||||
|
[/^(@punctuation{3,}$){1,1}?/, "keyword"],
|
||||||
|
[/^\s*([\*\-+‣•]|[a-zA-Z0-9]+\.|\([a-zA-Z0-9]+\)|[a-zA-Z0-9]+\))\s/, "keyword"],
|
||||||
|
[/([ ]::)\s*$/, "keyword", "@blankLineOfLiteralBlocks"],
|
||||||
|
[/(::)\s*$/, "keyword", "@blankLineOfLiteralBlocks"],
|
||||||
|
{ include: "@tables" },
|
||||||
|
{ include: "@explicitMarkupBlocks" },
|
||||||
|
{ include: "@inlineMarkup" }
|
||||||
|
],
|
||||||
|
explicitMarkupBlocks: [
|
||||||
|
{ include: "@citations" },
|
||||||
|
{ include: "@footnotes" },
|
||||||
|
[
|
||||||
|
/^(\.\.\s)(@simpleRefName)(::\s)(.*)$/,
|
||||||
|
[{ token: "", next: "subsequentLines" }, "keyword", "", ""]
|
||||||
|
],
|
||||||
|
[
|
||||||
|
/^(\.\.)(\s+)(_)(@simpleRefName)(:)(\s+)(.*)/,
|
||||||
|
[{ token: "", next: "hyperlinks" }, "", "", "string.link", "", "", "string.link"]
|
||||||
|
],
|
||||||
|
[
|
||||||
|
/^((?:(?:\.\.)(?:\s+))?)(__)(:)(\s+)(.*)/,
|
||||||
|
[{ token: "", next: "subsequentLines" }, "", "", "", "string.link"]
|
||||||
|
],
|
||||||
|
[/^(__\s+)(.+)/, ["", "string.link"]],
|
||||||
|
[
|
||||||
|
/^(\.\.)( \|)([^| ]+[^|]*[^| ]*)(\| )(@simpleRefName)(:: .*)/,
|
||||||
|
[{ token: "", next: "subsequentLines" }, "", "string.link", "", "keyword", ""],
|
||||||
|
"@rawBlocks"
|
||||||
|
],
|
||||||
|
[/(\|)([^| ]+[^|]*[^| ]*)(\|_{0,2})/, ["", "string.link", ""]],
|
||||||
|
[/^(\.\.)([ ].*)$/, [{ token: "", next: "@comments" }, "comment"]]
|
||||||
|
],
|
||||||
|
inlineMarkup: [
|
||||||
|
{ include: "@citationsReference" },
|
||||||
|
{ include: "@footnotesReference" },
|
||||||
|
[/(@simpleRefName)(_{1,2})/, ["string.link", ""]],
|
||||||
|
[/(`)([^<`]+\s+)(<)(.*)(>)(`)(_)/, ["", "string.link", "", "string.link", "", "", ""]],
|
||||||
|
[/\*\*([^\\*]|\*(?!\*))+\*\*/, "strong"],
|
||||||
|
[/\*[^*]+\*/, "emphasis"],
|
||||||
|
[/(``)((?:[^`]|\`(?!`))+)(``)/, ["", "keyword", ""]],
|
||||||
|
[/(__\s+)(.+)/, ["", "keyword"]],
|
||||||
|
[/(:)((?:@simpleRefNameWithoutBq)?)(:`)([^`]+)(`)/, ["", "keyword", "", "", ""]],
|
||||||
|
[/(`)([^`]+)(`:)((?:@simpleRefNameWithoutBq)?)(:)/, ["", "", "", "keyword", ""]],
|
||||||
|
[/(`)([^`]+)(`)/, ""],
|
||||||
|
[/(_`)(@phrase)(`)/, ["", "string.link", ""]]
|
||||||
|
],
|
||||||
|
citations: [
|
||||||
|
[
|
||||||
|
/^(\.\.\s+\[)((?:@citationName))(\]\s+)(.*)/,
|
||||||
|
[{ token: "", next: "@subsequentLines" }, "string.link", "", ""]
|
||||||
|
]
|
||||||
|
],
|
||||||
|
citationsReference: [[/(\[)(@citationName)(\]_)/, ["", "string.link", ""]]],
|
||||||
|
footnotes: [
|
||||||
|
[
|
||||||
|
/^(\.\.\s+\[)((?:[0-9]+))(\]\s+.*)/,
|
||||||
|
[{ token: "", next: "@subsequentLines" }, "string.link", ""]
|
||||||
|
],
|
||||||
|
[
|
||||||
|
/^(\.\.\s+\[)((?:#@simpleRefName?))(\]\s+)(.*)/,
|
||||||
|
[{ token: "", next: "@subsequentLines" }, "string.link", "", ""]
|
||||||
|
],
|
||||||
|
[
|
||||||
|
/^(\.\.\s+\[)((?:\*))(\]\s+)(.*)/,
|
||||||
|
[{ token: "", next: "@subsequentLines" }, "string.link", "", ""]
|
||||||
|
]
|
||||||
|
],
|
||||||
|
footnotesReference: [
|
||||||
|
[/(\[)([0-9]+)(\])(_)/, ["", "string.link", "", ""]],
|
||||||
|
[/(\[)(#@simpleRefName?)(\])(_)/, ["", "string.link", "", ""]],
|
||||||
|
[/(\[)(\*)(\])(_)/, ["", "string.link", "", ""]]
|
||||||
|
],
|
||||||
|
blankLineOfLiteralBlocks: [
|
||||||
|
[/^$/, "", "@subsequentLinesOfLiteralBlocks"],
|
||||||
|
[/^.*$/, "", "@pop"]
|
||||||
|
],
|
||||||
|
subsequentLinesOfLiteralBlocks: [
|
||||||
|
[/(@blockLiteralStart+)(.*)/, ["keyword", ""]],
|
||||||
|
[/^(?!blockLiteralStart)/, "", "@popall"]
|
||||||
|
],
|
||||||
|
subsequentLines: [
|
||||||
|
[/^[\s]+.*/, ""],
|
||||||
|
[/^(?!\s)/, "", "@pop"]
|
||||||
|
],
|
||||||
|
hyperlinks: [
|
||||||
|
[/^[\s]+.*/, "string.link"],
|
||||||
|
[/^(?!\s)/, "", "@pop"]
|
||||||
|
],
|
||||||
|
comments: [
|
||||||
|
[/^[\s]+.*/, "comment"],
|
||||||
|
[/^(?!\s)/, "", "@pop"]
|
||||||
|
],
|
||||||
|
tables: [
|
||||||
|
[/\+-[+-]+/, "keyword"],
|
||||||
|
[/\+=[+=]+/, "keyword"]
|
||||||
|
]
|
||||||
|
}
|
||||||
|
};
|
||||||
|
return __toCommonJS(restructuredtext_exports);
|
||||||
|
})();
|
||||||
|
return moduleExports;
|
||||||
|
});
|
||||||
@@ -0,0 +1,476 @@
|
|||||||
|
/*!-----------------------------------------------------------------------------
|
||||||
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||||
|
* Version: 0.33.0(4b1abad427e58dbedc1215d99a0902ffc885fcd4)
|
||||||
|
* Released under the MIT license
|
||||||
|
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
||||||
|
*-----------------------------------------------------------------------------*/
|
||||||
|
define("vs/basic-languages/ruby/ruby", ["require"],(require)=>{
|
||||||
|
var moduleExports = (() => {
|
||||||
|
var __defProp = Object.defineProperty;
|
||||||
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||||
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||||
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||||
|
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
||||||
|
var __export = (target, all) => {
|
||||||
|
for (var name in all)
|
||||||
|
__defProp(target, name, { get: all[name], enumerable: true });
|
||||||
|
};
|
||||||
|
var __reExport = (target, module, copyDefault, desc) => {
|
||||||
|
if (module && typeof module === "object" || typeof module === "function") {
|
||||||
|
for (let key of __getOwnPropNames(module))
|
||||||
|
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
||||||
|
__defProp(target, key, { get: () => module[key], enumerable: !(desc = __getOwnPropDesc(module, key)) || desc.enumerable });
|
||||||
|
}
|
||||||
|
return target;
|
||||||
|
};
|
||||||
|
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
||||||
|
return (module, temp) => {
|
||||||
|
return cache && cache.get(module) || (temp = __reExport(__markAsModule({}), module, 1), cache && cache.set(module, temp), temp);
|
||||||
|
};
|
||||||
|
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
||||||
|
|
||||||
|
// src/basic-languages/ruby/ruby.ts
|
||||||
|
var ruby_exports = {};
|
||||||
|
__export(ruby_exports, {
|
||||||
|
conf: () => conf,
|
||||||
|
language: () => language
|
||||||
|
});
|
||||||
|
var conf = {
|
||||||
|
comments: {
|
||||||
|
lineComment: "#",
|
||||||
|
blockComment: ["=begin", "=end"]
|
||||||
|
},
|
||||||
|
brackets: [
|
||||||
|
["(", ")"],
|
||||||
|
["{", "}"],
|
||||||
|
["[", "]"]
|
||||||
|
],
|
||||||
|
autoClosingPairs: [
|
||||||
|
{ open: "{", close: "}" },
|
||||||
|
{ open: "[", close: "]" },
|
||||||
|
{ open: "(", close: ")" },
|
||||||
|
{ open: '"', close: '"' },
|
||||||
|
{ open: "'", close: "'" }
|
||||||
|
],
|
||||||
|
surroundingPairs: [
|
||||||
|
{ open: "{", close: "}" },
|
||||||
|
{ open: "[", close: "]" },
|
||||||
|
{ open: "(", close: ")" },
|
||||||
|
{ open: '"', close: '"' },
|
||||||
|
{ open: "'", close: "'" }
|
||||||
|
],
|
||||||
|
indentationRules: {
|
||||||
|
increaseIndentPattern: new RegExp(`^\\s*((begin|class|(private|protected)\\s+def|def|else|elsif|ensure|for|if|module|rescue|unless|until|when|while|case)|([^#]*\\sdo\\b)|([^#]*=\\s*(case|if|unless)))\\b([^#\\{;]|("|'|/).*\\4)*(#.*)?$`),
|
||||||
|
decreaseIndentPattern: new RegExp("^\\s*([}\\]]([,)]?\\s*(#|$)|\\.[a-zA-Z_]\\w*\\b)|(end|rescue|ensure|else|elsif|when)\\b)")
|
||||||
|
}
|
||||||
|
};
|
||||||
|
var language = {
|
||||||
|
tokenPostfix: ".ruby",
|
||||||
|
keywords: [
|
||||||
|
"__LINE__",
|
||||||
|
"__ENCODING__",
|
||||||
|
"__FILE__",
|
||||||
|
"BEGIN",
|
||||||
|
"END",
|
||||||
|
"alias",
|
||||||
|
"and",
|
||||||
|
"begin",
|
||||||
|
"break",
|
||||||
|
"case",
|
||||||
|
"class",
|
||||||
|
"def",
|
||||||
|
"defined?",
|
||||||
|
"do",
|
||||||
|
"else",
|
||||||
|
"elsif",
|
||||||
|
"end",
|
||||||
|
"ensure",
|
||||||
|
"for",
|
||||||
|
"false",
|
||||||
|
"if",
|
||||||
|
"in",
|
||||||
|
"module",
|
||||||
|
"next",
|
||||||
|
"nil",
|
||||||
|
"not",
|
||||||
|
"or",
|
||||||
|
"redo",
|
||||||
|
"rescue",
|
||||||
|
"retry",
|
||||||
|
"return",
|
||||||
|
"self",
|
||||||
|
"super",
|
||||||
|
"then",
|
||||||
|
"true",
|
||||||
|
"undef",
|
||||||
|
"unless",
|
||||||
|
"until",
|
||||||
|
"when",
|
||||||
|
"while",
|
||||||
|
"yield"
|
||||||
|
],
|
||||||
|
keywordops: ["::", "..", "...", "?", ":", "=>"],
|
||||||
|
builtins: [
|
||||||
|
"require",
|
||||||
|
"public",
|
||||||
|
"private",
|
||||||
|
"include",
|
||||||
|
"extend",
|
||||||
|
"attr_reader",
|
||||||
|
"protected",
|
||||||
|
"private_class_method",
|
||||||
|
"protected_class_method",
|
||||||
|
"new"
|
||||||
|
],
|
||||||
|
declarations: [
|
||||||
|
"module",
|
||||||
|
"class",
|
||||||
|
"def",
|
||||||
|
"case",
|
||||||
|
"do",
|
||||||
|
"begin",
|
||||||
|
"for",
|
||||||
|
"if",
|
||||||
|
"while",
|
||||||
|
"until",
|
||||||
|
"unless"
|
||||||
|
],
|
||||||
|
linedecls: ["def", "case", "do", "begin", "for", "if", "while", "until", "unless"],
|
||||||
|
operators: [
|
||||||
|
"^",
|
||||||
|
"&",
|
||||||
|
"|",
|
||||||
|
"<=>",
|
||||||
|
"==",
|
||||||
|
"===",
|
||||||
|
"!~",
|
||||||
|
"=~",
|
||||||
|
">",
|
||||||
|
">=",
|
||||||
|
"<",
|
||||||
|
"<=",
|
||||||
|
"<<",
|
||||||
|
">>",
|
||||||
|
"+",
|
||||||
|
"-",
|
||||||
|
"*",
|
||||||
|
"/",
|
||||||
|
"%",
|
||||||
|
"**",
|
||||||
|
"~",
|
||||||
|
"+@",
|
||||||
|
"-@",
|
||||||
|
"[]",
|
||||||
|
"[]=",
|
||||||
|
"`",
|
||||||
|
"+=",
|
||||||
|
"-=",
|
||||||
|
"*=",
|
||||||
|
"**=",
|
||||||
|
"/=",
|
||||||
|
"^=",
|
||||||
|
"%=",
|
||||||
|
"<<=",
|
||||||
|
">>=",
|
||||||
|
"&=",
|
||||||
|
"&&=",
|
||||||
|
"||=",
|
||||||
|
"|="
|
||||||
|
],
|
||||||
|
brackets: [
|
||||||
|
{ open: "(", close: ")", token: "delimiter.parenthesis" },
|
||||||
|
{ open: "{", close: "}", token: "delimiter.curly" },
|
||||||
|
{ open: "[", close: "]", token: "delimiter.square" }
|
||||||
|
],
|
||||||
|
symbols: /[=><!~?:&|+\-*\/\^%\.]+/,
|
||||||
|
escape: /(?:[abefnrstv\\"'\n\r]|[0-7]{1,3}|x[0-9A-Fa-f]{1,2}|u[0-9A-Fa-f]{4})/,
|
||||||
|
escapes: /\\(?:C\-(@escape|.)|c(@escape|.)|@escape)/,
|
||||||
|
decpart: /\d(_?\d)*/,
|
||||||
|
decimal: /0|@decpart/,
|
||||||
|
delim: /[^a-zA-Z0-9\s\n\r]/,
|
||||||
|
heredelim: /(?:\w+|'[^']*'|"[^"]*"|`[^`]*`)/,
|
||||||
|
regexpctl: /[(){}\[\]\$\^|\-*+?\.]/,
|
||||||
|
regexpesc: /\\(?:[AzZbBdDfnrstvwWn0\\\/]|@regexpctl|c[A-Z]|x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4})?/,
|
||||||
|
tokenizer: {
|
||||||
|
root: [
|
||||||
|
[
|
||||||
|
/^(\s*)([a-z_]\w*[!?=]?)/,
|
||||||
|
[
|
||||||
|
"white",
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"for|until|while": {
|
||||||
|
token: "keyword.$2",
|
||||||
|
next: "@dodecl.$2"
|
||||||
|
},
|
||||||
|
"@declarations": {
|
||||||
|
token: "keyword.$2",
|
||||||
|
next: "@root.$2"
|
||||||
|
},
|
||||||
|
end: { token: "keyword.$S2", next: "@pop" },
|
||||||
|
"@keywords": "keyword",
|
||||||
|
"@builtins": "predefined",
|
||||||
|
"@default": "identifier"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
],
|
||||||
|
[
|
||||||
|
/[a-z_]\w*[!?=]?/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"if|unless|while|until": {
|
||||||
|
token: "keyword.$0x",
|
||||||
|
next: "@modifier.$0x"
|
||||||
|
},
|
||||||
|
for: { token: "keyword.$2", next: "@dodecl.$2" },
|
||||||
|
"@linedecls": { token: "keyword.$0", next: "@root.$0" },
|
||||||
|
end: { token: "keyword.$S2", next: "@pop" },
|
||||||
|
"@keywords": "keyword",
|
||||||
|
"@builtins": "predefined",
|
||||||
|
"@default": "identifier"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/[A-Z][\w]*[!?=]?/, "constructor.identifier"],
|
||||||
|
[/\$[\w]*/, "global.constant"],
|
||||||
|
[/@[\w]*/, "namespace.instance.identifier"],
|
||||||
|
[/@@@[\w]*/, "namespace.class.identifier"],
|
||||||
|
[/<<[-~](@heredelim).*/, { token: "string.heredoc.delimiter", next: "@heredoc.$1" }],
|
||||||
|
[/[ \t\r\n]+<<(@heredelim).*/, { token: "string.heredoc.delimiter", next: "@heredoc.$1" }],
|
||||||
|
[/^<<(@heredelim).*/, { token: "string.heredoc.delimiter", next: "@heredoc.$1" }],
|
||||||
|
{ include: "@whitespace" },
|
||||||
|
[/"/, { token: "string.d.delim", next: '@dstring.d."' }],
|
||||||
|
[/'/, { token: "string.sq.delim", next: "@sstring.sq" }],
|
||||||
|
[/%([rsqxwW]|Q?)/, { token: "@rematch", next: "pstring" }],
|
||||||
|
[/`/, { token: "string.x.delim", next: "@dstring.x.`" }],
|
||||||
|
[/:(\w|[$@])\w*[!?=]?/, "string.s"],
|
||||||
|
[/:"/, { token: "string.s.delim", next: '@dstring.s."' }],
|
||||||
|
[/:'/, { token: "string.s.delim", next: "@sstring.s" }],
|
||||||
|
[/\/(?=(\\\/|[^\/\n])+\/)/, { token: "regexp.delim", next: "@regexp" }],
|
||||||
|
[/[{}()\[\]]/, "@brackets"],
|
||||||
|
[
|
||||||
|
/@symbols/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"@keywordops": "keyword",
|
||||||
|
"@operators": "operator",
|
||||||
|
"@default": ""
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/[;,]/, "delimiter"],
|
||||||
|
[/0[xX][0-9a-fA-F](_?[0-9a-fA-F])*/, "number.hex"],
|
||||||
|
[/0[_oO][0-7](_?[0-7])*/, "number.octal"],
|
||||||
|
[/0[bB][01](_?[01])*/, "number.binary"],
|
||||||
|
[/0[dD]@decpart/, "number"],
|
||||||
|
[
|
||||||
|
/@decimal((\.@decpart)?([eE][\-+]?@decpart)?)/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
$1: "number.float",
|
||||||
|
"@default": "number"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
],
|
||||||
|
dodecl: [
|
||||||
|
[/^/, { token: "", switchTo: "@root.$S2" }],
|
||||||
|
[
|
||||||
|
/[a-z_]\w*[!?=]?/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
end: { token: "keyword.$S2", next: "@pop" },
|
||||||
|
do: { token: "keyword", switchTo: "@root.$S2" },
|
||||||
|
"@linedecls": {
|
||||||
|
token: "@rematch",
|
||||||
|
switchTo: "@root.$S2"
|
||||||
|
},
|
||||||
|
"@keywords": "keyword",
|
||||||
|
"@builtins": "predefined",
|
||||||
|
"@default": "identifier"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
{ include: "@root" }
|
||||||
|
],
|
||||||
|
modifier: [
|
||||||
|
[/^/, "", "@pop"],
|
||||||
|
[
|
||||||
|
/[a-z_]\w*[!?=]?/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
end: { token: "keyword.$S2", next: "@pop" },
|
||||||
|
"then|else|elsif|do": {
|
||||||
|
token: "keyword",
|
||||||
|
switchTo: "@root.$S2"
|
||||||
|
},
|
||||||
|
"@linedecls": {
|
||||||
|
token: "@rematch",
|
||||||
|
switchTo: "@root.$S2"
|
||||||
|
},
|
||||||
|
"@keywords": "keyword",
|
||||||
|
"@builtins": "predefined",
|
||||||
|
"@default": "identifier"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
{ include: "@root" }
|
||||||
|
],
|
||||||
|
sstring: [
|
||||||
|
[/[^\\']+/, "string.$S2"],
|
||||||
|
[/\\\\|\\'|\\$/, "string.$S2.escape"],
|
||||||
|
[/\\./, "string.$S2.invalid"],
|
||||||
|
[/'/, { token: "string.$S2.delim", next: "@pop" }]
|
||||||
|
],
|
||||||
|
dstring: [
|
||||||
|
[/[^\\`"#]+/, "string.$S2"],
|
||||||
|
[/#/, "string.$S2.escape", "@interpolated"],
|
||||||
|
[/\\$/, "string.$S2.escape"],
|
||||||
|
[/@escapes/, "string.$S2.escape"],
|
||||||
|
[/\\./, "string.$S2.escape.invalid"],
|
||||||
|
[
|
||||||
|
/[`"]/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"$#==$S3": { token: "string.$S2.delim", next: "@pop" },
|
||||||
|
"@default": "string.$S2"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
],
|
||||||
|
heredoc: [
|
||||||
|
[
|
||||||
|
/^(\s*)(@heredelim)$/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"$2==$S2": ["string.heredoc", { token: "string.heredoc.delimiter", next: "@pop" }],
|
||||||
|
"@default": ["string.heredoc", "string.heredoc"]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/.*/, "string.heredoc"]
|
||||||
|
],
|
||||||
|
interpolated: [
|
||||||
|
[/\$\w*/, "global.constant", "@pop"],
|
||||||
|
[/@\w*/, "namespace.class.identifier", "@pop"],
|
||||||
|
[/@@@\w*/, "namespace.instance.identifier", "@pop"],
|
||||||
|
[
|
||||||
|
/[{]/,
|
||||||
|
{
|
||||||
|
token: "string.escape.curly",
|
||||||
|
switchTo: "@interpolated_compound"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
["", "", "@pop"]
|
||||||
|
],
|
||||||
|
interpolated_compound: [
|
||||||
|
[/[}]/, { token: "string.escape.curly", next: "@pop" }],
|
||||||
|
{ include: "@root" }
|
||||||
|
],
|
||||||
|
pregexp: [
|
||||||
|
{ include: "@whitespace" },
|
||||||
|
[
|
||||||
|
/[^\(\{\[\\]/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"$#==$S3": { token: "regexp.delim", next: "@pop" },
|
||||||
|
"$#==$S2": { token: "regexp.delim", next: "@push" },
|
||||||
|
"~[)}\\]]": "@brackets.regexp.escape.control",
|
||||||
|
"~@regexpctl": "regexp.escape.control",
|
||||||
|
"@default": "regexp"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
{ include: "@regexcontrol" }
|
||||||
|
],
|
||||||
|
regexp: [
|
||||||
|
{ include: "@regexcontrol" },
|
||||||
|
[/[^\\\/]/, "regexp"],
|
||||||
|
["/[ixmp]*", { token: "regexp.delim" }, "@pop"]
|
||||||
|
],
|
||||||
|
regexcontrol: [
|
||||||
|
[
|
||||||
|
/(\{)(\d+(?:,\d*)?)(\})/,
|
||||||
|
[
|
||||||
|
"@brackets.regexp.escape.control",
|
||||||
|
"regexp.escape.control",
|
||||||
|
"@brackets.regexp.escape.control"
|
||||||
|
]
|
||||||
|
],
|
||||||
|
[
|
||||||
|
/(\[)(\^?)/,
|
||||||
|
["@brackets.regexp.escape.control", { token: "regexp.escape.control", next: "@regexrange" }]
|
||||||
|
],
|
||||||
|
[/(\()(\?[:=!])/, ["@brackets.regexp.escape.control", "regexp.escape.control"]],
|
||||||
|
[/\(\?#/, { token: "regexp.escape.control", next: "@regexpcomment" }],
|
||||||
|
[/[()]/, "@brackets.regexp.escape.control"],
|
||||||
|
[/@regexpctl/, "regexp.escape.control"],
|
||||||
|
[/\\$/, "regexp.escape"],
|
||||||
|
[/@regexpesc/, "regexp.escape"],
|
||||||
|
[/\\\./, "regexp.invalid"],
|
||||||
|
[/#/, "regexp.escape", "@interpolated"]
|
||||||
|
],
|
||||||
|
regexrange: [
|
||||||
|
[/-/, "regexp.escape.control"],
|
||||||
|
[/\^/, "regexp.invalid"],
|
||||||
|
[/\\$/, "regexp.escape"],
|
||||||
|
[/@regexpesc/, "regexp.escape"],
|
||||||
|
[/[^\]]/, "regexp"],
|
||||||
|
[/\]/, "@brackets.regexp.escape.control", "@pop"]
|
||||||
|
],
|
||||||
|
regexpcomment: [
|
||||||
|
[/[^)]+/, "comment"],
|
||||||
|
[/\)/, { token: "regexp.escape.control", next: "@pop" }]
|
||||||
|
],
|
||||||
|
pstring: [
|
||||||
|
[/%([qws])\(/, { token: "string.$1.delim", switchTo: "@qstring.$1.(.)" }],
|
||||||
|
[/%([qws])\[/, { token: "string.$1.delim", switchTo: "@qstring.$1.[.]" }],
|
||||||
|
[/%([qws])\{/, { token: "string.$1.delim", switchTo: "@qstring.$1.{.}" }],
|
||||||
|
[/%([qws])</, { token: "string.$1.delim", switchTo: "@qstring.$1.<.>" }],
|
||||||
|
[/%([qws])(@delim)/, { token: "string.$1.delim", switchTo: "@qstring.$1.$2.$2" }],
|
||||||
|
[/%r\(/, { token: "regexp.delim", switchTo: "@pregexp.(.)" }],
|
||||||
|
[/%r\[/, { token: "regexp.delim", switchTo: "@pregexp.[.]" }],
|
||||||
|
[/%r\{/, { token: "regexp.delim", switchTo: "@pregexp.{.}" }],
|
||||||
|
[/%r</, { token: "regexp.delim", switchTo: "@pregexp.<.>" }],
|
||||||
|
[/%r(@delim)/, { token: "regexp.delim", switchTo: "@pregexp.$1.$1" }],
|
||||||
|
[/%(x|W|Q?)\(/, { token: "string.$1.delim", switchTo: "@qqstring.$1.(.)" }],
|
||||||
|
[/%(x|W|Q?)\[/, { token: "string.$1.delim", switchTo: "@qqstring.$1.[.]" }],
|
||||||
|
[/%(x|W|Q?)\{/, { token: "string.$1.delim", switchTo: "@qqstring.$1.{.}" }],
|
||||||
|
[/%(x|W|Q?)</, { token: "string.$1.delim", switchTo: "@qqstring.$1.<.>" }],
|
||||||
|
[/%(x|W|Q?)(@delim)/, { token: "string.$1.delim", switchTo: "@qqstring.$1.$2.$2" }],
|
||||||
|
[/%([rqwsxW]|Q?)./, { token: "invalid", next: "@pop" }],
|
||||||
|
[/./, { token: "invalid", next: "@pop" }]
|
||||||
|
],
|
||||||
|
qstring: [
|
||||||
|
[/\\$/, "string.$S2.escape"],
|
||||||
|
[/\\./, "string.$S2.escape"],
|
||||||
|
[
|
||||||
|
/./,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"$#==$S4": { token: "string.$S2.delim", next: "@pop" },
|
||||||
|
"$#==$S3": { token: "string.$S2.delim", next: "@push" },
|
||||||
|
"@default": "string.$S2"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
],
|
||||||
|
qqstring: [[/#/, "string.$S2.escape", "@interpolated"], { include: "@qstring" }],
|
||||||
|
whitespace: [
|
||||||
|
[/[ \t\r\n]+/, ""],
|
||||||
|
[/^\s*=begin\b/, "comment", "@comment"],
|
||||||
|
[/#.*$/, "comment"]
|
||||||
|
],
|
||||||
|
comment: [
|
||||||
|
[/[^=]+/, "comment"],
|
||||||
|
[/^\s*=begin\b/, "comment.invalid"],
|
||||||
|
[/^\s*=end\b.*/, "comment", "@pop"],
|
||||||
|
[/[=]/, "comment"]
|
||||||
|
]
|
||||||
|
}
|
||||||
|
};
|
||||||
|
return __toCommonJS(ruby_exports);
|
||||||
|
})();
|
||||||
|
return moduleExports;
|
||||||
|
});
|
||||||
@@ -0,0 +1,369 @@
|
|||||||
|
/*!-----------------------------------------------------------------------------
|
||||||
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||||
|
* Version: 0.33.0(4b1abad427e58dbedc1215d99a0902ffc885fcd4)
|
||||||
|
* Released under the MIT license
|
||||||
|
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
||||||
|
*-----------------------------------------------------------------------------*/
|
||||||
|
define("vs/basic-languages/rust/rust", ["require"],(require)=>{
|
||||||
|
var moduleExports = (() => {
|
||||||
|
var __defProp = Object.defineProperty;
|
||||||
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||||
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||||
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||||
|
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
||||||
|
var __export = (target, all) => {
|
||||||
|
for (var name in all)
|
||||||
|
__defProp(target, name, { get: all[name], enumerable: true });
|
||||||
|
};
|
||||||
|
var __reExport = (target, module, copyDefault, desc) => {
|
||||||
|
if (module && typeof module === "object" || typeof module === "function") {
|
||||||
|
for (let key of __getOwnPropNames(module))
|
||||||
|
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
||||||
|
__defProp(target, key, { get: () => module[key], enumerable: !(desc = __getOwnPropDesc(module, key)) || desc.enumerable });
|
||||||
|
}
|
||||||
|
return target;
|
||||||
|
};
|
||||||
|
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
||||||
|
return (module, temp) => {
|
||||||
|
return cache && cache.get(module) || (temp = __reExport(__markAsModule({}), module, 1), cache && cache.set(module, temp), temp);
|
||||||
|
};
|
||||||
|
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
||||||
|
|
||||||
|
// src/basic-languages/rust/rust.ts
|
||||||
|
var rust_exports = {};
|
||||||
|
__export(rust_exports, {
|
||||||
|
conf: () => conf,
|
||||||
|
language: () => language
|
||||||
|
});
|
||||||
|
var conf = {
|
||||||
|
comments: {
|
||||||
|
lineComment: "//",
|
||||||
|
blockComment: ["/*", "*/"]
|
||||||
|
},
|
||||||
|
brackets: [
|
||||||
|
["{", "}"],
|
||||||
|
["[", "]"],
|
||||||
|
["(", ")"]
|
||||||
|
],
|
||||||
|
autoClosingPairs: [
|
||||||
|
{ open: "[", close: "]" },
|
||||||
|
{ open: "{", close: "}" },
|
||||||
|
{ open: "(", close: ")" },
|
||||||
|
{ open: '"', close: '"', notIn: ["string"] }
|
||||||
|
],
|
||||||
|
surroundingPairs: [
|
||||||
|
{ open: "{", close: "}" },
|
||||||
|
{ open: "[", close: "]" },
|
||||||
|
{ open: "(", close: ")" },
|
||||||
|
{ open: '"', close: '"' },
|
||||||
|
{ open: "'", close: "'" }
|
||||||
|
],
|
||||||
|
folding: {
|
||||||
|
markers: {
|
||||||
|
start: new RegExp("^\\s*#pragma\\s+region\\b"),
|
||||||
|
end: new RegExp("^\\s*#pragma\\s+endregion\\b")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
var language = {
|
||||||
|
tokenPostfix: ".rust",
|
||||||
|
defaultToken: "invalid",
|
||||||
|
keywords: [
|
||||||
|
"as",
|
||||||
|
"async",
|
||||||
|
"await",
|
||||||
|
"box",
|
||||||
|
"break",
|
||||||
|
"const",
|
||||||
|
"continue",
|
||||||
|
"crate",
|
||||||
|
"dyn",
|
||||||
|
"else",
|
||||||
|
"enum",
|
||||||
|
"extern",
|
||||||
|
"false",
|
||||||
|
"fn",
|
||||||
|
"for",
|
||||||
|
"if",
|
||||||
|
"impl",
|
||||||
|
"in",
|
||||||
|
"let",
|
||||||
|
"loop",
|
||||||
|
"match",
|
||||||
|
"mod",
|
||||||
|
"move",
|
||||||
|
"mut",
|
||||||
|
"pub",
|
||||||
|
"ref",
|
||||||
|
"return",
|
||||||
|
"self",
|
||||||
|
"static",
|
||||||
|
"struct",
|
||||||
|
"super",
|
||||||
|
"trait",
|
||||||
|
"true",
|
||||||
|
"try",
|
||||||
|
"type",
|
||||||
|
"unsafe",
|
||||||
|
"use",
|
||||||
|
"where",
|
||||||
|
"while",
|
||||||
|
"catch",
|
||||||
|
"default",
|
||||||
|
"union",
|
||||||
|
"static",
|
||||||
|
"abstract",
|
||||||
|
"alignof",
|
||||||
|
"become",
|
||||||
|
"do",
|
||||||
|
"final",
|
||||||
|
"macro",
|
||||||
|
"offsetof",
|
||||||
|
"override",
|
||||||
|
"priv",
|
||||||
|
"proc",
|
||||||
|
"pure",
|
||||||
|
"sizeof",
|
||||||
|
"typeof",
|
||||||
|
"unsized",
|
||||||
|
"virtual",
|
||||||
|
"yield"
|
||||||
|
],
|
||||||
|
typeKeywords: [
|
||||||
|
"Self",
|
||||||
|
"m32",
|
||||||
|
"m64",
|
||||||
|
"m128",
|
||||||
|
"f80",
|
||||||
|
"f16",
|
||||||
|
"f128",
|
||||||
|
"int",
|
||||||
|
"uint",
|
||||||
|
"float",
|
||||||
|
"char",
|
||||||
|
"bool",
|
||||||
|
"u8",
|
||||||
|
"u16",
|
||||||
|
"u32",
|
||||||
|
"u64",
|
||||||
|
"f32",
|
||||||
|
"f64",
|
||||||
|
"i8",
|
||||||
|
"i16",
|
||||||
|
"i32",
|
||||||
|
"i64",
|
||||||
|
"str",
|
||||||
|
"Option",
|
||||||
|
"Either",
|
||||||
|
"c_float",
|
||||||
|
"c_double",
|
||||||
|
"c_void",
|
||||||
|
"FILE",
|
||||||
|
"fpos_t",
|
||||||
|
"DIR",
|
||||||
|
"dirent",
|
||||||
|
"c_char",
|
||||||
|
"c_schar",
|
||||||
|
"c_uchar",
|
||||||
|
"c_short",
|
||||||
|
"c_ushort",
|
||||||
|
"c_int",
|
||||||
|
"c_uint",
|
||||||
|
"c_long",
|
||||||
|
"c_ulong",
|
||||||
|
"size_t",
|
||||||
|
"ptrdiff_t",
|
||||||
|
"clock_t",
|
||||||
|
"time_t",
|
||||||
|
"c_longlong",
|
||||||
|
"c_ulonglong",
|
||||||
|
"intptr_t",
|
||||||
|
"uintptr_t",
|
||||||
|
"off_t",
|
||||||
|
"dev_t",
|
||||||
|
"ino_t",
|
||||||
|
"pid_t",
|
||||||
|
"mode_t",
|
||||||
|
"ssize_t"
|
||||||
|
],
|
||||||
|
constants: ["true", "false", "Some", "None", "Left", "Right", "Ok", "Err"],
|
||||||
|
supportConstants: [
|
||||||
|
"EXIT_FAILURE",
|
||||||
|
"EXIT_SUCCESS",
|
||||||
|
"RAND_MAX",
|
||||||
|
"EOF",
|
||||||
|
"SEEK_SET",
|
||||||
|
"SEEK_CUR",
|
||||||
|
"SEEK_END",
|
||||||
|
"_IOFBF",
|
||||||
|
"_IONBF",
|
||||||
|
"_IOLBF",
|
||||||
|
"BUFSIZ",
|
||||||
|
"FOPEN_MAX",
|
||||||
|
"FILENAME_MAX",
|
||||||
|
"L_tmpnam",
|
||||||
|
"TMP_MAX",
|
||||||
|
"O_RDONLY",
|
||||||
|
"O_WRONLY",
|
||||||
|
"O_RDWR",
|
||||||
|
"O_APPEND",
|
||||||
|
"O_CREAT",
|
||||||
|
"O_EXCL",
|
||||||
|
"O_TRUNC",
|
||||||
|
"S_IFIFO",
|
||||||
|
"S_IFCHR",
|
||||||
|
"S_IFBLK",
|
||||||
|
"S_IFDIR",
|
||||||
|
"S_IFREG",
|
||||||
|
"S_IFMT",
|
||||||
|
"S_IEXEC",
|
||||||
|
"S_IWRITE",
|
||||||
|
"S_IREAD",
|
||||||
|
"S_IRWXU",
|
||||||
|
"S_IXUSR",
|
||||||
|
"S_IWUSR",
|
||||||
|
"S_IRUSR",
|
||||||
|
"F_OK",
|
||||||
|
"R_OK",
|
||||||
|
"W_OK",
|
||||||
|
"X_OK",
|
||||||
|
"STDIN_FILENO",
|
||||||
|
"STDOUT_FILENO",
|
||||||
|
"STDERR_FILENO"
|
||||||
|
],
|
||||||
|
supportMacros: [
|
||||||
|
"format!",
|
||||||
|
"print!",
|
||||||
|
"println!",
|
||||||
|
"panic!",
|
||||||
|
"format_args!",
|
||||||
|
"unreachable!",
|
||||||
|
"write!",
|
||||||
|
"writeln!"
|
||||||
|
],
|
||||||
|
operators: [
|
||||||
|
"!",
|
||||||
|
"!=",
|
||||||
|
"%",
|
||||||
|
"%=",
|
||||||
|
"&",
|
||||||
|
"&=",
|
||||||
|
"&&",
|
||||||
|
"*",
|
||||||
|
"*=",
|
||||||
|
"+",
|
||||||
|
"+=",
|
||||||
|
"-",
|
||||||
|
"-=",
|
||||||
|
"->",
|
||||||
|
".",
|
||||||
|
"..",
|
||||||
|
"...",
|
||||||
|
"/",
|
||||||
|
"/=",
|
||||||
|
":",
|
||||||
|
";",
|
||||||
|
"<<",
|
||||||
|
"<<=",
|
||||||
|
"<",
|
||||||
|
"<=",
|
||||||
|
"=",
|
||||||
|
"==",
|
||||||
|
"=>",
|
||||||
|
">",
|
||||||
|
">=",
|
||||||
|
">>",
|
||||||
|
">>=",
|
||||||
|
"@",
|
||||||
|
"^",
|
||||||
|
"^=",
|
||||||
|
"|",
|
||||||
|
"|=",
|
||||||
|
"||",
|
||||||
|
"_",
|
||||||
|
"?",
|
||||||
|
"#"
|
||||||
|
],
|
||||||
|
escapes: /\\([nrt0\"''\\]|x\h{2}|u\{\h{1,6}\})/,
|
||||||
|
delimiters: /[,]/,
|
||||||
|
symbols: /[\#\!\%\&\*\+\-\.\/\:\;\<\=\>\@\^\|_\?]+/,
|
||||||
|
intSuffixes: /[iu](8|16|32|64|128|size)/,
|
||||||
|
floatSuffixes: /f(32|64)/,
|
||||||
|
tokenizer: {
|
||||||
|
root: [
|
||||||
|
[/r(#*)"/, { token: "string.quote", bracket: "@open", next: "@stringraw.$1" }],
|
||||||
|
[
|
||||||
|
/[a-zA-Z][a-zA-Z0-9_]*!?|_[a-zA-Z0-9_]+/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"@typeKeywords": "keyword.type",
|
||||||
|
"@keywords": "keyword",
|
||||||
|
"@supportConstants": "keyword",
|
||||||
|
"@supportMacros": "keyword",
|
||||||
|
"@constants": "keyword",
|
||||||
|
"@default": "identifier"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/\$/, "identifier"],
|
||||||
|
[/'[a-zA-Z_][a-zA-Z0-9_]*(?=[^\'])/, "identifier"],
|
||||||
|
[/'(\S|@escapes)'/, "string.byteliteral"],
|
||||||
|
[/"/, { token: "string.quote", bracket: "@open", next: "@string" }],
|
||||||
|
{ include: "@numbers" },
|
||||||
|
{ include: "@whitespace" },
|
||||||
|
[
|
||||||
|
/@delimiters/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"@keywords": "keyword",
|
||||||
|
"@default": "delimiter"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/[{}()\[\]<>]/, "@brackets"],
|
||||||
|
[/@symbols/, { cases: { "@operators": "operator", "@default": "" } }]
|
||||||
|
],
|
||||||
|
whitespace: [
|
||||||
|
[/[ \t\r\n]+/, "white"],
|
||||||
|
[/\/\*/, "comment", "@comment"],
|
||||||
|
[/\/\/.*$/, "comment"]
|
||||||
|
],
|
||||||
|
comment: [
|
||||||
|
[/[^\/*]+/, "comment"],
|
||||||
|
[/\/\*/, "comment", "@push"],
|
||||||
|
["\\*/", "comment", "@pop"],
|
||||||
|
[/[\/*]/, "comment"]
|
||||||
|
],
|
||||||
|
string: [
|
||||||
|
[/[^\\"]+/, "string"],
|
||||||
|
[/@escapes/, "string.escape"],
|
||||||
|
[/\\./, "string.escape.invalid"],
|
||||||
|
[/"/, { token: "string.quote", bracket: "@close", next: "@pop" }]
|
||||||
|
],
|
||||||
|
stringraw: [
|
||||||
|
[/[^"#]+/, { token: "string" }],
|
||||||
|
[
|
||||||
|
/"(#*)/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"$1==$S2": { token: "string.quote", bracket: "@close", next: "@pop" },
|
||||||
|
"@default": { token: "string" }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/["#]/, { token: "string" }]
|
||||||
|
],
|
||||||
|
numbers: [
|
||||||
|
[/(0o[0-7_]+)(@intSuffixes)?/, { token: "number" }],
|
||||||
|
[/(0b[0-1_]+)(@intSuffixes)?/, { token: "number" }],
|
||||||
|
[/[\d][\d_]*(\.[\d][\d_]*)?[eE][+-][\d_]+(@floatSuffixes)?/, { token: "number" }],
|
||||||
|
[/\b(\d\.?[\d_]*)(@floatSuffixes)?\b/, { token: "number" }],
|
||||||
|
[/(0x[\da-fA-F]+)_?(@intSuffixes)?/, { token: "number" }],
|
||||||
|
[/[\d][\d_]*(@intSuffixes?)?/, { token: "number" }]
|
||||||
|
]
|
||||||
|
}
|
||||||
|
};
|
||||||
|
return __toCommonJS(rust_exports);
|
||||||
|
})();
|
||||||
|
return moduleExports;
|
||||||
|
});
|
||||||
@@ -0,0 +1,142 @@
|
|||||||
|
/*!-----------------------------------------------------------------------------
|
||||||
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||||
|
* Version: 0.33.0(4b1abad427e58dbedc1215d99a0902ffc885fcd4)
|
||||||
|
* Released under the MIT license
|
||||||
|
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
||||||
|
*-----------------------------------------------------------------------------*/
|
||||||
|
define("vs/basic-languages/sb/sb", ["require"],(require)=>{
|
||||||
|
var moduleExports = (() => {
|
||||||
|
var __defProp = Object.defineProperty;
|
||||||
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||||
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||||
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||||
|
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
||||||
|
var __export = (target, all) => {
|
||||||
|
for (var name in all)
|
||||||
|
__defProp(target, name, { get: all[name], enumerable: true });
|
||||||
|
};
|
||||||
|
var __reExport = (target, module, copyDefault, desc) => {
|
||||||
|
if (module && typeof module === "object" || typeof module === "function") {
|
||||||
|
for (let key of __getOwnPropNames(module))
|
||||||
|
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
||||||
|
__defProp(target, key, { get: () => module[key], enumerable: !(desc = __getOwnPropDesc(module, key)) || desc.enumerable });
|
||||||
|
}
|
||||||
|
return target;
|
||||||
|
};
|
||||||
|
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
||||||
|
return (module, temp) => {
|
||||||
|
return cache && cache.get(module) || (temp = __reExport(__markAsModule({}), module, 1), cache && cache.set(module, temp), temp);
|
||||||
|
};
|
||||||
|
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
||||||
|
|
||||||
|
// src/basic-languages/sb/sb.ts
|
||||||
|
var sb_exports = {};
|
||||||
|
__export(sb_exports, {
|
||||||
|
conf: () => conf,
|
||||||
|
language: () => language
|
||||||
|
});
|
||||||
|
var conf = {
|
||||||
|
comments: {
|
||||||
|
lineComment: "'"
|
||||||
|
},
|
||||||
|
brackets: [
|
||||||
|
["(", ")"],
|
||||||
|
["[", "]"],
|
||||||
|
["If", "EndIf"],
|
||||||
|
["While", "EndWhile"],
|
||||||
|
["For", "EndFor"],
|
||||||
|
["Sub", "EndSub"]
|
||||||
|
],
|
||||||
|
autoClosingPairs: [
|
||||||
|
{ open: '"', close: '"', notIn: ["string", "comment"] },
|
||||||
|
{ open: "(", close: ")", notIn: ["string", "comment"] },
|
||||||
|
{ open: "[", close: "]", notIn: ["string", "comment"] }
|
||||||
|
]
|
||||||
|
};
|
||||||
|
var language = {
|
||||||
|
defaultToken: "",
|
||||||
|
tokenPostfix: ".sb",
|
||||||
|
ignoreCase: true,
|
||||||
|
brackets: [
|
||||||
|
{ token: "delimiter.array", open: "[", close: "]" },
|
||||||
|
{ token: "delimiter.parenthesis", open: "(", close: ")" },
|
||||||
|
{ token: "keyword.tag-if", open: "If", close: "EndIf" },
|
||||||
|
{ token: "keyword.tag-while", open: "While", close: "EndWhile" },
|
||||||
|
{ token: "keyword.tag-for", open: "For", close: "EndFor" },
|
||||||
|
{ token: "keyword.tag-sub", open: "Sub", close: "EndSub" }
|
||||||
|
],
|
||||||
|
keywords: [
|
||||||
|
"Else",
|
||||||
|
"ElseIf",
|
||||||
|
"EndFor",
|
||||||
|
"EndIf",
|
||||||
|
"EndSub",
|
||||||
|
"EndWhile",
|
||||||
|
"For",
|
||||||
|
"Goto",
|
||||||
|
"If",
|
||||||
|
"Step",
|
||||||
|
"Sub",
|
||||||
|
"Then",
|
||||||
|
"To",
|
||||||
|
"While"
|
||||||
|
],
|
||||||
|
tagwords: ["If", "Sub", "While", "For"],
|
||||||
|
operators: [">", "<", "<>", "<=", ">=", "And", "Or", "+", "-", "*", "/", "="],
|
||||||
|
identifier: /[a-zA-Z_][\w]*/,
|
||||||
|
symbols: /[=><:+\-*\/%\.,]+/,
|
||||||
|
escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
|
||||||
|
tokenizer: {
|
||||||
|
root: [
|
||||||
|
{ include: "@whitespace" },
|
||||||
|
[/(@identifier)(?=[.])/, "type"],
|
||||||
|
[
|
||||||
|
/@identifier/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"@keywords": { token: "keyword.$0" },
|
||||||
|
"@operators": "operator",
|
||||||
|
"@default": "variable.name"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[
|
||||||
|
/([.])(@identifier)/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
$2: ["delimiter", "type.member"],
|
||||||
|
"@default": ""
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/\d*\.\d+/, "number.float"],
|
||||||
|
[/\d+/, "number"],
|
||||||
|
[/[()\[\]]/, "@brackets"],
|
||||||
|
[
|
||||||
|
/@symbols/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"@operators": "operator",
|
||||||
|
"@default": "delimiter"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/"([^"\\]|\\.)*$/, "string.invalid"],
|
||||||
|
[/"/, "string", "@string"]
|
||||||
|
],
|
||||||
|
whitespace: [
|
||||||
|
[/[ \t\r\n]+/, ""],
|
||||||
|
[/(\').*$/, "comment"]
|
||||||
|
],
|
||||||
|
string: [
|
||||||
|
[/[^\\"]+/, "string"],
|
||||||
|
[/@escapes/, "string.escape"],
|
||||||
|
[/\\./, "string.escape.invalid"],
|
||||||
|
[/"C?/, "string", "@pop"]
|
||||||
|
]
|
||||||
|
}
|
||||||
|
};
|
||||||
|
return __toCommonJS(sb_exports);
|
||||||
|
})();
|
||||||
|
return moduleExports;
|
||||||
|
});
|
||||||
@@ -0,0 +1,385 @@
|
|||||||
|
/*!-----------------------------------------------------------------------------
|
||||||
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||||
|
* Version: 0.33.0(4b1abad427e58dbedc1215d99a0902ffc885fcd4)
|
||||||
|
* Released under the MIT license
|
||||||
|
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
||||||
|
*-----------------------------------------------------------------------------*/
|
||||||
|
define("vs/basic-languages/scala/scala", ["require"],(require)=>{
|
||||||
|
var moduleExports = (() => {
|
||||||
|
var __defProp = Object.defineProperty;
|
||||||
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||||
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||||
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||||
|
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
||||||
|
var __export = (target, all) => {
|
||||||
|
for (var name in all)
|
||||||
|
__defProp(target, name, { get: all[name], enumerable: true });
|
||||||
|
};
|
||||||
|
var __reExport = (target, module, copyDefault, desc) => {
|
||||||
|
if (module && typeof module === "object" || typeof module === "function") {
|
||||||
|
for (let key of __getOwnPropNames(module))
|
||||||
|
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
||||||
|
__defProp(target, key, { get: () => module[key], enumerable: !(desc = __getOwnPropDesc(module, key)) || desc.enumerable });
|
||||||
|
}
|
||||||
|
return target;
|
||||||
|
};
|
||||||
|
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
||||||
|
return (module, temp) => {
|
||||||
|
return cache && cache.get(module) || (temp = __reExport(__markAsModule({}), module, 1), cache && cache.set(module, temp), temp);
|
||||||
|
};
|
||||||
|
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
||||||
|
|
||||||
|
// src/basic-languages/scala/scala.ts
|
||||||
|
var scala_exports = {};
|
||||||
|
__export(scala_exports, {
|
||||||
|
conf: () => conf,
|
||||||
|
language: () => language
|
||||||
|
});
|
||||||
|
var conf = {
|
||||||
|
wordPattern: /(unary_[@~!#%^&*()\-=+\\|:<>\/?]+)|([a-zA-Z_$][\w$]*?_=)|(`[^`]+`)|([a-zA-Z_$][\w$]*)/g,
|
||||||
|
comments: {
|
||||||
|
lineComment: "//",
|
||||||
|
blockComment: ["/*", "*/"]
|
||||||
|
},
|
||||||
|
brackets: [
|
||||||
|
["{", "}"],
|
||||||
|
["[", "]"],
|
||||||
|
["(", ")"]
|
||||||
|
],
|
||||||
|
autoClosingPairs: [
|
||||||
|
{ open: "{", close: "}" },
|
||||||
|
{ open: "[", close: "]" },
|
||||||
|
{ open: "(", close: ")" },
|
||||||
|
{ open: '"', close: '"' },
|
||||||
|
{ open: "'", close: "'" }
|
||||||
|
],
|
||||||
|
surroundingPairs: [
|
||||||
|
{ open: "{", close: "}" },
|
||||||
|
{ open: "[", close: "]" },
|
||||||
|
{ open: "(", close: ")" },
|
||||||
|
{ open: '"', close: '"' },
|
||||||
|
{ open: "'", close: "'" }
|
||||||
|
],
|
||||||
|
folding: {
|
||||||
|
markers: {
|
||||||
|
start: new RegExp("^\\s*//\\s*(?:(?:#?region\\b)|(?:<editor-fold\\b))"),
|
||||||
|
end: new RegExp("^\\s*//\\s*(?:(?:#?endregion\\b)|(?:</editor-fold>))")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
var language = {
|
||||||
|
tokenPostfix: ".scala",
|
||||||
|
keywords: [
|
||||||
|
"asInstanceOf",
|
||||||
|
"catch",
|
||||||
|
"class",
|
||||||
|
"classOf",
|
||||||
|
"def",
|
||||||
|
"do",
|
||||||
|
"else",
|
||||||
|
"extends",
|
||||||
|
"finally",
|
||||||
|
"for",
|
||||||
|
"foreach",
|
||||||
|
"forSome",
|
||||||
|
"if",
|
||||||
|
"import",
|
||||||
|
"isInstanceOf",
|
||||||
|
"macro",
|
||||||
|
"match",
|
||||||
|
"new",
|
||||||
|
"object",
|
||||||
|
"package",
|
||||||
|
"return",
|
||||||
|
"throw",
|
||||||
|
"trait",
|
||||||
|
"try",
|
||||||
|
"type",
|
||||||
|
"until",
|
||||||
|
"val",
|
||||||
|
"var",
|
||||||
|
"while",
|
||||||
|
"with",
|
||||||
|
"yield",
|
||||||
|
"given",
|
||||||
|
"enum",
|
||||||
|
"then"
|
||||||
|
],
|
||||||
|
softKeywords: ["as", "export", "extension", "end", "derives", "on"],
|
||||||
|
constants: ["true", "false", "null", "this", "super"],
|
||||||
|
modifiers: [
|
||||||
|
"abstract",
|
||||||
|
"final",
|
||||||
|
"implicit",
|
||||||
|
"lazy",
|
||||||
|
"override",
|
||||||
|
"private",
|
||||||
|
"protected",
|
||||||
|
"sealed"
|
||||||
|
],
|
||||||
|
softModifiers: ["inline", "opaque", "open", "transparent", "using"],
|
||||||
|
name: /(?:[a-z_$][\w$]*|`[^`]+`)/,
|
||||||
|
type: /(?:[A-Z][\w$]*)/,
|
||||||
|
symbols: /[=><!~?:&|+\-*\/^\\%@#]+/,
|
||||||
|
digits: /\d+(_+\d+)*/,
|
||||||
|
hexdigits: /[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/,
|
||||||
|
escapes: /\\(?:[btnfr\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
|
||||||
|
fstring_conv: /[bBhHsScCdoxXeEfgGaAt]|[Tn](?:[HIklMSLNpzZsQ]|[BbhAaCYyjmde]|[RTrDFC])/,
|
||||||
|
tokenizer: {
|
||||||
|
root: [
|
||||||
|
[/\braw"""/, { token: "string.quote", bracket: "@open", next: "@rawstringt" }],
|
||||||
|
[/\braw"/, { token: "string.quote", bracket: "@open", next: "@rawstring" }],
|
||||||
|
[/\bs"""/, { token: "string.quote", bracket: "@open", next: "@sstringt" }],
|
||||||
|
[/\bs"/, { token: "string.quote", bracket: "@open", next: "@sstring" }],
|
||||||
|
[/\bf""""/, { token: "string.quote", bracket: "@open", next: "@fstringt" }],
|
||||||
|
[/\bf"/, { token: "string.quote", bracket: "@open", next: "@fstring" }],
|
||||||
|
[/"""/, { token: "string.quote", bracket: "@open", next: "@stringt" }],
|
||||||
|
[/"/, { token: "string.quote", bracket: "@open", next: "@string" }],
|
||||||
|
[/(@digits)[eE]([\-+]?(@digits))?[fFdD]?/, "number.float", "@allowMethod"],
|
||||||
|
[/(@digits)\.(@digits)([eE][\-+]?(@digits))?[fFdD]?/, "number.float", "@allowMethod"],
|
||||||
|
[/0[xX](@hexdigits)[Ll]?/, "number.hex", "@allowMethod"],
|
||||||
|
[/(@digits)[fFdD]/, "number.float", "@allowMethod"],
|
||||||
|
[/(@digits)[lL]?/, "number", "@allowMethod"],
|
||||||
|
[/\b_\*/, "key"],
|
||||||
|
[/\b(_)\b/, "keyword", "@allowMethod"],
|
||||||
|
[/\bimport\b/, "keyword", "@import"],
|
||||||
|
[/\b(case)([ \t]+)(class)\b/, ["keyword.modifier", "white", "keyword"]],
|
||||||
|
[/\bcase\b/, "keyword", "@case"],
|
||||||
|
[/\bva[lr]\b/, "keyword", "@vardef"],
|
||||||
|
[
|
||||||
|
/\b(def)([ \t]+)((?:unary_)?@symbols|@name(?:_=)|@name)/,
|
||||||
|
["keyword", "white", "identifier"]
|
||||||
|
],
|
||||||
|
[/@name(?=[ \t]*:(?!:))/, "variable"],
|
||||||
|
[/(\.)(@name|@symbols)/, ["operator", { token: "@rematch", next: "@allowMethod" }]],
|
||||||
|
[/([{(])(\s*)(@name(?=\s*=>))/, ["@brackets", "white", "variable"]],
|
||||||
|
[
|
||||||
|
/@name/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"@keywords": "keyword",
|
||||||
|
"@softKeywords": "keyword",
|
||||||
|
"@modifiers": "keyword.modifier",
|
||||||
|
"@softModifiers": "keyword.modifier",
|
||||||
|
"@constants": {
|
||||||
|
token: "constant",
|
||||||
|
next: "@allowMethod"
|
||||||
|
},
|
||||||
|
"@default": {
|
||||||
|
token: "identifier",
|
||||||
|
next: "@allowMethod"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/@type/, "type", "@allowMethod"],
|
||||||
|
{ include: "@whitespace" },
|
||||||
|
[/@[a-zA-Z_$][\w$]*(?:\.[a-zA-Z_$][\w$]*)*/, "annotation"],
|
||||||
|
[/[{(]/, "@brackets"],
|
||||||
|
[/[})]/, "@brackets", "@allowMethod"],
|
||||||
|
[/\[/, "operator.square"],
|
||||||
|
[/](?!\s*(?:va[rl]|def|type)\b)/, "operator.square", "@allowMethod"],
|
||||||
|
[/]/, "operator.square"],
|
||||||
|
[/([=-]>|<-|>:|<:|:>|<%)(?=[\s\w()[\]{},\."'`])/, "keyword"],
|
||||||
|
[/@symbols/, "operator"],
|
||||||
|
[/[;,\.]/, "delimiter"],
|
||||||
|
[/'[a-zA-Z$][\w$]*(?!')/, "attribute.name"],
|
||||||
|
[/'[^\\']'/, "string", "@allowMethod"],
|
||||||
|
[/(')(@escapes)(')/, ["string", "string.escape", { token: "string", next: "@allowMethod" }]],
|
||||||
|
[/'/, "string.invalid"]
|
||||||
|
],
|
||||||
|
import: [
|
||||||
|
[/;/, "delimiter", "@pop"],
|
||||||
|
[/^|$/, "", "@pop"],
|
||||||
|
[/[ \t]+/, "white"],
|
||||||
|
[/[\n\r]+/, "white", "@pop"],
|
||||||
|
[/\/\*/, "comment", "@comment"],
|
||||||
|
[/@name|@type/, "type"],
|
||||||
|
[/[(){}]/, "@brackets"],
|
||||||
|
[/[[\]]/, "operator.square"],
|
||||||
|
[/[\.,]/, "delimiter"]
|
||||||
|
],
|
||||||
|
allowMethod: [
|
||||||
|
[/^|$/, "", "@pop"],
|
||||||
|
[/[ \t]+/, "white"],
|
||||||
|
[/[\n\r]+/, "white", "@pop"],
|
||||||
|
[/\/\*/, "comment", "@comment"],
|
||||||
|
[/(?==>[\s\w([{])/, "keyword", "@pop"],
|
||||||
|
[
|
||||||
|
/(@name|@symbols)(?=[ \t]*[[({"'`]|[ \t]+(?:[+-]?\.?\d|\w))/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"@keywords": { token: "keyword", next: "@pop" },
|
||||||
|
"->|<-|>:|<:|<%": { token: "keyword", next: "@pop" },
|
||||||
|
"@default": { token: "@rematch", next: "@pop" }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
["", "", "@pop"]
|
||||||
|
],
|
||||||
|
comment: [
|
||||||
|
[/[^\/*]+/, "comment"],
|
||||||
|
[/\/\*/, "comment", "@push"],
|
||||||
|
[/\*\//, "comment", "@pop"],
|
||||||
|
[/[\/*]/, "comment"]
|
||||||
|
],
|
||||||
|
case: [
|
||||||
|
[/\b_\*/, "key"],
|
||||||
|
[/\b(_|true|false|null|this|super)\b/, "keyword", "@allowMethod"],
|
||||||
|
[/\bif\b|=>/, "keyword", "@pop"],
|
||||||
|
[/`[^`]+`/, "identifier", "@allowMethod"],
|
||||||
|
[/@name/, "variable", "@allowMethod"],
|
||||||
|
[/:::?|\||@(?![a-z_$])/, "keyword"],
|
||||||
|
{ include: "@root" }
|
||||||
|
],
|
||||||
|
vardef: [
|
||||||
|
[/\b_\*/, "key"],
|
||||||
|
[/\b(_|true|false|null|this|super)\b/, "keyword"],
|
||||||
|
[/@name/, "variable"],
|
||||||
|
[/:::?|\||@(?![a-z_$])/, "keyword"],
|
||||||
|
[/=|:(?!:)/, "operator", "@pop"],
|
||||||
|
[/$/, "white", "@pop"],
|
||||||
|
{ include: "@root" }
|
||||||
|
],
|
||||||
|
string: [
|
||||||
|
[/[^\\"\n\r]+/, "string"],
|
||||||
|
[/@escapes/, "string.escape"],
|
||||||
|
[/\\./, "string.escape.invalid"],
|
||||||
|
[
|
||||||
|
/"/,
|
||||||
|
{
|
||||||
|
token: "string.quote",
|
||||||
|
bracket: "@close",
|
||||||
|
switchTo: "@allowMethod"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
],
|
||||||
|
stringt: [
|
||||||
|
[/[^\\"\n\r]+/, "string"],
|
||||||
|
[/@escapes/, "string.escape"],
|
||||||
|
[/\\./, "string.escape.invalid"],
|
||||||
|
[/"(?=""")/, "string"],
|
||||||
|
[
|
||||||
|
/"""/,
|
||||||
|
{
|
||||||
|
token: "string.quote",
|
||||||
|
bracket: "@close",
|
||||||
|
switchTo: "@allowMethod"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/"/, "string"]
|
||||||
|
],
|
||||||
|
fstring: [
|
||||||
|
[/@escapes/, "string.escape"],
|
||||||
|
[
|
||||||
|
/"/,
|
||||||
|
{
|
||||||
|
token: "string.quote",
|
||||||
|
bracket: "@close",
|
||||||
|
switchTo: "@allowMethod"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/\$\$/, "string"],
|
||||||
|
[/(\$)([a-z_]\w*)/, ["operator", "identifier"]],
|
||||||
|
[/\$\{/, "operator", "@interp"],
|
||||||
|
[/%%/, "string"],
|
||||||
|
[
|
||||||
|
/(%)([\-#+ 0,(])(\d+|\.\d+|\d+\.\d+)(@fstring_conv)/,
|
||||||
|
["metatag", "keyword.modifier", "number", "metatag"]
|
||||||
|
],
|
||||||
|
[/(%)(\d+|\.\d+|\d+\.\d+)(@fstring_conv)/, ["metatag", "number", "metatag"]],
|
||||||
|
[/(%)([\-#+ 0,(])(@fstring_conv)/, ["metatag", "keyword.modifier", "metatag"]],
|
||||||
|
[/(%)(@fstring_conv)/, ["metatag", "metatag"]],
|
||||||
|
[/./, "string"]
|
||||||
|
],
|
||||||
|
fstringt: [
|
||||||
|
[/@escapes/, "string.escape"],
|
||||||
|
[/"(?=""")/, "string"],
|
||||||
|
[
|
||||||
|
/"""/,
|
||||||
|
{
|
||||||
|
token: "string.quote",
|
||||||
|
bracket: "@close",
|
||||||
|
switchTo: "@allowMethod"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/\$\$/, "string"],
|
||||||
|
[/(\$)([a-z_]\w*)/, ["operator", "identifier"]],
|
||||||
|
[/\$\{/, "operator", "@interp"],
|
||||||
|
[/%%/, "string"],
|
||||||
|
[
|
||||||
|
/(%)([\-#+ 0,(])(\d+|\.\d+|\d+\.\d+)(@fstring_conv)/,
|
||||||
|
["metatag", "keyword.modifier", "number", "metatag"]
|
||||||
|
],
|
||||||
|
[/(%)(\d+|\.\d+|\d+\.\d+)(@fstring_conv)/, ["metatag", "number", "metatag"]],
|
||||||
|
[/(%)([\-#+ 0,(])(@fstring_conv)/, ["metatag", "keyword.modifier", "metatag"]],
|
||||||
|
[/(%)(@fstring_conv)/, ["metatag", "metatag"]],
|
||||||
|
[/./, "string"]
|
||||||
|
],
|
||||||
|
sstring: [
|
||||||
|
[/@escapes/, "string.escape"],
|
||||||
|
[
|
||||||
|
/"/,
|
||||||
|
{
|
||||||
|
token: "string.quote",
|
||||||
|
bracket: "@close",
|
||||||
|
switchTo: "@allowMethod"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/\$\$/, "string"],
|
||||||
|
[/(\$)([a-z_]\w*)/, ["operator", "identifier"]],
|
||||||
|
[/\$\{/, "operator", "@interp"],
|
||||||
|
[/./, "string"]
|
||||||
|
],
|
||||||
|
sstringt: [
|
||||||
|
[/@escapes/, "string.escape"],
|
||||||
|
[/"(?=""")/, "string"],
|
||||||
|
[
|
||||||
|
/"""/,
|
||||||
|
{
|
||||||
|
token: "string.quote",
|
||||||
|
bracket: "@close",
|
||||||
|
switchTo: "@allowMethod"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/\$\$/, "string"],
|
||||||
|
[/(\$)([a-z_]\w*)/, ["operator", "identifier"]],
|
||||||
|
[/\$\{/, "operator", "@interp"],
|
||||||
|
[/./, "string"]
|
||||||
|
],
|
||||||
|
interp: [[/{/, "operator", "@push"], [/}/, "operator", "@pop"], { include: "@root" }],
|
||||||
|
rawstring: [
|
||||||
|
[/[^"]/, "string"],
|
||||||
|
[
|
||||||
|
/"/,
|
||||||
|
{
|
||||||
|
token: "string.quote",
|
||||||
|
bracket: "@close",
|
||||||
|
switchTo: "@allowMethod"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
],
|
||||||
|
rawstringt: [
|
||||||
|
[/[^"]/, "string"],
|
||||||
|
[/"(?=""")/, "string"],
|
||||||
|
[
|
||||||
|
/"""/,
|
||||||
|
{
|
||||||
|
token: "string.quote",
|
||||||
|
bracket: "@close",
|
||||||
|
switchTo: "@allowMethod"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/"/, "string"]
|
||||||
|
],
|
||||||
|
whitespace: [
|
||||||
|
[/[ \t\r\n]+/, "white"],
|
||||||
|
[/\/\*/, "comment", "@comment"],
|
||||||
|
[/\/\/.*$/, "comment"]
|
||||||
|
]
|
||||||
|
}
|
||||||
|
};
|
||||||
|
return __toCommonJS(scala_exports);
|
||||||
|
})();
|
||||||
|
return moduleExports;
|
||||||
|
});
|
||||||
@@ -0,0 +1,146 @@
|
|||||||
|
/*!-----------------------------------------------------------------------------
|
||||||
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||||
|
* Version: 0.33.0(4b1abad427e58dbedc1215d99a0902ffc885fcd4)
|
||||||
|
* Released under the MIT license
|
||||||
|
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
||||||
|
*-----------------------------------------------------------------------------*/
|
||||||
|
define("vs/basic-languages/scheme/scheme", ["require"],(require)=>{
|
||||||
|
var moduleExports = (() => {
|
||||||
|
var __defProp = Object.defineProperty;
|
||||||
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||||
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||||
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||||
|
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
||||||
|
var __export = (target, all) => {
|
||||||
|
for (var name in all)
|
||||||
|
__defProp(target, name, { get: all[name], enumerable: true });
|
||||||
|
};
|
||||||
|
var __reExport = (target, module, copyDefault, desc) => {
|
||||||
|
if (module && typeof module === "object" || typeof module === "function") {
|
||||||
|
for (let key of __getOwnPropNames(module))
|
||||||
|
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
||||||
|
__defProp(target, key, { get: () => module[key], enumerable: !(desc = __getOwnPropDesc(module, key)) || desc.enumerable });
|
||||||
|
}
|
||||||
|
return target;
|
||||||
|
};
|
||||||
|
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
||||||
|
return (module, temp) => {
|
||||||
|
return cache && cache.get(module) || (temp = __reExport(__markAsModule({}), module, 1), cache && cache.set(module, temp), temp);
|
||||||
|
};
|
||||||
|
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
||||||
|
|
||||||
|
// src/basic-languages/scheme/scheme.ts
|
||||||
|
var scheme_exports = {};
|
||||||
|
__export(scheme_exports, {
|
||||||
|
conf: () => conf,
|
||||||
|
language: () => language
|
||||||
|
});
|
||||||
|
var conf = {
|
||||||
|
comments: {
|
||||||
|
lineComment: ";",
|
||||||
|
blockComment: ["#|", "|#"]
|
||||||
|
},
|
||||||
|
brackets: [
|
||||||
|
["(", ")"],
|
||||||
|
["{", "}"],
|
||||||
|
["[", "]"]
|
||||||
|
],
|
||||||
|
autoClosingPairs: [
|
||||||
|
{ open: "{", close: "}" },
|
||||||
|
{ open: "[", close: "]" },
|
||||||
|
{ open: "(", close: ")" },
|
||||||
|
{ open: '"', close: '"' }
|
||||||
|
],
|
||||||
|
surroundingPairs: [
|
||||||
|
{ open: "{", close: "}" },
|
||||||
|
{ open: "[", close: "]" },
|
||||||
|
{ open: "(", close: ")" },
|
||||||
|
{ open: '"', close: '"' }
|
||||||
|
]
|
||||||
|
};
|
||||||
|
var language = {
|
||||||
|
defaultToken: "",
|
||||||
|
ignoreCase: true,
|
||||||
|
tokenPostfix: ".scheme",
|
||||||
|
brackets: [
|
||||||
|
{ open: "(", close: ")", token: "delimiter.parenthesis" },
|
||||||
|
{ open: "{", close: "}", token: "delimiter.curly" },
|
||||||
|
{ open: "[", close: "]", token: "delimiter.square" }
|
||||||
|
],
|
||||||
|
keywords: [
|
||||||
|
"case",
|
||||||
|
"do",
|
||||||
|
"let",
|
||||||
|
"loop",
|
||||||
|
"if",
|
||||||
|
"else",
|
||||||
|
"when",
|
||||||
|
"cons",
|
||||||
|
"car",
|
||||||
|
"cdr",
|
||||||
|
"cond",
|
||||||
|
"lambda",
|
||||||
|
"lambda*",
|
||||||
|
"syntax-rules",
|
||||||
|
"format",
|
||||||
|
"set!",
|
||||||
|
"quote",
|
||||||
|
"eval",
|
||||||
|
"append",
|
||||||
|
"list",
|
||||||
|
"list?",
|
||||||
|
"member?",
|
||||||
|
"load"
|
||||||
|
],
|
||||||
|
constants: ["#t", "#f"],
|
||||||
|
operators: ["eq?", "eqv?", "equal?", "and", "or", "not", "null?"],
|
||||||
|
tokenizer: {
|
||||||
|
root: [
|
||||||
|
[/#[xXoObB][0-9a-fA-F]+/, "number.hex"],
|
||||||
|
[/[+-]?\d+(?:(?:\.\d*)?(?:[eE][+-]?\d+)?)?/, "number.float"],
|
||||||
|
[
|
||||||
|
/(?:\b(?:(define|define-syntax|define-macro))\b)(\s+)((?:\w|\-|\!|\?)*)/,
|
||||||
|
["keyword", "white", "variable"]
|
||||||
|
],
|
||||||
|
{ include: "@whitespace" },
|
||||||
|
{ include: "@strings" },
|
||||||
|
[
|
||||||
|
/[a-zA-Z_#][a-zA-Z0-9_\-\?\!\*]*/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"@keywords": "keyword",
|
||||||
|
"@constants": "constant",
|
||||||
|
"@operators": "operators",
|
||||||
|
"@default": "identifier"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
],
|
||||||
|
comment: [
|
||||||
|
[/[^\|#]+/, "comment"],
|
||||||
|
[/#\|/, "comment", "@push"],
|
||||||
|
[/\|#/, "comment", "@pop"],
|
||||||
|
[/[\|#]/, "comment"]
|
||||||
|
],
|
||||||
|
whitespace: [
|
||||||
|
[/[ \t\r\n]+/, "white"],
|
||||||
|
[/#\|/, "comment", "@comment"],
|
||||||
|
[/;.*$/, "comment"]
|
||||||
|
],
|
||||||
|
strings: [
|
||||||
|
[/"$/, "string", "@popall"],
|
||||||
|
[/"(?=.)/, "string", "@multiLineString"]
|
||||||
|
],
|
||||||
|
multiLineString: [
|
||||||
|
[/[^\\"]+$/, "string", "@popall"],
|
||||||
|
[/[^\\"]+/, "string"],
|
||||||
|
[/\\./, "string.escape"],
|
||||||
|
[/"/, "string", "@popall"],
|
||||||
|
[/\\$/, "string"]
|
||||||
|
]
|
||||||
|
}
|
||||||
|
};
|
||||||
|
return __toCommonJS(scheme_exports);
|
||||||
|
})();
|
||||||
|
return moduleExports;
|
||||||
|
});
|
||||||
@@ -0,0 +1,274 @@
|
|||||||
|
/*!-----------------------------------------------------------------------------
|
||||||
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||||
|
* Version: 0.33.0(4b1abad427e58dbedc1215d99a0902ffc885fcd4)
|
||||||
|
* Released under the MIT license
|
||||||
|
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
||||||
|
*-----------------------------------------------------------------------------*/
|
||||||
|
define("vs/basic-languages/scss/scss", ["require"],(require)=>{
|
||||||
|
var moduleExports = (() => {
|
||||||
|
var __defProp = Object.defineProperty;
|
||||||
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||||
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||||
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||||
|
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
||||||
|
var __export = (target, all) => {
|
||||||
|
for (var name in all)
|
||||||
|
__defProp(target, name, { get: all[name], enumerable: true });
|
||||||
|
};
|
||||||
|
var __reExport = (target, module, copyDefault, desc) => {
|
||||||
|
if (module && typeof module === "object" || typeof module === "function") {
|
||||||
|
for (let key of __getOwnPropNames(module))
|
||||||
|
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
||||||
|
__defProp(target, key, { get: () => module[key], enumerable: !(desc = __getOwnPropDesc(module, key)) || desc.enumerable });
|
||||||
|
}
|
||||||
|
return target;
|
||||||
|
};
|
||||||
|
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
||||||
|
return (module, temp) => {
|
||||||
|
return cache && cache.get(module) || (temp = __reExport(__markAsModule({}), module, 1), cache && cache.set(module, temp), temp);
|
||||||
|
};
|
||||||
|
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
||||||
|
|
||||||
|
// src/basic-languages/scss/scss.ts
|
||||||
|
var scss_exports = {};
|
||||||
|
__export(scss_exports, {
|
||||||
|
conf: () => conf,
|
||||||
|
language: () => language
|
||||||
|
});
|
||||||
|
var conf = {
|
||||||
|
wordPattern: /(#?-?\d*\.\d\w*%?)|([@$#!.:]?[\w-?]+%?)|[@#!.]/g,
|
||||||
|
comments: {
|
||||||
|
blockComment: ["/*", "*/"],
|
||||||
|
lineComment: "//"
|
||||||
|
},
|
||||||
|
brackets: [
|
||||||
|
["{", "}"],
|
||||||
|
["[", "]"],
|
||||||
|
["(", ")"]
|
||||||
|
],
|
||||||
|
autoClosingPairs: [
|
||||||
|
{ open: "{", close: "}", notIn: ["string", "comment"] },
|
||||||
|
{ open: "[", close: "]", notIn: ["string", "comment"] },
|
||||||
|
{ open: "(", close: ")", notIn: ["string", "comment"] },
|
||||||
|
{ open: '"', close: '"', notIn: ["string", "comment"] },
|
||||||
|
{ open: "'", close: "'", notIn: ["string", "comment"] }
|
||||||
|
],
|
||||||
|
surroundingPairs: [
|
||||||
|
{ open: "{", close: "}" },
|
||||||
|
{ open: "[", close: "]" },
|
||||||
|
{ open: "(", close: ")" },
|
||||||
|
{ open: '"', close: '"' },
|
||||||
|
{ open: "'", close: "'" }
|
||||||
|
],
|
||||||
|
folding: {
|
||||||
|
markers: {
|
||||||
|
start: new RegExp("^\\s*\\/\\*\\s*#region\\b\\s*(.*?)\\s*\\*\\/"),
|
||||||
|
end: new RegExp("^\\s*\\/\\*\\s*#endregion\\b.*\\*\\/")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
var language = {
|
||||||
|
defaultToken: "",
|
||||||
|
tokenPostfix: ".scss",
|
||||||
|
ws: "[ \n\r\f]*",
|
||||||
|
identifier: "-?-?([a-zA-Z]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))([\\w\\-]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))*",
|
||||||
|
brackets: [
|
||||||
|
{ open: "{", close: "}", token: "delimiter.curly" },
|
||||||
|
{ open: "[", close: "]", token: "delimiter.bracket" },
|
||||||
|
{ open: "(", close: ")", token: "delimiter.parenthesis" },
|
||||||
|
{ open: "<", close: ">", token: "delimiter.angle" }
|
||||||
|
],
|
||||||
|
tokenizer: {
|
||||||
|
root: [{ include: "@selector" }],
|
||||||
|
selector: [
|
||||||
|
{ include: "@comments" },
|
||||||
|
{ include: "@import" },
|
||||||
|
{ include: "@variabledeclaration" },
|
||||||
|
{ include: "@warndebug" },
|
||||||
|
["[@](include)", { token: "keyword", next: "@includedeclaration" }],
|
||||||
|
[
|
||||||
|
"[@](keyframes|-webkit-keyframes|-moz-keyframes|-o-keyframes)",
|
||||||
|
{ token: "keyword", next: "@keyframedeclaration" }
|
||||||
|
],
|
||||||
|
["[@](page|content|font-face|-moz-document)", { token: "keyword" }],
|
||||||
|
["[@](charset|namespace)", { token: "keyword", next: "@declarationbody" }],
|
||||||
|
["[@](function)", { token: "keyword", next: "@functiondeclaration" }],
|
||||||
|
["[@](mixin)", { token: "keyword", next: "@mixindeclaration" }],
|
||||||
|
["url(\\-prefix)?\\(", { token: "meta", next: "@urldeclaration" }],
|
||||||
|
{ include: "@controlstatement" },
|
||||||
|
{ include: "@selectorname" },
|
||||||
|
["[&\\*]", "tag"],
|
||||||
|
["[>\\+,]", "delimiter"],
|
||||||
|
["\\[", { token: "delimiter.bracket", next: "@selectorattribute" }],
|
||||||
|
["{", { token: "delimiter.curly", next: "@selectorbody" }]
|
||||||
|
],
|
||||||
|
selectorbody: [
|
||||||
|
["[*_]?@identifier@ws:(?=(\\s|\\d|[^{;}]*[;}]))", "attribute.name", "@rulevalue"],
|
||||||
|
{ include: "@selector" },
|
||||||
|
["[@](extend)", { token: "keyword", next: "@extendbody" }],
|
||||||
|
["[@](return)", { token: "keyword", next: "@declarationbody" }],
|
||||||
|
["}", { token: "delimiter.curly", next: "@pop" }]
|
||||||
|
],
|
||||||
|
selectorname: [
|
||||||
|
["#{", { token: "meta", next: "@variableinterpolation" }],
|
||||||
|
["(\\.|#(?=[^{])|%|(@identifier)|:)+", "tag"]
|
||||||
|
],
|
||||||
|
selectorattribute: [{ include: "@term" }, ["]", { token: "delimiter.bracket", next: "@pop" }]],
|
||||||
|
term: [
|
||||||
|
{ include: "@comments" },
|
||||||
|
["url(\\-prefix)?\\(", { token: "meta", next: "@urldeclaration" }],
|
||||||
|
{ include: "@functioninvocation" },
|
||||||
|
{ include: "@numbers" },
|
||||||
|
{ include: "@strings" },
|
||||||
|
{ include: "@variablereference" },
|
||||||
|
["(and\\b|or\\b|not\\b)", "operator"],
|
||||||
|
{ include: "@name" },
|
||||||
|
["([<>=\\+\\-\\*\\/\\^\\|\\~,])", "operator"],
|
||||||
|
[",", "delimiter"],
|
||||||
|
["!default", "literal"],
|
||||||
|
["\\(", { token: "delimiter.parenthesis", next: "@parenthizedterm" }]
|
||||||
|
],
|
||||||
|
rulevalue: [
|
||||||
|
{ include: "@term" },
|
||||||
|
["!important", "literal"],
|
||||||
|
[";", "delimiter", "@pop"],
|
||||||
|
["{", { token: "delimiter.curly", switchTo: "@nestedproperty" }],
|
||||||
|
["(?=})", { token: "", next: "@pop" }]
|
||||||
|
],
|
||||||
|
nestedproperty: [
|
||||||
|
["[*_]?@identifier@ws:", "attribute.name", "@rulevalue"],
|
||||||
|
{ include: "@comments" },
|
||||||
|
["}", { token: "delimiter.curly", next: "@pop" }]
|
||||||
|
],
|
||||||
|
warndebug: [["[@](warn|debug)", { token: "keyword", next: "@declarationbody" }]],
|
||||||
|
import: [["[@](import)", { token: "keyword", next: "@declarationbody" }]],
|
||||||
|
variabledeclaration: [
|
||||||
|
["\\$@identifier@ws:", "variable.decl", "@declarationbody"]
|
||||||
|
],
|
||||||
|
urldeclaration: [
|
||||||
|
{ include: "@strings" },
|
||||||
|
["[^)\r\n]+", "string"],
|
||||||
|
["\\)", { token: "meta", next: "@pop" }]
|
||||||
|
],
|
||||||
|
parenthizedterm: [
|
||||||
|
{ include: "@term" },
|
||||||
|
["\\)", { token: "delimiter.parenthesis", next: "@pop" }]
|
||||||
|
],
|
||||||
|
declarationbody: [
|
||||||
|
{ include: "@term" },
|
||||||
|
[";", "delimiter", "@pop"],
|
||||||
|
["(?=})", { token: "", next: "@pop" }]
|
||||||
|
],
|
||||||
|
extendbody: [
|
||||||
|
{ include: "@selectorname" },
|
||||||
|
["!optional", "literal"],
|
||||||
|
[";", "delimiter", "@pop"],
|
||||||
|
["(?=})", { token: "", next: "@pop" }]
|
||||||
|
],
|
||||||
|
variablereference: [
|
||||||
|
["\\$@identifier", "variable.ref"],
|
||||||
|
["\\.\\.\\.", "operator"],
|
||||||
|
["#{", { token: "meta", next: "@variableinterpolation" }]
|
||||||
|
],
|
||||||
|
variableinterpolation: [
|
||||||
|
{ include: "@variablereference" },
|
||||||
|
["}", { token: "meta", next: "@pop" }]
|
||||||
|
],
|
||||||
|
comments: [
|
||||||
|
["\\/\\*", "comment", "@comment"],
|
||||||
|
["\\/\\/+.*", "comment"]
|
||||||
|
],
|
||||||
|
comment: [
|
||||||
|
["\\*\\/", "comment", "@pop"],
|
||||||
|
[".", "comment"]
|
||||||
|
],
|
||||||
|
name: [["@identifier", "attribute.value"]],
|
||||||
|
numbers: [
|
||||||
|
["(\\d*\\.)?\\d+([eE][\\-+]?\\d+)?", { token: "number", next: "@units" }],
|
||||||
|
["#[0-9a-fA-F_]+(?!\\w)", "number.hex"]
|
||||||
|
],
|
||||||
|
units: [
|
||||||
|
[
|
||||||
|
"(em|ex|ch|rem|vmin|vmax|vw|vh|vm|cm|mm|in|px|pt|pc|deg|grad|rad|turn|s|ms|Hz|kHz|%)?",
|
||||||
|
"number",
|
||||||
|
"@pop"
|
||||||
|
]
|
||||||
|
],
|
||||||
|
functiondeclaration: [
|
||||||
|
["@identifier@ws\\(", { token: "meta", next: "@parameterdeclaration" }],
|
||||||
|
["{", { token: "delimiter.curly", switchTo: "@functionbody" }]
|
||||||
|
],
|
||||||
|
mixindeclaration: [
|
||||||
|
["@identifier@ws\\(", { token: "meta", next: "@parameterdeclaration" }],
|
||||||
|
["@identifier", "meta"],
|
||||||
|
["{", { token: "delimiter.curly", switchTo: "@selectorbody" }]
|
||||||
|
],
|
||||||
|
parameterdeclaration: [
|
||||||
|
["\\$@identifier@ws:", "variable.decl"],
|
||||||
|
["\\.\\.\\.", "operator"],
|
||||||
|
[",", "delimiter"],
|
||||||
|
{ include: "@term" },
|
||||||
|
["\\)", { token: "meta", next: "@pop" }]
|
||||||
|
],
|
||||||
|
includedeclaration: [
|
||||||
|
{ include: "@functioninvocation" },
|
||||||
|
["@identifier", "meta"],
|
||||||
|
[";", "delimiter", "@pop"],
|
||||||
|
["(?=})", { token: "", next: "@pop" }],
|
||||||
|
["{", { token: "delimiter.curly", switchTo: "@selectorbody" }]
|
||||||
|
],
|
||||||
|
keyframedeclaration: [
|
||||||
|
["@identifier", "meta"],
|
||||||
|
["{", { token: "delimiter.curly", switchTo: "@keyframebody" }]
|
||||||
|
],
|
||||||
|
keyframebody: [
|
||||||
|
{ include: "@term" },
|
||||||
|
["{", { token: "delimiter.curly", next: "@selectorbody" }],
|
||||||
|
["}", { token: "delimiter.curly", next: "@pop" }]
|
||||||
|
],
|
||||||
|
controlstatement: [
|
||||||
|
[
|
||||||
|
"[@](if|else|for|while|each|media)",
|
||||||
|
{ token: "keyword.flow", next: "@controlstatementdeclaration" }
|
||||||
|
]
|
||||||
|
],
|
||||||
|
controlstatementdeclaration: [
|
||||||
|
["(in|from|through|if|to)\\b", { token: "keyword.flow" }],
|
||||||
|
{ include: "@term" },
|
||||||
|
["{", { token: "delimiter.curly", switchTo: "@selectorbody" }]
|
||||||
|
],
|
||||||
|
functionbody: [
|
||||||
|
["[@](return)", { token: "keyword" }],
|
||||||
|
{ include: "@variabledeclaration" },
|
||||||
|
{ include: "@term" },
|
||||||
|
{ include: "@controlstatement" },
|
||||||
|
[";", "delimiter"],
|
||||||
|
["}", { token: "delimiter.curly", next: "@pop" }]
|
||||||
|
],
|
||||||
|
functioninvocation: [["@identifier\\(", { token: "meta", next: "@functionarguments" }]],
|
||||||
|
functionarguments: [
|
||||||
|
["\\$@identifier@ws:", "attribute.name"],
|
||||||
|
["[,]", "delimiter"],
|
||||||
|
{ include: "@term" },
|
||||||
|
["\\)", { token: "meta", next: "@pop" }]
|
||||||
|
],
|
||||||
|
strings: [
|
||||||
|
['~?"', { token: "string.delimiter", next: "@stringenddoublequote" }],
|
||||||
|
["~?'", { token: "string.delimiter", next: "@stringendquote" }]
|
||||||
|
],
|
||||||
|
stringenddoublequote: [
|
||||||
|
["\\\\.", "string"],
|
||||||
|
['"', { token: "string.delimiter", next: "@pop" }],
|
||||||
|
[".", "string"]
|
||||||
|
],
|
||||||
|
stringendquote: [
|
||||||
|
["\\\\.", "string"],
|
||||||
|
["'", { token: "string.delimiter", next: "@pop" }],
|
||||||
|
[".", "string"]
|
||||||
|
]
|
||||||
|
}
|
||||||
|
};
|
||||||
|
return __toCommonJS(scss_exports);
|
||||||
|
})();
|
||||||
|
return moduleExports;
|
||||||
|
});
|
||||||
@@ -0,0 +1,256 @@
|
|||||||
|
/*!-----------------------------------------------------------------------------
|
||||||
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||||
|
* Version: 0.33.0(4b1abad427e58dbedc1215d99a0902ffc885fcd4)
|
||||||
|
* Released under the MIT license
|
||||||
|
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
||||||
|
*-----------------------------------------------------------------------------*/
|
||||||
|
define("vs/basic-languages/shell/shell", ["require"],(require)=>{
|
||||||
|
var moduleExports = (() => {
|
||||||
|
var __defProp = Object.defineProperty;
|
||||||
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||||
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||||
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||||
|
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
||||||
|
var __export = (target, all) => {
|
||||||
|
for (var name in all)
|
||||||
|
__defProp(target, name, { get: all[name], enumerable: true });
|
||||||
|
};
|
||||||
|
var __reExport = (target, module, copyDefault, desc) => {
|
||||||
|
if (module && typeof module === "object" || typeof module === "function") {
|
||||||
|
for (let key of __getOwnPropNames(module))
|
||||||
|
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
||||||
|
__defProp(target, key, { get: () => module[key], enumerable: !(desc = __getOwnPropDesc(module, key)) || desc.enumerable });
|
||||||
|
}
|
||||||
|
return target;
|
||||||
|
};
|
||||||
|
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
||||||
|
return (module, temp) => {
|
||||||
|
return cache && cache.get(module) || (temp = __reExport(__markAsModule({}), module, 1), cache && cache.set(module, temp), temp);
|
||||||
|
};
|
||||||
|
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
||||||
|
|
||||||
|
// src/basic-languages/shell/shell.ts
|
||||||
|
var shell_exports = {};
|
||||||
|
__export(shell_exports, {
|
||||||
|
conf: () => conf,
|
||||||
|
language: () => language
|
||||||
|
});
|
||||||
|
var conf = {
|
||||||
|
comments: {
|
||||||
|
lineComment: "#"
|
||||||
|
},
|
||||||
|
brackets: [
|
||||||
|
["{", "}"],
|
||||||
|
["[", "]"],
|
||||||
|
["(", ")"]
|
||||||
|
],
|
||||||
|
autoClosingPairs: [
|
||||||
|
{ open: "{", close: "}" },
|
||||||
|
{ open: "[", close: "]" },
|
||||||
|
{ open: "(", close: ")" },
|
||||||
|
{ open: '"', close: '"' },
|
||||||
|
{ open: "'", close: "'" },
|
||||||
|
{ open: "`", close: "`" }
|
||||||
|
],
|
||||||
|
surroundingPairs: [
|
||||||
|
{ open: "{", close: "}" },
|
||||||
|
{ open: "[", close: "]" },
|
||||||
|
{ open: "(", close: ")" },
|
||||||
|
{ open: '"', close: '"' },
|
||||||
|
{ open: "'", close: "'" },
|
||||||
|
{ open: "`", close: "`" }
|
||||||
|
]
|
||||||
|
};
|
||||||
|
var language = {
|
||||||
|
defaultToken: "",
|
||||||
|
ignoreCase: true,
|
||||||
|
tokenPostfix: ".shell",
|
||||||
|
brackets: [
|
||||||
|
{ token: "delimiter.bracket", open: "{", close: "}" },
|
||||||
|
{ token: "delimiter.parenthesis", open: "(", close: ")" },
|
||||||
|
{ token: "delimiter.square", open: "[", close: "]" }
|
||||||
|
],
|
||||||
|
keywords: [
|
||||||
|
"if",
|
||||||
|
"then",
|
||||||
|
"do",
|
||||||
|
"else",
|
||||||
|
"elif",
|
||||||
|
"while",
|
||||||
|
"until",
|
||||||
|
"for",
|
||||||
|
"in",
|
||||||
|
"esac",
|
||||||
|
"fi",
|
||||||
|
"fin",
|
||||||
|
"fil",
|
||||||
|
"done",
|
||||||
|
"exit",
|
||||||
|
"set",
|
||||||
|
"unset",
|
||||||
|
"export",
|
||||||
|
"function"
|
||||||
|
],
|
||||||
|
builtins: [
|
||||||
|
"ab",
|
||||||
|
"awk",
|
||||||
|
"bash",
|
||||||
|
"beep",
|
||||||
|
"cat",
|
||||||
|
"cc",
|
||||||
|
"cd",
|
||||||
|
"chown",
|
||||||
|
"chmod",
|
||||||
|
"chroot",
|
||||||
|
"clear",
|
||||||
|
"cp",
|
||||||
|
"curl",
|
||||||
|
"cut",
|
||||||
|
"diff",
|
||||||
|
"echo",
|
||||||
|
"find",
|
||||||
|
"gawk",
|
||||||
|
"gcc",
|
||||||
|
"get",
|
||||||
|
"git",
|
||||||
|
"grep",
|
||||||
|
"hg",
|
||||||
|
"kill",
|
||||||
|
"killall",
|
||||||
|
"ln",
|
||||||
|
"ls",
|
||||||
|
"make",
|
||||||
|
"mkdir",
|
||||||
|
"openssl",
|
||||||
|
"mv",
|
||||||
|
"nc",
|
||||||
|
"node",
|
||||||
|
"npm",
|
||||||
|
"ping",
|
||||||
|
"ps",
|
||||||
|
"restart",
|
||||||
|
"rm",
|
||||||
|
"rmdir",
|
||||||
|
"sed",
|
||||||
|
"service",
|
||||||
|
"sh",
|
||||||
|
"shopt",
|
||||||
|
"shred",
|
||||||
|
"source",
|
||||||
|
"sort",
|
||||||
|
"sleep",
|
||||||
|
"ssh",
|
||||||
|
"start",
|
||||||
|
"stop",
|
||||||
|
"su",
|
||||||
|
"sudo",
|
||||||
|
"svn",
|
||||||
|
"tee",
|
||||||
|
"telnet",
|
||||||
|
"top",
|
||||||
|
"touch",
|
||||||
|
"vi",
|
||||||
|
"vim",
|
||||||
|
"wall",
|
||||||
|
"wc",
|
||||||
|
"wget",
|
||||||
|
"who",
|
||||||
|
"write",
|
||||||
|
"yes",
|
||||||
|
"zsh"
|
||||||
|
],
|
||||||
|
startingWithDash: /\-+\w+/,
|
||||||
|
identifiersWithDashes: /[a-zA-Z]\w+(?:@startingWithDash)+/,
|
||||||
|
symbols: /[=><!~?&|+\-*\/\^;\.,]+/,
|
||||||
|
tokenizer: {
|
||||||
|
root: [
|
||||||
|
[/@identifiersWithDashes/, ""],
|
||||||
|
[/(\s)((?:@startingWithDash)+)/, ["white", "attribute.name"]],
|
||||||
|
[
|
||||||
|
/[a-zA-Z]\w*/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"@keywords": "keyword",
|
||||||
|
"@builtins": "type.identifier",
|
||||||
|
"@default": ""
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
{ include: "@whitespace" },
|
||||||
|
{ include: "@strings" },
|
||||||
|
{ include: "@parameters" },
|
||||||
|
{ include: "@heredoc" },
|
||||||
|
[/[{}\[\]()]/, "@brackets"],
|
||||||
|
[/@symbols/, "delimiter"],
|
||||||
|
{ include: "@numbers" },
|
||||||
|
[/[,;]/, "delimiter"]
|
||||||
|
],
|
||||||
|
whitespace: [
|
||||||
|
[/\s+/, "white"],
|
||||||
|
[/(^#!.*$)/, "metatag"],
|
||||||
|
[/(^#.*$)/, "comment"]
|
||||||
|
],
|
||||||
|
numbers: [
|
||||||
|
[/\d*\.\d+([eE][\-+]?\d+)?/, "number.float"],
|
||||||
|
[/0[xX][0-9a-fA-F_]*[0-9a-fA-F]/, "number.hex"],
|
||||||
|
[/\d+/, "number"]
|
||||||
|
],
|
||||||
|
strings: [
|
||||||
|
[/'/, "string", "@stringBody"],
|
||||||
|
[/"/, "string", "@dblStringBody"]
|
||||||
|
],
|
||||||
|
stringBody: [
|
||||||
|
[/'/, "string", "@popall"],
|
||||||
|
[/./, "string"]
|
||||||
|
],
|
||||||
|
dblStringBody: [
|
||||||
|
[/"/, "string", "@popall"],
|
||||||
|
[/./, "string"]
|
||||||
|
],
|
||||||
|
heredoc: [
|
||||||
|
[
|
||||||
|
/(<<[-<]?)(\s*)(['"`]?)([\w\-]+)(['"`]?)/,
|
||||||
|
[
|
||||||
|
"constants",
|
||||||
|
"white",
|
||||||
|
"string.heredoc.delimiter",
|
||||||
|
"string.heredoc",
|
||||||
|
"string.heredoc.delimiter"
|
||||||
|
]
|
||||||
|
]
|
||||||
|
],
|
||||||
|
parameters: [
|
||||||
|
[/\$\d+/, "variable.predefined"],
|
||||||
|
[/\$\w+/, "variable"],
|
||||||
|
[/\$[*@#?\-$!0_]/, "variable"],
|
||||||
|
[/\$'/, "variable", "@parameterBodyQuote"],
|
||||||
|
[/\$"/, "variable", "@parameterBodyDoubleQuote"],
|
||||||
|
[/\$\(/, "variable", "@parameterBodyParen"],
|
||||||
|
[/\$\{/, "variable", "@parameterBodyCurlyBrace"]
|
||||||
|
],
|
||||||
|
parameterBodyQuote: [
|
||||||
|
[/[^#:%*@\-!_']+/, "variable"],
|
||||||
|
[/[#:%*@\-!_]/, "delimiter"],
|
||||||
|
[/[']/, "variable", "@pop"]
|
||||||
|
],
|
||||||
|
parameterBodyDoubleQuote: [
|
||||||
|
[/[^#:%*@\-!_"]+/, "variable"],
|
||||||
|
[/[#:%*@\-!_]/, "delimiter"],
|
||||||
|
[/["]/, "variable", "@pop"]
|
||||||
|
],
|
||||||
|
parameterBodyParen: [
|
||||||
|
[/[^#:%*@\-!_)]+/, "variable"],
|
||||||
|
[/[#:%*@\-!_]/, "delimiter"],
|
||||||
|
[/[)]/, "variable", "@pop"]
|
||||||
|
],
|
||||||
|
parameterBodyCurlyBrace: [
|
||||||
|
[/[^#:%*@\-!_}]+/, "variable"],
|
||||||
|
[/[#:%*@\-!_]/, "delimiter"],
|
||||||
|
[/[}]/, "variable", "@pop"]
|
||||||
|
]
|
||||||
|
}
|
||||||
|
};
|
||||||
|
return __toCommonJS(shell_exports);
|
||||||
|
})();
|
||||||
|
return moduleExports;
|
||||||
|
});
|
||||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,222 @@
|
|||||||
|
/*!-----------------------------------------------------------------------------
|
||||||
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||||
|
* Version: 0.33.0(4b1abad427e58dbedc1215d99a0902ffc885fcd4)
|
||||||
|
* Released under the MIT license
|
||||||
|
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
||||||
|
*-----------------------------------------------------------------------------*/
|
||||||
|
define("vs/basic-languages/sophia/sophia", ["require"],(require)=>{
|
||||||
|
var moduleExports = (() => {
|
||||||
|
var __defProp = Object.defineProperty;
|
||||||
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||||
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||||
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||||
|
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
||||||
|
var __export = (target, all) => {
|
||||||
|
for (var name in all)
|
||||||
|
__defProp(target, name, { get: all[name], enumerable: true });
|
||||||
|
};
|
||||||
|
var __reExport = (target, module, copyDefault, desc) => {
|
||||||
|
if (module && typeof module === "object" || typeof module === "function") {
|
||||||
|
for (let key of __getOwnPropNames(module))
|
||||||
|
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
||||||
|
__defProp(target, key, { get: () => module[key], enumerable: !(desc = __getOwnPropDesc(module, key)) || desc.enumerable });
|
||||||
|
}
|
||||||
|
return target;
|
||||||
|
};
|
||||||
|
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
||||||
|
return (module, temp) => {
|
||||||
|
return cache && cache.get(module) || (temp = __reExport(__markAsModule({}), module, 1), cache && cache.set(module, temp), temp);
|
||||||
|
};
|
||||||
|
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
||||||
|
|
||||||
|
// src/basic-languages/sophia/sophia.ts
|
||||||
|
var sophia_exports = {};
|
||||||
|
__export(sophia_exports, {
|
||||||
|
conf: () => conf,
|
||||||
|
language: () => language
|
||||||
|
});
|
||||||
|
var conf = {
|
||||||
|
comments: {
|
||||||
|
lineComment: "//",
|
||||||
|
blockComment: ["/*", "*/"]
|
||||||
|
},
|
||||||
|
brackets: [
|
||||||
|
["{", "}"],
|
||||||
|
["[", "]"],
|
||||||
|
["(", ")"],
|
||||||
|
["<", ">"]
|
||||||
|
],
|
||||||
|
autoClosingPairs: [
|
||||||
|
{ open: '"', close: '"', notIn: ["string", "comment"] },
|
||||||
|
{ open: "{", close: "}", notIn: ["string", "comment"] },
|
||||||
|
{ open: "[", close: "]", notIn: ["string", "comment"] },
|
||||||
|
{ open: "(", close: ")", notIn: ["string", "comment"] }
|
||||||
|
]
|
||||||
|
};
|
||||||
|
var language = {
|
||||||
|
defaultToken: "",
|
||||||
|
tokenPostfix: ".aes",
|
||||||
|
brackets: [
|
||||||
|
{ token: "delimiter.curly", open: "{", close: "}" },
|
||||||
|
{ token: "delimiter.parenthesis", open: "(", close: ")" },
|
||||||
|
{ token: "delimiter.square", open: "[", close: "]" },
|
||||||
|
{ token: "delimiter.angle", open: "<", close: ">" }
|
||||||
|
],
|
||||||
|
keywords: [
|
||||||
|
"contract",
|
||||||
|
"library",
|
||||||
|
"entrypoint",
|
||||||
|
"function",
|
||||||
|
"stateful",
|
||||||
|
"state",
|
||||||
|
"hash",
|
||||||
|
"signature",
|
||||||
|
"tuple",
|
||||||
|
"list",
|
||||||
|
"address",
|
||||||
|
"string",
|
||||||
|
"bool",
|
||||||
|
"int",
|
||||||
|
"record",
|
||||||
|
"datatype",
|
||||||
|
"type",
|
||||||
|
"option",
|
||||||
|
"oracle",
|
||||||
|
"oracle_query",
|
||||||
|
"Call",
|
||||||
|
"Bits",
|
||||||
|
"Bytes",
|
||||||
|
"Oracle",
|
||||||
|
"String",
|
||||||
|
"Crypto",
|
||||||
|
"Address",
|
||||||
|
"Auth",
|
||||||
|
"Chain",
|
||||||
|
"None",
|
||||||
|
"Some",
|
||||||
|
"bits",
|
||||||
|
"bytes",
|
||||||
|
"event",
|
||||||
|
"let",
|
||||||
|
"map",
|
||||||
|
"private",
|
||||||
|
"public",
|
||||||
|
"true",
|
||||||
|
"false",
|
||||||
|
"var",
|
||||||
|
"if",
|
||||||
|
"else",
|
||||||
|
"throw"
|
||||||
|
],
|
||||||
|
operators: [
|
||||||
|
"=",
|
||||||
|
">",
|
||||||
|
"<",
|
||||||
|
"!",
|
||||||
|
"~",
|
||||||
|
"?",
|
||||||
|
"::",
|
||||||
|
":",
|
||||||
|
"==",
|
||||||
|
"<=",
|
||||||
|
">=",
|
||||||
|
"!=",
|
||||||
|
"&&",
|
||||||
|
"||",
|
||||||
|
"++",
|
||||||
|
"--",
|
||||||
|
"+",
|
||||||
|
"-",
|
||||||
|
"*",
|
||||||
|
"/",
|
||||||
|
"&",
|
||||||
|
"|",
|
||||||
|
"^",
|
||||||
|
"%",
|
||||||
|
"<<",
|
||||||
|
">>",
|
||||||
|
">>>",
|
||||||
|
"+=",
|
||||||
|
"-=",
|
||||||
|
"*=",
|
||||||
|
"/=",
|
||||||
|
"&=",
|
||||||
|
"|=",
|
||||||
|
"^=",
|
||||||
|
"%=",
|
||||||
|
"<<=",
|
||||||
|
">>=",
|
||||||
|
">>>="
|
||||||
|
],
|
||||||
|
symbols: /[=><!~?:&|+\-*\/\^%]+/,
|
||||||
|
escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
|
||||||
|
integersuffix: /(ll|LL|u|U|l|L)?(ll|LL|u|U|l|L)?/,
|
||||||
|
floatsuffix: /[fFlL]?/,
|
||||||
|
tokenizer: {
|
||||||
|
root: [
|
||||||
|
[
|
||||||
|
/[a-zA-Z_]\w*/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"@keywords": { token: "keyword.$0" },
|
||||||
|
"@default": "identifier"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
{ include: "@whitespace" },
|
||||||
|
[/\[\[.*\]\]/, "annotation"],
|
||||||
|
[/^\s*#\w+/, "keyword"],
|
||||||
|
[/int\d*/, "keyword"],
|
||||||
|
[/[{}()\[\]]/, "@brackets"],
|
||||||
|
[/[<>](?!@symbols)/, "@brackets"],
|
||||||
|
[
|
||||||
|
/@symbols/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"@operators": "delimiter",
|
||||||
|
"@default": ""
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/\d*\d+[eE]([\-+]?\d+)?(@floatsuffix)/, "number.float"],
|
||||||
|
[/\d*\.\d+([eE][\-+]?\d+)?(@floatsuffix)/, "number.float"],
|
||||||
|
[/0[xX][0-9a-fA-F']*[0-9a-fA-F](@integersuffix)/, "number.hex"],
|
||||||
|
[/0[0-7']*[0-7](@integersuffix)/, "number.octal"],
|
||||||
|
[/0[bB][0-1']*[0-1](@integersuffix)/, "number.binary"],
|
||||||
|
[/\d[\d']*\d(@integersuffix)/, "number"],
|
||||||
|
[/\d(@integersuffix)/, "number"],
|
||||||
|
[/[;,.]/, "delimiter"],
|
||||||
|
[/"([^"\\]|\\.)*$/, "string.invalid"],
|
||||||
|
[/"/, "string", "@string"],
|
||||||
|
[/'[^\\']'/, "string"],
|
||||||
|
[/(')(@escapes)(')/, ["string", "string.escape", "string"]],
|
||||||
|
[/'/, "string.invalid"]
|
||||||
|
],
|
||||||
|
whitespace: [
|
||||||
|
[/[ \t\r\n]+/, ""],
|
||||||
|
[/\/\*\*(?!\/)/, "comment.doc", "@doccomment"],
|
||||||
|
[/\/\*/, "comment", "@comment"],
|
||||||
|
[/\/\/.*$/, "comment"]
|
||||||
|
],
|
||||||
|
comment: [
|
||||||
|
[/[^\/*]+/, "comment"],
|
||||||
|
[/\*\//, "comment", "@pop"],
|
||||||
|
[/[\/*]/, "comment"]
|
||||||
|
],
|
||||||
|
doccomment: [
|
||||||
|
[/[^\/*]+/, "comment.doc"],
|
||||||
|
[/\*\//, "comment.doc", "@pop"],
|
||||||
|
[/[\/*]/, "comment.doc"]
|
||||||
|
],
|
||||||
|
string: [
|
||||||
|
[/[^\\"]+/, "string"],
|
||||||
|
[/@escapes/, "string.escape"],
|
||||||
|
[/\\./, "string.escape.invalid"],
|
||||||
|
[/"/, "string", "@pop"]
|
||||||
|
]
|
||||||
|
}
|
||||||
|
};
|
||||||
|
return __toCommonJS(sophia_exports);
|
||||||
|
})();
|
||||||
|
return moduleExports;
|
||||||
|
});
|
||||||
@@ -0,0 +1,225 @@
|
|||||||
|
/*!-----------------------------------------------------------------------------
|
||||||
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||||
|
* Version: 0.33.0(4b1abad427e58dbedc1215d99a0902ffc885fcd4)
|
||||||
|
* Released under the MIT license
|
||||||
|
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
||||||
|
*-----------------------------------------------------------------------------*/
|
||||||
|
define("vs/basic-languages/sparql/sparql", ["require"],(require)=>{
|
||||||
|
var moduleExports = (() => {
|
||||||
|
var __defProp = Object.defineProperty;
|
||||||
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||||
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||||
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||||
|
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
||||||
|
var __export = (target, all) => {
|
||||||
|
for (var name in all)
|
||||||
|
__defProp(target, name, { get: all[name], enumerable: true });
|
||||||
|
};
|
||||||
|
var __reExport = (target, module, copyDefault, desc) => {
|
||||||
|
if (module && typeof module === "object" || typeof module === "function") {
|
||||||
|
for (let key of __getOwnPropNames(module))
|
||||||
|
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
||||||
|
__defProp(target, key, { get: () => module[key], enumerable: !(desc = __getOwnPropDesc(module, key)) || desc.enumerable });
|
||||||
|
}
|
||||||
|
return target;
|
||||||
|
};
|
||||||
|
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
||||||
|
return (module, temp) => {
|
||||||
|
return cache && cache.get(module) || (temp = __reExport(__markAsModule({}), module, 1), cache && cache.set(module, temp), temp);
|
||||||
|
};
|
||||||
|
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
||||||
|
|
||||||
|
// src/basic-languages/sparql/sparql.ts
|
||||||
|
var sparql_exports = {};
|
||||||
|
__export(sparql_exports, {
|
||||||
|
conf: () => conf,
|
||||||
|
language: () => language
|
||||||
|
});
|
||||||
|
var conf = {
|
||||||
|
comments: {
|
||||||
|
lineComment: "#"
|
||||||
|
},
|
||||||
|
brackets: [
|
||||||
|
["{", "}"],
|
||||||
|
["[", "]"],
|
||||||
|
["(", ")"]
|
||||||
|
],
|
||||||
|
autoClosingPairs: [
|
||||||
|
{ open: "'", close: "'", notIn: ["string"] },
|
||||||
|
{ open: '"', close: '"', notIn: ["string"] },
|
||||||
|
{ open: "{", close: "}" },
|
||||||
|
{ open: "[", close: "]" },
|
||||||
|
{ open: "(", close: ")" }
|
||||||
|
]
|
||||||
|
};
|
||||||
|
var language = {
|
||||||
|
defaultToken: "",
|
||||||
|
tokenPostfix: ".rq",
|
||||||
|
brackets: [
|
||||||
|
{ token: "delimiter.curly", open: "{", close: "}" },
|
||||||
|
{ token: "delimiter.parenthesis", open: "(", close: ")" },
|
||||||
|
{ token: "delimiter.square", open: "[", close: "]" },
|
||||||
|
{ token: "delimiter.angle", open: "<", close: ">" }
|
||||||
|
],
|
||||||
|
keywords: [
|
||||||
|
"add",
|
||||||
|
"as",
|
||||||
|
"asc",
|
||||||
|
"ask",
|
||||||
|
"base",
|
||||||
|
"by",
|
||||||
|
"clear",
|
||||||
|
"construct",
|
||||||
|
"copy",
|
||||||
|
"create",
|
||||||
|
"data",
|
||||||
|
"delete",
|
||||||
|
"desc",
|
||||||
|
"describe",
|
||||||
|
"distinct",
|
||||||
|
"drop",
|
||||||
|
"false",
|
||||||
|
"filter",
|
||||||
|
"from",
|
||||||
|
"graph",
|
||||||
|
"group",
|
||||||
|
"having",
|
||||||
|
"in",
|
||||||
|
"insert",
|
||||||
|
"limit",
|
||||||
|
"load",
|
||||||
|
"minus",
|
||||||
|
"move",
|
||||||
|
"named",
|
||||||
|
"not",
|
||||||
|
"offset",
|
||||||
|
"optional",
|
||||||
|
"order",
|
||||||
|
"prefix",
|
||||||
|
"reduced",
|
||||||
|
"select",
|
||||||
|
"service",
|
||||||
|
"silent",
|
||||||
|
"to",
|
||||||
|
"true",
|
||||||
|
"undef",
|
||||||
|
"union",
|
||||||
|
"using",
|
||||||
|
"values",
|
||||||
|
"where",
|
||||||
|
"with"
|
||||||
|
],
|
||||||
|
builtinFunctions: [
|
||||||
|
"a",
|
||||||
|
"abs",
|
||||||
|
"avg",
|
||||||
|
"bind",
|
||||||
|
"bnode",
|
||||||
|
"bound",
|
||||||
|
"ceil",
|
||||||
|
"coalesce",
|
||||||
|
"concat",
|
||||||
|
"contains",
|
||||||
|
"count",
|
||||||
|
"datatype",
|
||||||
|
"day",
|
||||||
|
"encode_for_uri",
|
||||||
|
"exists",
|
||||||
|
"floor",
|
||||||
|
"group_concat",
|
||||||
|
"hours",
|
||||||
|
"if",
|
||||||
|
"iri",
|
||||||
|
"isblank",
|
||||||
|
"isiri",
|
||||||
|
"isliteral",
|
||||||
|
"isnumeric",
|
||||||
|
"isuri",
|
||||||
|
"lang",
|
||||||
|
"langmatches",
|
||||||
|
"lcase",
|
||||||
|
"max",
|
||||||
|
"md5",
|
||||||
|
"min",
|
||||||
|
"minutes",
|
||||||
|
"month",
|
||||||
|
"now",
|
||||||
|
"rand",
|
||||||
|
"regex",
|
||||||
|
"replace",
|
||||||
|
"round",
|
||||||
|
"sameterm",
|
||||||
|
"sample",
|
||||||
|
"seconds",
|
||||||
|
"sha1",
|
||||||
|
"sha256",
|
||||||
|
"sha384",
|
||||||
|
"sha512",
|
||||||
|
"str",
|
||||||
|
"strafter",
|
||||||
|
"strbefore",
|
||||||
|
"strdt",
|
||||||
|
"strends",
|
||||||
|
"strlang",
|
||||||
|
"strlen",
|
||||||
|
"strstarts",
|
||||||
|
"struuid",
|
||||||
|
"substr",
|
||||||
|
"sum",
|
||||||
|
"timezone",
|
||||||
|
"tz",
|
||||||
|
"ucase",
|
||||||
|
"uri",
|
||||||
|
"uuid",
|
||||||
|
"year"
|
||||||
|
],
|
||||||
|
ignoreCase: true,
|
||||||
|
tokenizer: {
|
||||||
|
root: [
|
||||||
|
[/<[^\s\u00a0>]*>?/, "tag"],
|
||||||
|
{ include: "@strings" },
|
||||||
|
[/#.*/, "comment"],
|
||||||
|
[/[{}()\[\]]/, "@brackets"],
|
||||||
|
[/[;,.]/, "delimiter"],
|
||||||
|
[/[_\w\d]+:(\.(?=[\w_\-\\%])|[:\w_-]|\\[-\\_~.!$&'()*+,;=/?#@%]|%[a-f\d][a-f\d])*/, "tag"],
|
||||||
|
[/:(\.(?=[\w_\-\\%])|[:\w_-]|\\[-\\_~.!$&'()*+,;=/?#@%]|%[a-f\d][a-f\d])+/, "tag"],
|
||||||
|
[
|
||||||
|
/[$?]?[_\w\d]+/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"@keywords": { token: "keyword" },
|
||||||
|
"@builtinFunctions": { token: "predefined.sql" },
|
||||||
|
"@default": "identifier"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/\^\^/, "operator.sql"],
|
||||||
|
[/\^[*+\-<>=&|^\/!?]*/, "operator.sql"],
|
||||||
|
[/[*+\-<>=&|\/!?]/, "operator.sql"],
|
||||||
|
[/@[a-z\d\-]*/, "metatag.html"],
|
||||||
|
[/\s+/, "white"]
|
||||||
|
],
|
||||||
|
strings: [
|
||||||
|
[/'([^'\\]|\\.)*$/, "string.invalid"],
|
||||||
|
[/'$/, "string.sql", "@pop"],
|
||||||
|
[/'/, "string.sql", "@stringBody"],
|
||||||
|
[/"([^"\\]|\\.)*$/, "string.invalid"],
|
||||||
|
[/"$/, "string.sql", "@pop"],
|
||||||
|
[/"/, "string.sql", "@dblStringBody"]
|
||||||
|
],
|
||||||
|
stringBody: [
|
||||||
|
[/[^\\']+/, "string.sql"],
|
||||||
|
[/\\./, "string.escape"],
|
||||||
|
[/'/, "string.sql", "@pop"]
|
||||||
|
],
|
||||||
|
dblStringBody: [
|
||||||
|
[/[^\\"]+/, "string.sql"],
|
||||||
|
[/\\./, "string.escape"],
|
||||||
|
[/"/, "string.sql", "@pop"]
|
||||||
|
]
|
||||||
|
}
|
||||||
|
};
|
||||||
|
return __toCommonJS(sparql_exports);
|
||||||
|
})();
|
||||||
|
return moduleExports;
|
||||||
|
});
|
||||||
@@ -0,0 +1,850 @@
|
|||||||
|
/*!-----------------------------------------------------------------------------
|
||||||
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||||
|
* Version: 0.33.0(4b1abad427e58dbedc1215d99a0902ffc885fcd4)
|
||||||
|
* Released under the MIT license
|
||||||
|
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
||||||
|
*-----------------------------------------------------------------------------*/
|
||||||
|
define("vs/basic-languages/sql/sql", ["require"],(require)=>{
|
||||||
|
var moduleExports = (() => {
|
||||||
|
var __defProp = Object.defineProperty;
|
||||||
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||||
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||||
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||||
|
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
||||||
|
var __export = (target, all) => {
|
||||||
|
for (var name in all)
|
||||||
|
__defProp(target, name, { get: all[name], enumerable: true });
|
||||||
|
};
|
||||||
|
var __reExport = (target, module, copyDefault, desc) => {
|
||||||
|
if (module && typeof module === "object" || typeof module === "function") {
|
||||||
|
for (let key of __getOwnPropNames(module))
|
||||||
|
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
||||||
|
__defProp(target, key, { get: () => module[key], enumerable: !(desc = __getOwnPropDesc(module, key)) || desc.enumerable });
|
||||||
|
}
|
||||||
|
return target;
|
||||||
|
};
|
||||||
|
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
||||||
|
return (module, temp) => {
|
||||||
|
return cache && cache.get(module) || (temp = __reExport(__markAsModule({}), module, 1), cache && cache.set(module, temp), temp);
|
||||||
|
};
|
||||||
|
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
||||||
|
|
||||||
|
// src/basic-languages/sql/sql.ts
|
||||||
|
var sql_exports = {};
|
||||||
|
__export(sql_exports, {
|
||||||
|
conf: () => conf,
|
||||||
|
language: () => language
|
||||||
|
});
|
||||||
|
var conf = {
|
||||||
|
comments: {
|
||||||
|
lineComment: "--",
|
||||||
|
blockComment: ["/*", "*/"]
|
||||||
|
},
|
||||||
|
brackets: [
|
||||||
|
["{", "}"],
|
||||||
|
["[", "]"],
|
||||||
|
["(", ")"]
|
||||||
|
],
|
||||||
|
autoClosingPairs: [
|
||||||
|
{ open: "{", close: "}" },
|
||||||
|
{ open: "[", close: "]" },
|
||||||
|
{ open: "(", close: ")" },
|
||||||
|
{ open: '"', close: '"' },
|
||||||
|
{ open: "'", close: "'" }
|
||||||
|
],
|
||||||
|
surroundingPairs: [
|
||||||
|
{ open: "{", close: "}" },
|
||||||
|
{ open: "[", close: "]" },
|
||||||
|
{ open: "(", close: ")" },
|
||||||
|
{ open: '"', close: '"' },
|
||||||
|
{ open: "'", close: "'" }
|
||||||
|
]
|
||||||
|
};
|
||||||
|
var language = {
|
||||||
|
defaultToken: "",
|
||||||
|
tokenPostfix: ".sql",
|
||||||
|
ignoreCase: true,
|
||||||
|
brackets: [
|
||||||
|
{ open: "[", close: "]", token: "delimiter.square" },
|
||||||
|
{ open: "(", close: ")", token: "delimiter.parenthesis" }
|
||||||
|
],
|
||||||
|
keywords: [
|
||||||
|
"ABORT",
|
||||||
|
"ABSOLUTE",
|
||||||
|
"ACTION",
|
||||||
|
"ADA",
|
||||||
|
"ADD",
|
||||||
|
"AFTER",
|
||||||
|
"ALL",
|
||||||
|
"ALLOCATE",
|
||||||
|
"ALTER",
|
||||||
|
"ALWAYS",
|
||||||
|
"ANALYZE",
|
||||||
|
"AND",
|
||||||
|
"ANY",
|
||||||
|
"ARE",
|
||||||
|
"AS",
|
||||||
|
"ASC",
|
||||||
|
"ASSERTION",
|
||||||
|
"AT",
|
||||||
|
"ATTACH",
|
||||||
|
"AUTHORIZATION",
|
||||||
|
"AUTOINCREMENT",
|
||||||
|
"AVG",
|
||||||
|
"BACKUP",
|
||||||
|
"BEFORE",
|
||||||
|
"BEGIN",
|
||||||
|
"BETWEEN",
|
||||||
|
"BIT",
|
||||||
|
"BIT_LENGTH",
|
||||||
|
"BOTH",
|
||||||
|
"BREAK",
|
||||||
|
"BROWSE",
|
||||||
|
"BULK",
|
||||||
|
"BY",
|
||||||
|
"CASCADE",
|
||||||
|
"CASCADED",
|
||||||
|
"CASE",
|
||||||
|
"CAST",
|
||||||
|
"CATALOG",
|
||||||
|
"CHAR",
|
||||||
|
"CHARACTER",
|
||||||
|
"CHARACTER_LENGTH",
|
||||||
|
"CHAR_LENGTH",
|
||||||
|
"CHECK",
|
||||||
|
"CHECKPOINT",
|
||||||
|
"CLOSE",
|
||||||
|
"CLUSTERED",
|
||||||
|
"COALESCE",
|
||||||
|
"COLLATE",
|
||||||
|
"COLLATION",
|
||||||
|
"COLUMN",
|
||||||
|
"COMMIT",
|
||||||
|
"COMPUTE",
|
||||||
|
"CONFLICT",
|
||||||
|
"CONNECT",
|
||||||
|
"CONNECTION",
|
||||||
|
"CONSTRAINT",
|
||||||
|
"CONSTRAINTS",
|
||||||
|
"CONTAINS",
|
||||||
|
"CONTAINSTABLE",
|
||||||
|
"CONTINUE",
|
||||||
|
"CONVERT",
|
||||||
|
"CORRESPONDING",
|
||||||
|
"COUNT",
|
||||||
|
"CREATE",
|
||||||
|
"CROSS",
|
||||||
|
"CURRENT",
|
||||||
|
"CURRENT_DATE",
|
||||||
|
"CURRENT_TIME",
|
||||||
|
"CURRENT_TIMESTAMP",
|
||||||
|
"CURRENT_USER",
|
||||||
|
"CURSOR",
|
||||||
|
"DATABASE",
|
||||||
|
"DATE",
|
||||||
|
"DAY",
|
||||||
|
"DBCC",
|
||||||
|
"DEALLOCATE",
|
||||||
|
"DEC",
|
||||||
|
"DECIMAL",
|
||||||
|
"DECLARE",
|
||||||
|
"DEFAULT",
|
||||||
|
"DEFERRABLE",
|
||||||
|
"DEFERRED",
|
||||||
|
"DELETE",
|
||||||
|
"DENY",
|
||||||
|
"DESC",
|
||||||
|
"DESCRIBE",
|
||||||
|
"DESCRIPTOR",
|
||||||
|
"DETACH",
|
||||||
|
"DIAGNOSTICS",
|
||||||
|
"DISCONNECT",
|
||||||
|
"DISK",
|
||||||
|
"DISTINCT",
|
||||||
|
"DISTRIBUTED",
|
||||||
|
"DO",
|
||||||
|
"DOMAIN",
|
||||||
|
"DOUBLE",
|
||||||
|
"DROP",
|
||||||
|
"DUMP",
|
||||||
|
"EACH",
|
||||||
|
"ELSE",
|
||||||
|
"END",
|
||||||
|
"END-EXEC",
|
||||||
|
"ERRLVL",
|
||||||
|
"ESCAPE",
|
||||||
|
"EXCEPT",
|
||||||
|
"EXCEPTION",
|
||||||
|
"EXCLUDE",
|
||||||
|
"EXCLUSIVE",
|
||||||
|
"EXEC",
|
||||||
|
"EXECUTE",
|
||||||
|
"EXISTS",
|
||||||
|
"EXIT",
|
||||||
|
"EXPLAIN",
|
||||||
|
"EXTERNAL",
|
||||||
|
"EXTRACT",
|
||||||
|
"FAIL",
|
||||||
|
"FALSE",
|
||||||
|
"FETCH",
|
||||||
|
"FILE",
|
||||||
|
"FILLFACTOR",
|
||||||
|
"FILTER",
|
||||||
|
"FIRST",
|
||||||
|
"FLOAT",
|
||||||
|
"FOLLOWING",
|
||||||
|
"FOR",
|
||||||
|
"FOREIGN",
|
||||||
|
"FORTRAN",
|
||||||
|
"FOUND",
|
||||||
|
"FREETEXT",
|
||||||
|
"FREETEXTTABLE",
|
||||||
|
"FROM",
|
||||||
|
"FULL",
|
||||||
|
"FUNCTION",
|
||||||
|
"GENERATED",
|
||||||
|
"GET",
|
||||||
|
"GLOB",
|
||||||
|
"GLOBAL",
|
||||||
|
"GO",
|
||||||
|
"GOTO",
|
||||||
|
"GRANT",
|
||||||
|
"GROUP",
|
||||||
|
"GROUPS",
|
||||||
|
"HAVING",
|
||||||
|
"HOLDLOCK",
|
||||||
|
"HOUR",
|
||||||
|
"IDENTITY",
|
||||||
|
"IDENTITYCOL",
|
||||||
|
"IDENTITY_INSERT",
|
||||||
|
"IF",
|
||||||
|
"IGNORE",
|
||||||
|
"IMMEDIATE",
|
||||||
|
"IN",
|
||||||
|
"INCLUDE",
|
||||||
|
"INDEX",
|
||||||
|
"INDEXED",
|
||||||
|
"INDICATOR",
|
||||||
|
"INITIALLY",
|
||||||
|
"INNER",
|
||||||
|
"INPUT",
|
||||||
|
"INSENSITIVE",
|
||||||
|
"INSERT",
|
||||||
|
"INSTEAD",
|
||||||
|
"INT",
|
||||||
|
"INTEGER",
|
||||||
|
"INTERSECT",
|
||||||
|
"INTERVAL",
|
||||||
|
"INTO",
|
||||||
|
"IS",
|
||||||
|
"ISNULL",
|
||||||
|
"ISOLATION",
|
||||||
|
"JOIN",
|
||||||
|
"KEY",
|
||||||
|
"KILL",
|
||||||
|
"LANGUAGE",
|
||||||
|
"LAST",
|
||||||
|
"LEADING",
|
||||||
|
"LEFT",
|
||||||
|
"LEVEL",
|
||||||
|
"LIKE",
|
||||||
|
"LIMIT",
|
||||||
|
"LINENO",
|
||||||
|
"LOAD",
|
||||||
|
"LOCAL",
|
||||||
|
"LOWER",
|
||||||
|
"MATCH",
|
||||||
|
"MATERIALIZED",
|
||||||
|
"MAX",
|
||||||
|
"MERGE",
|
||||||
|
"MIN",
|
||||||
|
"MINUTE",
|
||||||
|
"MODULE",
|
||||||
|
"MONTH",
|
||||||
|
"NAMES",
|
||||||
|
"NATIONAL",
|
||||||
|
"NATURAL",
|
||||||
|
"NCHAR",
|
||||||
|
"NEXT",
|
||||||
|
"NO",
|
||||||
|
"NOCHECK",
|
||||||
|
"NONCLUSTERED",
|
||||||
|
"NONE",
|
||||||
|
"NOT",
|
||||||
|
"NOTHING",
|
||||||
|
"NOTNULL",
|
||||||
|
"NULL",
|
||||||
|
"NULLIF",
|
||||||
|
"NULLS",
|
||||||
|
"NUMERIC",
|
||||||
|
"OCTET_LENGTH",
|
||||||
|
"OF",
|
||||||
|
"OFF",
|
||||||
|
"OFFSET",
|
||||||
|
"OFFSETS",
|
||||||
|
"ON",
|
||||||
|
"ONLY",
|
||||||
|
"OPEN",
|
||||||
|
"OPENDATASOURCE",
|
||||||
|
"OPENQUERY",
|
||||||
|
"OPENROWSET",
|
||||||
|
"OPENXML",
|
||||||
|
"OPTION",
|
||||||
|
"OR",
|
||||||
|
"ORDER",
|
||||||
|
"OTHERS",
|
||||||
|
"OUTER",
|
||||||
|
"OUTPUT",
|
||||||
|
"OVER",
|
||||||
|
"OVERLAPS",
|
||||||
|
"PAD",
|
||||||
|
"PARTIAL",
|
||||||
|
"PARTITION",
|
||||||
|
"PASCAL",
|
||||||
|
"PERCENT",
|
||||||
|
"PIVOT",
|
||||||
|
"PLAN",
|
||||||
|
"POSITION",
|
||||||
|
"PRAGMA",
|
||||||
|
"PRECEDING",
|
||||||
|
"PRECISION",
|
||||||
|
"PREPARE",
|
||||||
|
"PRESERVE",
|
||||||
|
"PRIMARY",
|
||||||
|
"PRINT",
|
||||||
|
"PRIOR",
|
||||||
|
"PRIVILEGES",
|
||||||
|
"PROC",
|
||||||
|
"PROCEDURE",
|
||||||
|
"PUBLIC",
|
||||||
|
"QUERY",
|
||||||
|
"RAISE",
|
||||||
|
"RAISERROR",
|
||||||
|
"RANGE",
|
||||||
|
"READ",
|
||||||
|
"READTEXT",
|
||||||
|
"REAL",
|
||||||
|
"RECONFIGURE",
|
||||||
|
"RECURSIVE",
|
||||||
|
"REFERENCES",
|
||||||
|
"REGEXP",
|
||||||
|
"REINDEX",
|
||||||
|
"RELATIVE",
|
||||||
|
"RELEASE",
|
||||||
|
"RENAME",
|
||||||
|
"REPLACE",
|
||||||
|
"REPLICATION",
|
||||||
|
"RESTORE",
|
||||||
|
"RESTRICT",
|
||||||
|
"RETURN",
|
||||||
|
"RETURNING",
|
||||||
|
"REVERT",
|
||||||
|
"REVOKE",
|
||||||
|
"RIGHT",
|
||||||
|
"ROLLBACK",
|
||||||
|
"ROW",
|
||||||
|
"ROWCOUNT",
|
||||||
|
"ROWGUIDCOL",
|
||||||
|
"ROWS",
|
||||||
|
"RULE",
|
||||||
|
"SAVE",
|
||||||
|
"SAVEPOINT",
|
||||||
|
"SCHEMA",
|
||||||
|
"SCROLL",
|
||||||
|
"SECOND",
|
||||||
|
"SECTION",
|
||||||
|
"SECURITYAUDIT",
|
||||||
|
"SELECT",
|
||||||
|
"SEMANTICKEYPHRASETABLE",
|
||||||
|
"SEMANTICSIMILARITYDETAILSTABLE",
|
||||||
|
"SEMANTICSIMILARITYTABLE",
|
||||||
|
"SESSION",
|
||||||
|
"SESSION_USER",
|
||||||
|
"SET",
|
||||||
|
"SETUSER",
|
||||||
|
"SHUTDOWN",
|
||||||
|
"SIZE",
|
||||||
|
"SMALLINT",
|
||||||
|
"SOME",
|
||||||
|
"SPACE",
|
||||||
|
"SQL",
|
||||||
|
"SQLCA",
|
||||||
|
"SQLCODE",
|
||||||
|
"SQLERROR",
|
||||||
|
"SQLSTATE",
|
||||||
|
"SQLWARNING",
|
||||||
|
"STATISTICS",
|
||||||
|
"SUBSTRING",
|
||||||
|
"SUM",
|
||||||
|
"SYSTEM_USER",
|
||||||
|
"TABLE",
|
||||||
|
"TABLESAMPLE",
|
||||||
|
"TEMP",
|
||||||
|
"TEMPORARY",
|
||||||
|
"TEXTSIZE",
|
||||||
|
"THEN",
|
||||||
|
"TIES",
|
||||||
|
"TIME",
|
||||||
|
"TIMESTAMP",
|
||||||
|
"TIMEZONE_HOUR",
|
||||||
|
"TIMEZONE_MINUTE",
|
||||||
|
"TO",
|
||||||
|
"TOP",
|
||||||
|
"TRAILING",
|
||||||
|
"TRAN",
|
||||||
|
"TRANSACTION",
|
||||||
|
"TRANSLATE",
|
||||||
|
"TRANSLATION",
|
||||||
|
"TRIGGER",
|
||||||
|
"TRIM",
|
||||||
|
"TRUE",
|
||||||
|
"TRUNCATE",
|
||||||
|
"TRY_CONVERT",
|
||||||
|
"TSEQUAL",
|
||||||
|
"UNBOUNDED",
|
||||||
|
"UNION",
|
||||||
|
"UNIQUE",
|
||||||
|
"UNKNOWN",
|
||||||
|
"UNPIVOT",
|
||||||
|
"UPDATE",
|
||||||
|
"UPDATETEXT",
|
||||||
|
"UPPER",
|
||||||
|
"USAGE",
|
||||||
|
"USE",
|
||||||
|
"USER",
|
||||||
|
"USING",
|
||||||
|
"VACUUM",
|
||||||
|
"VALUE",
|
||||||
|
"VALUES",
|
||||||
|
"VARCHAR",
|
||||||
|
"VARYING",
|
||||||
|
"VIEW",
|
||||||
|
"VIRTUAL",
|
||||||
|
"WAITFOR",
|
||||||
|
"WHEN",
|
||||||
|
"WHENEVER",
|
||||||
|
"WHERE",
|
||||||
|
"WHILE",
|
||||||
|
"WINDOW",
|
||||||
|
"WITH",
|
||||||
|
"WITHIN GROUP",
|
||||||
|
"WITHOUT",
|
||||||
|
"WORK",
|
||||||
|
"WRITE",
|
||||||
|
"WRITETEXT",
|
||||||
|
"YEAR",
|
||||||
|
"ZONE"
|
||||||
|
],
|
||||||
|
operators: [
|
||||||
|
"ALL",
|
||||||
|
"AND",
|
||||||
|
"ANY",
|
||||||
|
"BETWEEN",
|
||||||
|
"EXISTS",
|
||||||
|
"IN",
|
||||||
|
"LIKE",
|
||||||
|
"NOT",
|
||||||
|
"OR",
|
||||||
|
"SOME",
|
||||||
|
"EXCEPT",
|
||||||
|
"INTERSECT",
|
||||||
|
"UNION",
|
||||||
|
"APPLY",
|
||||||
|
"CROSS",
|
||||||
|
"FULL",
|
||||||
|
"INNER",
|
||||||
|
"JOIN",
|
||||||
|
"LEFT",
|
||||||
|
"OUTER",
|
||||||
|
"RIGHT",
|
||||||
|
"CONTAINS",
|
||||||
|
"FREETEXT",
|
||||||
|
"IS",
|
||||||
|
"NULL",
|
||||||
|
"PIVOT",
|
||||||
|
"UNPIVOT",
|
||||||
|
"MATCHED"
|
||||||
|
],
|
||||||
|
builtinFunctions: [
|
||||||
|
"AVG",
|
||||||
|
"CHECKSUM_AGG",
|
||||||
|
"COUNT",
|
||||||
|
"COUNT_BIG",
|
||||||
|
"GROUPING",
|
||||||
|
"GROUPING_ID",
|
||||||
|
"MAX",
|
||||||
|
"MIN",
|
||||||
|
"SUM",
|
||||||
|
"STDEV",
|
||||||
|
"STDEVP",
|
||||||
|
"VAR",
|
||||||
|
"VARP",
|
||||||
|
"CUME_DIST",
|
||||||
|
"FIRST_VALUE",
|
||||||
|
"LAG",
|
||||||
|
"LAST_VALUE",
|
||||||
|
"LEAD",
|
||||||
|
"PERCENTILE_CONT",
|
||||||
|
"PERCENTILE_DISC",
|
||||||
|
"PERCENT_RANK",
|
||||||
|
"COLLATE",
|
||||||
|
"COLLATIONPROPERTY",
|
||||||
|
"TERTIARY_WEIGHTS",
|
||||||
|
"FEDERATION_FILTERING_VALUE",
|
||||||
|
"CAST",
|
||||||
|
"CONVERT",
|
||||||
|
"PARSE",
|
||||||
|
"TRY_CAST",
|
||||||
|
"TRY_CONVERT",
|
||||||
|
"TRY_PARSE",
|
||||||
|
"ASYMKEY_ID",
|
||||||
|
"ASYMKEYPROPERTY",
|
||||||
|
"CERTPROPERTY",
|
||||||
|
"CERT_ID",
|
||||||
|
"CRYPT_GEN_RANDOM",
|
||||||
|
"DECRYPTBYASYMKEY",
|
||||||
|
"DECRYPTBYCERT",
|
||||||
|
"DECRYPTBYKEY",
|
||||||
|
"DECRYPTBYKEYAUTOASYMKEY",
|
||||||
|
"DECRYPTBYKEYAUTOCERT",
|
||||||
|
"DECRYPTBYPASSPHRASE",
|
||||||
|
"ENCRYPTBYASYMKEY",
|
||||||
|
"ENCRYPTBYCERT",
|
||||||
|
"ENCRYPTBYKEY",
|
||||||
|
"ENCRYPTBYPASSPHRASE",
|
||||||
|
"HASHBYTES",
|
||||||
|
"IS_OBJECTSIGNED",
|
||||||
|
"KEY_GUID",
|
||||||
|
"KEY_ID",
|
||||||
|
"KEY_NAME",
|
||||||
|
"SIGNBYASYMKEY",
|
||||||
|
"SIGNBYCERT",
|
||||||
|
"SYMKEYPROPERTY",
|
||||||
|
"VERIFYSIGNEDBYCERT",
|
||||||
|
"VERIFYSIGNEDBYASYMKEY",
|
||||||
|
"CURSOR_STATUS",
|
||||||
|
"DATALENGTH",
|
||||||
|
"IDENT_CURRENT",
|
||||||
|
"IDENT_INCR",
|
||||||
|
"IDENT_SEED",
|
||||||
|
"IDENTITY",
|
||||||
|
"SQL_VARIANT_PROPERTY",
|
||||||
|
"CURRENT_TIMESTAMP",
|
||||||
|
"DATEADD",
|
||||||
|
"DATEDIFF",
|
||||||
|
"DATEFROMPARTS",
|
||||||
|
"DATENAME",
|
||||||
|
"DATEPART",
|
||||||
|
"DATETIME2FROMPARTS",
|
||||||
|
"DATETIMEFROMPARTS",
|
||||||
|
"DATETIMEOFFSETFROMPARTS",
|
||||||
|
"DAY",
|
||||||
|
"EOMONTH",
|
||||||
|
"GETDATE",
|
||||||
|
"GETUTCDATE",
|
||||||
|
"ISDATE",
|
||||||
|
"MONTH",
|
||||||
|
"SMALLDATETIMEFROMPARTS",
|
||||||
|
"SWITCHOFFSET",
|
||||||
|
"SYSDATETIME",
|
||||||
|
"SYSDATETIMEOFFSET",
|
||||||
|
"SYSUTCDATETIME",
|
||||||
|
"TIMEFROMPARTS",
|
||||||
|
"TODATETIMEOFFSET",
|
||||||
|
"YEAR",
|
||||||
|
"CHOOSE",
|
||||||
|
"COALESCE",
|
||||||
|
"IIF",
|
||||||
|
"NULLIF",
|
||||||
|
"ABS",
|
||||||
|
"ACOS",
|
||||||
|
"ASIN",
|
||||||
|
"ATAN",
|
||||||
|
"ATN2",
|
||||||
|
"CEILING",
|
||||||
|
"COS",
|
||||||
|
"COT",
|
||||||
|
"DEGREES",
|
||||||
|
"EXP",
|
||||||
|
"FLOOR",
|
||||||
|
"LOG",
|
||||||
|
"LOG10",
|
||||||
|
"PI",
|
||||||
|
"POWER",
|
||||||
|
"RADIANS",
|
||||||
|
"RAND",
|
||||||
|
"ROUND",
|
||||||
|
"SIGN",
|
||||||
|
"SIN",
|
||||||
|
"SQRT",
|
||||||
|
"SQUARE",
|
||||||
|
"TAN",
|
||||||
|
"APP_NAME",
|
||||||
|
"APPLOCK_MODE",
|
||||||
|
"APPLOCK_TEST",
|
||||||
|
"ASSEMBLYPROPERTY",
|
||||||
|
"COL_LENGTH",
|
||||||
|
"COL_NAME",
|
||||||
|
"COLUMNPROPERTY",
|
||||||
|
"DATABASE_PRINCIPAL_ID",
|
||||||
|
"DATABASEPROPERTYEX",
|
||||||
|
"DB_ID",
|
||||||
|
"DB_NAME",
|
||||||
|
"FILE_ID",
|
||||||
|
"FILE_IDEX",
|
||||||
|
"FILE_NAME",
|
||||||
|
"FILEGROUP_ID",
|
||||||
|
"FILEGROUP_NAME",
|
||||||
|
"FILEGROUPPROPERTY",
|
||||||
|
"FILEPROPERTY",
|
||||||
|
"FULLTEXTCATALOGPROPERTY",
|
||||||
|
"FULLTEXTSERVICEPROPERTY",
|
||||||
|
"INDEX_COL",
|
||||||
|
"INDEXKEY_PROPERTY",
|
||||||
|
"INDEXPROPERTY",
|
||||||
|
"OBJECT_DEFINITION",
|
||||||
|
"OBJECT_ID",
|
||||||
|
"OBJECT_NAME",
|
||||||
|
"OBJECT_SCHEMA_NAME",
|
||||||
|
"OBJECTPROPERTY",
|
||||||
|
"OBJECTPROPERTYEX",
|
||||||
|
"ORIGINAL_DB_NAME",
|
||||||
|
"PARSENAME",
|
||||||
|
"SCHEMA_ID",
|
||||||
|
"SCHEMA_NAME",
|
||||||
|
"SCOPE_IDENTITY",
|
||||||
|
"SERVERPROPERTY",
|
||||||
|
"STATS_DATE",
|
||||||
|
"TYPE_ID",
|
||||||
|
"TYPE_NAME",
|
||||||
|
"TYPEPROPERTY",
|
||||||
|
"DENSE_RANK",
|
||||||
|
"NTILE",
|
||||||
|
"RANK",
|
||||||
|
"ROW_NUMBER",
|
||||||
|
"PUBLISHINGSERVERNAME",
|
||||||
|
"OPENDATASOURCE",
|
||||||
|
"OPENQUERY",
|
||||||
|
"OPENROWSET",
|
||||||
|
"OPENXML",
|
||||||
|
"CERTENCODED",
|
||||||
|
"CERTPRIVATEKEY",
|
||||||
|
"CURRENT_USER",
|
||||||
|
"HAS_DBACCESS",
|
||||||
|
"HAS_PERMS_BY_NAME",
|
||||||
|
"IS_MEMBER",
|
||||||
|
"IS_ROLEMEMBER",
|
||||||
|
"IS_SRVROLEMEMBER",
|
||||||
|
"LOGINPROPERTY",
|
||||||
|
"ORIGINAL_LOGIN",
|
||||||
|
"PERMISSIONS",
|
||||||
|
"PWDENCRYPT",
|
||||||
|
"PWDCOMPARE",
|
||||||
|
"SESSION_USER",
|
||||||
|
"SESSIONPROPERTY",
|
||||||
|
"SUSER_ID",
|
||||||
|
"SUSER_NAME",
|
||||||
|
"SUSER_SID",
|
||||||
|
"SUSER_SNAME",
|
||||||
|
"SYSTEM_USER",
|
||||||
|
"USER",
|
||||||
|
"USER_ID",
|
||||||
|
"USER_NAME",
|
||||||
|
"ASCII",
|
||||||
|
"CHAR",
|
||||||
|
"CHARINDEX",
|
||||||
|
"CONCAT",
|
||||||
|
"DIFFERENCE",
|
||||||
|
"FORMAT",
|
||||||
|
"LEFT",
|
||||||
|
"LEN",
|
||||||
|
"LOWER",
|
||||||
|
"LTRIM",
|
||||||
|
"NCHAR",
|
||||||
|
"PATINDEX",
|
||||||
|
"QUOTENAME",
|
||||||
|
"REPLACE",
|
||||||
|
"REPLICATE",
|
||||||
|
"REVERSE",
|
||||||
|
"RIGHT",
|
||||||
|
"RTRIM",
|
||||||
|
"SOUNDEX",
|
||||||
|
"SPACE",
|
||||||
|
"STR",
|
||||||
|
"STUFF",
|
||||||
|
"SUBSTRING",
|
||||||
|
"UNICODE",
|
||||||
|
"UPPER",
|
||||||
|
"BINARY_CHECKSUM",
|
||||||
|
"CHECKSUM",
|
||||||
|
"CONNECTIONPROPERTY",
|
||||||
|
"CONTEXT_INFO",
|
||||||
|
"CURRENT_REQUEST_ID",
|
||||||
|
"ERROR_LINE",
|
||||||
|
"ERROR_NUMBER",
|
||||||
|
"ERROR_MESSAGE",
|
||||||
|
"ERROR_PROCEDURE",
|
||||||
|
"ERROR_SEVERITY",
|
||||||
|
"ERROR_STATE",
|
||||||
|
"FORMATMESSAGE",
|
||||||
|
"GETANSINULL",
|
||||||
|
"GET_FILESTREAM_TRANSACTION_CONTEXT",
|
||||||
|
"HOST_ID",
|
||||||
|
"HOST_NAME",
|
||||||
|
"ISNULL",
|
||||||
|
"ISNUMERIC",
|
||||||
|
"MIN_ACTIVE_ROWVERSION",
|
||||||
|
"NEWID",
|
||||||
|
"NEWSEQUENTIALID",
|
||||||
|
"ROWCOUNT_BIG",
|
||||||
|
"XACT_STATE",
|
||||||
|
"TEXTPTR",
|
||||||
|
"TEXTVALID",
|
||||||
|
"COLUMNS_UPDATED",
|
||||||
|
"EVENTDATA",
|
||||||
|
"TRIGGER_NESTLEVEL",
|
||||||
|
"UPDATE",
|
||||||
|
"CHANGETABLE",
|
||||||
|
"CHANGE_TRACKING_CONTEXT",
|
||||||
|
"CHANGE_TRACKING_CURRENT_VERSION",
|
||||||
|
"CHANGE_TRACKING_IS_COLUMN_IN_MASK",
|
||||||
|
"CHANGE_TRACKING_MIN_VALID_VERSION",
|
||||||
|
"CONTAINSTABLE",
|
||||||
|
"FREETEXTTABLE",
|
||||||
|
"SEMANTICKEYPHRASETABLE",
|
||||||
|
"SEMANTICSIMILARITYDETAILSTABLE",
|
||||||
|
"SEMANTICSIMILARITYTABLE",
|
||||||
|
"FILETABLEROOTPATH",
|
||||||
|
"GETFILENAMESPACEPATH",
|
||||||
|
"GETPATHLOCATOR",
|
||||||
|
"PATHNAME",
|
||||||
|
"GET_TRANSMISSION_STATUS"
|
||||||
|
],
|
||||||
|
builtinVariables: [
|
||||||
|
"@@DATEFIRST",
|
||||||
|
"@@DBTS",
|
||||||
|
"@@LANGID",
|
||||||
|
"@@LANGUAGE",
|
||||||
|
"@@LOCK_TIMEOUT",
|
||||||
|
"@@MAX_CONNECTIONS",
|
||||||
|
"@@MAX_PRECISION",
|
||||||
|
"@@NESTLEVEL",
|
||||||
|
"@@OPTIONS",
|
||||||
|
"@@REMSERVER",
|
||||||
|
"@@SERVERNAME",
|
||||||
|
"@@SERVICENAME",
|
||||||
|
"@@SPID",
|
||||||
|
"@@TEXTSIZE",
|
||||||
|
"@@VERSION",
|
||||||
|
"@@CURSOR_ROWS",
|
||||||
|
"@@FETCH_STATUS",
|
||||||
|
"@@DATEFIRST",
|
||||||
|
"@@PROCID",
|
||||||
|
"@@ERROR",
|
||||||
|
"@@IDENTITY",
|
||||||
|
"@@ROWCOUNT",
|
||||||
|
"@@TRANCOUNT",
|
||||||
|
"@@CONNECTIONS",
|
||||||
|
"@@CPU_BUSY",
|
||||||
|
"@@IDLE",
|
||||||
|
"@@IO_BUSY",
|
||||||
|
"@@PACKET_ERRORS",
|
||||||
|
"@@PACK_RECEIVED",
|
||||||
|
"@@PACK_SENT",
|
||||||
|
"@@TIMETICKS",
|
||||||
|
"@@TOTAL_ERRORS",
|
||||||
|
"@@TOTAL_READ",
|
||||||
|
"@@TOTAL_WRITE"
|
||||||
|
],
|
||||||
|
pseudoColumns: ["$ACTION", "$IDENTITY", "$ROWGUID", "$PARTITION"],
|
||||||
|
tokenizer: {
|
||||||
|
root: [
|
||||||
|
{ include: "@comments" },
|
||||||
|
{ include: "@whitespace" },
|
||||||
|
{ include: "@pseudoColumns" },
|
||||||
|
{ include: "@numbers" },
|
||||||
|
{ include: "@strings" },
|
||||||
|
{ include: "@complexIdentifiers" },
|
||||||
|
{ include: "@scopes" },
|
||||||
|
[/[;,.]/, "delimiter"],
|
||||||
|
[/[()]/, "@brackets"],
|
||||||
|
[
|
||||||
|
/[\w@#$]+/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"@operators": "operator",
|
||||||
|
"@builtinVariables": "predefined",
|
||||||
|
"@builtinFunctions": "predefined",
|
||||||
|
"@keywords": "keyword",
|
||||||
|
"@default": "identifier"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/[<>=!%&+\-*/|~^]/, "operator"]
|
||||||
|
],
|
||||||
|
whitespace: [[/\s+/, "white"]],
|
||||||
|
comments: [
|
||||||
|
[/--+.*/, "comment"],
|
||||||
|
[/\/\*/, { token: "comment.quote", next: "@comment" }]
|
||||||
|
],
|
||||||
|
comment: [
|
||||||
|
[/[^*/]+/, "comment"],
|
||||||
|
[/\*\//, { token: "comment.quote", next: "@pop" }],
|
||||||
|
[/./, "comment"]
|
||||||
|
],
|
||||||
|
pseudoColumns: [
|
||||||
|
[
|
||||||
|
/[$][A-Za-z_][\w@#$]*/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"@pseudoColumns": "predefined",
|
||||||
|
"@default": "identifier"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
],
|
||||||
|
numbers: [
|
||||||
|
[/0[xX][0-9a-fA-F]*/, "number"],
|
||||||
|
[/[$][+-]*\d*(\.\d*)?/, "number"],
|
||||||
|
[/((\d+(\.\d*)?)|(\.\d+))([eE][\-+]?\d+)?/, "number"]
|
||||||
|
],
|
||||||
|
strings: [
|
||||||
|
[/N'/, { token: "string", next: "@string" }],
|
||||||
|
[/'/, { token: "string", next: "@string" }]
|
||||||
|
],
|
||||||
|
string: [
|
||||||
|
[/[^']+/, "string"],
|
||||||
|
[/''/, "string"],
|
||||||
|
[/'/, { token: "string", next: "@pop" }]
|
||||||
|
],
|
||||||
|
complexIdentifiers: [
|
||||||
|
[/\[/, { token: "identifier.quote", next: "@bracketedIdentifier" }],
|
||||||
|
[/"/, { token: "identifier.quote", next: "@quotedIdentifier" }]
|
||||||
|
],
|
||||||
|
bracketedIdentifier: [
|
||||||
|
[/[^\]]+/, "identifier"],
|
||||||
|
[/]]/, "identifier"],
|
||||||
|
[/]/, { token: "identifier.quote", next: "@pop" }]
|
||||||
|
],
|
||||||
|
quotedIdentifier: [
|
||||||
|
[/[^"]+/, "identifier"],
|
||||||
|
[/""/, "identifier"],
|
||||||
|
[/"/, { token: "identifier.quote", next: "@pop" }]
|
||||||
|
],
|
||||||
|
scopes: [
|
||||||
|
[/BEGIN\s+(DISTRIBUTED\s+)?TRAN(SACTION)?\b/i, "keyword"],
|
||||||
|
[/BEGIN\s+TRY\b/i, { token: "keyword.try" }],
|
||||||
|
[/END\s+TRY\b/i, { token: "keyword.try" }],
|
||||||
|
[/BEGIN\s+CATCH\b/i, { token: "keyword.catch" }],
|
||||||
|
[/END\s+CATCH\b/i, { token: "keyword.catch" }],
|
||||||
|
[/(BEGIN|CASE)\b/i, { token: "keyword.block" }],
|
||||||
|
[/END\b/i, { token: "keyword.block" }],
|
||||||
|
[/WHEN\b/i, { token: "keyword.choice" }],
|
||||||
|
[/THEN\b/i, { token: "keyword.choice" }]
|
||||||
|
]
|
||||||
|
}
|
||||||
|
};
|
||||||
|
return __toCommonJS(sql_exports);
|
||||||
|
})();
|
||||||
|
return moduleExports;
|
||||||
|
});
|
||||||
@@ -0,0 +1,446 @@
|
|||||||
|
/*!-----------------------------------------------------------------------------
|
||||||
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||||
|
* Version: 0.33.0(4b1abad427e58dbedc1215d99a0902ffc885fcd4)
|
||||||
|
* Released under the MIT license
|
||||||
|
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
||||||
|
*-----------------------------------------------------------------------------*/
|
||||||
|
define("vs/basic-languages/st/st", ["require"],(require)=>{
|
||||||
|
var moduleExports = (() => {
|
||||||
|
var __defProp = Object.defineProperty;
|
||||||
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||||
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||||
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||||
|
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
||||||
|
var __export = (target, all) => {
|
||||||
|
for (var name in all)
|
||||||
|
__defProp(target, name, { get: all[name], enumerable: true });
|
||||||
|
};
|
||||||
|
var __reExport = (target, module, copyDefault, desc) => {
|
||||||
|
if (module && typeof module === "object" || typeof module === "function") {
|
||||||
|
for (let key of __getOwnPropNames(module))
|
||||||
|
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
||||||
|
__defProp(target, key, { get: () => module[key], enumerable: !(desc = __getOwnPropDesc(module, key)) || desc.enumerable });
|
||||||
|
}
|
||||||
|
return target;
|
||||||
|
};
|
||||||
|
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
||||||
|
return (module, temp) => {
|
||||||
|
return cache && cache.get(module) || (temp = __reExport(__markAsModule({}), module, 1), cache && cache.set(module, temp), temp);
|
||||||
|
};
|
||||||
|
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
||||||
|
|
||||||
|
// src/basic-languages/st/st.ts
|
||||||
|
var st_exports = {};
|
||||||
|
__export(st_exports, {
|
||||||
|
conf: () => conf,
|
||||||
|
language: () => language
|
||||||
|
});
|
||||||
|
var conf = {
|
||||||
|
comments: {
|
||||||
|
lineComment: "//",
|
||||||
|
blockComment: ["(*", "*)"]
|
||||||
|
},
|
||||||
|
brackets: [
|
||||||
|
["{", "}"],
|
||||||
|
["[", "]"],
|
||||||
|
["(", ")"],
|
||||||
|
["var", "end_var"],
|
||||||
|
["var_input", "end_var"],
|
||||||
|
["var_output", "end_var"],
|
||||||
|
["var_in_out", "end_var"],
|
||||||
|
["var_temp", "end_var"],
|
||||||
|
["var_global", "end_var"],
|
||||||
|
["var_access", "end_var"],
|
||||||
|
["var_external", "end_var"],
|
||||||
|
["type", "end_type"],
|
||||||
|
["struct", "end_struct"],
|
||||||
|
["program", "end_program"],
|
||||||
|
["function", "end_function"],
|
||||||
|
["function_block", "end_function_block"],
|
||||||
|
["action", "end_action"],
|
||||||
|
["step", "end_step"],
|
||||||
|
["initial_step", "end_step"],
|
||||||
|
["transaction", "end_transaction"],
|
||||||
|
["configuration", "end_configuration"],
|
||||||
|
["tcp", "end_tcp"],
|
||||||
|
["recource", "end_recource"],
|
||||||
|
["channel", "end_channel"],
|
||||||
|
["library", "end_library"],
|
||||||
|
["folder", "end_folder"],
|
||||||
|
["binaries", "end_binaries"],
|
||||||
|
["includes", "end_includes"],
|
||||||
|
["sources", "end_sources"]
|
||||||
|
],
|
||||||
|
autoClosingPairs: [
|
||||||
|
{ open: "[", close: "]" },
|
||||||
|
{ open: "{", close: "}" },
|
||||||
|
{ open: "(", close: ")" },
|
||||||
|
{ open: "/*", close: "*/" },
|
||||||
|
{ open: "'", close: "'", notIn: ["string_sq"] },
|
||||||
|
{ open: '"', close: '"', notIn: ["string_dq"] },
|
||||||
|
{ open: "var_input", close: "end_var" },
|
||||||
|
{ open: "var_output", close: "end_var" },
|
||||||
|
{ open: "var_in_out", close: "end_var" },
|
||||||
|
{ open: "var_temp", close: "end_var" },
|
||||||
|
{ open: "var_global", close: "end_var" },
|
||||||
|
{ open: "var_access", close: "end_var" },
|
||||||
|
{ open: "var_external", close: "end_var" },
|
||||||
|
{ open: "type", close: "end_type" },
|
||||||
|
{ open: "struct", close: "end_struct" },
|
||||||
|
{ open: "program", close: "end_program" },
|
||||||
|
{ open: "function", close: "end_function" },
|
||||||
|
{ open: "function_block", close: "end_function_block" },
|
||||||
|
{ open: "action", close: "end_action" },
|
||||||
|
{ open: "step", close: "end_step" },
|
||||||
|
{ open: "initial_step", close: "end_step" },
|
||||||
|
{ open: "transaction", close: "end_transaction" },
|
||||||
|
{ open: "configuration", close: "end_configuration" },
|
||||||
|
{ open: "tcp", close: "end_tcp" },
|
||||||
|
{ open: "recource", close: "end_recource" },
|
||||||
|
{ open: "channel", close: "end_channel" },
|
||||||
|
{ open: "library", close: "end_library" },
|
||||||
|
{ open: "folder", close: "end_folder" },
|
||||||
|
{ open: "binaries", close: "end_binaries" },
|
||||||
|
{ open: "includes", close: "end_includes" },
|
||||||
|
{ open: "sources", close: "end_sources" }
|
||||||
|
],
|
||||||
|
surroundingPairs: [
|
||||||
|
{ open: "{", close: "}" },
|
||||||
|
{ open: "[", close: "]" },
|
||||||
|
{ open: "(", close: ")" },
|
||||||
|
{ open: '"', close: '"' },
|
||||||
|
{ open: "'", close: "'" },
|
||||||
|
{ open: "var", close: "end_var" },
|
||||||
|
{ open: "var_input", close: "end_var" },
|
||||||
|
{ open: "var_output", close: "end_var" },
|
||||||
|
{ open: "var_in_out", close: "end_var" },
|
||||||
|
{ open: "var_temp", close: "end_var" },
|
||||||
|
{ open: "var_global", close: "end_var" },
|
||||||
|
{ open: "var_access", close: "end_var" },
|
||||||
|
{ open: "var_external", close: "end_var" },
|
||||||
|
{ open: "type", close: "end_type" },
|
||||||
|
{ open: "struct", close: "end_struct" },
|
||||||
|
{ open: "program", close: "end_program" },
|
||||||
|
{ open: "function", close: "end_function" },
|
||||||
|
{ open: "function_block", close: "end_function_block" },
|
||||||
|
{ open: "action", close: "end_action" },
|
||||||
|
{ open: "step", close: "end_step" },
|
||||||
|
{ open: "initial_step", close: "end_step" },
|
||||||
|
{ open: "transaction", close: "end_transaction" },
|
||||||
|
{ open: "configuration", close: "end_configuration" },
|
||||||
|
{ open: "tcp", close: "end_tcp" },
|
||||||
|
{ open: "recource", close: "end_recource" },
|
||||||
|
{ open: "channel", close: "end_channel" },
|
||||||
|
{ open: "library", close: "end_library" },
|
||||||
|
{ open: "folder", close: "end_folder" },
|
||||||
|
{ open: "binaries", close: "end_binaries" },
|
||||||
|
{ open: "includes", close: "end_includes" },
|
||||||
|
{ open: "sources", close: "end_sources" }
|
||||||
|
],
|
||||||
|
folding: {
|
||||||
|
markers: {
|
||||||
|
start: new RegExp("^\\s*#pragma\\s+region\\b"),
|
||||||
|
end: new RegExp("^\\s*#pragma\\s+endregion\\b")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
var language = {
|
||||||
|
defaultToken: "",
|
||||||
|
tokenPostfix: ".st",
|
||||||
|
ignoreCase: true,
|
||||||
|
brackets: [
|
||||||
|
{ token: "delimiter.curly", open: "{", close: "}" },
|
||||||
|
{ token: "delimiter.parenthesis", open: "(", close: ")" },
|
||||||
|
{ token: "delimiter.square", open: "[", close: "]" }
|
||||||
|
],
|
||||||
|
keywords: [
|
||||||
|
"if",
|
||||||
|
"end_if",
|
||||||
|
"elsif",
|
||||||
|
"else",
|
||||||
|
"case",
|
||||||
|
"of",
|
||||||
|
"to",
|
||||||
|
"__try",
|
||||||
|
"__catch",
|
||||||
|
"__finally",
|
||||||
|
"do",
|
||||||
|
"with",
|
||||||
|
"by",
|
||||||
|
"while",
|
||||||
|
"repeat",
|
||||||
|
"end_while",
|
||||||
|
"end_repeat",
|
||||||
|
"end_case",
|
||||||
|
"for",
|
||||||
|
"end_for",
|
||||||
|
"task",
|
||||||
|
"retain",
|
||||||
|
"non_retain",
|
||||||
|
"constant",
|
||||||
|
"with",
|
||||||
|
"at",
|
||||||
|
"exit",
|
||||||
|
"return",
|
||||||
|
"interval",
|
||||||
|
"priority",
|
||||||
|
"address",
|
||||||
|
"port",
|
||||||
|
"on_channel",
|
||||||
|
"then",
|
||||||
|
"iec",
|
||||||
|
"file",
|
||||||
|
"uses",
|
||||||
|
"version",
|
||||||
|
"packagetype",
|
||||||
|
"displayname",
|
||||||
|
"copyright",
|
||||||
|
"summary",
|
||||||
|
"vendor",
|
||||||
|
"common_source",
|
||||||
|
"from",
|
||||||
|
"extends"
|
||||||
|
],
|
||||||
|
constant: ["false", "true", "null"],
|
||||||
|
defineKeywords: [
|
||||||
|
"var",
|
||||||
|
"var_input",
|
||||||
|
"var_output",
|
||||||
|
"var_in_out",
|
||||||
|
"var_temp",
|
||||||
|
"var_global",
|
||||||
|
"var_access",
|
||||||
|
"var_external",
|
||||||
|
"end_var",
|
||||||
|
"type",
|
||||||
|
"end_type",
|
||||||
|
"struct",
|
||||||
|
"end_struct",
|
||||||
|
"program",
|
||||||
|
"end_program",
|
||||||
|
"function",
|
||||||
|
"end_function",
|
||||||
|
"function_block",
|
||||||
|
"end_function_block",
|
||||||
|
"interface",
|
||||||
|
"end_interface",
|
||||||
|
"method",
|
||||||
|
"end_method",
|
||||||
|
"property",
|
||||||
|
"end_property",
|
||||||
|
"namespace",
|
||||||
|
"end_namespace",
|
||||||
|
"configuration",
|
||||||
|
"end_configuration",
|
||||||
|
"tcp",
|
||||||
|
"end_tcp",
|
||||||
|
"resource",
|
||||||
|
"end_resource",
|
||||||
|
"channel",
|
||||||
|
"end_channel",
|
||||||
|
"library",
|
||||||
|
"end_library",
|
||||||
|
"folder",
|
||||||
|
"end_folder",
|
||||||
|
"binaries",
|
||||||
|
"end_binaries",
|
||||||
|
"includes",
|
||||||
|
"end_includes",
|
||||||
|
"sources",
|
||||||
|
"end_sources",
|
||||||
|
"action",
|
||||||
|
"end_action",
|
||||||
|
"step",
|
||||||
|
"initial_step",
|
||||||
|
"end_step",
|
||||||
|
"transaction",
|
||||||
|
"end_transaction"
|
||||||
|
],
|
||||||
|
typeKeywords: [
|
||||||
|
"int",
|
||||||
|
"sint",
|
||||||
|
"dint",
|
||||||
|
"lint",
|
||||||
|
"usint",
|
||||||
|
"uint",
|
||||||
|
"udint",
|
||||||
|
"ulint",
|
||||||
|
"real",
|
||||||
|
"lreal",
|
||||||
|
"time",
|
||||||
|
"date",
|
||||||
|
"time_of_day",
|
||||||
|
"date_and_time",
|
||||||
|
"string",
|
||||||
|
"bool",
|
||||||
|
"byte",
|
||||||
|
"word",
|
||||||
|
"dword",
|
||||||
|
"array",
|
||||||
|
"pointer",
|
||||||
|
"lword"
|
||||||
|
],
|
||||||
|
operators: [
|
||||||
|
"=",
|
||||||
|
">",
|
||||||
|
"<",
|
||||||
|
":",
|
||||||
|
":=",
|
||||||
|
"<=",
|
||||||
|
">=",
|
||||||
|
"<>",
|
||||||
|
"&",
|
||||||
|
"+",
|
||||||
|
"-",
|
||||||
|
"*",
|
||||||
|
"**",
|
||||||
|
"MOD",
|
||||||
|
"^",
|
||||||
|
"or",
|
||||||
|
"and",
|
||||||
|
"not",
|
||||||
|
"xor",
|
||||||
|
"abs",
|
||||||
|
"acos",
|
||||||
|
"asin",
|
||||||
|
"atan",
|
||||||
|
"cos",
|
||||||
|
"exp",
|
||||||
|
"expt",
|
||||||
|
"ln",
|
||||||
|
"log",
|
||||||
|
"sin",
|
||||||
|
"sqrt",
|
||||||
|
"tan",
|
||||||
|
"sel",
|
||||||
|
"max",
|
||||||
|
"min",
|
||||||
|
"limit",
|
||||||
|
"mux",
|
||||||
|
"shl",
|
||||||
|
"shr",
|
||||||
|
"rol",
|
||||||
|
"ror",
|
||||||
|
"indexof",
|
||||||
|
"sizeof",
|
||||||
|
"adr",
|
||||||
|
"adrinst",
|
||||||
|
"bitadr",
|
||||||
|
"is_valid",
|
||||||
|
"ref",
|
||||||
|
"ref_to"
|
||||||
|
],
|
||||||
|
builtinVariables: [],
|
||||||
|
builtinFunctions: [
|
||||||
|
"sr",
|
||||||
|
"rs",
|
||||||
|
"tp",
|
||||||
|
"ton",
|
||||||
|
"tof",
|
||||||
|
"eq",
|
||||||
|
"ge",
|
||||||
|
"le",
|
||||||
|
"lt",
|
||||||
|
"ne",
|
||||||
|
"round",
|
||||||
|
"trunc",
|
||||||
|
"ctd",
|
||||||
|
"\u0441tu",
|
||||||
|
"ctud",
|
||||||
|
"r_trig",
|
||||||
|
"f_trig",
|
||||||
|
"move",
|
||||||
|
"concat",
|
||||||
|
"delete",
|
||||||
|
"find",
|
||||||
|
"insert",
|
||||||
|
"left",
|
||||||
|
"len",
|
||||||
|
"replace",
|
||||||
|
"right",
|
||||||
|
"rtc"
|
||||||
|
],
|
||||||
|
symbols: /[=><!~?:&|+\-*\/\^%]+/,
|
||||||
|
escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
|
||||||
|
tokenizer: {
|
||||||
|
root: [
|
||||||
|
[/(\.\.)/, "delimiter"],
|
||||||
|
[/\b(16#[0-9A-Fa-f\_]*)+\b/, "number.hex"],
|
||||||
|
[/\b(2#[01\_]+)+\b/, "number.binary"],
|
||||||
|
[/\b(8#[0-9\_]*)+\b/, "number.octal"],
|
||||||
|
[/\b\d*\.\d+([eE][\-+]?\d+)?\b/, "number.float"],
|
||||||
|
[/\b(L?REAL)#[0-9\_\.e]+\b/, "number.float"],
|
||||||
|
[/\b(BYTE|(?:D|L)?WORD|U?(?:S|D|L)?INT)#[0-9\_]+\b/, "number"],
|
||||||
|
[/\d+/, "number"],
|
||||||
|
[/\b(T|DT|TOD)#[0-9:-_shmyd]+\b/, "tag"],
|
||||||
|
[/\%(I|Q|M)(X|B|W|D|L)[0-9\.]+/, "tag"],
|
||||||
|
[/\%(I|Q|M)[0-9\.]*/, "tag"],
|
||||||
|
[/\b[A-Za-z]{1,6}#[0-9]+\b/, "tag"],
|
||||||
|
[/\b(TO_|CTU_|CTD_|CTUD_|MUX_|SEL_)[A_Za-z]+\b/, "predefined"],
|
||||||
|
[/\b[A_Za-z]+(_TO_)[A_Za-z]+\b/, "predefined"],
|
||||||
|
[/[;]/, "delimiter"],
|
||||||
|
[/[.]/, { token: "delimiter", next: "@params" }],
|
||||||
|
[
|
||||||
|
/[a-zA-Z_]\w*/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"@operators": "operators",
|
||||||
|
"@keywords": "keyword",
|
||||||
|
"@typeKeywords": "type",
|
||||||
|
"@defineKeywords": "variable",
|
||||||
|
"@constant": "constant",
|
||||||
|
"@builtinVariables": "predefined",
|
||||||
|
"@builtinFunctions": "predefined",
|
||||||
|
"@default": "identifier"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
{ include: "@whitespace" },
|
||||||
|
[/[{}()\[\]]/, "@brackets"],
|
||||||
|
[/"([^"\\]|\\.)*$/, "string.invalid"],
|
||||||
|
[/"/, { token: "string.quote", bracket: "@open", next: "@string_dq" }],
|
||||||
|
[/'/, { token: "string.quote", bracket: "@open", next: "@string_sq" }],
|
||||||
|
[/'[^\\']'/, "string"],
|
||||||
|
[/(')(@escapes)(')/, ["string", "string.escape", "string"]],
|
||||||
|
[/'/, "string.invalid"]
|
||||||
|
],
|
||||||
|
params: [
|
||||||
|
[/\b[A-Za-z0-9_]+\b(?=\()/, { token: "identifier", next: "@pop" }],
|
||||||
|
[/\b[A-Za-z0-9_]+\b/, "variable.name", "@pop"]
|
||||||
|
],
|
||||||
|
comment: [
|
||||||
|
[/[^\/*]+/, "comment"],
|
||||||
|
[/\/\*/, "comment", "@push"],
|
||||||
|
["\\*/", "comment", "@pop"],
|
||||||
|
[/[\/*]/, "comment"]
|
||||||
|
],
|
||||||
|
comment2: [
|
||||||
|
[/[^\(*]+/, "comment"],
|
||||||
|
[/\(\*/, "comment", "@push"],
|
||||||
|
["\\*\\)", "comment", "@pop"],
|
||||||
|
[/[\(*]/, "comment"]
|
||||||
|
],
|
||||||
|
whitespace: [
|
||||||
|
[/[ \t\r\n]+/, "white"],
|
||||||
|
[/\/\/.*$/, "comment"],
|
||||||
|
[/\/\*/, "comment", "@comment"],
|
||||||
|
[/\(\*/, "comment", "@comment2"]
|
||||||
|
],
|
||||||
|
string_dq: [
|
||||||
|
[/[^\\"]+/, "string"],
|
||||||
|
[/@escapes/, "string.escape"],
|
||||||
|
[/\\./, "string.escape.invalid"],
|
||||||
|
[/"/, { token: "string.quote", bracket: "@close", next: "@pop" }]
|
||||||
|
],
|
||||||
|
string_sq: [
|
||||||
|
[/[^\\']+/, "string"],
|
||||||
|
[/@escapes/, "string.escape"],
|
||||||
|
[/\\./, "string.escape.invalid"],
|
||||||
|
[/'/, { token: "string.quote", bracket: "@close", next: "@pop" }]
|
||||||
|
]
|
||||||
|
}
|
||||||
|
};
|
||||||
|
return __toCommonJS(st_exports);
|
||||||
|
})();
|
||||||
|
return moduleExports;
|
||||||
|
});
|
||||||
@@ -0,0 +1,347 @@
|
|||||||
|
/*!-----------------------------------------------------------------------------
|
||||||
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||||
|
* Version: 0.33.0(4b1abad427e58dbedc1215d99a0902ffc885fcd4)
|
||||||
|
* Released under the MIT license
|
||||||
|
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
||||||
|
*-----------------------------------------------------------------------------*/
|
||||||
|
define("vs/basic-languages/swift/swift", ["require"],(require)=>{
|
||||||
|
var moduleExports = (() => {
|
||||||
|
var __defProp = Object.defineProperty;
|
||||||
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||||
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||||
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||||
|
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
||||||
|
var __export = (target, all) => {
|
||||||
|
for (var name in all)
|
||||||
|
__defProp(target, name, { get: all[name], enumerable: true });
|
||||||
|
};
|
||||||
|
var __reExport = (target, module, copyDefault, desc) => {
|
||||||
|
if (module && typeof module === "object" || typeof module === "function") {
|
||||||
|
for (let key of __getOwnPropNames(module))
|
||||||
|
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
||||||
|
__defProp(target, key, { get: () => module[key], enumerable: !(desc = __getOwnPropDesc(module, key)) || desc.enumerable });
|
||||||
|
}
|
||||||
|
return target;
|
||||||
|
};
|
||||||
|
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
||||||
|
return (module, temp) => {
|
||||||
|
return cache && cache.get(module) || (temp = __reExport(__markAsModule({}), module, 1), cache && cache.set(module, temp), temp);
|
||||||
|
};
|
||||||
|
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
||||||
|
|
||||||
|
// src/basic-languages/swift/swift.ts
|
||||||
|
var swift_exports = {};
|
||||||
|
__export(swift_exports, {
|
||||||
|
conf: () => conf,
|
||||||
|
language: () => language
|
||||||
|
});
|
||||||
|
var conf = {
|
||||||
|
comments: {
|
||||||
|
lineComment: "//",
|
||||||
|
blockComment: ["/*", "*/"]
|
||||||
|
},
|
||||||
|
brackets: [
|
||||||
|
["{", "}"],
|
||||||
|
["[", "]"],
|
||||||
|
["(", ")"]
|
||||||
|
],
|
||||||
|
autoClosingPairs: [
|
||||||
|
{ open: "{", close: "}" },
|
||||||
|
{ open: "[", close: "]" },
|
||||||
|
{ open: "(", close: ")" },
|
||||||
|
{ open: '"', close: '"' },
|
||||||
|
{ open: "'", close: "'" },
|
||||||
|
{ open: "`", close: "`" }
|
||||||
|
],
|
||||||
|
surroundingPairs: [
|
||||||
|
{ open: "{", close: "}" },
|
||||||
|
{ open: "[", close: "]" },
|
||||||
|
{ open: "(", close: ")" },
|
||||||
|
{ open: '"', close: '"' },
|
||||||
|
{ open: "'", close: "'" },
|
||||||
|
{ open: "`", close: "`" }
|
||||||
|
]
|
||||||
|
};
|
||||||
|
var language = {
|
||||||
|
defaultToken: "",
|
||||||
|
tokenPostfix: ".swift",
|
||||||
|
identifier: /[a-zA-Z_][\w$]*/,
|
||||||
|
attributes: [
|
||||||
|
"@GKInspectable",
|
||||||
|
"@IBAction",
|
||||||
|
"@IBDesignable",
|
||||||
|
"@IBInspectable",
|
||||||
|
"@IBOutlet",
|
||||||
|
"@IBSegueAction",
|
||||||
|
"@NSApplicationMain",
|
||||||
|
"@NSCopying",
|
||||||
|
"@NSManaged",
|
||||||
|
"@Sendable",
|
||||||
|
"@UIApplicationMain",
|
||||||
|
"@autoclosure",
|
||||||
|
"@actorIndependent",
|
||||||
|
"@asyncHandler",
|
||||||
|
"@available",
|
||||||
|
"@convention",
|
||||||
|
"@derivative",
|
||||||
|
"@differentiable",
|
||||||
|
"@discardableResult",
|
||||||
|
"@dynamicCallable",
|
||||||
|
"@dynamicMemberLookup",
|
||||||
|
"@escaping",
|
||||||
|
"@frozen",
|
||||||
|
"@globalActor",
|
||||||
|
"@inlinable",
|
||||||
|
"@inline",
|
||||||
|
"@main",
|
||||||
|
"@noDerivative",
|
||||||
|
"@nonobjc",
|
||||||
|
"@noreturn",
|
||||||
|
"@objc",
|
||||||
|
"@objcMembers",
|
||||||
|
"@preconcurrency",
|
||||||
|
"@propertyWrapper",
|
||||||
|
"@requires_stored_property_inits",
|
||||||
|
"@resultBuilder",
|
||||||
|
"@testable",
|
||||||
|
"@unchecked",
|
||||||
|
"@unknown",
|
||||||
|
"@usableFromInline",
|
||||||
|
"@warn_unqualified_access"
|
||||||
|
],
|
||||||
|
accessmodifiers: ["open", "public", "internal", "fileprivate", "private"],
|
||||||
|
keywords: [
|
||||||
|
"#available",
|
||||||
|
"#colorLiteral",
|
||||||
|
"#column",
|
||||||
|
"#dsohandle",
|
||||||
|
"#else",
|
||||||
|
"#elseif",
|
||||||
|
"#endif",
|
||||||
|
"#error",
|
||||||
|
"#file",
|
||||||
|
"#fileID",
|
||||||
|
"#fileLiteral",
|
||||||
|
"#filePath",
|
||||||
|
"#function",
|
||||||
|
"#if",
|
||||||
|
"#imageLiteral",
|
||||||
|
"#keyPath",
|
||||||
|
"#line",
|
||||||
|
"#selector",
|
||||||
|
"#sourceLocation",
|
||||||
|
"#warning",
|
||||||
|
"Any",
|
||||||
|
"Protocol",
|
||||||
|
"Self",
|
||||||
|
"Type",
|
||||||
|
"actor",
|
||||||
|
"as",
|
||||||
|
"assignment",
|
||||||
|
"associatedtype",
|
||||||
|
"associativity",
|
||||||
|
"async",
|
||||||
|
"await",
|
||||||
|
"break",
|
||||||
|
"case",
|
||||||
|
"catch",
|
||||||
|
"class",
|
||||||
|
"continue",
|
||||||
|
"convenience",
|
||||||
|
"default",
|
||||||
|
"defer",
|
||||||
|
"deinit",
|
||||||
|
"didSet",
|
||||||
|
"do",
|
||||||
|
"dynamic",
|
||||||
|
"dynamicType",
|
||||||
|
"else",
|
||||||
|
"enum",
|
||||||
|
"extension",
|
||||||
|
"fallthrough",
|
||||||
|
"false",
|
||||||
|
"fileprivate",
|
||||||
|
"final",
|
||||||
|
"for",
|
||||||
|
"func",
|
||||||
|
"get",
|
||||||
|
"guard",
|
||||||
|
"higherThan",
|
||||||
|
"if",
|
||||||
|
"import",
|
||||||
|
"in",
|
||||||
|
"indirect",
|
||||||
|
"infix",
|
||||||
|
"init",
|
||||||
|
"inout",
|
||||||
|
"internal",
|
||||||
|
"is",
|
||||||
|
"isolated",
|
||||||
|
"lazy",
|
||||||
|
"left",
|
||||||
|
"let",
|
||||||
|
"lowerThan",
|
||||||
|
"mutating",
|
||||||
|
"nil",
|
||||||
|
"none",
|
||||||
|
"nonisolated",
|
||||||
|
"nonmutating",
|
||||||
|
"open",
|
||||||
|
"operator",
|
||||||
|
"optional",
|
||||||
|
"override",
|
||||||
|
"postfix",
|
||||||
|
"precedence",
|
||||||
|
"precedencegroup",
|
||||||
|
"prefix",
|
||||||
|
"private",
|
||||||
|
"protocol",
|
||||||
|
"public",
|
||||||
|
"repeat",
|
||||||
|
"required",
|
||||||
|
"rethrows",
|
||||||
|
"return",
|
||||||
|
"right",
|
||||||
|
"safe",
|
||||||
|
"self",
|
||||||
|
"set",
|
||||||
|
"some",
|
||||||
|
"static",
|
||||||
|
"struct",
|
||||||
|
"subscript",
|
||||||
|
"super",
|
||||||
|
"switch",
|
||||||
|
"throw",
|
||||||
|
"throws",
|
||||||
|
"true",
|
||||||
|
"try",
|
||||||
|
"typealias",
|
||||||
|
"unowned",
|
||||||
|
"unsafe",
|
||||||
|
"var",
|
||||||
|
"weak",
|
||||||
|
"where",
|
||||||
|
"while",
|
||||||
|
"willSet",
|
||||||
|
"__consuming",
|
||||||
|
"__owned"
|
||||||
|
],
|
||||||
|
symbols: /[=(){}\[\].,:;@#\_&\-<>`?!+*\\\/]/,
|
||||||
|
operatorstart: /[\/=\-+!*%<>&|^~?\u00A1-\u00A7\u00A9\u00AB\u00AC\u00AE\u00B0-\u00B1\u00B6\u00BB\u00BF\u00D7\u00F7\u2016-\u2017\u2020-\u2027\u2030-\u203E\u2041-\u2053\u2055-\u205E\u2190-\u23FF\u2500-\u2775\u2794-\u2BFF\u2E00-\u2E7F\u3001-\u3003\u3008-\u3030]/,
|
||||||
|
operatorend: /[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE00-\uFE0F\uFE20-\uFE2F\uE0100-\uE01EF]/,
|
||||||
|
operators: /(@operatorstart)((@operatorstart)|(@operatorend))*/,
|
||||||
|
escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
|
||||||
|
tokenizer: {
|
||||||
|
root: [
|
||||||
|
{ include: "@whitespace" },
|
||||||
|
{ include: "@comment" },
|
||||||
|
{ include: "@attribute" },
|
||||||
|
{ include: "@literal" },
|
||||||
|
{ include: "@keyword" },
|
||||||
|
{ include: "@invokedmethod" },
|
||||||
|
{ include: "@symbol" }
|
||||||
|
],
|
||||||
|
whitespace: [
|
||||||
|
[/\s+/, "white"],
|
||||||
|
[/"""/, "string.quote", "@endDblDocString"]
|
||||||
|
],
|
||||||
|
endDblDocString: [
|
||||||
|
[/[^"]+/, "string"],
|
||||||
|
[/\\"/, "string"],
|
||||||
|
[/"""/, "string.quote", "@popall"],
|
||||||
|
[/"/, "string"]
|
||||||
|
],
|
||||||
|
symbol: [
|
||||||
|
[/[{}()\[\]]/, "@brackets"],
|
||||||
|
[/[<>](?!@symbols)/, "@brackets"],
|
||||||
|
[/[.]/, "delimiter"],
|
||||||
|
[/@operators/, "operator"],
|
||||||
|
[/@symbols/, "operator"]
|
||||||
|
],
|
||||||
|
comment: [
|
||||||
|
[/\/\/\/.*$/, "comment.doc"],
|
||||||
|
[/\/\*\*/, "comment.doc", "@commentdocbody"],
|
||||||
|
[/\/\/.*$/, "comment"],
|
||||||
|
[/\/\*/, "comment", "@commentbody"]
|
||||||
|
],
|
||||||
|
commentdocbody: [
|
||||||
|
[/\/\*/, "comment", "@commentbody"],
|
||||||
|
[/\*\//, "comment.doc", "@pop"],
|
||||||
|
[/\:[a-zA-Z]+\:/, "comment.doc.param"],
|
||||||
|
[/./, "comment.doc"]
|
||||||
|
],
|
||||||
|
commentbody: [
|
||||||
|
[/\/\*/, "comment", "@commentbody"],
|
||||||
|
[/\*\//, "comment", "@pop"],
|
||||||
|
[/./, "comment"]
|
||||||
|
],
|
||||||
|
attribute: [
|
||||||
|
[
|
||||||
|
/@@@identifier/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"@attributes": "keyword.control",
|
||||||
|
"@default": ""
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
],
|
||||||
|
literal: [
|
||||||
|
[/"/, { token: "string.quote", next: "@stringlit" }],
|
||||||
|
[/0[b]([01]_?)+/, "number.binary"],
|
||||||
|
[/0[o]([0-7]_?)+/, "number.octal"],
|
||||||
|
[/0[x]([0-9a-fA-F]_?)+([pP][\-+](\d_?)+)?/, "number.hex"],
|
||||||
|
[/(\d_?)*\.(\d_?)+([eE][\-+]?(\d_?)+)?/, "number.float"],
|
||||||
|
[/(\d_?)+/, "number"]
|
||||||
|
],
|
||||||
|
stringlit: [
|
||||||
|
[/\\\(/, { token: "operator", next: "@interpolatedexpression" }],
|
||||||
|
[/@escapes/, "string"],
|
||||||
|
[/\\./, "string.escape.invalid"],
|
||||||
|
[/"/, { token: "string.quote", next: "@pop" }],
|
||||||
|
[/./, "string"]
|
||||||
|
],
|
||||||
|
interpolatedexpression: [
|
||||||
|
[/\(/, { token: "operator", next: "@interpolatedexpression" }],
|
||||||
|
[/\)/, { token: "operator", next: "@pop" }],
|
||||||
|
{ include: "@literal" },
|
||||||
|
{ include: "@keyword" },
|
||||||
|
{ include: "@symbol" }
|
||||||
|
],
|
||||||
|
keyword: [
|
||||||
|
[/`/, { token: "operator", next: "@escapedkeyword" }],
|
||||||
|
[
|
||||||
|
/@identifier/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"@keywords": "keyword",
|
||||||
|
"[A-Z][a-zA-Z0-9$]*": "type.identifier",
|
||||||
|
"@default": "identifier"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
],
|
||||||
|
escapedkeyword: [
|
||||||
|
[/`/, { token: "operator", next: "@pop" }],
|
||||||
|
[/./, "identifier"]
|
||||||
|
],
|
||||||
|
invokedmethod: [
|
||||||
|
[
|
||||||
|
/([.])(@identifier)/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
$2: ["delimeter", "type.identifier"],
|
||||||
|
"@default": ""
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
]
|
||||||
|
}
|
||||||
|
};
|
||||||
|
return __toCommonJS(swift_exports);
|
||||||
|
})();
|
||||||
|
/*!---------------------------------------------------------------------------------------------
|
||||||
|
* Copyright (C) David Owens II, owensd.io. All rights reserved.
|
||||||
|
*--------------------------------------------------------------------------------------------*/
|
||||||
|
return moduleExports;
|
||||||
|
});
|
||||||
@@ -0,0 +1,588 @@
|
|||||||
|
/*!-----------------------------------------------------------------------------
|
||||||
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||||
|
* Version: 0.33.0(4b1abad427e58dbedc1215d99a0902ffc885fcd4)
|
||||||
|
* Released under the MIT license
|
||||||
|
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
||||||
|
*-----------------------------------------------------------------------------*/
|
||||||
|
define("vs/basic-languages/systemverilog/systemverilog", ["require"],(require)=>{
|
||||||
|
var moduleExports = (() => {
|
||||||
|
var __defProp = Object.defineProperty;
|
||||||
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||||
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||||
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||||
|
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
||||||
|
var __export = (target, all) => {
|
||||||
|
for (var name in all)
|
||||||
|
__defProp(target, name, { get: all[name], enumerable: true });
|
||||||
|
};
|
||||||
|
var __reExport = (target, module, copyDefault, desc) => {
|
||||||
|
if (module && typeof module === "object" || typeof module === "function") {
|
||||||
|
for (let key of __getOwnPropNames(module))
|
||||||
|
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
||||||
|
__defProp(target, key, { get: () => module[key], enumerable: !(desc = __getOwnPropDesc(module, key)) || desc.enumerable });
|
||||||
|
}
|
||||||
|
return target;
|
||||||
|
};
|
||||||
|
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
||||||
|
return (module, temp) => {
|
||||||
|
return cache && cache.get(module) || (temp = __reExport(__markAsModule({}), module, 1), cache && cache.set(module, temp), temp);
|
||||||
|
};
|
||||||
|
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
||||||
|
|
||||||
|
// src/basic-languages/systemverilog/systemverilog.ts
|
||||||
|
var systemverilog_exports = {};
|
||||||
|
__export(systemverilog_exports, {
|
||||||
|
conf: () => conf,
|
||||||
|
language: () => language
|
||||||
|
});
|
||||||
|
var conf = {
|
||||||
|
comments: {
|
||||||
|
lineComment: "//",
|
||||||
|
blockComment: ["/*", "*/"]
|
||||||
|
},
|
||||||
|
brackets: [
|
||||||
|
["{", "}"],
|
||||||
|
["[", "]"],
|
||||||
|
["(", ")"],
|
||||||
|
["begin", "end"],
|
||||||
|
["case", "endcase"],
|
||||||
|
["casex", "endcase"],
|
||||||
|
["casez", "endcase"],
|
||||||
|
["checker", "endchecker"],
|
||||||
|
["class", "endclass"],
|
||||||
|
["clocking", "endclocking"],
|
||||||
|
["config", "endconfig"],
|
||||||
|
["function", "endfunction"],
|
||||||
|
["generate", "endgenerate"],
|
||||||
|
["group", "endgroup"],
|
||||||
|
["interface", "endinterface"],
|
||||||
|
["module", "endmodule"],
|
||||||
|
["package", "endpackage"],
|
||||||
|
["primitive", "endprimitive"],
|
||||||
|
["program", "endprogram"],
|
||||||
|
["property", "endproperty"],
|
||||||
|
["specify", "endspecify"],
|
||||||
|
["sequence", "endsequence"],
|
||||||
|
["table", "endtable"],
|
||||||
|
["task", "endtask"]
|
||||||
|
],
|
||||||
|
autoClosingPairs: [
|
||||||
|
{ open: "[", close: "]" },
|
||||||
|
{ open: "{", close: "}" },
|
||||||
|
{ open: "(", close: ")" },
|
||||||
|
{ open: "'", close: "'", notIn: ["string", "comment"] },
|
||||||
|
{ open: '"', close: '"', notIn: ["string"] }
|
||||||
|
],
|
||||||
|
surroundingPairs: [
|
||||||
|
{ open: "{", close: "}" },
|
||||||
|
{ open: "[", close: "]" },
|
||||||
|
{ open: "(", close: ")" },
|
||||||
|
{ open: '"', close: '"' },
|
||||||
|
{ open: "'", close: "'" }
|
||||||
|
],
|
||||||
|
folding: {
|
||||||
|
offSide: false,
|
||||||
|
markers: {
|
||||||
|
start: new RegExp("^(?:\\s*|.*(?!\\/[\\/\\*])[^\\w])(?:begin|case(x|z)?|class|clocking|config|covergroup|function|generate|interface|module|package|primitive|property|program|sequence|specify|table|task)\\b"),
|
||||||
|
end: new RegExp("^(?:\\s*|.*(?!\\/[\\/\\*])[^\\w])(?:end|endcase|endclass|endclocking|endconfig|endgroup|endfunction|endgenerate|endinterface|endmodule|endpackage|endprimitive|endproperty|endprogram|endsequence|endspecify|endtable|endtask)\\b")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
var language = {
|
||||||
|
defaultToken: "",
|
||||||
|
tokenPostfix: ".sv",
|
||||||
|
brackets: [
|
||||||
|
{ token: "delimiter.curly", open: "{", close: "}" },
|
||||||
|
{ token: "delimiter.parenthesis", open: "(", close: ")" },
|
||||||
|
{ token: "delimiter.square", open: "[", close: "]" },
|
||||||
|
{ token: "delimiter.angle", open: "<", close: ">" }
|
||||||
|
],
|
||||||
|
keywords: [
|
||||||
|
"accept_on",
|
||||||
|
"alias",
|
||||||
|
"always",
|
||||||
|
"always_comb",
|
||||||
|
"always_ff",
|
||||||
|
"always_latch",
|
||||||
|
"and",
|
||||||
|
"assert",
|
||||||
|
"assign",
|
||||||
|
"assume",
|
||||||
|
"automatic",
|
||||||
|
"before",
|
||||||
|
"begin",
|
||||||
|
"bind",
|
||||||
|
"bins",
|
||||||
|
"binsof",
|
||||||
|
"bit",
|
||||||
|
"break",
|
||||||
|
"buf",
|
||||||
|
"bufif0",
|
||||||
|
"bufif1",
|
||||||
|
"byte",
|
||||||
|
"case",
|
||||||
|
"casex",
|
||||||
|
"casez",
|
||||||
|
"cell",
|
||||||
|
"chandle",
|
||||||
|
"checker",
|
||||||
|
"class",
|
||||||
|
"clocking",
|
||||||
|
"cmos",
|
||||||
|
"config",
|
||||||
|
"const",
|
||||||
|
"constraint",
|
||||||
|
"context",
|
||||||
|
"continue",
|
||||||
|
"cover",
|
||||||
|
"covergroup",
|
||||||
|
"coverpoint",
|
||||||
|
"cross",
|
||||||
|
"deassign",
|
||||||
|
"default",
|
||||||
|
"defparam",
|
||||||
|
"design",
|
||||||
|
"disable",
|
||||||
|
"dist",
|
||||||
|
"do",
|
||||||
|
"edge",
|
||||||
|
"else",
|
||||||
|
"end",
|
||||||
|
"endcase",
|
||||||
|
"endchecker",
|
||||||
|
"endclass",
|
||||||
|
"endclocking",
|
||||||
|
"endconfig",
|
||||||
|
"endfunction",
|
||||||
|
"endgenerate",
|
||||||
|
"endgroup",
|
||||||
|
"endinterface",
|
||||||
|
"endmodule",
|
||||||
|
"endpackage",
|
||||||
|
"endprimitive",
|
||||||
|
"endprogram",
|
||||||
|
"endproperty",
|
||||||
|
"endspecify",
|
||||||
|
"endsequence",
|
||||||
|
"endtable",
|
||||||
|
"endtask",
|
||||||
|
"enum",
|
||||||
|
"event",
|
||||||
|
"eventually",
|
||||||
|
"expect",
|
||||||
|
"export",
|
||||||
|
"extends",
|
||||||
|
"extern",
|
||||||
|
"final",
|
||||||
|
"first_match",
|
||||||
|
"for",
|
||||||
|
"force",
|
||||||
|
"foreach",
|
||||||
|
"forever",
|
||||||
|
"fork",
|
||||||
|
"forkjoin",
|
||||||
|
"function",
|
||||||
|
"generate",
|
||||||
|
"genvar",
|
||||||
|
"global",
|
||||||
|
"highz0",
|
||||||
|
"highz1",
|
||||||
|
"if",
|
||||||
|
"iff",
|
||||||
|
"ifnone",
|
||||||
|
"ignore_bins",
|
||||||
|
"illegal_bins",
|
||||||
|
"implements",
|
||||||
|
"implies",
|
||||||
|
"import",
|
||||||
|
"incdir",
|
||||||
|
"include",
|
||||||
|
"initial",
|
||||||
|
"inout",
|
||||||
|
"input",
|
||||||
|
"inside",
|
||||||
|
"instance",
|
||||||
|
"int",
|
||||||
|
"integer",
|
||||||
|
"interconnect",
|
||||||
|
"interface",
|
||||||
|
"intersect",
|
||||||
|
"join",
|
||||||
|
"join_any",
|
||||||
|
"join_none",
|
||||||
|
"large",
|
||||||
|
"let",
|
||||||
|
"liblist",
|
||||||
|
"library",
|
||||||
|
"local",
|
||||||
|
"localparam",
|
||||||
|
"logic",
|
||||||
|
"longint",
|
||||||
|
"macromodule",
|
||||||
|
"matches",
|
||||||
|
"medium",
|
||||||
|
"modport",
|
||||||
|
"module",
|
||||||
|
"nand",
|
||||||
|
"negedge",
|
||||||
|
"nettype",
|
||||||
|
"new",
|
||||||
|
"nexttime",
|
||||||
|
"nmos",
|
||||||
|
"nor",
|
||||||
|
"noshowcancelled",
|
||||||
|
"not",
|
||||||
|
"notif0",
|
||||||
|
"notif1",
|
||||||
|
"null",
|
||||||
|
"or",
|
||||||
|
"output",
|
||||||
|
"package",
|
||||||
|
"packed",
|
||||||
|
"parameter",
|
||||||
|
"pmos",
|
||||||
|
"posedge",
|
||||||
|
"primitive",
|
||||||
|
"priority",
|
||||||
|
"program",
|
||||||
|
"property",
|
||||||
|
"protected",
|
||||||
|
"pull0",
|
||||||
|
"pull1",
|
||||||
|
"pulldown",
|
||||||
|
"pullup",
|
||||||
|
"pulsestyle_ondetect",
|
||||||
|
"pulsestyle_onevent",
|
||||||
|
"pure",
|
||||||
|
"rand",
|
||||||
|
"randc",
|
||||||
|
"randcase",
|
||||||
|
"randsequence",
|
||||||
|
"rcmos",
|
||||||
|
"real",
|
||||||
|
"realtime",
|
||||||
|
"ref",
|
||||||
|
"reg",
|
||||||
|
"reject_on",
|
||||||
|
"release",
|
||||||
|
"repeat",
|
||||||
|
"restrict",
|
||||||
|
"return",
|
||||||
|
"rnmos",
|
||||||
|
"rpmos",
|
||||||
|
"rtran",
|
||||||
|
"rtranif0",
|
||||||
|
"rtranif1",
|
||||||
|
"s_always",
|
||||||
|
"s_eventually",
|
||||||
|
"s_nexttime",
|
||||||
|
"s_until",
|
||||||
|
"s_until_with",
|
||||||
|
"scalared",
|
||||||
|
"sequence",
|
||||||
|
"shortint",
|
||||||
|
"shortreal",
|
||||||
|
"showcancelled",
|
||||||
|
"signed",
|
||||||
|
"small",
|
||||||
|
"soft",
|
||||||
|
"solve",
|
||||||
|
"specify",
|
||||||
|
"specparam",
|
||||||
|
"static",
|
||||||
|
"string",
|
||||||
|
"strong",
|
||||||
|
"strong0",
|
||||||
|
"strong1",
|
||||||
|
"struct",
|
||||||
|
"super",
|
||||||
|
"supply0",
|
||||||
|
"supply1",
|
||||||
|
"sync_accept_on",
|
||||||
|
"sync_reject_on",
|
||||||
|
"table",
|
||||||
|
"tagged",
|
||||||
|
"task",
|
||||||
|
"this",
|
||||||
|
"throughout",
|
||||||
|
"time",
|
||||||
|
"timeprecision",
|
||||||
|
"timeunit",
|
||||||
|
"tran",
|
||||||
|
"tranif0",
|
||||||
|
"tranif1",
|
||||||
|
"tri",
|
||||||
|
"tri0",
|
||||||
|
"tri1",
|
||||||
|
"triand",
|
||||||
|
"trior",
|
||||||
|
"trireg",
|
||||||
|
"type",
|
||||||
|
"typedef",
|
||||||
|
"union",
|
||||||
|
"unique",
|
||||||
|
"unique0",
|
||||||
|
"unsigned",
|
||||||
|
"until",
|
||||||
|
"until_with",
|
||||||
|
"untyped",
|
||||||
|
"use",
|
||||||
|
"uwire",
|
||||||
|
"var",
|
||||||
|
"vectored",
|
||||||
|
"virtual",
|
||||||
|
"void",
|
||||||
|
"wait",
|
||||||
|
"wait_order",
|
||||||
|
"wand",
|
||||||
|
"weak",
|
||||||
|
"weak0",
|
||||||
|
"weak1",
|
||||||
|
"while",
|
||||||
|
"wildcard",
|
||||||
|
"wire",
|
||||||
|
"with",
|
||||||
|
"within",
|
||||||
|
"wor",
|
||||||
|
"xnor",
|
||||||
|
"xor"
|
||||||
|
],
|
||||||
|
builtin_gates: [
|
||||||
|
"and",
|
||||||
|
"nand",
|
||||||
|
"nor",
|
||||||
|
"or",
|
||||||
|
"xor",
|
||||||
|
"xnor",
|
||||||
|
"buf",
|
||||||
|
"not",
|
||||||
|
"bufif0",
|
||||||
|
"bufif1",
|
||||||
|
"notif1",
|
||||||
|
"notif0",
|
||||||
|
"cmos",
|
||||||
|
"nmos",
|
||||||
|
"pmos",
|
||||||
|
"rcmos",
|
||||||
|
"rnmos",
|
||||||
|
"rpmos",
|
||||||
|
"tran",
|
||||||
|
"tranif1",
|
||||||
|
"tranif0",
|
||||||
|
"rtran",
|
||||||
|
"rtranif1",
|
||||||
|
"rtranif0"
|
||||||
|
],
|
||||||
|
operators: [
|
||||||
|
"=",
|
||||||
|
"+=",
|
||||||
|
"-=",
|
||||||
|
"*=",
|
||||||
|
"/=",
|
||||||
|
"%=",
|
||||||
|
"&=",
|
||||||
|
"|=",
|
||||||
|
"^=",
|
||||||
|
"<<=",
|
||||||
|
">>+",
|
||||||
|
"<<<=",
|
||||||
|
">>>=",
|
||||||
|
"?",
|
||||||
|
":",
|
||||||
|
"+",
|
||||||
|
"-",
|
||||||
|
"!",
|
||||||
|
"~",
|
||||||
|
"&",
|
||||||
|
"~&",
|
||||||
|
"|",
|
||||||
|
"~|",
|
||||||
|
"^",
|
||||||
|
"~^",
|
||||||
|
"^~",
|
||||||
|
"+",
|
||||||
|
"-",
|
||||||
|
"*",
|
||||||
|
"/",
|
||||||
|
"%",
|
||||||
|
"==",
|
||||||
|
"!=",
|
||||||
|
"===",
|
||||||
|
"!==",
|
||||||
|
"==?",
|
||||||
|
"!=?",
|
||||||
|
"&&",
|
||||||
|
"||",
|
||||||
|
"**",
|
||||||
|
"<",
|
||||||
|
"<=",
|
||||||
|
">",
|
||||||
|
">=",
|
||||||
|
"&",
|
||||||
|
"|",
|
||||||
|
"^",
|
||||||
|
">>",
|
||||||
|
"<<",
|
||||||
|
">>>",
|
||||||
|
"<<<",
|
||||||
|
"++",
|
||||||
|
"--",
|
||||||
|
"->",
|
||||||
|
"<->",
|
||||||
|
"inside",
|
||||||
|
"dist",
|
||||||
|
"::",
|
||||||
|
"+:",
|
||||||
|
"-:",
|
||||||
|
"*>",
|
||||||
|
"&&&",
|
||||||
|
"|->",
|
||||||
|
"|=>",
|
||||||
|
"#=#"
|
||||||
|
],
|
||||||
|
symbols: /[=><!~?:&|+\-*\/\^%#]+/,
|
||||||
|
escapes: /%%|\\(?:[antvf\\"']|x[0-9A-Fa-f]{1,2}|[0-7]{1,3})/,
|
||||||
|
identifier: /(?:[a-zA-Z_][a-zA-Z0-9_$\.]*|\\\S+ )/,
|
||||||
|
systemcall: /[$][a-zA-Z0-9_]+/,
|
||||||
|
timeunits: /s|ms|us|ns|ps|fs/,
|
||||||
|
tokenizer: {
|
||||||
|
root: [
|
||||||
|
[
|
||||||
|
/^(\s*)(@identifier)/,
|
||||||
|
[
|
||||||
|
"",
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"@builtin_gates": {
|
||||||
|
token: "keyword.$2",
|
||||||
|
next: "@module_instance"
|
||||||
|
},
|
||||||
|
table: {
|
||||||
|
token: "keyword.$2",
|
||||||
|
next: "@table"
|
||||||
|
},
|
||||||
|
"@keywords": { token: "keyword.$2" },
|
||||||
|
"@default": {
|
||||||
|
token: "identifier",
|
||||||
|
next: "@module_instance"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
],
|
||||||
|
[/^\s*`include/, { token: "keyword.directive.include", next: "@include" }],
|
||||||
|
[/^\s*`\s*\w+/, "keyword"],
|
||||||
|
{ include: "@identifier_or_keyword" },
|
||||||
|
{ include: "@whitespace" },
|
||||||
|
[/\(\*.*\*\)/, "annotation"],
|
||||||
|
[/@systemcall/, "variable.predefined"],
|
||||||
|
[/[{}()\[\]]/, "@brackets"],
|
||||||
|
[/[<>](?!@symbols)/, "@brackets"],
|
||||||
|
[
|
||||||
|
/@symbols/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"@operators": "delimiter",
|
||||||
|
"@default": ""
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
{ include: "@numbers" },
|
||||||
|
[/[;,.]/, "delimiter"],
|
||||||
|
{ include: "@strings" }
|
||||||
|
],
|
||||||
|
identifier_or_keyword: [
|
||||||
|
[
|
||||||
|
/@identifier/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"@keywords": { token: "keyword.$0" },
|
||||||
|
"@default": "identifier"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
],
|
||||||
|
numbers: [
|
||||||
|
[/\d+?[\d_]*(?:\.[\d_]+)?[eE][\-+]?\d+/, "number.float"],
|
||||||
|
[/\d+?[\d_]*\.[\d_]+(?:\s*@timeunits)?/, "number.float"],
|
||||||
|
[/(?:\d+?[\d_]*\s*)?'[sS]?[dD]\s*[0-9xXzZ?]+?[0-9xXzZ?_]*/, "number"],
|
||||||
|
[/(?:\d+?[\d_]*\s*)?'[sS]?[bB]\s*[0-1xXzZ?]+?[0-1xXzZ?_]*/, "number.binary"],
|
||||||
|
[/(?:\d+?[\d_]*\s*)?'[sS]?[oO]\s*[0-7xXzZ?]+?[0-7xXzZ?_]*/, "number.octal"],
|
||||||
|
[/(?:\d+?[\d_]*\s*)?'[sS]?[hH]\s*[0-9a-fA-FxXzZ?]+?[0-9a-fA-FxXzZ?_]*/, "number.hex"],
|
||||||
|
[/1step/, "number"],
|
||||||
|
[/[\dxXzZ]+?[\dxXzZ_]*(?:\s*@timeunits)?/, "number"],
|
||||||
|
[/'[01xXzZ]+/, "number"]
|
||||||
|
],
|
||||||
|
module_instance: [
|
||||||
|
{ include: "@whitespace" },
|
||||||
|
[/(#?)(\()/, ["", { token: "@brackets", next: "@port_connection" }]],
|
||||||
|
[/@identifier\s*[;={}\[\],]/, { token: "@rematch", next: "@pop" }],
|
||||||
|
[/@symbols|[;={}\[\],]/, { token: "@rematch", next: "@pop" }],
|
||||||
|
[/@identifier/, "type"],
|
||||||
|
[/;/, "delimiter", "@pop"]
|
||||||
|
],
|
||||||
|
port_connection: [
|
||||||
|
{ include: "@identifier_or_keyword" },
|
||||||
|
{ include: "@whitespace" },
|
||||||
|
[/@systemcall/, "variable.predefined"],
|
||||||
|
{ include: "@numbers" },
|
||||||
|
{ include: "@strings" },
|
||||||
|
[/[,]/, "delimiter"],
|
||||||
|
[/\(/, "@brackets", "@port_connection"],
|
||||||
|
[/\)/, "@brackets", "@pop"]
|
||||||
|
],
|
||||||
|
whitespace: [
|
||||||
|
[/[ \t\r\n]+/, ""],
|
||||||
|
[/\/\*/, "comment", "@comment"],
|
||||||
|
[/\/\/.*$/, "comment"]
|
||||||
|
],
|
||||||
|
comment: [
|
||||||
|
[/[^\/*]+/, "comment"],
|
||||||
|
[/\*\//, "comment", "@pop"],
|
||||||
|
[/[\/*]/, "comment"]
|
||||||
|
],
|
||||||
|
strings: [
|
||||||
|
[/"([^"\\]|\\.)*$/, "string.invalid"],
|
||||||
|
[/"/, "string", "@string"]
|
||||||
|
],
|
||||||
|
string: [
|
||||||
|
[/[^\\"]+/, "string"],
|
||||||
|
[/@escapes/, "string.escape"],
|
||||||
|
[/\\./, "string.escape.invalid"],
|
||||||
|
[/"/, "string", "@pop"]
|
||||||
|
],
|
||||||
|
include: [
|
||||||
|
[
|
||||||
|
/(\s*)(")([\w*\/*]*)(.\w*)(")/,
|
||||||
|
[
|
||||||
|
"",
|
||||||
|
"string.include.identifier",
|
||||||
|
"string.include.identifier",
|
||||||
|
"string.include.identifier",
|
||||||
|
{ token: "string.include.identifier", next: "@pop" }
|
||||||
|
]
|
||||||
|
],
|
||||||
|
[
|
||||||
|
/(\s*)(<)([\w*\/*]*)(.\w*)(>)/,
|
||||||
|
[
|
||||||
|
"",
|
||||||
|
"string.include.identifier",
|
||||||
|
"string.include.identifier",
|
||||||
|
"string.include.identifier",
|
||||||
|
{ token: "string.include.identifier", next: "@pop" }
|
||||||
|
]
|
||||||
|
]
|
||||||
|
],
|
||||||
|
table: [
|
||||||
|
{ include: "@whitespace" },
|
||||||
|
[/[()]/, "@brackets"],
|
||||||
|
[/[:;]/, "delimiter"],
|
||||||
|
[/[01\-*?xXbBrRfFpPnN]/, "variable.predefined"],
|
||||||
|
["endtable", "keyword.endtable", "@pop"]
|
||||||
|
]
|
||||||
|
}
|
||||||
|
};
|
||||||
|
return __toCommonJS(systemverilog_exports);
|
||||||
|
})();
|
||||||
|
return moduleExports;
|
||||||
|
});
|
||||||
@@ -0,0 +1,264 @@
|
|||||||
|
/*!-----------------------------------------------------------------------------
|
||||||
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||||
|
* Version: 0.33.0(4b1abad427e58dbedc1215d99a0902ffc885fcd4)
|
||||||
|
* Released under the MIT license
|
||||||
|
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
||||||
|
*-----------------------------------------------------------------------------*/
|
||||||
|
define("vs/basic-languages/tcl/tcl", ["require"],(require)=>{
|
||||||
|
var moduleExports = (() => {
|
||||||
|
var __defProp = Object.defineProperty;
|
||||||
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||||
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||||
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||||
|
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
||||||
|
var __export = (target, all) => {
|
||||||
|
for (var name in all)
|
||||||
|
__defProp(target, name, { get: all[name], enumerable: true });
|
||||||
|
};
|
||||||
|
var __reExport = (target, module, copyDefault, desc) => {
|
||||||
|
if (module && typeof module === "object" || typeof module === "function") {
|
||||||
|
for (let key of __getOwnPropNames(module))
|
||||||
|
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
||||||
|
__defProp(target, key, { get: () => module[key], enumerable: !(desc = __getOwnPropDesc(module, key)) || desc.enumerable });
|
||||||
|
}
|
||||||
|
return target;
|
||||||
|
};
|
||||||
|
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
||||||
|
return (module, temp) => {
|
||||||
|
return cache && cache.get(module) || (temp = __reExport(__markAsModule({}), module, 1), cache && cache.set(module, temp), temp);
|
||||||
|
};
|
||||||
|
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
||||||
|
|
||||||
|
// src/basic-languages/tcl/tcl.ts
|
||||||
|
var tcl_exports = {};
|
||||||
|
__export(tcl_exports, {
|
||||||
|
conf: () => conf,
|
||||||
|
language: () => language
|
||||||
|
});
|
||||||
|
var conf = {
|
||||||
|
brackets: [
|
||||||
|
["{", "}"],
|
||||||
|
["[", "]"],
|
||||||
|
["(", ")"]
|
||||||
|
],
|
||||||
|
autoClosingPairs: [
|
||||||
|
{ open: "{", close: "}" },
|
||||||
|
{ open: "[", close: "]" },
|
||||||
|
{ open: "(", close: ")" },
|
||||||
|
{ open: '"', close: '"' },
|
||||||
|
{ open: "'", close: "'" }
|
||||||
|
],
|
||||||
|
surroundingPairs: [
|
||||||
|
{ open: "{", close: "}" },
|
||||||
|
{ open: "[", close: "]" },
|
||||||
|
{ open: "(", close: ")" },
|
||||||
|
{ open: '"', close: '"' },
|
||||||
|
{ open: "'", close: "'" }
|
||||||
|
]
|
||||||
|
};
|
||||||
|
var language = {
|
||||||
|
tokenPostfix: ".tcl",
|
||||||
|
specialFunctions: [
|
||||||
|
"set",
|
||||||
|
"unset",
|
||||||
|
"rename",
|
||||||
|
"variable",
|
||||||
|
"proc",
|
||||||
|
"coroutine",
|
||||||
|
"foreach",
|
||||||
|
"incr",
|
||||||
|
"append",
|
||||||
|
"lappend",
|
||||||
|
"linsert",
|
||||||
|
"lreplace"
|
||||||
|
],
|
||||||
|
mainFunctions: [
|
||||||
|
"if",
|
||||||
|
"then",
|
||||||
|
"elseif",
|
||||||
|
"else",
|
||||||
|
"case",
|
||||||
|
"switch",
|
||||||
|
"while",
|
||||||
|
"for",
|
||||||
|
"break",
|
||||||
|
"continue",
|
||||||
|
"return",
|
||||||
|
"package",
|
||||||
|
"namespace",
|
||||||
|
"catch",
|
||||||
|
"exit",
|
||||||
|
"eval",
|
||||||
|
"expr",
|
||||||
|
"uplevel",
|
||||||
|
"upvar"
|
||||||
|
],
|
||||||
|
builtinFunctions: [
|
||||||
|
"file",
|
||||||
|
"info",
|
||||||
|
"concat",
|
||||||
|
"join",
|
||||||
|
"lindex",
|
||||||
|
"list",
|
||||||
|
"llength",
|
||||||
|
"lrange",
|
||||||
|
"lsearch",
|
||||||
|
"lsort",
|
||||||
|
"split",
|
||||||
|
"array",
|
||||||
|
"parray",
|
||||||
|
"binary",
|
||||||
|
"format",
|
||||||
|
"regexp",
|
||||||
|
"regsub",
|
||||||
|
"scan",
|
||||||
|
"string",
|
||||||
|
"subst",
|
||||||
|
"dict",
|
||||||
|
"cd",
|
||||||
|
"clock",
|
||||||
|
"exec",
|
||||||
|
"glob",
|
||||||
|
"pid",
|
||||||
|
"pwd",
|
||||||
|
"close",
|
||||||
|
"eof",
|
||||||
|
"fblocked",
|
||||||
|
"fconfigure",
|
||||||
|
"fcopy",
|
||||||
|
"fileevent",
|
||||||
|
"flush",
|
||||||
|
"gets",
|
||||||
|
"open",
|
||||||
|
"puts",
|
||||||
|
"read",
|
||||||
|
"seek",
|
||||||
|
"socket",
|
||||||
|
"tell",
|
||||||
|
"interp",
|
||||||
|
"after",
|
||||||
|
"auto_execok",
|
||||||
|
"auto_load",
|
||||||
|
"auto_mkindex",
|
||||||
|
"auto_reset",
|
||||||
|
"bgerror",
|
||||||
|
"error",
|
||||||
|
"global",
|
||||||
|
"history",
|
||||||
|
"load",
|
||||||
|
"source",
|
||||||
|
"time",
|
||||||
|
"trace",
|
||||||
|
"unknown",
|
||||||
|
"unset",
|
||||||
|
"update",
|
||||||
|
"vwait",
|
||||||
|
"winfo",
|
||||||
|
"wm",
|
||||||
|
"bind",
|
||||||
|
"event",
|
||||||
|
"pack",
|
||||||
|
"place",
|
||||||
|
"grid",
|
||||||
|
"font",
|
||||||
|
"bell",
|
||||||
|
"clipboard",
|
||||||
|
"destroy",
|
||||||
|
"focus",
|
||||||
|
"grab",
|
||||||
|
"lower",
|
||||||
|
"option",
|
||||||
|
"raise",
|
||||||
|
"selection",
|
||||||
|
"send",
|
||||||
|
"tk",
|
||||||
|
"tkwait",
|
||||||
|
"tk_bisque",
|
||||||
|
"tk_focusNext",
|
||||||
|
"tk_focusPrev",
|
||||||
|
"tk_focusFollowsMouse",
|
||||||
|
"tk_popup",
|
||||||
|
"tk_setPalette"
|
||||||
|
],
|
||||||
|
symbols: /[=><!~?:&|+\-*\/\^%]+/,
|
||||||
|
brackets: [
|
||||||
|
{ open: "(", close: ")", token: "delimiter.parenthesis" },
|
||||||
|
{ open: "{", close: "}", token: "delimiter.curly" },
|
||||||
|
{ open: "[", close: "]", token: "delimiter.square" }
|
||||||
|
],
|
||||||
|
escapes: /\\(?:[abfnrtv\\"'\[\]\{\};\$]|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
|
||||||
|
variables: /(?:\$+(?:(?:\:\:?)?[a-zA-Z_]\w*)+)/,
|
||||||
|
tokenizer: {
|
||||||
|
root: [
|
||||||
|
[
|
||||||
|
/[a-zA-Z_]\w*/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"@specialFunctions": {
|
||||||
|
token: "keyword.flow",
|
||||||
|
next: "@specialFunc"
|
||||||
|
},
|
||||||
|
"@mainFunctions": "keyword",
|
||||||
|
"@builtinFunctions": "variable",
|
||||||
|
"@default": "operator.scss"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/\s+\-+(?!\d|\.)\w*|{\*}/, "metatag"],
|
||||||
|
{ include: "@whitespace" },
|
||||||
|
[/[{}()\[\]]/, "@brackets"],
|
||||||
|
[/@symbols/, "operator"],
|
||||||
|
[/\$+(?:\:\:)?\{/, { token: "identifier", next: "@nestedVariable" }],
|
||||||
|
[/@variables/, "type.identifier"],
|
||||||
|
[/\.(?!\d|\.)[\w\-]*/, "operator.sql"],
|
||||||
|
[/\d+(\.\d+)?/, "number"],
|
||||||
|
[/\d+/, "number"],
|
||||||
|
[/;/, "delimiter"],
|
||||||
|
[/"/, { token: "string.quote", bracket: "@open", next: "@dstring" }],
|
||||||
|
[/'/, { token: "string.quote", bracket: "@open", next: "@sstring" }]
|
||||||
|
],
|
||||||
|
dstring: [
|
||||||
|
[/\[/, { token: "@brackets", next: "@nestedCall" }],
|
||||||
|
[/\$+(?:\:\:)?\{/, { token: "identifier", next: "@nestedVariable" }],
|
||||||
|
[/@variables/, "type.identifier"],
|
||||||
|
[/[^\\$\[\]"]+/, "string"],
|
||||||
|
[/@escapes/, "string.escape"],
|
||||||
|
[/"/, { token: "string.quote", bracket: "@close", next: "@pop" }]
|
||||||
|
],
|
||||||
|
sstring: [
|
||||||
|
[/\[/, { token: "@brackets", next: "@nestedCall" }],
|
||||||
|
[/\$+(?:\:\:)?\{/, { token: "identifier", next: "@nestedVariable" }],
|
||||||
|
[/@variables/, "type.identifier"],
|
||||||
|
[/[^\\$\[\]']+/, "string"],
|
||||||
|
[/@escapes/, "string.escape"],
|
||||||
|
[/'/, { token: "string.quote", bracket: "@close", next: "@pop" }]
|
||||||
|
],
|
||||||
|
whitespace: [
|
||||||
|
[/[ \t\r\n]+/, "white"],
|
||||||
|
[/#.*\\$/, { token: "comment", next: "@newlineComment" }],
|
||||||
|
[/#.*(?!\\)$/, "comment"]
|
||||||
|
],
|
||||||
|
newlineComment: [
|
||||||
|
[/.*\\$/, "comment"],
|
||||||
|
[/.*(?!\\)$/, { token: "comment", next: "@pop" }]
|
||||||
|
],
|
||||||
|
nestedVariable: [
|
||||||
|
[/[^\{\}\$]+/, "type.identifier"],
|
||||||
|
[/\}/, { token: "identifier", next: "@pop" }]
|
||||||
|
],
|
||||||
|
nestedCall: [
|
||||||
|
[/\[/, { token: "@brackets", next: "@nestedCall" }],
|
||||||
|
[/\]/, { token: "@brackets", next: "@pop" }],
|
||||||
|
{ include: "root" }
|
||||||
|
],
|
||||||
|
specialFunc: [
|
||||||
|
[/"/, { token: "string", next: "@dstring" }],
|
||||||
|
[/'/, { token: "string", next: "@sstring" }],
|
||||||
|
[/\S+/, { token: "type", next: "@pop" }]
|
||||||
|
]
|
||||||
|
}
|
||||||
|
};
|
||||||
|
return __toCommonJS(tcl_exports);
|
||||||
|
})();
|
||||||
|
return moduleExports;
|
||||||
|
});
|
||||||
@@ -0,0 +1,355 @@
|
|||||||
|
/*!-----------------------------------------------------------------------------
|
||||||
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||||
|
* Version: 0.33.0(4b1abad427e58dbedc1215d99a0902ffc885fcd4)
|
||||||
|
* Released under the MIT license
|
||||||
|
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
||||||
|
*-----------------------------------------------------------------------------*/
|
||||||
|
define("vs/basic-languages/twig/twig", ["require"],(require)=>{
|
||||||
|
var moduleExports = (() => {
|
||||||
|
var __defProp = Object.defineProperty;
|
||||||
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||||
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||||
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||||
|
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
||||||
|
var __export = (target, all) => {
|
||||||
|
for (var name in all)
|
||||||
|
__defProp(target, name, { get: all[name], enumerable: true });
|
||||||
|
};
|
||||||
|
var __reExport = (target, module, copyDefault, desc) => {
|
||||||
|
if (module && typeof module === "object" || typeof module === "function") {
|
||||||
|
for (let key of __getOwnPropNames(module))
|
||||||
|
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
||||||
|
__defProp(target, key, { get: () => module[key], enumerable: !(desc = __getOwnPropDesc(module, key)) || desc.enumerable });
|
||||||
|
}
|
||||||
|
return target;
|
||||||
|
};
|
||||||
|
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
||||||
|
return (module, temp) => {
|
||||||
|
return cache && cache.get(module) || (temp = __reExport(__markAsModule({}), module, 1), cache && cache.set(module, temp), temp);
|
||||||
|
};
|
||||||
|
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
||||||
|
|
||||||
|
// src/basic-languages/twig/twig.ts
|
||||||
|
var twig_exports = {};
|
||||||
|
__export(twig_exports, {
|
||||||
|
conf: () => conf,
|
||||||
|
language: () => language
|
||||||
|
});
|
||||||
|
var conf = {
|
||||||
|
wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,
|
||||||
|
comments: {
|
||||||
|
blockComment: ["{#", "#}"]
|
||||||
|
},
|
||||||
|
brackets: [
|
||||||
|
["{#", "#}"],
|
||||||
|
["{%", "%}"],
|
||||||
|
["{{", "}}"],
|
||||||
|
["(", ")"],
|
||||||
|
["[", "]"],
|
||||||
|
["<!--", "-->"],
|
||||||
|
["<", ">"]
|
||||||
|
],
|
||||||
|
autoClosingPairs: [
|
||||||
|
{ open: "{# ", close: " #}" },
|
||||||
|
{ open: "{% ", close: " %}" },
|
||||||
|
{ open: "{{ ", close: " }}" },
|
||||||
|
{ open: "[", close: "]" },
|
||||||
|
{ open: "(", close: ")" },
|
||||||
|
{ open: '"', close: '"' },
|
||||||
|
{ open: "'", close: "'" }
|
||||||
|
],
|
||||||
|
surroundingPairs: [
|
||||||
|
{ open: '"', close: '"' },
|
||||||
|
{ open: "'", close: "'" },
|
||||||
|
{ open: "<", close: ">" }
|
||||||
|
]
|
||||||
|
};
|
||||||
|
var language = {
|
||||||
|
defaultToken: "",
|
||||||
|
tokenPostfix: "",
|
||||||
|
ignoreCase: true,
|
||||||
|
keywords: [
|
||||||
|
"apply",
|
||||||
|
"autoescape",
|
||||||
|
"block",
|
||||||
|
"deprecated",
|
||||||
|
"do",
|
||||||
|
"embed",
|
||||||
|
"extends",
|
||||||
|
"flush",
|
||||||
|
"for",
|
||||||
|
"from",
|
||||||
|
"if",
|
||||||
|
"import",
|
||||||
|
"include",
|
||||||
|
"macro",
|
||||||
|
"sandbox",
|
||||||
|
"set",
|
||||||
|
"use",
|
||||||
|
"verbatim",
|
||||||
|
"with",
|
||||||
|
"endapply",
|
||||||
|
"endautoescape",
|
||||||
|
"endblock",
|
||||||
|
"endembed",
|
||||||
|
"endfor",
|
||||||
|
"endif",
|
||||||
|
"endmacro",
|
||||||
|
"endsandbox",
|
||||||
|
"endset",
|
||||||
|
"endwith",
|
||||||
|
"true",
|
||||||
|
"false"
|
||||||
|
],
|
||||||
|
tokenizer: {
|
||||||
|
root: [
|
||||||
|
[/\s+/],
|
||||||
|
[/{#/, "comment.twig", "@commentState"],
|
||||||
|
[/{%[-~]?/, "delimiter.twig", "@blockState"],
|
||||||
|
[/{{[-~]?/, "delimiter.twig", "@variableState"],
|
||||||
|
[/<!DOCTYPE/, "metatag.html", "@doctype"],
|
||||||
|
[/<!--/, "comment.html", "@comment"],
|
||||||
|
[/(<)((?:[\w\-]+:)?[\w\-]+)(\s*)(\/>)/, ["delimiter.html", "tag.html", "", "delimiter.html"]],
|
||||||
|
[/(<)(script)/, ["delimiter.html", { token: "tag.html", next: "@script" }]],
|
||||||
|
[/(<)(style)/, ["delimiter.html", { token: "tag.html", next: "@style" }]],
|
||||||
|
[/(<)((?:[\w\-]+:)?[\w\-]+)/, ["delimiter.html", { token: "tag.html", next: "@otherTag" }]],
|
||||||
|
[/(<\/)((?:[\w\-]+:)?[\w\-]+)/, ["delimiter.html", { token: "tag.html", next: "@otherTag" }]],
|
||||||
|
[/</, "delimiter.html"],
|
||||||
|
[/[^<]+/]
|
||||||
|
],
|
||||||
|
commentState: [
|
||||||
|
[/#}/, "comment.twig", "@pop"],
|
||||||
|
[/./, "comment.twig"]
|
||||||
|
],
|
||||||
|
blockState: [
|
||||||
|
[/[-~]?%}/, "delimiter.twig", "@pop"],
|
||||||
|
[/\s+/],
|
||||||
|
[
|
||||||
|
/(verbatim)(\s*)([-~]?%})/,
|
||||||
|
["keyword.twig", "", { token: "delimiter.twig", next: "@rawDataState" }]
|
||||||
|
],
|
||||||
|
{ include: "expression" }
|
||||||
|
],
|
||||||
|
rawDataState: [
|
||||||
|
[
|
||||||
|
/({%[-~]?)(\s*)(endverbatim)(\s*)([-~]?%})/,
|
||||||
|
["delimiter.twig", "", "keyword.twig", "", { token: "delimiter.twig", next: "@popall" }]
|
||||||
|
],
|
||||||
|
[/./, "string.twig"]
|
||||||
|
],
|
||||||
|
variableState: [[/[-~]?}}/, "delimiter.twig", "@pop"], { include: "expression" }],
|
||||||
|
stringState: [
|
||||||
|
[/"/, "string.twig", "@pop"],
|
||||||
|
[/#{\s*/, "string.twig", "@interpolationState"],
|
||||||
|
[/[^#"\\]*(?:(?:\\.|#(?!\{))[^#"\\]*)*/, "string.twig"]
|
||||||
|
],
|
||||||
|
interpolationState: [
|
||||||
|
[/}/, "string.twig", "@pop"],
|
||||||
|
{ include: "expression" }
|
||||||
|
],
|
||||||
|
expression: [
|
||||||
|
[/\s+/],
|
||||||
|
[/\+|-|\/{1,2}|%|\*{1,2}/, "operators.twig"],
|
||||||
|
[/(and|or|not|b-and|b-xor|b-or)(\s+)/, ["operators.twig", ""]],
|
||||||
|
[/==|!=|<|>|>=|<=/, "operators.twig"],
|
||||||
|
[/(starts with|ends with|matches)(\s+)/, ["operators.twig", ""]],
|
||||||
|
[/(in)(\s+)/, ["operators.twig", ""]],
|
||||||
|
[/(is)(\s+)/, ["operators.twig", ""]],
|
||||||
|
[/\||~|:|\.{1,2}|\?{1,2}/, "operators.twig"],
|
||||||
|
[
|
||||||
|
/[^\W\d][\w]*/,
|
||||||
|
{
|
||||||
|
cases: {
|
||||||
|
"@keywords": "keyword.twig",
|
||||||
|
"@default": "variable.twig"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/\d+(\.\d+)?/, "number.twig"],
|
||||||
|
[/\(|\)|\[|\]|{|}|,/, "delimiter.twig"],
|
||||||
|
[/"([^#"\\]*(?:\\.[^#"\\]*)*)"|\'([^\'\\]*(?:\\.[^\'\\]*)*)\'/, "string.twig"],
|
||||||
|
[/"/, "string.twig", "@stringState"],
|
||||||
|
[/=>/, "operators.twig"],
|
||||||
|
[/=/, "operators.twig"]
|
||||||
|
],
|
||||||
|
doctype: [
|
||||||
|
[/[^>]+/, "metatag.content.html"],
|
||||||
|
[/>/, "metatag.html", "@pop"]
|
||||||
|
],
|
||||||
|
comment: [
|
||||||
|
[/-->/, "comment.html", "@pop"],
|
||||||
|
[/[^-]+/, "comment.content.html"],
|
||||||
|
[/./, "comment.content.html"]
|
||||||
|
],
|
||||||
|
otherTag: [
|
||||||
|
[/\/?>/, "delimiter.html", "@pop"],
|
||||||
|
[/"([^"]*)"/, "attribute.value.html"],
|
||||||
|
[/'([^']*)'/, "attribute.value.html"],
|
||||||
|
[/[\w\-]+/, "attribute.name.html"],
|
||||||
|
[/=/, "delimiter.html"],
|
||||||
|
[/[ \t\r\n]+/]
|
||||||
|
],
|
||||||
|
script: [
|
||||||
|
[/type/, "attribute.name.html", "@scriptAfterType"],
|
||||||
|
[/"([^"]*)"/, "attribute.value.html"],
|
||||||
|
[/'([^']*)'/, "attribute.value.html"],
|
||||||
|
[/[\w\-]+/, "attribute.name.html"],
|
||||||
|
[/=/, "delimiter.html"],
|
||||||
|
[
|
||||||
|
/>/,
|
||||||
|
{
|
||||||
|
token: "delimiter.html",
|
||||||
|
next: "@scriptEmbedded",
|
||||||
|
nextEmbedded: "text/javascript"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/[ \t\r\n]+/],
|
||||||
|
[
|
||||||
|
/(<\/)(script\s*)(>)/,
|
||||||
|
["delimiter.html", "tag.html", { token: "delimiter.html", next: "@pop" }]
|
||||||
|
]
|
||||||
|
],
|
||||||
|
scriptAfterType: [
|
||||||
|
[/=/, "delimiter.html", "@scriptAfterTypeEquals"],
|
||||||
|
[
|
||||||
|
/>/,
|
||||||
|
{
|
||||||
|
token: "delimiter.html",
|
||||||
|
next: "@scriptEmbedded",
|
||||||
|
nextEmbedded: "text/javascript"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/[ \t\r\n]+/],
|
||||||
|
[/<\/script\s*>/, { token: "@rematch", next: "@pop" }]
|
||||||
|
],
|
||||||
|
scriptAfterTypeEquals: [
|
||||||
|
[
|
||||||
|
/"([^"]*)"/,
|
||||||
|
{
|
||||||
|
token: "attribute.value.html",
|
||||||
|
switchTo: "@scriptWithCustomType.$1"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[
|
||||||
|
/'([^']*)'/,
|
||||||
|
{
|
||||||
|
token: "attribute.value.html",
|
||||||
|
switchTo: "@scriptWithCustomType.$1"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[
|
||||||
|
/>/,
|
||||||
|
{
|
||||||
|
token: "delimiter.html",
|
||||||
|
next: "@scriptEmbedded",
|
||||||
|
nextEmbedded: "text/javascript"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/[ \t\r\n]+/],
|
||||||
|
[/<\/script\s*>/, { token: "@rematch", next: "@pop" }]
|
||||||
|
],
|
||||||
|
scriptWithCustomType: [
|
||||||
|
[
|
||||||
|
/>/,
|
||||||
|
{
|
||||||
|
token: "delimiter.html",
|
||||||
|
next: "@scriptEmbedded.$S2",
|
||||||
|
nextEmbedded: "$S2"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/"([^"]*)"/, "attribute.value.html"],
|
||||||
|
[/'([^']*)'/, "attribute.value.html"],
|
||||||
|
[/[\w\-]+/, "attribute.name.html"],
|
||||||
|
[/=/, "delimiter.html"],
|
||||||
|
[/[ \t\r\n]+/],
|
||||||
|
[/<\/script\s*>/, { token: "@rematch", next: "@pop" }]
|
||||||
|
],
|
||||||
|
scriptEmbedded: [
|
||||||
|
[/<\/script/, { token: "@rematch", next: "@pop", nextEmbedded: "@pop" }],
|
||||||
|
[/[^<]+/, ""]
|
||||||
|
],
|
||||||
|
style: [
|
||||||
|
[/type/, "attribute.name.html", "@styleAfterType"],
|
||||||
|
[/"([^"]*)"/, "attribute.value.html"],
|
||||||
|
[/'([^']*)'/, "attribute.value.html"],
|
||||||
|
[/[\w\-]+/, "attribute.name.html"],
|
||||||
|
[/=/, "delimiter.html"],
|
||||||
|
[
|
||||||
|
/>/,
|
||||||
|
{
|
||||||
|
token: "delimiter.html",
|
||||||
|
next: "@styleEmbedded",
|
||||||
|
nextEmbedded: "text/css"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/[ \t\r\n]+/],
|
||||||
|
[
|
||||||
|
/(<\/)(style\s*)(>)/,
|
||||||
|
["delimiter.html", "tag.html", { token: "delimiter.html", next: "@pop" }]
|
||||||
|
]
|
||||||
|
],
|
||||||
|
styleAfterType: [
|
||||||
|
[/=/, "delimiter.html", "@styleAfterTypeEquals"],
|
||||||
|
[
|
||||||
|
/>/,
|
||||||
|
{
|
||||||
|
token: "delimiter.html",
|
||||||
|
next: "@styleEmbedded",
|
||||||
|
nextEmbedded: "text/css"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/[ \t\r\n]+/],
|
||||||
|
[/<\/style\s*>/, { token: "@rematch", next: "@pop" }]
|
||||||
|
],
|
||||||
|
styleAfterTypeEquals: [
|
||||||
|
[
|
||||||
|
/"([^"]*)"/,
|
||||||
|
{
|
||||||
|
token: "attribute.value.html",
|
||||||
|
switchTo: "@styleWithCustomType.$1"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[
|
||||||
|
/'([^']*)'/,
|
||||||
|
{
|
||||||
|
token: "attribute.value.html",
|
||||||
|
switchTo: "@styleWithCustomType.$1"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[
|
||||||
|
/>/,
|
||||||
|
{
|
||||||
|
token: "delimiter.html",
|
||||||
|
next: "@styleEmbedded",
|
||||||
|
nextEmbedded: "text/css"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/[ \t\r\n]+/],
|
||||||
|
[/<\/style\s*>/, { token: "@rematch", next: "@pop" }]
|
||||||
|
],
|
||||||
|
styleWithCustomType: [
|
||||||
|
[
|
||||||
|
/>/,
|
||||||
|
{
|
||||||
|
token: "delimiter.html",
|
||||||
|
next: "@styleEmbedded.$S2",
|
||||||
|
nextEmbedded: "$S2"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[/"([^"]*)"/, "attribute.value.html"],
|
||||||
|
[/'([^']*)'/, "attribute.value.html"],
|
||||||
|
[/[\w\-]+/, "attribute.name.html"],
|
||||||
|
[/=/, "delimiter.html"],
|
||||||
|
[/[ \t\r\n]+/],
|
||||||
|
[/<\/style\s*>/, { token: "@rematch", next: "@pop" }]
|
||||||
|
],
|
||||||
|
styleEmbedded: [
|
||||||
|
[/<\/style/, { token: "@rematch", next: "@pop", nextEmbedded: "@pop" }],
|
||||||
|
[/[^<]+/, ""]
|
||||||
|
]
|
||||||
|
}
|
||||||
|
};
|
||||||
|
return __toCommonJS(twig_exports);
|
||||||
|
})();
|
||||||
|
return moduleExports;
|
||||||
|
});
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user