1
|
{"version":3,"sources":["webpack:///./node_modules/highlight.js/lib/languages/openscad.js"],"names":["module","exports","hljs","SPECIAL_VARS","className","begin","NUMBERS","relevance","STRING","inherit","QUOTE_STRING_MODE","illegal","FUNCTIONS","beginKeywords","end","contains","UNDERSCORE_TITLE_MODE","aliases","keywords","keyword","literal","built_in","C_LINE_COMMENT_MODE","C_BLOCK_COMMENT_MODE"],"mappings":"qFAAAA,EAAOC,QAAU,SAASC,GACzB,IAAIC,EAAe,CAClBC,UAAW,UACXC,MAAO,kCAMRC,EAAU,CACTF,UAAW,SACXC,MAAO,8BACPE,UAAW,GAEZC,EAASN,EAAKO,QAAQP,EAAKQ,kBAAkB,CAACC,QAAS,OAgBvDC,EAAY,CACXR,UAAW,WACXS,cAAe,kBACfC,IAAK,UACLC,SAAU,CAbF,CACRX,UAAW,SACXC,MAAO,MAAOS,IAAK,MACnBC,SAAU,CAAC,OAAQT,EAASE,EAAQL,EAnB1B,CACVC,UAAW,UACXC,MAAO,yBA2BYH,EAAKc,wBAGzB,MAAO,CACNC,QAAS,CAAC,QACVC,SAAU,CACTC,QAAS,+DACTC,QAAS,sBACTC,SAAU,udAEXN,SAAU,CACTb,EAAKoB,oBACLpB,EAAKqB,qBACLjB,EAhCO,CACRF,UAAW,OACXc,SAAU,CAAC,eAAgB,eAC3Bb,MAAO,gBACPS,IAAK,KA8BJN,EACAL,EAxBU,CACXE,MAAO,SACPE,UAAW,GAwBVK","file":"highlight/openscad.js?v=7ba39d4310a09ef24297","sourcesContent":["module.exports = function(hljs) {\n\tvar SPECIAL_VARS = {\n\t\tclassName: 'keyword',\n\t\tbegin: '\\\\$(f[asn]|t|vp[rtd]|children)'\n\t},\n\tLITERALS = {\n\t\tclassName: 'literal',\n\t\tbegin: 'false|true|PI|undef'\n\t},\n\tNUMBERS = {\n\t\tclassName: 'number',\n\t\tbegin: '\\\\b\\\\d+(\\\\.\\\\d+)?(e-?\\\\d+)?', //adds 1e5, 1e-10\n\t\trelevance: 0\n\t},\n\tSTRING = hljs.inherit(hljs.QUOTE_STRING_MODE,{illegal: null}),\n\tPREPRO = {\n\t\tclassName: 'meta',\n\t\tkeywords: {'meta-keyword': 'include use'},\n\t\tbegin: 'include|use <',\n\t\tend: '>'\n\t},\n\tPARAMS = {\n\t\tclassName: 'params',\n\t\tbegin: '\\\\(', end: '\\\\)',\n\t\tcontains: ['self', NUMBERS, STRING, SPECIAL_VARS, LITERALS]\n\t},\n\tMODIFIERS = {\n\t\tbegin: '[*!#%]',\n\t\trelevance: 0\n\t},\n\tFUNCTIONS = {\n\t\tclassName: 'function',\n\t\tbeginKeywords: 'module function',\n\t\tend: '\\\\=|\\\\{',\n\t\tcontains: [PARAMS, hljs.UNDERSCORE_TITLE_MODE]\n\t};\n\n\treturn {\n\t\taliases: ['scad'],\n\t\tkeywords: {\n\t\t\tkeyword: 'function module include use for intersection_for if else \\\\%',\n\t\t\tliteral: 'false true PI undef',\n\t\t\tbuilt_in: 'circle square polygon text sphere cube cylinder polyhedron translate rotate scale resize mirror multmatrix color offset hull minkowski union difference intersection abs sign sin cos tan acos asin atan atan2 floor round ceil ln log pow sqrt exp rands min max concat lookup str chr search version version_num norm cross parent_module echo import import_dxf dxf_linear_extrude linear_extrude rotate_extrude surface projection render children dxf_cross dxf_dim let assign'\n\t\t},\n\t\tcontains: [\n\t\t\thljs.C_LINE_COMMENT_MODE,\n\t\t\thljs.C_BLOCK_COMMENT_MODE,\n\t\t\tNUMBERS,\n\t\t\tPREPRO,\n\t\t\tSTRING,\n\t\t\tSPECIAL_VARS,\n\t\t\tMODIFIERS,\n\t\t\tFUNCTIONS\n\t\t]\n\t}\n};"],"sourceRoot":""}
|