1
|
{"version":3,"sources":["webpack:///./node_modules/highlight.js/lib/languages/tp.js"],"names":["module","exports","hljs","TPID","className","begin","relevance","TPLABEL","keywords","keyword","literal","contains","end","QUOTE_STRING_MODE","COMMENT","C_NUMBER_MODE"],"mappings":"qFAAAA,EAAOC,QAAU,SAASC,GACxB,IAAIC,EAAO,CACTC,UAAW,SACXC,MAAO,cACPC,UAAW,GAETC,EAAU,CACZH,UAAW,SACXC,MAAO,YAuBT,MAAO,CACLG,SAAU,CACRC,QACE,2XAMFC,QACE,8DAEJC,SAAU,CAjCC,CACXP,UAAW,WACXC,MAAO,2HACoDO,IAAK,MAChED,SAAU,CACR,OACAR,EACAI,IAGO,CACTH,UAAW,WACXC,MAAO,6CAA8CO,IAAK,MAC1DD,SAAU,CACR,OACAR,EACAD,EAAKW,kBACLN,IAmBA,CACEH,UAAW,UACXC,MAAO,8BAET,CAEED,UAAW,UACXC,MAAO,iCAET,CAGED,UAAW,UACXC,MAAO,yDAET,CAEED,UAAW,SACXC,MAAO,6DACPC,UAAW,GAEbJ,EAAKY,QAAQ,KAAM,QACnBZ,EAAKY,QAAQ,IAAK,QAClBZ,EAAKY,QAAQ,QAAS,KACtBZ,EAAKW,kBACL,CACET,UAAW,SACXC,MAAO,IAAMO,IAAK,KAEpBV,EAAKa,cACL,CACEX,UAAW,WACXC,MAAO","file":"highlight/tp.js?v=abf07919aaff4882bda1","sourcesContent":["module.exports = function(hljs) {\n var TPID = {\n className: 'number',\n begin: '[1-9][0-9]*', /* no leading zeros */\n relevance: 0\n };\n var TPLABEL = {\n className: 'symbol',\n begin: ':[^\\\\]]+'\n };\n var 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)\\\\[', end: '\\\\]',\n contains: [\n 'self',\n TPID,\n TPLABEL\n ]\n };\n var TPIO = {\n className: 'built_in',\n begin: '(AI|AO|DI|DO|F|RI|RO|UI|UO|GI|GO|SI|SO)\\\\[', end: '\\\\]',\n contains: [\n 'self',\n TPID,\n hljs.QUOTE_STRING_MODE, /* for pos section at bottom */\n TPLABEL\n ]\n };\n\n return {\n keywords: {\n keyword:\n 'ABORT ACC ADJUST AND AP_LD BREAK CALL CNT COL CONDITION CONFIG DA DB ' +\n 'DIV DETECT ELSE END ENDFOR ERR_NUM ERROR_PROG FINE FOR GP GUARD INC ' +\n 'IF JMP LINEAR_MAX_SPEED LOCK MOD MONITOR OFFSET Offset OR OVERRIDE ' +\n 'PAUSE PREG PTH RT_LD RUN SELECT SKIP Skip TA TB TO TOOL_OFFSET ' +\n 'Tool_Offset UF UT UFRAME_NUM UTOOL_NUM UNLOCK WAIT X Y Z W P R STRLEN ' +\n 'SUBSTR FINDSTR VOFFSET PROG ATTR MN POS',\n literal:\n 'ON OFF max_speed LPOS JPOS ENABLE DISABLE START STOP RESET'\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: '\\'', end: '\\''\n },\n hljs.C_NUMBER_MODE,\n {\n className: 'variable',\n begin: '\\\\$[A-Za-z0-9_]+'\n }\n ]\n };\n};"],"sourceRoot":""}
|