/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ define(["require", "exports"], function (require, exports) { 'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.conf = { comments: { lineComment: '--', blockComment: ['--[[', ']]'], }, brackets: [ ['{', '}'], ['[', ']'], ['(', ')'], ['do', 'end'], ['then', 'end'] ], autoClosingPairs: [ { open: '{', close: '}' }, { open: '[', close: ']' }, { open: '(', close: ')' }, { open: '"', close: '"' }, { open: '\'', close: '\'' }, ], surroundingPairs: [ { open: '{', close: '}' }, { open: '[', close: ']' }, { open: '(', close: ')' }, { open: '"', close: '"' }, { open: '\'', close: '\'' }, ], folding: { markers: { start: new RegExp("^\\s*//\\s*(?:(?:#?region\\b)|(?:))") } } }; exports.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', 'continue', 'assert', 'collectgarbage', 'error', 'getfenv', 'getmetatable', 'ipairs', 'loadfile', 'loadstring', 'newproxy', 'next', 'pairs', 'pcall', 'print', 'rawequal', 'rawget', 'rawset', 'select', 'setfenv', 'setmetatable', 'tonumber', 'tostring', 'type', 'unpack', 'xpcall', '_G', 'shared', 'delay', 'require', 'spawn', 'tick', 'typeof', 'wait', 'warn', 'game', 'Enum', 'script', 'workspace' ], brackets: [ { token: 'delimiter.bracket', open: '{', close: '}' }, { token: 'delimiter.array', open: '[', close: ']' }, { token: 'delimiter.parenthesis', open: '(', close: ')' } ], globals: [ 'assert', 'collectgarbage', 'error', 'getfenv', 'getmetatable', 'ipairs', 'loadfile', 'loadstring', 'newproxy', 'next', 'pairs', 'pcall', 'print', 'rawequal', 'rawget', 'rawset', 'select', 'setfenv', 'setmetatable', 'tonumber', 'tostring', 'type', 'unpack', 'xpcall', '_G', 'shared', 'delay', 'require', 'spawn', 'tick', 'typeof', 'wait', 'warn', 'game', 'Enum', 'script', 'workspace' ], operators: [ '+', '-', '*', '/', '%', '^', '#', '==', '~=', '<=', '>=', '<', '>', '=', ';', ':', ',', '.', '..', '...' ], // we include these common regular expressions symbols: /[=>