{"version":3,"file":"mode-gcode-3dbb1c46.js","sources":["../../node_modules/ace-builds/src-noconflict/mode-gcode.js"],"sourcesContent":["ace.define(\"ace/mode/gcode_highlight_rules\",[\"require\",\"exports\",\"module\",\"ace/lib/oop\",\"ace/mode/text_highlight_rules\"], function(require, exports, module){\"use strict\";\nvar oop = require(\"../lib/oop\");\nvar TextHighlightRules = require(\"./text_highlight_rules\").TextHighlightRules;\nvar GcodeHighlightRules = function () {\n var keywords = (\"IF|DO|WHILE|ENDWHILE|CALL|ENDIF|SUB|ENDSUB|GOTO|REPEAT|ENDREPEAT|CALL\");\n var builtinConstants = (\"PI\");\n var builtinFunctions = (\"ATAN|ABS|ACOS|ASIN|SIN|COS|EXP|FIX|FUP|ROUND|LN|TAN\");\n var keywordMapper = this.createKeywordMapper({\n \"support.function\": builtinFunctions,\n \"keyword\": keywords,\n \"constant.language\": builtinConstants\n }, \"identifier\", true);\n this.$rules = {\n \"start\": [{\n token: \"comment\",\n regex: \"\\\\(.*\\\\)\"\n }, {\n token: \"comment\",\n regex: \"([N])([0-9]+)\"\n }, {\n token: \"string\",\n regex: \"([G])([0-9]+\\\\.?[0-9]?)\"\n }, {\n token: \"string\",\n regex: \"([M])([0-9]+\\\\.?[0-9]?)\"\n }, {\n token: \"constant.numeric\",\n regex: \"([-+]?([0-9]*\\\\.?[0-9]+\\\\.?))|(\\\\b0[xX][a-fA-F0-9]+|(\\\\b\\\\d+(\\\\.\\\\d*)?|\\\\.\\\\d+)([eE][-+]?\\\\d+)?)\"\n }, {\n token: keywordMapper,\n regex: \"[A-Z]\"\n }, {\n token: \"keyword.operator\",\n regex: \"EQ|LT|GT|NE|GE|LE|OR|XOR\"\n }, {\n token: \"paren.lparen\",\n regex: \"[\\\\[]\"\n }, {\n token: \"paren.rparen\",\n regex: \"[\\\\]]\"\n }, {\n token: \"text\",\n regex: \"\\\\s+\"\n }]\n };\n};\noop.inherits(GcodeHighlightRules, TextHighlightRules);\nexports.GcodeHighlightRules = GcodeHighlightRules;\n\n});\n\nace.define(\"ace/mode/gcode\",[\"require\",\"exports\",\"module\",\"ace/lib/oop\",\"ace/mode/text\",\"ace/mode/gcode_highlight_rules\",\"ace/range\"], function(require, exports, module){\"use strict\";\nvar oop = require(\"../lib/oop\");\nvar TextMode = require(\"./text\").Mode;\nvar GcodeHighlightRules = require(\"./gcode_highlight_rules\").GcodeHighlightRules;\nvar Range = require(\"../range\").Range;\nvar Mode = function () {\n this.HighlightRules = GcodeHighlightRules;\n this.$behaviour = this.$defaultBehaviour;\n};\noop.inherits(Mode, TextMode);\n(function () {\n this.$id = \"ace/mode/gcode\";\n}).call(Mode.prototype);\nexports.Mode = Mode;\n\n}); (function() {\n ace.require([\"ace/mode/gcode\"], function(m) {\n if (typeof module == \"object\" && typeof exports == \"object\" && module) {\n module.exports = m;\n }\n });\n })();\n "],"names":["require","exports","module","oop","TextHighlightRules","GcodeHighlightRules","keywords","builtinConstants","builtinFunctions","keywordMapper","TextMode","Mode","m"],"mappings":"gaAAA,IAAI,OAAO,iCAAiC,CAAC,UAAU,UAAU,SAAS,cAAc,+BAA+B,EAAG,SAASA,EAASC,EAASC,EAAO,CAC5J,IAAIC,EAAMH,EAAQ,YAAY,EAC1BI,EAAqBJ,EAAQ,wBAAwB,EAAE,mBACvDK,EAAsB,UAAY,CAClC,IAAIC,EAAY,wEACZC,EAAoB,KACpBC,EAAoB,sDACpBC,EAAgB,KAAK,oBAAoB,CACzC,mBAAoBD,EACpB,QAAWF,EACX,oBAAqBC,CAC7B,EAAO,aAAc,EAAI,EACrB,KAAK,OAAS,CACV,MAAS,CAAC,CACF,MAAO,UACP,MAAO,UACvB,EAAe,CACC,MAAO,UACP,MAAO,eACvB,EAAe,CACC,MAAO,SACP,MAAO,yBACvB,EAAe,CACC,MAAO,SACP,MAAO,yBACvB,EAAe,CACC,MAAO,mBACP,MAAO,kGACvB,EAAe,CACC,MAAOE,EACP,MAAO,OACvB,EAAe,CACC,MAAO,mBACP,MAAO,0BACvB,EAA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