2023-10-12 08:17:48 +02:00
/*! `livecodeserver` grammar compiled for Highlight.js 11.9.0 */
2021-10-18 07:02:03 +02:00
( ( ) => { var e = ( ( ) => { "use strict" ; return e => { const r = { className : "variable" ,
variants : [ { begin : "\\b([gtps][A-Z]{1}[a-zA-Z0-9]*)(\\[.+\\])?(?:\\s*?)" } , {
begin : "\\$_[A-Z]+" } ] , relevance : 0
2021-06-08 07:40:19 +02:00
} , t = [ e . C _BLOCK _COMMENT _MODE , e . HASH _COMMENT _MODE , e . COMMENT ( "--" , "$" ) , e . COMMENT ( "[^:]//" , "$" ) ] , a = e . inherit ( e . TITLE _MODE , {
variants : [ { begin : "\\b_*rig[A-Z][A-Za-z0-9_\\-]*" } , { begin : "\\b_[a-z0-9\\-]+" } ]
} ) , o = e . inherit ( e . TITLE _MODE , { begin : "\\b([A-Za-z0-9_\\-]+)\\b" } ) ; return {
name : "LiveCode" , case _insensitive : ! 1 , keywords : {
keyword : "$_COOKIE $_FILES $_GET $_GET_BINARY $_GET_RAW $_POST $_POST_BINARY $_POST_RAW $_SESSION $_SERVER codepoint codepoints segment segments codeunit codeunits sentence sentences trueWord trueWords paragraph after byte bytes english the until http forever descending using line real8 with seventh for stdout finally element word words fourth before black ninth sixth characters chars stderr uInt1 uInt1s uInt2 uInt2s stdin string lines relative rel any fifth items from middle mid at else of catch then third it file milliseconds seconds second secs sec int1 int1s int4 int4s internet int2 int2s normal text item last long detailed effective uInt4 uInt4s repeat end repeat URL in try into switch to words https token binfile each tenth as ticks tick system real4 by dateItems without char character ascending eighth whole dateTime numeric short first ftp integer abbreviated abbr abbrev private case while if div mod wrap and or bitAnd bitNot bitOr bitXor among not in a an within contains ends with begins the keys of keys" ,
literal : "SIX TEN FORMFEED NINE ZERO NONE SPACE FOUR FALSE COLON CRLF PI COMMA ENDOFFILE EOF EIGHT FIVE QUOTE EMPTY ONE TRUE RETURN CR LINEFEED RIGHT BACKSLASH NULL SEVEN TAB THREE TWO six ten formfeed nine zero none space four false colon crlf pi comma endoffile eof eight five quote empty one true return cr linefeed right backslash null seven tab three two RIVERSION RISTATE FILE_READ_MODE FILE_WRITE_MODE FILE_WRITE_MODE DIR_WRITE_MODE FILE_READ_UMASK FILE_WRITE_UMASK DIR_READ_UMASK DIR_WRITE_UMASK" ,
built _in : " put abs acos aliasReference annuity arrayDecode arrayEncode asin atan atan2 average avg avgDev base64Decode base64Encode baseConvert binaryDecode binaryEncode byteOffset byteToNum cachedURL cachedURLs charToNum cipherNames codepointOffset codepointProperty codepointToNum codeunitOffset commandNames compound compress constantNames cos date dateFormat decompress difference directories diskSpace DNSServers exp exp1 exp2 exp10 extents files flushEvents folders format functionNames geometricMean global globals hasMemory harmonicMean hostAddress hostAddressToName hostName hostNameToAddress isNumber ISOToMac itemOffset keys len length libURLErrorData libUrlFormData libURLftpCommand libURLLastHTTPHeaders libURLLastRHHeaders libUrlMultipartFormAddPart libUrlMultipartFormData libURLVersion lineOffset ln ln1 localNames log log2 log10 longFilePath lower macToISO matchChunk matchText matrixMultiply max md5Digest median merge messageAuthenticationCode messageDigest millisec millisecs millisecond milliseconds min monthNames nativeCharToNum normalizeText num number numToByte numToChar numToCodepoint numToNativeChar offset open openfiles openProcesses openProcessIDs openSockets paragraphOffset paramCount param params peerAddress pendingMessages platform popStdDev populationStandardDeviation populationVariance popVariance processID random randomBytes replaceText result revCreateXMLTree revCreateXMLTreeFromFile revCurrentRecord revCurrentRecordIsFirst revCurrentRecordIsLast revDatabaseColumnCount revDatabaseColumnIsNull revDatabaseColumnLengths revDatabaseColumnNames revDatabaseColumnNamed revDatabaseColumnNumbered revDatabaseColumnTypes revDatabaseConnectResult revDatabaseCursors revDatabaseID revDatabaseTableNames revDatabaseType revDataFromQuery revdb _closeCursor revdb _columnbynumber revdb _columncount revdb _columnisnull revdb _columnlengths revdb _columnnames revdb _columntypes revdb _commit revdb _connect revdb _connections revdb _connectionerr revdb _currentrecord revdb _cursorconnection revdb _cursorerr revdb _cursors revdb _dbtype revdb _disconnect revdb _execute revdb _iseof revdb _isbof revdb _movefirst revdb _movelast revdb _movenext revdb _moveprev revdb _query revdb _querylist revdb _recordcount revdb _rollback revdb _tablenames revGetDatabaseDriverPath revNumberOfRecords revOpenDatabase revOpenDatabases revQueryDatabase revQueryDatabaseBlob revQueryResult revQueryIsAtStart revQueryIsAtEnd revUnixFromMacPath revXMLAttribute revXMLAttributes revXMLAttributeValues revXMLChildContents revXMLChildNames revXMLCreateTreeFromFileWithNamespaces revXMLCreateTreeWithNamespaces revXMLDataFromXPathQuery revXMLEvaluateXPath revXMLFirstChild revXMLMatchingNode revXMLNextSibling revXMLNodeContents revXMLNumberOfChildren revXMLParent revXMLPreviousSibling revXMLRootNode revXMLRPC _CreateRequest revXMLRPC _Documents revXMLRPC _Error revXMLRPC _GetHost revXMLRPC _GetMethod revXMLRPC _GetParam revXMLText revXMLRPC _Execute revXMLRPC _GetParamCount revXMLRPC _GetParamNode revXMLRPC _GetParamType revXMLRPC _GetPath revXMLRPC _GetPort revXMLRPC _GetProtocol revXMLRPC _GetRequest revXMLRPC _GetResponse revXMLRPC _GetSocket revXMLTree revXMLTrees revXMLValidateDTD revZipDescribeItem revZipEnumerateItems revZipOpenArchives round sampVariance sec secs seconds sentenceOffset sha1Digest shell shortFilePath sin specialFolderPath sqrt standardDeviation statRound stdDev sum sysError systemVersion tan tempName textDecode textEncode tick ticks time to tokenOffset toLower toUpper transpose truewordOffset trunc uniDecode uniEncode upper URLDecode URLEncode URLStatus uuid value variableNames variance version waitDepth weekdayNames wordOffset xsltApplyStylesheet xsltApplyStylesheetFromFile xsltLoadStylesheet xsltLoadStylesheetFromFile add breakpoint cancel clear local variable file word line folder directory URL close socket process combine constant convert create new alias folder directory decrypt delete variable word line folder directory URL dispatch divide do encrypt filter get include intersect kill libURLDownloadToFile libURLFollowHttpRedirects libURLftpUpload libURLftpUploadFile libURLr
} , contains : [ r , { className : "keyword" , begin : "\\bend\\sif\\b" } , {
className : "function" , beginKeywords : "function" , end : "$" ,
contains : [ r , o , e . APOS _STRING _MODE , e . QUOTE _STRING _MODE , e . BINARY _NUMBER _MODE , e . C _NUMBER _MODE , a ]
} , { className : "function" , begin : "\\bend\\s+" , end : "$" , keywords : "end" ,
contains : [ o , a ] , relevance : 0 } , { beginKeywords : "command on" , end : "$" ,
contains : [ r , o , e . APOS _STRING _MODE , e . QUOTE _STRING _MODE , e . BINARY _NUMBER _MODE , e . C _NUMBER _MODE , a ]
} , { className : "meta" , variants : [ { begin : "<\\?(rev|lc|livecode)" , relevance : 10 } , {
begin : "<\\?" } , { begin : "\\?>" } ]
} , e . APOS _STRING _MODE , e . QUOTE _STRING _MODE , e . BINARY _NUMBER _MODE , e . C _NUMBER _MODE , a ] . concat ( t ) ,
2021-10-18 07:02:03 +02:00
illegal : ";$|^\\[|^=|&|\\{" } } } ) ( ) ; hljs . registerLanguage ( "livecodeserver" , e ) } ) ( ) ;