Commit 649aedb7 by Jason Zhou

prettify js files

parent cdd137c5
'use strict'
;(function() {
// 这里不再使用 localStorage 而是存储文件,避免 nw 升级后数据丢失
var fs = require('fs')
......
......@@ -7,7 +7,12 @@ const appPath = path.join(installDir, 'wechatdevtools.exe')
let CLI_JS_PATH
let pkgDir = path.join(process.env.APPDATA, 'Tencent', '微信web开发者工具', 'package.nw')
let pkgDir = path.join(
process.env.APPDATA,
'Tencent',
'微信web开发者工具',
'package.nw'
)
if (!fs.existsSync(pkgDir)) {
pkgDir = path.dirname(process.argv[0])
CLI_JS_PATH = path.join(installDir, 'package.nw/js/common/cli/index.js')
......@@ -15,13 +20,13 @@ if (!fs.existsSync(pkgDir)) {
CLI_JS_PATH = path.join(pkgDir, 'js/common/cli/index.js')
}
const child = child_process.spawnSync(path.join(installDir, '.\\node.exe'), [CLI_JS_PATH].concat(process.argv.slice(1)), {
const child = child_process.spawnSync(
path.join(installDir, '.\\node.exe'),
[CLI_JS_PATH].concat(process.argv.slice(1)),
{
cwd: __dirname,
stdio: [
process.stdin,
process.stdout,
process.stderr,
]
})
stdio: [process.stdin, process.stdout, process.stderr]
}
)
process.exit(0)
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -7,7 +7,7 @@ String.prototype.format = function(insert = []) {
}
let result = this
insert.forEach((value) => {
insert.forEach(value => {
result = result.replace('%s', value)
})
return result
......@@ -16,7 +16,7 @@ String.prototype.format = function(insert = []) {
const defaultLocales = 'zh'
let locales = defaultLocales
const setLocales = (lan) => {
const setLocales = lan => {
if (fs.existsSync(path.join(__dirname, lan))) {
locales = lan
}
......
......@@ -13,7 +13,8 @@ module.exports = {
JSON_PAGE_SHOULD_NOT_IN_SUBPACKAGE: '%s 不应该在分包 %s 中',
JSON_PLUGIN_SHOULD_NOT_IN_SUBPACKAGE: '%s 不应该在分包 %s 中',
JSON_CUSTOM_COMPILE_PATH_NOT_EXISTS_TITLE: 'app.json 或自定义编译条件错误',
JSON_CUSTOM_COMPILE_PATH_NOT_EXISTS: 'app.json 中未定义自定义编译中指定的启动页面 %s',
JSON_CUSTOM_COMPILE_PATH_NOT_EXISTS:
'app.json 中未定义自定义编译中指定的启动页面 %s',
JSON_ENTRY_PAGE_PATH_NOT_FOUND: '未在 %s 中找到 %s 定义的入口页面',
JSON_TABBAR_ERROR: 'tabbar 配置解析错误',
JSON_TABBAR_SHOULD_BE_LIST: 'tabBar.list 应为数组',
......@@ -149,7 +150,6 @@ module.exports = {
MENU_TOOLS_MGR: '工具栏管理',
MENU_TGIT: '代码仓库',
SETTING_APPEARANCE: '外观',
SETTING_EDIT: '编辑',
SETTING_PROXY: '代理',
......@@ -231,7 +231,8 @@ module.exports = {
CGI_ERR_DEV_INVALID_PLUGIN_VERSION: '非法的插件版本',
CGI_ERR_DEV_PLUGIN_NOT_FOUND: '找不到使用的插件',
CGI_ERR_DEV_DEVPLUGIN_NOT_DEFINED: '开发版插件未定义在 app.json 中',
CGI_ERR_DEV_PLUGIN_ROOT_NOT_DEFINED: '插件目录未定义在 project.config.json 中',
CGI_ERR_DEV_PLUGIN_ROOT_NOT_DEFINED:
'插件目录未定义在 project.config.json 中',
CGI_ERR_DEV_TWO_SAME_PLUGIN_FOUND: '使用了同一个插件的不同版本',
CGI_ERR_DEV_COMPILE_SOURCE_MAX_LIMIT_SUBPKG: '分包大小超过限制',
CGI_ERR_DEV_PLUGIN_NOT_INITTED: '插件未初始化',
......@@ -248,11 +249,14 @@ module.exports = {
CREATE_PROJECT_TIP_HASH_EXIST: '已存在 %s %s 项目,请重新输入',
CREATE_PROJECT_TIP_MUST_USE_EMPTY_FOLDER: '请选择空目录',
CREATE_PROJECT_TIP_MUST_CHOOSE_FOLDER: '创建临时目录失败,请选择一个目录',
CREATE_PROJECT_TIP_MUST_USE_VALID_MINI_APP_FOLDER: '请选择空目录或含 app.json / project.config.json 的目录创建项目',
CREATE_PROJECT_TIP_MUST_USE_VALID_MINI_GAME_FOLDER: '请选择空目录或含 game.json 的目录创建项目',
CREATE_PROJECT_TIP_MUST_USE_VALID_MINI_APP_FOLDER:
'请选择空目录或含 app.json / project.config.json 的目录创建项目',
CREATE_PROJECT_TIP_MUST_USE_VALID_MINI_GAME_FOLDER:
'请选择空目录或含 game.json 的目录创建项目',
PROJECT_PLUGIN_VERSION_WARNING: '插件版本警告',
PROJECT_PLUGIN_VERSION_UNMATCHED_WITH_VERSION_USED_IN_ONLINE_MINI_PROGRAM: '请注意,插件 %s 当前选择的版本 (%s) 小于线上小程序使用的版本 (%s)',
PROJECT_PLUGIN_VERSION_UNMATCHED_WITH_VERSION_USED_IN_ONLINE_MINI_PROGRAM:
'请注意,插件 %s 当前选择的版本 (%s) 小于线上小程序使用的版本 (%s)',
// ===== QCLOUD =====
......@@ -333,30 +337,35 @@ module.exports = {
CLI_NEED_VERSION: '需要版本号',
CLI_FORMAT_NOT_SUPPORT: '二维码不支持输出 %s 格式',
CLI_QR_PATH_NOT_VALID_OR_NOT_EXIST: '二维码输出路径无效或不存在 %s',
CLI_PROJECT_CONFIG_JSON_NOT_VALID_OR_NOT_EXIST: '请检查是否 project.config.json 是否存在及是否有效',
CLI_PROJECT_CONFIG_JSON_NOT_VALID_OR_NOT_EXIST:
'请检查是否 project.config.json 是否存在及是否有效',
CLI_NOT_FOUND_IN_PROJECT_CONFIG_JSON: 'project.config.json 中缺少了 %s',
CLI_APPID_NOT_BOUND: '当前开发者未绑定此 AppID ,请到小程序管理后台操作后重试',
CLI_APPID_NOT_BOUND:
'当前开发者未绑定此 AppID ,请到小程序管理后台操作后重试',
CLI_INVALID_APPID: '不存在此 AppID 请检查后重新输入',
CLI_GET_APP_INFO_ERROR: '获取应用信息错误,错误码 %s',
CLI_QR_OUTDATED: '二维码超时,请重试',
CLI_LOGIN_RETRY: '登录错误,请重试',
CLI_DUPLICATE_PROJECT_ID: '已存在相同 AppID 和 projectname 的项目(路径),请修改后重试',
CLI_DUPLICATE_PROJECT_ID:
'已存在相同 AppID 和 projectname 的项目(路径),请修改后重试',
CLI_GENERIC_ERROR: '错误 %s',
WIDGET_SERVER_DEBUG: '服务器调试信息',
WIDGET_NETWORK_ERROR: '网络错误',
WIDGET_GET_SEARCH_RESULT_ERROR: '获取搜索数据失败:%s,请更换搜索条件后重试',
WIDGET_GET_SEARCH_QUERY_ERROR: '获取搜索默认查询条件失败:%s',
WIDGET_IMAGE_SIZE_ERROR: '图片超过大小限制',
WIDGET_IMAGE_SIZE_ERROR_TIP: '在非 wifi 环境下,30 分钟内图片大小不能超过 %s kb',
WIDGET_IMAGE_SIZE_ERROR_TIP:
'在非 wifi 环境下,30 分钟内图片大小不能超过 %s kb',
WIDGET_IF_WANT_TO_JUMP: '是否跳转到小程序开发模式?',
RESOURCE_RELATIVE_TIPS_TITLE: '项目资源引用错误',
RESOURCE_RELATIVE_TIPS_CONTENT: '项目资源 %s 与页面不在同一个分包中导致无法正常加载',
RESOURCE_RELATIVE_TIPS_CONTENT:
'项目资源 %s 与页面不在同一个分包中导致无法正常加载',
RESOURCE_SUBPACKAGE_TIPS: '项目资源 %s 所在的分包尚未加载',
NO_NETWORK_TIPS_TITLE: '无网络状态模拟',
NO_NETWORK_TIPS_CONTENT: '已开启无网络状态模拟,网络请求 %s 已被阻止;在模拟器工具栏切换网络状态,可恢复网络请求。',
NO_NETWORK_TIPS_CONTENT:
'已开启无网络状态模拟,网络请求 %s 已被阻止;在模拟器工具栏切换网络状态,可恢复网络请求。',
FILE_NOT_UTF8: '%s 文件不是 UTF-8 格式',
......
const path = require('path')
const tools = require('../js/84b183688a46c9e2626d3e6f83365e13.js')
const isMac = (process.platform === 'darwin')
const isMac = process.platform === 'darwin'
function getQueryParameter(key) {
const m = location.search.match(new RegExp(`${key}=(.*?)(&|$)`))
......@@ -28,13 +27,17 @@ if (location.search) {
global.devInfo.appid = getQueryParameter('appid')
global.devInfo.projectname = getQueryParameter('projectname')
global.devInfo.projectpath = getQueryParameter('projectpath')
global.devInfo.projectid = `${global.devInfo.appid}_${encodeURIComponent(global.devInfo.projectname)}`
global.devInfo.projectid = `${global.devInfo.appid}_${encodeURIComponent(
global.devInfo.projectname
)}`
global.devInfo.isTemp = Boolean(getQueryParameter('isTemp'))
global.devInfo.isOnline = Boolean(getQueryParameter('isOnline'))
if (global.devInfo.isTemp) {
const tempLocalStorageKey = `temp_${global.devInfo.appid}_${global.devInfo.projectname}`
const tempLocalStorageKey = `temp_${global.devInfo.appid}_${
global.devInfo.projectname
}`
global.devInfo.project = JSON.parse(localStorage[tempLocalStorageKey])
delete localStorage[tempLocalStorageKey]
}
......@@ -58,7 +61,7 @@ global.contentDocument = document
global.contentDocumentBody = document.body
global.contentWindow = window
global.windowMap = new Map
global.windowMap = new Map()
global.windowMap.set('LOGIN', global.Win)
global.CLI = {}
......@@ -72,11 +75,13 @@ Object.defineProperties(global.worker, {
bbsLogWorker: {
get() {
if (!this._bbsLogWoker) {
this._bbsLogWoker = new Worker('../js/2bc74df4df155a7d0d1c4df1e947d57d.js')
this._bbsLogWoker = new Worker(
'../js/2bc74df4df155a7d0d1c4df1e947d57d.js'
)
}
return this._bbsLogWoker
},
},
}
}
})
global.reload = () => {
......@@ -94,12 +99,15 @@ try {
const ideMenu = new nw.Menu()
const debugMenu = new nw.Menu()
if (global.isDevWindow) {
debugMenu.append(new nw.MenuItem({
debugMenu.append(
new nw.MenuItem({
label: '调试微信开发者工具',
click: () => global.Win.showDevTools(),
}))
click: () => global.Win.showDevTools()
})
)
} else {
debugMenu.append(new nw.MenuItem({
debugMenu.append(
new nw.MenuItem({
label: '调试微信开发者工具',
click: () => {
chrome.developerPrivate.openDevTools({
......@@ -107,25 +115,34 @@ try {
renderProcessId: -1,
extensionId: chrome.runtime.id
})
},
}))
}
ideMenu.append(new nw.MenuItem({
})
)
}
ideMenu.append(
new nw.MenuItem({
label: '调试',
submenu: debugMenu,
}))
ideMenu.append(new nw.MenuItem({
submenu: debugMenu
})
)
ideMenu.append(
new nw.MenuItem({
label: '关闭窗口',
click: () => global.Win.close(true),
}))
ideMenu.append(new nw.MenuItem({
click: () => global.Win.close(true)
})
)
ideMenu.append(
new nw.MenuItem({
label: '退出',
click: () => nw.App.quit(),
}))
menu.append(new nw.MenuItem({
click: () => nw.App.quit()
})
)
menu.append(
new nw.MenuItem({
label: '微信开发者工具',
submenu: ideMenu,
}))
submenu: ideMenu
})
)
global.Win.menu = menu
}
} catch (err) {}
......@@ -158,14 +175,22 @@ try {
function init() {
// to prevent drag image or html
document.body.addEventListener('dragover', function(e){
e.preventDefault();
e.stopPropagation();
}, false);
document.body.addEventListener('drop', function(e){
e.preventDefault();
e.stopPropagation();
}, false);
document.body.addEventListener(
'dragover',
function(e) {
e.preventDefault()
e.stopPropagation()
},
false
)
document.body.addEventListener(
'drop',
function(e) {
e.preventDefault()
e.stopPropagation()
},
false
)
require('../js/29cbb96f0d87ca0a3ee63c5dbbd8107c.js')
......@@ -175,9 +200,8 @@ function init() {
}
// 禁用滚轮缩放
document.addEventListener('mousewheel', (event) => {
if(event.ctrlKey)
event.preventDefault()
document.addEventListener('mousewheel', event => {
if (event.ctrlKey) event.preventDefault()
})
Win.on('new-win-policy', (frame, url, policy) => {
......@@ -194,12 +218,12 @@ function init() {
// nothing to do
}
}
global.windowMap.forEach((win) => {
global.windowMap.forEach(win => {
try {
if (win !== Win) {
win.close(true)
}
} catch(e) {}
} catch (e) {}
})
global.windowMap.clear()
......@@ -231,12 +255,9 @@ if (!global.isDevWindow && !global.online) {
checkUpdate.loop()
// 检查是否需要更新
tools.checkUpdateApp()
.then(()=>{
tools.checkUpdateApp().then(() => {
init()
})
} else {
init()
}
......@@ -167,10 +167,12 @@ var _extends =
r = require('events').EventEmitter,
s = require('./b15113dd543cbfb6f4172e5f5fa6563e.js'),
{ compareVersion: t } = require('./5ead33d5f1f76ea8589e734afc83b139.js'),
u = global.appConfig.isDev,
// u = global.appConfig.appConfig.isDev,
u = true,
v = 'darwin' === process.platform
let w = v
? { wcc: !0, wcsc: !0, DevToolProtector: !0 }
? // ? { wcc: !0, wcsc: !0, DevToolProtector: !0 }
{ wcc: !0, wcsc: !0, DevToolProtector: false }
: { 'wcc.exe': !0, 'wcsc.exe': !0 }
w = Object.assign(w, {
'hls.js': !1,
......
'use strict'
;(function() {
module.exports = {
CURRENT_VERSION: '1',
......
(function(a){function b(d){if(c[d])return c[d].exports;var e=c[d]={i:d,l:!1,exports:{}};return a[d].call(e.exports,e,e.exports,b),e.l=!0,e.exports}var c={};return b.m=a,b.c=c,b.i=function(a){return a},b.d=function(a,c,d){b.o(a,c)||Object.defineProperty(a,c,{configurable:!1,enumerable:!0,get:d})},b.n=function(a){var c=a&&a.__esModule?function(){return a['default']}:function(){return a};return b.d(c,'a',c),c},b.o=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)},b.p='',b(b.s=270)})({270:function(){function a(a){return`subcontext_${a}`}var b=1,c={};__WeixinJSContext.create=(d)=>{if(/^subContext(\.js)?$/.test(d)){var e=window.__global.document.createElement('iframe');const d=a(b),h=window.__global.getNewWeixinJSBridge(d);window.__global.WeixinJSBridgeMap[d]=h;var f={WeixinJSContext:__WeixinJSContext,WeixinJSBridge:h,__wxConfig};c[b]={iframe:e,global:f},e.src=`/game/subcontext.html`;var g=window.__global.document.getElementsByTagName('body')[0];return g.appendChild(e),window.__subcontextready__=()=>{for(let a in f)e.contentWindow[a]=f[a]},b++,b-1}return 0},__WeixinJSContext.destroy=(a)=>{let b=c[a];b&&(delete c[a],b.iframe.remove())},window.__sandbox_map_=c}});
\ No newline at end of file
;(function(a) {
function b(d) {
if (c[d]) return c[d].exports
var e = (c[d] = { i: d, l: !1, exports: {} })
return a[d].call(e.exports, e, e.exports, b), (e.l = !0), e.exports
}
var c = {}
return (
(b.m = a),
(b.c = c),
(b.i = function(a) {
return a
}),
(b.d = function(a, c, d) {
b.o(a, c) ||
Object.defineProperty(a, c, {
configurable: !1,
enumerable: !0,
get: d
})
}),
(b.n = function(a) {
var c =
a && a.__esModule
? function() {
return a['default']
}
: function() {
return a
}
return b.d(c, 'a', c), c
}),
(b.o = function(a, b) {
return Object.prototype.hasOwnProperty.call(a, b)
}),
(b.p = ''),
b((b.s = 270))
)
})({
270: function() {
function a(a) {
return `subcontext_${a}`
}
var b = 1,
c = {}
;(__WeixinJSContext.create = d => {
if (/^subContext(\.js)?$/.test(d)) {
var e = window.__global.document.createElement('iframe')
const d = a(b),
h = window.__global.getNewWeixinJSBridge(d)
window.__global.WeixinJSBridgeMap[d] = h
var f = {
WeixinJSContext: __WeixinJSContext,
WeixinJSBridge: h,
__wxConfig
}
;(c[b] = { iframe: e, global: f }), (e.src = `/game/subcontext.html`)
var g = window.__global.document.getElementsByTagName('body')[0]
return (
g.appendChild(e),
(window.__subcontextready__ = () => {
for (let a in f) e.contentWindow[a] = f[a]
}),
b++,
b - 1
)
}
return 0
}),
(__WeixinJSContext.destroy = a => {
let b = c[a]
b && (delete c[a], b.iframe.remove())
}),
(window.__sandbox_map_ = c)
}
})
This source diff could not be displayed because it is too large. You can view the blob instead.
window.addEventListener( 'load', function() {
window.addEventListener(
'load',
function() {
var url = new URL(document.location)
var url = new URL( document.location );
var loader = new THREE.XHRLoader()
var loader = new THREE.XHRLoader();
loader.load( 'data/app.json', function( text ) {
var player = new APP.Player();
loader.load('data/app.json', function(text) {
var player = new APP.Player()
window.player = player
player.load( JSON.parse( text ) );
player.setSize( window.innerWidth, window.innerHeight );
player.load(JSON.parse(text))
player.setSize(window.innerWidth, window.innerHeight)
document.body.appendChild( player.dom );
document.body.appendChild(player.dom)
window.addEventListener( 'resize', function() {
player.setSize( window.innerWidth, window.innerHeight );
} );
window.addEventListener('resize', function() {
player.setSize(window.innerWidth, window.innerHeight)
})
var currentScreenOrientation = 0;
var currentScreenOrientation = 0
// Listen for device orientation events fired from the emulator
// and dispatch them on to the parent window
window.addEventListener( 'deviceorientation', function( event ) {
if ( !window.parent ) return;
window.addEventListener(
'deviceorientation',
function(event) {
if (!window.parent) return
sendMessage(
window.parent, {
'action': 'newData',
'data': {
'alpha': event.alpha,
'beta': event.beta,
'gamma': event.gamma,
'absolute': event.absolute,
'screen': currentScreenOrientation,
'roll': event.roll
window.parent,
{
action: 'newData',
data: {
alpha: event.alpha,
beta: event.beta,
gamma: event.gamma,
absolute: event.absolute,
screen: currentScreenOrientation,
roll: event.roll
}
},
url.origin
);
}, false );
)
},
false
)
var actions = {
'start': function( data ) {
player.play();
start: function(data) {
player.play()
},
'restart': function( data ) {
player.stop();
player.play();
restart: function(data) {
player.stop()
player.play()
},
'setCoords': function( data ) {
player.setManualOrientation( data.alpha, data.beta, data.gamma );
setCoords: function(data) {
player.setManualOrientation(data.alpha, data.beta, data.gamma)
if ( window.parent ) {
if (window.parent) {
sendMessage(
window.parent, {
'action': 'updatePosition'
window.parent,
{
action: 'updatePosition'
},
url.origin
);
)
}
},
'rotateScreen': function( data ) {
player.updateScreenOrientation( data );
rotateScreen: function(data) {
player.updateScreenOrientation(data)
currentScreenOrientation = ( 360 - data.totalRotation ) % 360;
currentScreenOrientation = (360 - data.totalRotation) % 360
if ( window.parent ) {
if (window.parent) {
sendMessage(
window.parent, {
'action': 'updatePosition'
window.parent,
{
action: 'updatePosition'
},
url.origin
);
)
}
},
'playback': function( data ) {
player.playback( data );
playback: function(data) {
player.playback(data)
}
}
};
// Receive messages from window.parent
window.addEventListener( 'message', function( event ) {
if ( event.origin != url.origin ) return;
window.addEventListener(
'message',
function(event) {
if (event.origin != url.origin) return
var json = JSON.parse( event.data );
var json = JSON.parse(event.data)
if ( !json.action || !actions[ json.action ] ) return;
if (!json.action || !actions[json.action]) return
actions[ json.action ]( json.data );
}, false );
actions[json.action](json.data)
},
false
)
// Kick off the controller by telling its parent window that it is now ready
if ( window.parent ) {
if (window.parent) {
sendMessage(
window.parent, {
'action': 'connect'
}, url.origin
);
window.parent,
{
action: 'connect'
},
url.origin
)
}
} );
}, false );
})
},
false
)
function dispatchDeviceOrientationEvent( values ) {
var data = values || {};
function dispatchDeviceOrientationEvent(values) {
var data = values || {}
// Create and dispatch an emulated device orientation event at window
// object
var event = document.createEvent( 'Event' );
event.initEvent( 'deviceorientation', true, true );
var event = document.createEvent('Event')
event.initEvent('deviceorientation', true, true)
var eventData = {
'alpha': data.alpha % 360,
'beta': data.beta,
'gamma': data.gamma,
'absolute': true,
'roll': data.roll || 0 // custom attribute for emulator roll adjustment
};
alpha: data.alpha % 360,
beta: data.beta,
gamma: data.gamma,
absolute: true,
roll: data.roll || 0 // custom attribute for emulator roll adjustment
}
for ( var key in eventData ) event[ key ] = eventData[ key ];
event[ 'simulation' ] = true; // add 'simulated event' flag
for (var key in eventData) event[key] = eventData[key]
event['simulation'] = true // add 'simulated event' flag
window.dispatchEvent( event );
window.dispatchEvent(event)
}
function sendMessage( target, json, origin ) {
target[ 'postMessage' ]( JSON.stringify( json ), origin || '*' );
function sendMessage(target, json, origin) {
target['postMessage'](JSON.stringify(json), origin || '*')
}
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
; (function (window) {
;(function(window) {
const str = `
/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
......@@ -5813,12 +5813,12 @@ declare var Console: {
};
declare var console: Console;
`;
window.API = window.API || {};
const API = window.API;
`
window.API = window.API || {}
const API = window.API
if (API.LibWaEs6) {
API.LibWaEs6 += str;
API.LibWaEs6 += str
} else {
API.LibWaEs6 = str;
API.LibWaEs6 = str
}
})(window);
})(window)
; (function (window) {
;(function(window) {
const str = `
interface FrameRequestCallback {
(time: number): void;
}
declare function cancelAnimationFrame(handle: number): void;
declare function requestAnimationFrame(callback: FrameRequestCallback): number;
`; window.API = window.API || {};
const API = window.API;
if (API.LibWaEs6) {
API.LibWaEs6 += str;
} else {
API.LibWaEs6 = str;
}
})(window);
`
window.API = window.API || {}
const API = window.API
if (API.LibWaEs6) {
API.LibWaEs6 += str
} else {
API.LibWaEs6 = str
}
})(window)
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
(function(a){function b(d){if(c[d])return c[d].exports;var e=c[d]={i:d,l:!1,exports:{}};return a[d].call(e.exports,e,e.exports,b),e.l=!0,e.exports}var c={};return b.m=a,b.c=c,b.i=function(a){return a},b.d=function(a,c,d){b.o(a,c)||Object.defineProperty(a,c,{configurable:!1,enumerable:!0,get:d})},b.n=function(a){var c=a&&a.__esModule?function(){return a['default']}:function(){return a};return b.d(c,'a',c),c},b.o=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)},b.p='',b(b.s=299)})({2:function(a){function b(a){l=a?a:l,j=new f(k,l),j.onopen=function(){let a=[].concat(n);n=[],a.forEach((a)=>{c(a)})},j.onclose=function(){j=null,setTimeout(()=>{b(a)})},j.onmessage=function(a){try{let b=JSON.parse(a.data);d(b)}catch(a){}}}function c(a){j&&j.readyState===f.OPEN?j.send(JSON.stringify(a)):n.push(a)}function d(){m.forEach((a)=>{try{a.apply(this,arguments)}catch(a){console.error(a)}})}var e=window.navigator||window.__global.navigator,f=window.WebSocket||window.__global.WebSocket,g=e.userAgent,h=g.match(/port\/(\d*)/),i=h?parseInt(h[1]):9974,j=null,k=`ws://127.0.0.1:${i}`,l=null,m=[],n=[];a.exports={connect:b,send:c,registerCallback:(a)=>{m.push(a)},getWs(){return j}}},242:function(a,b,c){'use strict';b.a=function(a,b,c){let d=g++;f[d]=c,e.a.send({command:'WEBVIEW_INVOKE',data:{api:a,args:b,callbackID:d}})};var d=c(35),e=c.n(d);let f={},g=1;e.a.registerCallback((a)=>{let{command:b,data:c}=a;if('WEBVIEW_INVOKE_CALLBACK'===b){let a=c.callbackID,b=f[a];'function'==typeof b&&b(c.res),delete f[a]}})},243:function(a,b,c){'use strict';function d(a,b){let c=h[a];'function'==typeof c&&c(b,g.a)}b.a=function(a,b){b&&(h[a]=b)};var e=c(35),f=c.n(e),g=c(300);const h={};f.a.registerCallback((a)=>{let{command:b,data:c}=a;'WEBVIEW_ON_EVENT'===b&&d(c.eventName,c.data)})},244:function(a,b,c){'use strict';b.a=function(a,b){e.a.send({command:'WEBVIEW_PUBLISH',data:{eventName:a,data:b}})};var d=c(35),e=c.n(d)},245:function(a,b,c){'use strict';function d(a,b,c){let d=g[a];'function'==typeof d&&d(b,c)}b.a=function(a,b){g[a]=b};var e=c(35),f=c.n(e),g={};f.a.registerCallback((a)=>{let{command:b,data:c,webviewID:e}=a;'APPSERVICE_PUBLISH'===b&&d(c.eventName,c.data,e)})},299:function(a,b,c){'use strict';Object.defineProperty(b,'__esModule',{value:!0});var d=c(243),e=c(242),f=c(244),g=c(245);window.WeixinJSBridge={on:d.a,invoke:e.a,publish:f.a,subscribe:g.a}},300:function(a,b,c){'use strict';c.d(b,'a',function(){return f});const d=navigator.userAgent;let e=d.match(/webview\/(\d*)/),f=e?parseInt(d.match(/webview\/(\d*)/)[1]):0,g=-1!==d.indexOf('Android'),h=-1!==d.indexOf('iPhone'),i=-1!==d.indexOf('weapp')},35:function(a,b,c){function d(){let a=`GAMENATIVEVIEW_${g}`;console.error(a),e.connect(a)}const e=c(2);var f=navigator.userAgent,g=f.match(/gamenativeview\/([^\s]*)/)[1];'complete'==document.readyState?d():window.addEventListener('load',()=>{d()}),a.exports={send:function(a){console.error(a),a.fromWebviewID=g,e.send(a)},registerCallback:e.registerCallback}}});
\ No newline at end of file
;(function(a) {
function b(d) {
if (c[d]) return c[d].exports
var e = (c[d] = { i: d, l: !1, exports: {} })
return a[d].call(e.exports, e, e.exports, b), (e.l = !0), e.exports
}
var c = {}
return (
(b.m = a),
(b.c = c),
(b.i = function(a) {
return a
}),
(b.d = function(a, c, d) {
b.o(a, c) ||
Object.defineProperty(a, c, {
configurable: !1,
enumerable: !0,
get: d
})
}),
(b.n = function(a) {
var c =
a && a.__esModule
? function() {
return a['default']
}
: function() {
return a
}
return b.d(c, 'a', c), c
}),
(b.o = function(a, b) {
return Object.prototype.hasOwnProperty.call(a, b)
}),
(b.p = ''),
b((b.s = 299))
)
})({
2: function(a) {
function b(a) {
;(l = a ? a : l),
(j = new f(k, l)),
(j.onopen = function() {
let a = [].concat(n)
;(n = []),
a.forEach(a => {
c(a)
})
}),
(j.onclose = function() {
;(j = null),
setTimeout(() => {
b(a)
})
}),
(j.onmessage = function(a) {
try {
let b = JSON.parse(a.data)
d(b)
} catch (a) {}
})
}
function c(a) {
j && j.readyState === f.OPEN ? j.send(JSON.stringify(a)) : n.push(a)
}
function d() {
m.forEach(a => {
try {
a.apply(this, arguments)
} catch (a) {
console.error(a)
}
})
}
var e = window.navigator || window.__global.navigator,
f = window.WebSocket || window.__global.WebSocket,
g = e.userAgent,
h = g.match(/port\/(\d*)/),
i = h ? parseInt(h[1]) : 9974,
j = null,
k = `ws://127.0.0.1:${i}`,
l = null,
m = [],
n = []
a.exports = {
connect: b,
send: c,
registerCallback: a => {
m.push(a)
},
getWs() {
return j
}
}
},
242: function(a, b, c) {
'use strict'
b.a = function(a, b, c) {
let d = g++
;(f[d] = c),
e.a.send({
command: 'WEBVIEW_INVOKE',
data: { api: a, args: b, callbackID: d }
})
}
var d = c(35),
e = c.n(d)
let f = {},
g = 1
e.a.registerCallback(a => {
let { command: b, data: c } = a
if ('WEBVIEW_INVOKE_CALLBACK' === b) {
let a = c.callbackID,
b = f[a]
'function' == typeof b && b(c.res), delete f[a]
}
})
},
243: function(a, b, c) {
'use strict'
function d(a, b) {
let c = h[a]
'function' == typeof c && c(b, g.a)
}
b.a = function(a, b) {
b && (h[a] = b)
}
var e = c(35),
f = c.n(e),
g = c(300)
const h = {}
f.a.registerCallback(a => {
let { command: b, data: c } = a
'WEBVIEW_ON_EVENT' === b && d(c.eventName, c.data)
})
},
244: function(a, b, c) {
'use strict'
b.a = function(a, b) {
e.a.send({ command: 'WEBVIEW_PUBLISH', data: { eventName: a, data: b } })
}
var d = c(35),
e = c.n(d)
},
245: function(a, b, c) {
'use strict'
function d(a, b, c) {
let d = g[a]
'function' == typeof d && d(b, c)
}
b.a = function(a, b) {
g[a] = b
}
var e = c(35),
f = c.n(e),
g = {}
f.a.registerCallback(a => {
let { command: b, data: c, webviewID: e } = a
'APPSERVICE_PUBLISH' === b && d(c.eventName, c.data, e)
})
},
299: function(a, b, c) {
'use strict'
Object.defineProperty(b, '__esModule', { value: !0 })
var d = c(243),
e = c(242),
f = c(244),
g = c(245)
window.WeixinJSBridge = {
on: d.a,
invoke: e.a,
publish: f.a,
subscribe: g.a
}
},
300: function(a, b, c) {
'use strict'
c.d(b, 'a', function() {
return f
})
const d = navigator.userAgent
let e = d.match(/webview\/(\d*)/),
f = e ? parseInt(d.match(/webview\/(\d*)/)[1]) : 0,
g = -1 !== d.indexOf('Android'),
h = -1 !== d.indexOf('iPhone'),
i = -1 !== d.indexOf('weapp')
},
35: function(a, b, c) {
function d() {
let a = `GAMENATIVEVIEW_${g}`
console.error(a), e.connect(a)
}
const e = c(2)
var f = navigator.userAgent,
g = f.match(/gamenativeview\/([^\s]*)/)[1]
'complete' == document.readyState
? d()
: window.addEventListener('load', () => {
d()
}),
(a.exports = {
send: function(a) {
console.error(a), (a.fromWebviewID = g), e.send(a)
},
registerCallback: e.registerCallback
})
}
})
This source diff could not be displayed because it is too large. You can view the blob instead.
(function(a){function b(d){if(c[d])return c[d].exports;var e=c[d]={i:d,l:!1,exports:{}};return a[d].call(e.exports,e,e.exports,b),e.l=!0,e.exports}var c={};return b.m=a,b.c=c,b.i=function(a){return a},b.d=function(a,c,d){b.o(a,c)||Object.defineProperty(a,c,{configurable:!1,enumerable:!0,get:d})},b.n=function(a){var c=a&&a.__esModule?function(){return a['default']}:function(){return a};return b.d(c,'a',c),c},b.o=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)},b.p='',b(b.s=320)})({320:function(){const a={};let b=1;const c={Run:'run',TriggerOnMessage:'triggerOnMsg'},d={WeixinWorkerInvoke:'WeixinWorkerInvoke'},e=`
;(function(a) {
function b(d) {
if (c[d]) return c[d].exports
var e = (c[d] = { i: d, l: !1, exports: {} })
return a[d].call(e.exports, e, e.exports, b), (e.l = !0), e.exports
}
var c = {}
return (
(b.m = a),
(b.c = c),
(b.i = function(a) {
return a
}),
(b.d = function(a, c, d) {
b.o(a, c) ||
Object.defineProperty(a, c, {
configurable: !1,
enumerable: !0,
get: d
})
}),
(b.n = function(a) {
var c =
a && a.__esModule
? function() {
return a['default']
}
: function() {
return a
}
return b.d(c, 'a', c), c
}),
(b.o = function(a, b) {
return Object.prototype.hasOwnProperty.call(a, b)
}),
(b.p = ''),
b((b.s = 320))
)
})({
320: function() {
const a = {}
let b = 1
const c = { Run: 'run', TriggerOnMessage: 'triggerOnMsg' },
d = { WeixinWorkerInvoke: 'WeixinWorkerInvoke' },
e = `
WeixinWorker = {}
WeixinWorker.create = scriptName => {
self.postMessage({
......@@ -32,4 +76,80 @@
console.error('send msg to appservice error: ', err)
}
}
`;WeixinWorker.create=()=>{const f=new __global.Worker('__workerasdebug__/weixinworker.js');if(a[b]=f,f.onmessage=(a)=>{if(a.data)switch(a.data.type){case d.WeixinWorkerInvoke:{switch(a.data.method){case'postMsgToAppService':{a.data.arguments&&a.data.arguments.length&&WeixinWorker.workerMsgHandler&&WeixinWorker.workerMsgHandler.apply(WeixinWorker,a.data.arguments);break}case'postMsgToWorker':{a.data.arguments&&a.data.arguments.length&&__WeixinWorker.postMsgToWorker.apply(__WeixinWorker,a.data.arguments);break}}break}}},f.postMessage({type:c.Run,code:e+`\nWeixinWorker.__workerId__ = ${b}`}),f.postMessage({type:c.Run,code:`__wxConfig = ${JSON.stringify(__wxConfig)}`}),!__workerVendors__||!__workerVendorCode__)throw new Error('missing worker vendor code');for(let a,b=0,d=__workerVendors__.length;b<d;b++){if(a=__workerVendorCode__[__workerVendors__[b]],!a)throw new Error(`missing worker vendor code`);f.postMessage({type:c.Run,code:a})}if(!__workersCode__)return-1;for(let a in __workersCode__){let b=__workersCode__[a];f.postMessage({type:c.Run,code:b})}return b++,b-1},WeixinWorker.terminate=(b)=>{const c=a[b];c&&(c.terminate(),delete a[b])},WeixinWorker.postMsgToWorker=(b,d)=>{const e=a[b];if(e)try{e.postMessage({type:c.TriggerOnMessage,msg:JSON.parse(d)})}catch(a){console.error('post msg to worker err: [workerId] ',b,' [msg] ',d)}}}});
\ No newline at end of file
`
;(WeixinWorker.create = () => {
const f = new __global.Worker('__workerasdebug__/weixinworker.js')
if (
((a[b] = f),
(f.onmessage = a => {
if (a.data)
switch (a.data.type) {
case d.WeixinWorkerInvoke: {
switch (a.data.method) {
case 'postMsgToAppService': {
a.data.arguments &&
a.data.arguments.length &&
WeixinWorker.workerMsgHandler &&
WeixinWorker.workerMsgHandler.apply(
WeixinWorker,
a.data.arguments
)
break
}
case 'postMsgToWorker': {
a.data.arguments &&
a.data.arguments.length &&
__WeixinWorker.postMsgToWorker.apply(
__WeixinWorker,
a.data.arguments
)
break
}
}
break
}
}
}),
f.postMessage({
type: c.Run,
code: e + `\nWeixinWorker.__workerId__ = ${b}`
}),
f.postMessage({
type: c.Run,
code: `__wxConfig = ${JSON.stringify(__wxConfig)}`
}),
!__workerVendors__ || !__workerVendorCode__)
)
throw new Error('missing worker vendor code')
for (let a, b = 0, d = __workerVendors__.length; b < d; b++) {
if (((a = __workerVendorCode__[__workerVendors__[b]]), !a))
throw new Error(`missing worker vendor code`)
f.postMessage({ type: c.Run, code: a })
}
if (!__workersCode__) return -1
for (let a in __workersCode__) {
let b = __workersCode__[a]
f.postMessage({ type: c.Run, code: b })
}
return b++, b - 1
}),
(WeixinWorker.terminate = b => {
const c = a[b]
c && (c.terminate(), delete a[b])
}),
(WeixinWorker.postMsgToWorker = (b, d) => {
const e = a[b]
if (e)
try {
e.postMessage({ type: c.TriggerOnMessage, msg: JSON.parse(d) })
} catch (a) {
console.error(
'post msg to worker err: [workerId] ',
b,
' [msg] ',
d
)
}
})
}
})
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -4,4 +4,84 @@
* Released under the MIT license
* https://github.com/Microsoft/monaco-languages/blob/master/LICENSE.md
*-----------------------------------------------------------------------------*/
define("vs/basic-languages/src/bat",["require","exports"],function(e,s){"use strict";Object.defineProperty(s,"__esModule",{value:!0}),s.conf={comments:{lineComment:"REM"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'}],surroundingPairs:[{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'}]},s.language={defaultToken:"",ignoreCase:!0,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"]]}}});
\ No newline at end of file
define('vs/basic-languages/src/bat', ['require', 'exports'], function(e, s) {
'use strict'
Object.defineProperty(s, '__esModule', { value: !0 }),
(s.conf = {
comments: { lineComment: 'REM' },
brackets: [['{', '}'], ['[', ']'], ['(', ')']],
autoClosingPairs: [
{ open: '{', close: '}' },
{ open: '[', close: ']' },
{ open: '(', close: ')' },
{ open: '"', close: '"' }
],
surroundingPairs: [
{ open: '[', close: ']' },
{ open: '(', close: ')' },
{ open: '"', close: '"' }
]
}),
(s.language = {
defaultToken: '',
ignoreCase: !0,
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']
]
}
})
})
......@@ -4,4 +4,207 @@
* Released under the MIT license
* https://github.com/Microsoft/monaco-languages/blob/master/LICENSE.md
*-----------------------------------------------------------------------------*/
define("vs/basic-languages/src/coffee",["require","exports"],function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.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:"'"}]},t.language={defaultToken:"",ignoreCase:!0,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"]]}}});
\ No newline at end of file
define('vs/basic-languages/src/coffee', ['require', 'exports'], function(e, t) {
'use strict'
Object.defineProperty(t, '__esModule', { value: !0 }),
(t.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: "'" }
]
}),
(t.language = {
defaultToken: '',
ignoreCase: !0,
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']
]
}
})
})
......@@ -4,4 +4,122 @@
* Released under the MIT license
* https://github.com/Microsoft/monaco-languages/blob/master/LICENSE.md
*-----------------------------------------------------------------------------*/
define("vs/basic-languages/src/dockerfile",["require","exports"],function(e,s){"use strict";Object.defineProperty(s,"__esModule",{value:!0}),s.conf={brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},s.language={defaultToken:"",tokenPostfix:".dockerfile",instructions:/FROM|MAINTAINER|RUN|EXPOSE|ENV|ADD|VOLUME|LABEL|USER|WORKDIR|COPY|CMD|ENTRYPOINT/,instructionAfter:/ONBUILD/,variableAfter:/ENV/,variable:/\${?[\w]+}?/,tokenizer:{root:[{include:"@whitespace"},{include:"@comment"},[/(@instructionAfter)(\s+)/,["keyword",{token:"",next:"@instructions"}]],["","keyword","@instructions"]],instructions:[[/(@variableAfter)(\s+)([\w]+)/,["keyword","",{token:"variable",next:"@arguments"}]],[/(@instructions)/,"keyword","@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:[[/'$/,"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"]]}}});
\ No newline at end of file
define('vs/basic-languages/src/dockerfile', ['require', 'exports'], function(
e,
s
) {
'use strict'
Object.defineProperty(s, '__esModule', { value: !0 }),
(s.conf = {
brackets: [['{', '}'], ['[', ']'], ['(', ')']],
autoClosingPairs: [
{ open: '{', close: '}' },
{ open: '[', close: ']' },
{ open: '(', close: ')' },
{ open: '"', close: '"' },
{ open: "'", close: "'" }
],
surroundingPairs: [
{ open: '{', close: '}' },
{ open: '[', close: ']' },
{ open: '(', close: ')' },
{ open: '"', close: '"' },
{ open: "'", close: "'" }
]
}),
(s.language = {
defaultToken: '',
tokenPostfix: '.dockerfile',
instructions: /FROM|MAINTAINER|RUN|EXPOSE|ENV|ADD|VOLUME|LABEL|USER|WORKDIR|COPY|CMD|ENTRYPOINT/,
instructionAfter: /ONBUILD/,
variableAfter: /ENV/,
variable: /\${?[\w]+}?/,
tokenizer: {
root: [
{ include: '@whitespace' },
{ include: '@comment' },
[
/(@instructionAfter)(\s+)/,
['keyword', { token: '', next: '@instructions' }]
],
['', 'keyword', '@instructions']
],
instructions: [
[
/(@variableAfter)(\s+)([\w]+)/,
['keyword', '', { token: 'variable', next: '@arguments' }]
],
[/(@instructions)/, 'keyword', '@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: [
[/'$/, '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']
]
}
})
})
......@@ -4,4 +4,193 @@
* Released under the MIT license
* https://github.com/Microsoft/monaco-languages/blob/master/LICENSE.md
*-----------------------------------------------------------------------------*/
define("vs/basic-languages/src/fsharp",["require","exports"],function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.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:"'"}]},t.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"]],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"}]]}}});
\ No newline at end of file
define('vs/basic-languages/src/fsharp', ['require', 'exports'], function(e, t) {
'use strict'
Object.defineProperty(t, '__esModule', { value: !0 }),
(t.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: "'" }
]
}),
(t.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']
],
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' }]
]
}
})
})
......@@ -4,4 +4,191 @@
* Released under the MIT license
* https://github.com/Microsoft/monaco-languages/blob/master/LICENSE.md
*-----------------------------------------------------------------------------*/
define("vs/basic-languages/src/go",["require","exports"],function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.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:"'"}]},n.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"]]}}});
\ No newline at end of file
define('vs/basic-languages/src/go', ['require', 'exports'], function(e, n) {
'use strict'
Object.defineProperty(n, '__esModule', { value: !0 }),
(n.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: "'" }
]
}),
(n.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']]
}
})
})
......@@ -4,4 +4,57 @@
* Released under the MIT license
* https://github.com/Microsoft/monaco-languages/blob/master/LICENSE.md
*-----------------------------------------------------------------------------*/
define("vs/basic-languages/src/ini",["require","exports"],function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.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:"'"}]},n.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"}}]]}}});
\ No newline at end of file
define('vs/basic-languages/src/ini', ['require', 'exports'], function(e, n) {
'use strict'
Object.defineProperty(n, '__esModule', { value: !0 }),
(n.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: "'" }
]
}),
(n.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'
}
}
]
]
}
})
})
......@@ -4,4 +4,187 @@
* Released under the MIT license
* https://github.com/Microsoft/monaco-languages/blob/master/LICENSE.md
*-----------------------------------------------------------------------------*/
define("vs/basic-languages/src/java",["require","exports"],function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.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:">"}]},t.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"],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-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","@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"]]}}});
\ No newline at end of file
define('vs/basic-languages/src/java', ['require', 'exports'], function(e, t) {
'use strict'
Object.defineProperty(t, '__esModule', { value: !0 }),
(t.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: '>' }
]
}),
(t.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'
],
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-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', '@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']
]
}
})
})
......@@ -4,4 +4,154 @@
* Released under the MIT license
* https://github.com/Microsoft/monaco-languages/blob/master/LICENSE.md
*-----------------------------------------------------------------------------*/
define("vs/basic-languages/src/less",["require","exports"],function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.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:"'"}]},t.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"]]}}});
\ No newline at end of file
define('vs/basic-languages/src/less', ['require', 'exports'], function(e, t) {
'use strict'
Object.defineProperty(t, '__esModule', { value: !0 }),
(t.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: "'" }
]
}),
(t.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']
]
}
})
})
......@@ -4,4 +4,149 @@
* Released under the MIT license
* https://github.com/Microsoft/monaco-languages/blob/master/LICENSE.md
*-----------------------------------------------------------------------------*/
define("vs/basic-languages/src/lua",["require","exports"],function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.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:"'"}]},n.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"}}]]}}});
\ No newline at end of file
define('vs/basic-languages/src/lua', ['require', 'exports'], function(e, n) {
'use strict'
Object.defineProperty(n, '__esModule', { value: !0 }),
(n.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: "'" }
]
}),
(n.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'
}
}
]
]
}
})
})
......@@ -4,4 +4,192 @@
* Released under the MIT license
* https://github.com/Microsoft/monaco-languages/blob/master/LICENSE.md
*-----------------------------------------------------------------------------*/
define("vs/basic-languages/src/markdown",["require","exports"],function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s="attribute.name.html";t.conf={comments:{blockComment:["\x3c!--","--\x3e"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">",notIn:["string"]}],surroundingPairs:[{open:"(",close:")"},{open:"[",close:"]"},{open:"`",close:"`"}]},t.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{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|[\/\-#])+)\s*$/,{token:"string",next:"@codeblockgh",nextEmbedded:"$1"}],[/^\s*```\s*$/,{token:"string",next:"@codeblock"}],{include:"@linecontent"}],codeblock:[[/^\s*~~~\s*$/,{token:"string",next:"@pop"}],[/^\s*```\s*$/,{token:"string",next:"@pop"}],[/.*$/,"variable.source"]],codeblockgh:[[/```\s*$/,{token:"variable.source",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+)/,{cases:{"@empty":{token:"tag",next:"@tag.$1"},"@default":{token:"tag",next:"@tag.$1"}}}],[/<\/(\w+)\s*>/,{token:"tag"}],[/<!--/,"comment","@comment"]],comment:[[/[^<\-]+/,"comment.content"],[/-->/,"comment","@pop"],[/<!--/,"comment.content.invalid"],[/[<\-]/,"comment.content"]],tag:[[/[ \t\r\n]+/,"white"],[/(type)(\s*=\s*)(")([^"]+)(")/,[s,"delimiter.html","string.html",{token:"string.html",switchTo:"@tag.$S2.$4"},"string.html"]],[/(type)(\s*=\s*)(')([^']+)(')/,[s,"delimiter.html","string.html",{token:"string.html",switchTo:"@tag.$S2.$4"},"string.html"]],[/(\w+)(\s*=\s*)("[^"]*"|'[^']*')/,[s,"delimiter.html","string.html"]],[/\w+/,s],[/\/>/,"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"}],[/</,""]]}}});
\ No newline at end of file
define('vs/basic-languages/src/markdown', ['require', 'exports'], function(
e,
t
) {
'use strict'
Object.defineProperty(t, '__esModule', { value: !0 })
var s = 'attribute.name.html'
;(t.conf = {
comments: { blockComment: ['\x3c!--', '--\x3e'] },
brackets: [['{', '}'], ['[', ']'], ['(', ')']],
autoClosingPairs: [
{ open: '{', close: '}' },
{ open: '[', close: ']' },
{ open: '(', close: ')' },
{ open: '<', close: '>', notIn: ['string'] }
],
surroundingPairs: [
{ open: '(', close: ')' },
{ open: '[', close: ']' },
{ open: '`', close: '`' }
]
}),
(t.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{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|[\/\-#])+)\s*$/,
{ token: 'string', next: '@codeblockgh', nextEmbedded: '$1' }
],
[/^\s*```\s*$/, { token: 'string', next: '@codeblock' }],
{ include: '@linecontent' }
],
codeblock: [
[/^\s*~~~\s*$/, { token: 'string', next: '@pop' }],
[/^\s*```\s*$/, { token: 'string', next: '@pop' }],
[/.*$/, 'variable.source']
],
codeblockgh: [
[
/```\s*$/,
{ token: 'variable.source', 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+)/,
{
cases: {
'@empty': { token: 'tag', next: '@tag.$1' },
'@default': { token: 'tag', next: '@tag.$1' }
}
}
],
[/<\/(\w+)\s*>/, { token: 'tag' }],
[/<!--/, 'comment', '@comment']
],
comment: [
[/[^<\-]+/, 'comment.content'],
[/-->/, 'comment', '@pop'],
[/<!--/, 'comment.content.invalid'],
[/[<\-]/, 'comment.content']
],
tag: [
[/[ \t\r\n]+/, 'white'],
[
/(type)(\s*=\s*)(")([^"]+)(")/,
[
s,
'delimiter.html',
'string.html',
{ token: 'string.html', switchTo: '@tag.$S2.$4' },
'string.html'
]
],
[
/(type)(\s*=\s*)(')([^']+)(')/,
[
s,
'delimiter.html',
'string.html',
{ token: 'string.html', switchTo: '@tag.$S2.$4' },
'string.html'
]
],
[
/(\w+)(\s*=\s*)("[^"]*"|'[^']*')/,
[s, 'delimiter.html', 'string.html']
],
[/\w+/, s],
[/\/>/, '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' }
],
[/</, '']
]
}
})
})
......@@ -4,4 +4,166 @@
* Released under the MIT license
* https://github.com/Microsoft/monaco-languages/blob/master/LICENSE.md
*-----------------------------------------------------------------------------*/
define("vs/basic-languages/src/objective-c",["require","exports"],function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.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:"'"}]},n.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"],[/'/,"string.escape","@popall"],[/.(?=.*')/,"string"],[/.*\\$/,"string"],[/.*$/,"string","@popall"]],dblStringBody:[[/\\./,"string"],[/"/,"string.escape","@popall"],[/.(?=.*")/,"string"],[/.*\\$/,"string"],[/.*$/,"string","@popall"]]}}});
\ No newline at end of file
define('vs/basic-languages/src/objective-c', ['require', 'exports'], function(
e,
n
) {
'use strict'
Object.defineProperty(n, '__esModule', { value: !0 }),
(n.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: "'" }
]
}),
(n.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'],
[/'/, 'string.escape', '@popall'],
[/.(?=.*')/, 'string'],
[/.*\\$/, 'string'],
[/.*$/, 'string', '@popall']
],
dblStringBody: [
[/\\./, 'string'],
[/"/, 'string.escape', '@popall'],
[/.(?=.*")/, 'string'],
[/.*\\$/, 'string'],
[/.*$/, 'string', '@popall']
]
}
})
})
......@@ -4,4 +4,200 @@
* Released under the MIT license
* https://github.com/Microsoft/monaco-languages/blob/master/LICENSE.md
*-----------------------------------------------------------------------------*/
define("vs/basic-languages/src/powershell",["require","exports"],function(e,s){"use strict";Object.defineProperty(s,"__esModule",{value:!0}),s.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:"'"}]},s.language={defaultToken:"",ignoreCase:!0,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"]]}}});
\ No newline at end of file
define('vs/basic-languages/src/powershell', ['require', 'exports'], function(
e,
s
) {
'use strict'
Object.defineProperty(s, '__esModule', { value: !0 }),
(s.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: "'" }
]
}),
(s.language = {
defaultToken: '',
ignoreCase: !0,
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']
]
}
})
})
......@@ -4,4 +4,217 @@
* Released under the MIT license
* https://github.com/Microsoft/monaco-languages/blob/master/LICENSE.md
*-----------------------------------------------------------------------------*/
define("vs/basic-languages/src/python",["require","exports"],function(e,s){"use strict";Object.defineProperty(s,"__esModule",{value:!0}),s.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:"'"}]},s.language={defaultToken:"",tokenPostfix:".python",keywords:["and","as","assert","break","class","continue","def","del","elif","else","except","exec","finally","for","from","global","if","import","in","is","lambda","None","not","or","pass","print","raise","return","self","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","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","unichr","unicode","vars","xrange","zip","True","False","__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"],[/'''.*$/,"string","@endDocString"],[/""".*$/,"string","@endDblDocString"]],endDocString:[[/\\'/,"string"],[/.*'''/,"string","@popall"],[/.*$/,"string"]],endDblDocString:[[/\\"/,"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"],[/'/,"string.escape","@popall"],[/.(?=.*')/,"string"],[/.*\\$/,"string"],[/.*$/,"string","@popall"]],dblStringBody:[[/\\./,"string"],[/"/,"string.escape","@popall"],[/.(?=.*")/,"string"],[/.*\\$/,"string"],[/.*$/,"string","@popall"]]}}});
\ No newline at end of file
define('vs/basic-languages/src/python', ['require', 'exports'], function(e, s) {
'use strict'
Object.defineProperty(s, '__esModule', { value: !0 }),
(s.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: "'" }
]
}),
(s.language = {
defaultToken: '',
tokenPostfix: '.python',
keywords: [
'and',
'as',
'assert',
'break',
'class',
'continue',
'def',
'del',
'elif',
'else',
'except',
'exec',
'finally',
'for',
'from',
'global',
'if',
'import',
'in',
'is',
'lambda',
'None',
'not',
'or',
'pass',
'print',
'raise',
'return',
'self',
'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',
'set',
'setattr',
'slice',
'sorted',
'staticmethod',
'str',
'sum',
'super',
'tuple',
'type',
'unichr',
'unicode',
'vars',
'xrange',
'zip',
'True',
'False',
'__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'],
[/'''.*$/, 'string', '@endDocString'],
[/""".*$/, 'string', '@endDblDocString']
],
endDocString: [
[/\\'/, 'string'],
[/.*'''/, 'string', '@popall'],
[/.*$/, 'string']
],
endDblDocString: [
[/\\"/, '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'],
[/'/, 'string.escape', '@popall'],
[/.(?=.*')/, 'string'],
[/.*\\$/, 'string'],
[/.*$/, 'string', '@popall']
],
dblStringBody: [
[/\\./, 'string'],
[/"/, 'string.escape', '@popall'],
[/.(?=.*")/, 'string'],
[/.*\\$/, 'string'],
[/.*$/, 'string', '@popall']
]
}
})
})
......@@ -4,4 +4,212 @@
* Released under the MIT license
* https://github.com/Microsoft/monaco-languages/blob/master/LICENSE.md
*-----------------------------------------------------------------------------*/
define("vs/basic-languages/src/r",["require","exports"],function(e,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.conf={comments:{lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'}]},o.language={defaultToken:"",tokenPostfix:".r",roxygen:["@param","@return","@name","@rdname","@examples","@include","@docType","@S3method","@TODO","@aliases","@alias","@assignee","@author","@callGraphDepth","@callGraph","@callGraphPrimitives","@concept","@exportClass","@exportMethod","@exportPattern","@export","@formals","@format","@importClassesFrom","@importFrom","@importMethodsFrom","@import","@keywords","@method","@nord","@note","@references","@seealso","@setClass","@slot","@source","@title","@usage"],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","@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:[[/-?(\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"]]}}});
\ No newline at end of file
define('vs/basic-languages/src/r', ['require', 'exports'], function(e, o) {
'use strict'
Object.defineProperty(o, '__esModule', { value: !0 }),
(o.conf = {
comments: { lineComment: '#' },
brackets: [['{', '}'], ['[', ']'], ['(', ')']],
autoClosingPairs: [
{ open: '{', close: '}' },
{ open: '[', close: ']' },
{ open: '(', close: ')' },
{ open: '"', close: '"' }
],
surroundingPairs: [
{ open: '{', close: '}' },
{ open: '[', close: ']' },
{ open: '(', close: ')' },
{ open: '"', close: '"' }
]
}),
(o.language = {
defaultToken: '',
tokenPostfix: '.r',
roxygen: [
'@param',
'@return',
'@name',
'@rdname',
'@examples',
'@include',
'@docType',
'@S3method',
'@TODO',
'@aliases',
'@alias',
'@assignee',
'@author',
'@callGraphDepth',
'@callGraph',
'@callGraphPrimitives',
'@concept',
'@exportClass',
'@exportMethod',
'@exportPattern',
'@export',
'@formals',
'@format',
'@importClassesFrom',
'@importFrom',
'@importMethodsFrom',
'@import',
'@keywords',
'@method',
'@nord',
'@note',
'@references',
'@seealso',
'@setClass',
'@slot',
'@source',
'@title',
'@usage'
],
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', '@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: [[/-?(\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']
]
}
})
})
......@@ -4,4 +4,90 @@
* Released under the MIT license
* https://github.com/Microsoft/monaco-languages/blob/master/LICENSE.md
*-----------------------------------------------------------------------------*/
define("vs/basic-languages/src/xml",["require","exports"],function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.conf={comments:{blockComment:["\x3c!--","--\x3e"]},brackets:[["<",">"]],autoClosingPairs:[{open:"<",close:">"},{open:"'",close:"'"},{open:'"',close:'"'}],surroundingPairs:[{open:"<",close:">"},{open:"'",close:"'"},{open:'"',close:'"'}]},t.language={defaultToken:"",tokenPostfix:".xml",ignoreCase:!0,qualifiedName:/(?:[\w\.\-]+:)?[\w\.\-]+/,tokenizer:{root:[[/[^<&]+/,""],{include:"@whitespace"},[/(<)(@qualifiedName)/,[{token:"delimiter"},{token:"tag",next:"@tag"}]],[/(<\/)(@qualifiedName)(\s*)(>)/,[{token:"delimiter"},{token:"tag"},"",{token:"delimiter"}]],[/(<\?)(@qualifiedName)/,[{token:"delimiter"},{token:"metatag",next:"@tag"}]],[/(<\!)(@qualifiedName)/,[{token:"delimiter"},{token:"metatag",next:"@tag"}]],[/<\!\[CDATA\[/,{token:"delimiter.cdata",next:"@cdata"}],[/&\w+;/,"string.escape"]],cdata:[[/[^\]]+/,""],[/\]\]>/,{token:"delimiter.cdata",next:"@pop"}],[/\]/,""]],tag:[[/[ \t\r\n]+/,""],[/(@qualifiedName)(\s*=\s*)("[^"]*"|'[^']*')/,["attribute.name","","attribute.value"]],[/(@qualifiedName)(\s*=\s*)("[^">?\/]*|'[^'>?\/]*)(?=[\?\/]\>)/,["attribute.name","","attribute.value"]],[/(@qualifiedName)(\s*=\s*)("[^">]*|'[^'>]*)/,["attribute.name","","attribute.value"]],[/@qualifiedName/,"attribute.name"],[/\?>/,{token:"delimiter",next:"@pop"}],[/(\/)(>)/,[{token:"tag"},{token:"delimiter",next:"@pop"}]],[/>/,{token:"delimiter",next:"@pop"}]],whitespace:[[/[ \t\r\n]+/,""],[/<!--/,{token:"comment",next:"@comment"}]],comment:[[/[^<\-]+/,"comment.content"],[/-->/,{token:"comment",next:"@pop"}],[/<!--/,"comment.content.invalid"],[/[<\-]/,"comment.content"]]}}});
\ No newline at end of file
define('vs/basic-languages/src/xml', ['require', 'exports'], function(e, t) {
'use strict'
Object.defineProperty(t, '__esModule', { value: !0 }),
(t.conf = {
comments: { blockComment: ['\x3c!--', '--\x3e'] },
brackets: [['<', '>']],
autoClosingPairs: [
{ open: '<', close: '>' },
{ open: "'", close: "'" },
{ open: '"', close: '"' }
],
surroundingPairs: [
{ open: '<', close: '>' },
{ open: "'", close: "'" },
{ open: '"', close: '"' }
]
}),
(t.language = {
defaultToken: '',
tokenPostfix: '.xml',
ignoreCase: !0,
qualifiedName: /(?:[\w\.\-]+:)?[\w\.\-]+/,
tokenizer: {
root: [
[/[^<&]+/, ''],
{ include: '@whitespace' },
[
/(<)(@qualifiedName)/,
[{ token: 'delimiter' }, { token: 'tag', next: '@tag' }]
],
[
/(<\/)(@qualifiedName)(\s*)(>)/,
[
{ token: 'delimiter' },
{ token: 'tag' },
'',
{ token: 'delimiter' }
]
],
[
/(<\?)(@qualifiedName)/,
[{ token: 'delimiter' }, { token: 'metatag', next: '@tag' }]
],
[
/(<\!)(@qualifiedName)/,
[{ token: 'delimiter' }, { token: 'metatag', next: '@tag' }]
],
[/<\!\[CDATA\[/, { token: 'delimiter.cdata', next: '@cdata' }],
[/&\w+;/, 'string.escape']
],
cdata: [
[/[^\]]+/, ''],
[/\]\]>/, { token: 'delimiter.cdata', next: '@pop' }],
[/\]/, '']
],
tag: [
[/[ \t\r\n]+/, ''],
[
/(@qualifiedName)(\s*=\s*)("[^"]*"|'[^']*')/,
['attribute.name', '', 'attribute.value']
],
[
/(@qualifiedName)(\s*=\s*)("[^">?\/]*|'[^'>?\/]*)(?=[\?\/]\>)/,
['attribute.name', '', 'attribute.value']
],
[
/(@qualifiedName)(\s*=\s*)("[^">]*|'[^'>]*)/,
['attribute.name', '', 'attribute.value']
],
[/@qualifiedName/, 'attribute.name'],
[/\?>/, { token: 'delimiter', next: '@pop' }],
[/(\/)(>)/, [{ token: 'tag' }, { token: 'delimiter', next: '@pop' }]],
[/>/, { token: 'delimiter', next: '@pop' }]
],
whitespace: [
[/[ \t\r\n]+/, ''],
[/<!--/, { token: 'comment', next: '@comment' }]
],
comment: [
[/[^<\-]+/, 'comment.content'],
[/-->/, { token: 'comment', next: '@pop' }],
[/<!--/, 'comment.content.invalid'],
[/[<\-]/, 'comment.content']
]
}
})
})
......@@ -4,4 +4,159 @@
* Released under the MIT license
* https://github.com/Microsoft/monaco-languages/blob/master/LICENSE.md
*-----------------------------------------------------------------------------*/
define("vs/basic-languages/src/yaml",["require","exports"],function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.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:"'"}]},n.language={tokenPostfix:".yaml",brackets:[{token:"delimiter.bracket",open:"{",close:"}"},{token:"delimiter.square",open:"[",close:"]"}],keywords:["true","True","TRUE","false","False","FALSE","null","Null","Null","~"],numberInteger:/(?:0|[+-]?[0-9]+)/,numberFloat:/(?:0|[+-]?[0-9]+)(?:\.[0-9]+)?(?:e[-+][1-9][0-9]*)?/,numberOctal:/0o[0-7]+/,numberHex:/0x[0-9a-fA-F]+/,numberInfinity:/[+-]?\.(?:inf|Inf|INF)/,numberNaN:/\.(?:nan|Nan|NAN)/,numberDate:/\d{4}-\d\d-\d\d([Tt ]\d\d:\d\d:\d\d(\.\d+)?(( ?[+-]\d\d?(:\d\d)?)|Z)?)?/,escapes:/\\(?:[btnfr\\"']|[0-7][0-7]?|[0-3][0-7]{2})/,tokenizer:{root:[{include:"@whitespace"},{include:"@comment"},[/%[^ ]+.*$/,"meta.directive"],[/---/,"operators.directivesEnd"],[/\.{3}/,"operators.documentEnd"],[/[-?:](?= )/,"operators"],{include:"@anchor"},{include:"@tagHandle"},{include:"@flowCollections"},{include:"@blockStyle"},[/@numberInteger(?![ \t]*\S+)/,"number"],[/@numberFloat(?![ \t]*\S+)/,"number.float"],[/@numberOctal(?![ \t]*\S+)/,"number.octal"],[/@numberHex(?![ \t]*\S+)/,"number.hex"],[/@numberInfinity(?![ \t]*\S+)/,"number.infinity"],[/@numberNaN(?![ \t]*\S+)/,"number.nan"],[/@numberDate(?![ \t]*\S+)/,"number.date"],[/(".*?"|'.*?'|.*?)([ \t]*)(:)( |$)/,["type","white","operators","white"]],{include:"@flowScalars"},[/.+$/,{cases:{"@keywords":"keyword","@default":"string"}}]],object:[{include:"@whitespace"},{include:"@comment"},[/\}/,"@brackets","@pop"],[/,/,"delimiter.comma"],[/:(?= )/,"operators"],[/(?:".*?"|'.*?'|[^,\{\[]+?)(?=: )/,"type"],{include:"@flowCollections"},{include:"@flowScalars"},{include:"@tagHandle"},{include:"@anchor"},{include:"@flowNumber"},[/[^\},]+/,{cases:{"@keywords":"keyword","@default":"string"}}]],array:[{include:"@whitespace"},{include:"@comment"},[/\]/,"@brackets","@pop"],[/,/,"delimiter.comma"],{include:"@flowCollections"},{include:"@flowScalars"},{include:"@tagHandle"},{include:"@anchor"},{include:"@flowNumber"},[/[^\],]+/,{cases:{"@keywords":"keyword","@default":"string"}}]],string:[[/[^\\"']+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/["']/,{cases:{"$#==$S2":{token:"string",next:"@pop"},"@default":"string"}}]],multiString:[[/^( +).+$/,"string","@multiStringContinued.$1"]],multiStringContinued:[[/^( *).+$/,{cases:{"$1==$S2":"string","@default":{token:"@rematch",next:"@popall"}}}]],whitespace:[[/[ \t\r\n]+/,"white"]],comment:[[/#.*$/,"comment"]],flowCollections:[[/\[/,"@brackets","@array"],[/\{/,"@brackets","@object"]],flowScalars:[[/"/,"string",'@string."'],[/'/,"string","@string.'"]],blockStyle:[[/[>|][0-9]*[+-]?$/,"operators","@multiString"]],flowNumber:[[/@numberInteger(?=[ \t]*[,\]\}])/,"number"],[/@numberFloat(?=[ \t]*[,\]\}])/,"number.float"],[/@numberOctal(?=[ \t]*[,\]\}])/,"number.octal"],[/@numberHex(?=[ \t]*[,\]\}])/,"number.hex"],[/@numberInfinity(?=[ \t]*[,\]\}])/,"number.infinity"],[/@numberNaN(?=[ \t]*[,\]\}])/,"number.nan"],[/@numberDate(?=[ \t]*[,\]\}])/,"number.date"]],tagHandle:[[/\![^ ]*/,"tag"]],anchor:[[/[&*][^ ]+/,"namespace"]]}}});
\ No newline at end of file
define('vs/basic-languages/src/yaml', ['require', 'exports'], function(e, n) {
'use strict'
Object.defineProperty(n, '__esModule', { value: !0 }),
(n.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: "'" }
]
}),
(n.language = {
tokenPostfix: '.yaml',
brackets: [
{ token: 'delimiter.bracket', open: '{', close: '}' },
{ token: 'delimiter.square', open: '[', close: ']' }
],
keywords: [
'true',
'True',
'TRUE',
'false',
'False',
'FALSE',
'null',
'Null',
'Null',
'~'
],
numberInteger: /(?:0|[+-]?[0-9]+)/,
numberFloat: /(?:0|[+-]?[0-9]+)(?:\.[0-9]+)?(?:e[-+][1-9][0-9]*)?/,
numberOctal: /0o[0-7]+/,
numberHex: /0x[0-9a-fA-F]+/,
numberInfinity: /[+-]?\.(?:inf|Inf|INF)/,
numberNaN: /\.(?:nan|Nan|NAN)/,
numberDate: /\d{4}-\d\d-\d\d([Tt ]\d\d:\d\d:\d\d(\.\d+)?(( ?[+-]\d\d?(:\d\d)?)|Z)?)?/,
escapes: /\\(?:[btnfr\\"']|[0-7][0-7]?|[0-3][0-7]{2})/,
tokenizer: {
root: [
{ include: '@whitespace' },
{ include: '@comment' },
[/%[^ ]+.*$/, 'meta.directive'],
[/---/, 'operators.directivesEnd'],
[/\.{3}/, 'operators.documentEnd'],
[/[-?:](?= )/, 'operators'],
{ include: '@anchor' },
{ include: '@tagHandle' },
{ include: '@flowCollections' },
{ include: '@blockStyle' },
[/@numberInteger(?![ \t]*\S+)/, 'number'],
[/@numberFloat(?![ \t]*\S+)/, 'number.float'],
[/@numberOctal(?![ \t]*\S+)/, 'number.octal'],
[/@numberHex(?![ \t]*\S+)/, 'number.hex'],
[/@numberInfinity(?![ \t]*\S+)/, 'number.infinity'],
[/@numberNaN(?![ \t]*\S+)/, 'number.nan'],
[/@numberDate(?![ \t]*\S+)/, 'number.date'],
[
/(".*?"|'.*?'|.*?)([ \t]*)(:)( |$)/,
['type', 'white', 'operators', 'white']
],
{ include: '@flowScalars' },
[/.+$/, { cases: { '@keywords': 'keyword', '@default': 'string' } }]
],
object: [
{ include: '@whitespace' },
{ include: '@comment' },
[/\}/, '@brackets', '@pop'],
[/,/, 'delimiter.comma'],
[/:(?= )/, 'operators'],
[/(?:".*?"|'.*?'|[^,\{\[]+?)(?=: )/, 'type'],
{ include: '@flowCollections' },
{ include: '@flowScalars' },
{ include: '@tagHandle' },
{ include: '@anchor' },
{ include: '@flowNumber' },
[
/[^\},]+/,
{ cases: { '@keywords': 'keyword', '@default': 'string' } }
]
],
array: [
{ include: '@whitespace' },
{ include: '@comment' },
[/\]/, '@brackets', '@pop'],
[/,/, 'delimiter.comma'],
{ include: '@flowCollections' },
{ include: '@flowScalars' },
{ include: '@tagHandle' },
{ include: '@anchor' },
{ include: '@flowNumber' },
[
/[^\],]+/,
{ cases: { '@keywords': 'keyword', '@default': 'string' } }
]
],
string: [
[/[^\\"']+/, 'string'],
[/@escapes/, 'string.escape'],
[/\\./, 'string.escape.invalid'],
[
/["']/,
{
cases: {
'$#==$S2': { token: 'string', next: '@pop' },
'@default': 'string'
}
}
]
],
multiString: [[/^( +).+$/, 'string', '@multiStringContinued.$1']],
multiStringContinued: [
[
/^( *).+$/,
{
cases: {
'$1==$S2': 'string',
'@default': { token: '@rematch', next: '@popall' }
}
}
]
],
whitespace: [[/[ \t\r\n]+/, 'white']],
comment: [[/#.*$/, 'comment']],
flowCollections: [
[/\[/, '@brackets', '@array'],
[/\{/, '@brackets', '@object']
],
flowScalars: [
[/"/, 'string', '@string."'],
[/'/, 'string', "@string.'"]
],
blockStyle: [[/[>|][0-9]*[+-]?$/, 'operators', '@multiString']],
flowNumber: [
[/@numberInteger(?=[ \t]*[,\]\}])/, 'number'],
[/@numberFloat(?=[ \t]*[,\]\}])/, 'number.float'],
[/@numberOctal(?=[ \t]*[,\]\}])/, 'number.octal'],
[/@numberHex(?=[ \t]*[,\]\}])/, 'number.hex'],
[/@numberInfinity(?=[ \t]*[,\]\}])/, 'number.infinity'],
[/@numberNaN(?=[ \t]*[,\]\}])/, 'number.nan'],
[/@numberDate(?=[ \t]*[,\]\}])/, 'number.date']
],
tagHandle: [[/\![^ ]*/, 'tag']],
anchor: [[/[&*][^ ]+/, 'namespace']]
}
})
})
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment