mirror of
https://github.com/danog/telegram-tt.git
synced 2024-12-02 09:37:47 +01:00
1 line
4.7 KiB
Plaintext
1 line
4.7 KiB
Plaintext
{"version":3,"file":"5060.7cd173e6b1393947bb3b.js","mappings":"qFA0KAA,EAAOC,QApKP,SAAYC,GACV,MAAMC,EAAO,CACXC,UAAW,SACXC,MAAO,cACPC,UAAW,GAEPC,EAAU,CACdH,UAAW,SACXC,MAAO,YA4GT,MAAO,CACLG,KAAM,KACNC,SAAU,CACRC,QAtFa,CACf,QACA,MACA,SACA,MACA,QACA,QACA,OACA,MACA,MACA,YACA,SACA,KACA,KACA,MACA,SACA,OACA,MACA,SACA,UACA,aACA,OACA,MACA,KACA,QACA,MACA,KACA,MACA,mBACA,OACA,MACA,UACA,SACA,SACA,KACA,WACA,QACA,OACA,MACA,QACA,MACA,SACA,OACA,OACA,KACA,KACA,KACA,cACA,cACA,KACA,KACA,aACA,YACA,SACA,OACA,IACA,IACA,IACA,IACA,IACA,IACA,SACA,SACA,UACA,UACA,OACA,OACA,KACA,OAmBEC,QAjBa,CACf,KACA,MACA,YACA,OACA,OACA,SACA,UACA,QACA,OACA,UASAC,SAAU,CAhHG,CACbR,UAAW,WACXC,MAAO,2HAEPQ,IAAK,MACLD,SAAU,CACR,OACAT,EACAI,IAGS,CACXH,UAAW,WACXC,MAAO,6CACPQ,IAAK,MACLD,SAAU,CACR,OACAT,EACAD,EAAKY,kBACLP,IAgGA,CACEH,UAAW,UACXC,MAAO,8BAET,CAEED,UAAW,UACXC,MAAO,iCAET,CAGED,UAAW,UACXC,MAAO,yDAET,CAEED,UAAW,SACXC,MAAO,6DACPC,UAAW,GAEbJ,EAAKa,QAAQ,KAAM,QACnBb,EAAKa,QAAQ,IAAK,QAClBb,EAAKa,QAAQ,QAAS,KACtBb,EAAKY,kBACL,CACEV,UAAW,SACXC,MAAO,IACPQ,IAAK,KAEPX,EAAKc,cACL,CACEZ,UAAW,WACXC,MAAO","sources":["webpack://telegram-t/./node_modules/highlight.js/lib/languages/tp.js"],"sourcesContent":["/*\nLanguage: TP\nAuthor: Jay Strybis <jay.strybis@gmail.com>\nDescription: FANUC TP programming language (TPP).\n*/\n\nfunction tp(hljs) {\n const TPID = {\n className: 'number',\n begin: '[1-9][0-9]*', /* no leading zeros */\n relevance: 0\n };\n const TPLABEL = {\n className: 'symbol',\n begin: ':[^\\\\]]+'\n };\n const TPDATA = {\n className: 'built_in',\n begin: '(AR|P|PAYLOAD|PR|R|SR|RSR|LBL|VR|UALM|MESSAGE|UTOOL|UFRAME|TIMER|'\n + 'TIMER_OVERFLOW|JOINT_MAX_SPEED|RESUME_PROG|DIAG_REC)\\\\[',\n end: '\\\\]',\n contains: [\n 'self',\n TPID,\n TPLABEL\n ]\n };\n const TPIO = {\n className: 'built_in',\n begin: '(AI|AO|DI|DO|F|RI|RO|UI|UO|GI|GO|SI|SO)\\\\[',\n end: '\\\\]',\n contains: [\n 'self',\n TPID,\n hljs.QUOTE_STRING_MODE, /* for pos section at bottom */\n TPLABEL\n ]\n };\n\n const KEYWORDS = [\n \"ABORT\",\n \"ACC\",\n \"ADJUST\",\n \"AND\",\n \"AP_LD\",\n \"BREAK\",\n \"CALL\",\n \"CNT\",\n \"COL\",\n \"CONDITION\",\n \"CONFIG\",\n \"DA\",\n \"DB\",\n \"DIV\",\n \"DETECT\",\n \"ELSE\",\n \"END\",\n \"ENDFOR\",\n \"ERR_NUM\",\n \"ERROR_PROG\",\n \"FINE\",\n \"FOR\",\n \"GP\",\n \"GUARD\",\n \"INC\",\n \"IF\",\n \"JMP\",\n \"LINEAR_MAX_SPEED\",\n \"LOCK\",\n \"MOD\",\n \"MONITOR\",\n \"OFFSET\",\n \"Offset\",\n \"OR\",\n \"OVERRIDE\",\n \"PAUSE\",\n \"PREG\",\n \"PTH\",\n \"RT_LD\",\n \"RUN\",\n \"SELECT\",\n \"SKIP\",\n \"Skip\",\n \"TA\",\n \"TB\",\n \"TO\",\n \"TOOL_OFFSET\",\n \"Tool_Offset\",\n \"UF\",\n \"UT\",\n \"UFRAME_NUM\",\n \"UTOOL_NUM\",\n \"UNLOCK\",\n \"WAIT\",\n \"X\",\n \"Y\",\n \"Z\",\n \"W\",\n \"P\",\n \"R\",\n \"STRLEN\",\n \"SUBSTR\",\n \"FINDSTR\",\n \"VOFFSET\",\n \"PROG\",\n \"ATTR\",\n \"MN\",\n \"POS\"\n ];\n const LITERALS = [\n \"ON\",\n \"OFF\",\n \"max_speed\",\n \"LPOS\",\n \"JPOS\",\n \"ENABLE\",\n \"DISABLE\",\n \"START\",\n \"STOP\",\n \"RESET\"\n ];\n\n return {\n name: 'TP',\n keywords: {\n keyword: KEYWORDS,\n literal: LITERALS\n },\n contains: [\n TPDATA,\n TPIO,\n {\n className: 'keyword',\n begin: '/(PROG|ATTR|MN|POS|END)\\\\b'\n },\n {\n /* this is for cases like ,CALL */\n className: 'keyword',\n begin: '(CALL|RUN|POINT_LOGIC|LBL)\\\\b'\n },\n {\n /* this is for cases like CNT100 where the default lexemes do not\n * separate the keyword and the number */\n className: 'keyword',\n begin: '\\\\b(ACC|CNT|Skip|Offset|PSPD|RT_LD|AP_LD|Tool_Offset)'\n },\n {\n /* to catch numbers that do not have a word boundary on the left */\n className: 'number',\n begin: '\\\\d+(sec|msec|mm/sec|cm/min|inch/min|deg/sec|mm|in|cm)?\\\\b',\n relevance: 0\n },\n hljs.COMMENT('//', '[;$]'),\n hljs.COMMENT('!', '[;$]'),\n hljs.COMMENT('--eg:', '$'),\n hljs.QUOTE_STRING_MODE,\n {\n className: 'string',\n begin: '\\'',\n end: '\\''\n },\n hljs.C_NUMBER_MODE,\n {\n className: 'variable',\n begin: '\\\\$[A-Za-z0-9_]+'\n }\n ]\n };\n}\n\nmodule.exports = tp;\n"],"names":["module","exports","hljs","TPID","className","begin","relevance","TPLABEL","name","keywords","keyword","literal","contains","end","QUOTE_STRING_MODE","COMMENT","C_NUMBER_MODE"],"sourceRoot":""} |