mode-ada-1b5d73ff.js.map 6.7 KB

1
  1. {"version":3,"file":"mode-ada-1b5d73ff.js","sources":["../../node_modules/ace-builds/src-noconflict/mode-ada.js"],"sourcesContent":["ace.define(\"ace/mode/ada_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 AdaHighlightRules = function () {\n var keywords = \"abort|else|new|return|abs|elsif|not|reverse|abstract|end|null|accept|entry|select|\" +\n \"access|exception|of|separate|aliased|exit|or|some|all|others|subtype|and|for|out|synchronized|\" +\n \"array|function|overriding|at|tagged|generic|package|task|begin|goto|pragma|terminate|\" +\n \"body|private|then|if|procedure|type|case|in|protected|constant|interface|until|\" +\n \"|is|raise|use|declare|range|delay|limited|record|when|delta|loop|rem|while|digits|renames|with|do|mod|requeue|xor\";\n var builtinConstants = (\"true|false|null\");\n var builtinFunctions = (\"count|min|max|avg|sum|rank|now|coalesce|main\");\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: \"string\",\n regex: '\".*?\"'\n }, {\n token: \"string\",\n regex: \"'.'\"\n }, {\n token: \"constant.numeric\",\n regex: \"[+-]?\\\\d+(?:(?:\\\\.\\\\d*)?(?:[eE][+-]?\\\\d+)?)?\\\\b\"\n }, {\n token: keywordMapper,\n regex: \"[a-zA-Z_$][a-zA-Z0-9_$]*\\\\b\"\n }, {\n token: \"keyword.operator\",\n regex: \"\\\\+|\\\\-|\\\\/|\\\\/\\\\/|%|<@>|@>|<@|&|\\\\^|~|<|>|<=|=>|==|!=|<>|=\"\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(AdaHighlightRules, TextHighlightRules);\nexports.AdaHighlightRules = AdaHighlightRules;\n\n});\n\nace.define(\"ace/mode/ada\",[\"require\",\"exports\",\"module\",\"ace/lib/oop\",\"ace/mode/text\",\"ace/mode/ada_highlight_rules\",\"ace/range\"], function(require, exports, module){\"use strict\";\nvar oop = require(\"../lib/oop\");\nvar TextMode = require(\"./text\").Mode;\nvar AdaHighlightRules = require(\"./ada_highlight_rules\").AdaHighlightRules;\nvar Range = require(\"../range\").Range;\nvar Mode = function () {\n this.HighlightRules = AdaHighlightRules;\n this.$behaviour = this.$defaultBehaviour;\n};\noop.inherits(Mode, TextMode);\n(function () {\n this.lineCommentStart = \"--\";\n this.getNextLineIndent = function (state, line, tab) {\n var indent = this.$getIndent(line);\n var tokenizedLine = this.getTokenizer().getLineTokens(line, state);\n var tokens = tokenizedLine.tokens;\n if (tokens.length && tokens[tokens.length - 1].type == \"comment\") {\n return indent;\n }\n if (state == \"start\") {\n var match = line.match(/^.*(begin|loop|then|is|do)\\s*$/);\n if (match) {\n indent += tab;\n }\n }\n return indent;\n };\n this.checkOutdent = function (state, line, input) {\n var complete_line = line + input;\n if (complete_line.match(/^\\s*(begin|end)$/)) {\n return true;\n }\n return false;\n };\n this.autoOutdent = function (state, session, row) {\n var line = session.getLine(row);\n var prevLine = session.getLine(row - 1);\n var prevIndent = this.$getIndent(prevLine).length;\n var indent = this.$getIndent(line).length;\n if (indent <= prevIndent) {\n return;\n }\n session.outdentRows(new Range(row, 0, row + 2, 0));\n };\n this.$id = \"ace/mode/ada\";\n}).call(Mode.prototype);\nexports.Mode = Mode;\n\n}); (function() {\n ace.require([\"ace/mode/ada\"], 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","AdaHighlightRules","keywords","builtinConstants","builtinFunctions","keywordMapper","TextMode","Range","Mode","state","line","tab","indent","tokenizedLine","tokens","match","input","complete_line","session","row","prevLine","prevIndent","m"],"mappings":"gaAAA,IAAI,OAAO,+BAA+B,CAAC,UAAU,UAAU,SAAS,cAAc,+BAA+B,EAAG,SAASA,EAASC,EAASC,EAAO,CAC1J,IAAIC,EAAMH,EAAQ,YAAY,EAC1BI,EAAqBJ,EAAQ,wBAAwB,EAAE,mBACvDK,EAAoB,UAAY,CAChC,IAAIC,EAAW,wcAKXC,EAAoB,kBACpBC,EAAoB,+CACpBC,EAAgB,KAAK,oBAAoB,CACzC,mBAAoBD,EACpB,QAAWF,EACX,oBAAqBC,CAC7B,EAAO,aAAc,EAAI,EACrB,KAAK,OAAS,CACV,MAAS,CAAC,CACF,MAAO,UACP,MAAO,OACvB,EAAe,CACC,MAAO,SACP,MAAO,OACvB,EAAe,CACC,MAAO,SACP,MAAO,KACvB,EAAe,CACC,MAAO,mBACP,MAAO,iDACvB,EAAe,CACC,MAAOE,EACP,MAAO,6BACvB,EAAe,CACC,MAAO,mBACP,MAAO,6DACvB,EAAe,CACC,MAAO,eACP,MAAO,OACvB,EAAe,CACC,MAAO,eACP,MAAO,OACvB,EAAe,CACC,MAAO,OACP,MAAO,MACvB,CAAa,CACb,CACA,EACAN,EAAI,SAASE,EAAmBD,CAAkB,EAClDH,EAAQ,kBAAoBI,CAE5B,CAAC,EAED,IAAI,OAAO,eAAe,CAAC,UAAU,UAAU,SAAS,cAAc,gBAAgB,+BAA+B,WAAW,EAAG,SAASL,EAASC,EAASC,EAAO,CACrK,IAAIC,EAAMH,EAAQ,YAAY,EAC1BU,EAAWV,EAAQ,QAAQ,EAAE,KAC7BK,EAAoBL,EAAQ,uBAAuB,EAAE,kBACrDW,EAAQX,EAAQ,UAAU,EAAE,MAC5BY,EAAO,UAAY,CACnB,KAAK,eAAiBP,EACtB,KAAK,WAAa,KAAK,iBAC3B,EACAF,EAAI,SAASS,EAAMF,CAAQ,EAC1B,UAAY,CACT,KAAK,iBAA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