1 |
- {"version":3,"file":"mode-partiql-d3c24937.js","sources":["../../node_modules/ace-builds/src-noconflict/mode-partiql.js"],"sourcesContent":["ace.define(\"ace/mode/ion_highlight_rules\",[\"require\",\"exports\",\"module\",\"ace/lib/oop\",\"ace/mode/text_highlight_rules\"], function(require, exports, module){/*\n THIS FILE WAS GENERATED BY 'ligand' USING 'mode_highlight_rules.js'\n*/\n\"use strict\";\nvar oop = require(\"../lib/oop\");\nvar TextHighlightRules = require(\"./text_highlight_rules\").TextHighlightRules;\nvar IonHighlightRules = function () {\n var k_keywords_bool = \"TRUE|FALSE\";\n var k_bool = k_keywords_bool;\n var k_keywords_null = \"NULL.NULL|NULL.BOOL|NULL.INT|NULL.FLOAT|NULL.DECIMAL|NULL.TIMESTAMP|NULL.STRING|NULL.SYMBOL|NULL.BLOB|NULL.CLOB|\"\n + \"NULL.STRUCT|NULL.LIST|NULL.SEXP|NULL\";\n var k_null = k_keywords_null;\n var keywordMapper = this.createKeywordMapper({\n \"constant.language.bool.ion\": k_bool,\n \"constant.language.null.ion\": k_null\n }, \"constant.other.symbol.identifier.ion\", true);\n var keywordMapperRule = {\n token: keywordMapper,\n regex: \"\\\\b\\\\w+(?:\\\\.\\\\w+)?\\\\b\"\n };\n this.$rules = {\n \"start\": [\n {\n \"include\": \"value\"\n }\n ],\n \"value\": [\n {\n \"include\": \"whitespace\"\n },\n {\n \"include\": \"comment\"\n },\n {\n \"include\": \"annotation\"\n },\n {\n \"include\": \"string\"\n },\n {\n \"include\": \"number\"\n },\n {\n \"include\": \"keywords\"\n },\n {\n \"include\": \"symbol\"\n },\n {\n \"include\": \"clob\"\n },\n {\n \"include\": \"blob\"\n },\n {\n \"include\": \"struct\"\n },\n {\n \"include\": \"list\"\n },\n {\n \"include\": \"sexp\"\n }\n ],\n \"sexp\": [\n {\n \"token\": \"punctuation.definition.sexp.begin.ion\",\n \"regex\": \"\\\\(\",\n \"push\": [\n {\n \"token\": \"punctuation.definition.sexp.end.ion\",\n \"regex\": \"\\\\)\",\n \"next\": \"pop\"\n },\n {\n \"include\": \"comment\"\n },\n {\n \"include\": \"value\"\n },\n {\n \"token\": \"storage.type.symbol.operator.ion\",\n \"regex\": \"[\\\\!\\\\#\\\\%\\\\&\\\\*\\\\+\\\\-\\\\./\\\\;\\\\<\\\\=\\\\>\\\\?\\\\@\\\\^\\\\`\\\\|\\\\~]+\"\n }\n ]\n }\n ],\n \"comment\": [\n {\n \"token\": \"comment.line.ion\",\n \"regex\": \"//[^\\\\n]*\"\n },\n {\n \"token\": \"comment.block.ion\",\n \"regex\": \"/\\\\*\",\n \"push\": [\n {\n \"token\": \"comment.block.ion\",\n \"regex\": \"[*]/\",\n \"next\": \"pop\"\n },\n {\n \"token\": \"comment.block.ion\",\n \"regex\": \"[^*/]+\"\n },\n {\n \"token\": \"comment.block.ion\",\n \"regex\": \"[*/]+\"\n }\n ]\n }\n ],\n \"list\": [\n {\n \"token\": \"punctuation.definition.list.begin.ion\",\n \"regex\": \"\\\\[\",\n \"push\": [\n {\n \"token\": \"punctuation.definition.list.end.ion\",\n \"regex\": \"\\\\]\",\n \"next\": \"pop\"\n },\n {\n \"include\": \"comment\"\n },\n {\n \"include\": \"value\"\n },\n {\n \"token\": \"punctuation.definition.list.separator.ion\",\n \"regex\": \",\"\n }\n ]\n }\n ],\n \"struct\": [\n {\n \"token\": \"punctuation.definition.struct.begin.ion\",\n \"regex\": \"\\\\{\",\n \"push\": [\n {\n \"token\": \"punctuation.definition.struct.end.ion\",\n \"regex\": \"\\\\}\",\n \"next\": \"pop\"\n },\n {\n \"include\": \"comment\"\n },\n {\n \"include\": \"value\"\n },\n {\n \"token\": \"punctuation.definition.struct.separator.ion\",\n \"regex\": \",|:\"\n }\n ]\n }\n ],\n \"blob\": [\n {\n \"token\": [\n \"punctuation.definition.blob.begin.ion\",\n \"string.other.blob.ion\",\n \"punctuation.definition.blob.end.ion\"\n ],\n \"regex\": \"(\\\\{\\\\{)([^\\\"]*)(\\\\}\\\\})\"\n }\n ],\n \"clob\": [\n {\n \"token\": [\n \"punctuation.definition.clob.begin.ion\",\n \"string.other.clob.ion\",\n \"punctuation.definition.clob.end.ion\"\n ],\n \"regex\": \"(\\\\{\\\\{)(\\\"[^\\\"]*\\\")(\\\\}\\\\})\"\n }\n ],\n \"symbol\": [\n {\n \"token\": \"storage.type.symbol.quoted.ion\",\n \"regex\": \"(['])((?:(?:\\\\\\\\')|(?:[^']))*?)(['])\"\n },\n {\n \"token\": \"storage.type.symbol.identifier.ion\",\n \"regex\": \"[\\\\$_a-zA-Z][\\\\$_a-zA-Z0-9]*\"\n }\n ],\n \"number\": [\n {\n \"token\": \"constant.numeric.timestamp.ion\",\n \"regex\": \"\\\\d{4}(?:-\\\\d{2})?(?:-\\\\d{2})?T(?:\\\\d{2}:\\\\d{2})(?::\\\\d{2})?(?:\\\\.\\\\d+)?(?:Z|[-+]\\\\d{2}:\\\\d{2})?\"\n },\n {\n \"token\": \"constant.numeric.timestamp.ion\",\n \"regex\": \"\\\\d{4}-\\\\d{2}-\\\\d{2}T?\"\n },\n {\n \"token\": \"constant.numeric.integer.binary.ion\",\n \"regex\": \"-?0[bB][01](?:_?[01])*\"\n },\n {\n \"token\": \"constant.numeric.integer.hex.ion\",\n \"regex\": \"-?0[xX][0-9a-fA-F](?:_?[0-9a-fA-F])*\"\n },\n {\n \"token\": \"constant.numeric.float.ion\",\n \"regex\": \"-?(?:0|[1-9](?:_?\\\\d)*)(?:\\\\.(?:\\\\d(?:_?\\\\d)*)?)?(?:[eE][+-]?\\\\d+)\"\n },\n {\n \"token\": \"constant.numeric.float.ion\",\n \"regex\": \"(?:[-+]inf)|(?:nan)\"\n },\n {\n \"token\": \"constant.numeric.decimal.ion\",\n \"regex\": \"-?(?:0|[1-9](?:_?\\\\d)*)(?:(?:(?:\\\\.(?:\\\\d(?:_?\\\\d)*)?)(?:[dD][+-]?\\\\d+)|\\\\.(?:\\\\d(?:_?\\\\d)*)?)|(?:[dD][+-]?\\\\d+))\"\n },\n {\n \"token\": \"constant.numeric.integer.ion\",\n \"regex\": \"-?(?:0|[1-9](?:_?\\\\d)*)\"\n }\n ],\n \"string\": [\n {\n \"token\": [\n \"punctuation.definition.string.begin.ion\",\n \"string.quoted.double.ion\",\n \"punctuation.definition.string.end.ion\"\n ],\n \"regex\": \"([\\\"])((?:(?:\\\\\\\\\\\")|(?:[^\\\"]))*?)([\\\"])\"\n },\n {\n \"token\": \"punctuation.definition.string.begin.ion\",\n \"regex\": \"'{3}\",\n \"push\": [\n {\n \"token\": \"punctuation.definition.string.end.ion\",\n \"regex\": \"'{3}\",\n \"next\": \"pop\"\n },\n {\n \"token\": \"string.quoted.triple.ion\",\n \"regex\": \"(?:\\\\\\\\'|[^'])+\"\n },\n {\n \"token\": \"string.quoted.triple.ion\",\n \"regex\": \"'\"\n }\n ]\n }\n ],\n \"annotation\": [\n {\n \"token\": [\n \"variable.language.annotation.ion\",\n \"punctuation.definition.annotation.ion\"\n ],\n \"regex\": /('(?:[^'\\\\]|\\\\.)*')\\s*(::)/\n },\n {\n \"token\": [\n \"variable.language.annotation.ion\",\n \"punctuation.definition.annotation.ion\"\n ],\n \"regex\": \"([\\\\$_a-zA-Z][\\\\$_a-zA-Z0-9]*)\\\\s*(::)\"\n }\n ],\n \"whitespace\": [\n {\n \"token\": \"text.ion\",\n \"regex\": \"\\\\s+\"\n }\n ]\n };\n this.$rules[\"keywords\"] = [keywordMapperRule];\n this.normalizeRules();\n};\noop.inherits(IonHighlightRules, TextHighlightRules);\nexports.IonHighlightRules = IonHighlightRules;\n\n});\n\nace.define(\"ace/mode/partiql_highlight_rules\",[\"require\",\"exports\",\"module\",\"ace/lib/oop\",\"ace/mode/text_highlight_rules\",\"ace/mode/ion_highlight_rules\"], function(require, exports, module){/*\n THIS FILE WAS GENERATED BY 'ligand' USING 'mode_highlight_rules.js'\n*/\n\"use strict\";\nvar oop = require(\"../lib/oop\");\nvar TextHighlightRules = require(\"./text_highlight_rules\").TextHighlightRules;\nvar IonHighlightRules = require(\"./ion_highlight_rules\").IonHighlightRules;\nvar PartiqlHighlightRules = function () {\n var k_partiql_constant = \"MISSING\";\n var k_sql_constant = \"FALSE|NULL|TRUE\";\n var k_constant = k_partiql_constant + \"|\" + k_sql_constant;\n var k_partiql_keyword = \"PIVOT|UNPIVOT|LIMIT|TUPLE|REMOVE|INDEX|CONFLICT|DO|NOTHING|RETURNING|\"\n + \"MODIFIED|NEW|OLD|LET\";\n var k_sql_keyword = \"ABSOLUTE|ACTION|ADD|ALL|ALLOCATE|ALTER|AND|ANY|ARE|AS|\"\n + \"ASC|ASSERTION|AT|AUTHORIZATION|BEGIN|BETWEEN|BIT_LENGTH|BY|CASCADE|CASCADED|\"\n + \"CASE|CATALOG|CHAR|CHARACTER_LENGTH|CHAR_LENGTH|CHECK|CLOSE|COLLATE|COLLATION|COLUMN|\"\n + \"COMMIT|CONNECT|CONNECTION|CONSTRAINT|CONSTRAINTS|CONTINUE|CONVERT|CORRESPONDING|CREATE|CROSS|\"\n + \"CURRENT|CURSOR|DEALLOCATE|DEC|DECLARE|DEFAULT|DEFERRABLE|DEFERRED|DELETE|DESC|\"\n + \"DESCRIBE|DESCRIPTOR|DIAGNOSTICS|DISCONNECT|DISTINCT|DOMAIN|DROP|ELSE|END|END-EXEC|\"\n + \"ESCAPE|EXCEPT|EXCEPTION|EXEC|EXECUTE|EXTERNAL|EXTRACT|FETCH|FIRST|FOR|\"\n + \"FOREIGN|FOUND|FROM|FULL|GET|GLOBAL|GO|GOTO|GRANT|GROUP|\"\n + \"HAVING|IDENTITY|IMMEDIATE|IN|INDICATOR|INITIALLY|INNER|INPUT|INSENSITIVE|INSERT|\"\n + \"INTERSECT|INTERVAL|INTO|IS|ISOLATION|JOIN|KEY|LANGUAGE|LAST|LEFT|\"\n + \"LEVEL|LIKE|LOCAL|LOWER|MATCH|MODULE|NAMES|NATIONAL|NATURAL|NCHAR|\"\n + \"NEXT|NO|NOT|OCTET_LENGTH|OF|ON|ONLY|OPEN|OPTION|OR|\"\n + \"ORDER|OUTER|OUTPUT|OVERLAPS|PAD|PARTIAL|POSITION|PRECISION|PREPARE|PRESERVE|\"\n + \"PRIMARY|PRIOR|PRIVILEGES|PROCEDURE|PUBLIC|READ|REAL|REFERENCES|RELATIVE|RESTRICT|\"\n + \"REVOKE|RIGHT|ROLLBACK|ROWS|SCHEMA|SCROLL|SECTION|SELECT|SESSION|SET|\"\n + \"SIZE|SOME|SPACE|SQL|SQLCODE|SQLERROR|SQLSTATE|TABLE|TEMPORARY|THEN|\"\n + \"TIME|TO|TRANSACTION|TRANSLATE|TRANSLATION|UNION|UNIQUE|UNKNOWN|UPDATE|UPPER|\"\n + \"USAGE|USER|USING|VALUE|VALUES|VIEW|WHEN|WHENEVER|WHERE|WITH|\"\n + \"WORK|WRITE|ZONE\";\n var k_keyword = k_partiql_keyword + \"|\" + k_sql_keyword;\n var k_partiql_type = \"BOOL|BOOLEAN|STRING|SYMBOL|CLOB|BLOB|STRUCT|LIST|SEXP|BAG\";\n var k_sql_type = \"CHARACTER|DATE|DECIMAL|DOUBLE|FLOAT|INT|INTEGER|NUMERIC|SMALLINT|TIMESTAMP|\"\n + \"VARCHAR|VARYING\";\n var k_type = k_partiql_type + \"|\" + k_sql_type;\n var k_sql_aggfn = \"AVG|COUNT|MAX|MIN|SUM\";\n var k_aggfn = k_sql_aggfn;\n var k_sql_fn = \"CAST|COALESCE|CURRENT_DATE|CURRENT_TIME|CURRENT_TIMESTAMP|CURRENT_USER|EXISTS|DATE_ADD|DATE_DIFF|NULLIF|\"\n + \"SESSION_USER|SUBSTRING|SYSTEM_USER|TRIM\";\n var k_fn = k_sql_fn;\n var keywordMapper = this.createKeywordMapper({\n \"constant.language.partiql\": k_constant,\n \"keyword.other.partiql\": k_keyword,\n \"storage.type.partiql\": k_type,\n \"support.function.aggregation.partiql\": k_aggfn,\n \"support.function.partiql\": k_fn\n }, \"variable.language.identifier.partiql\", true);\n var keywordMapperRule = {\n token: keywordMapper,\n regex: \"\\\\b\\\\w+\\\\b\"\n };\n this.$rules = {\n \"start\": [\n {\n \"include\": \"whitespace\"\n },\n {\n \"include\": \"comment\"\n },\n {\n \"include\": \"value\"\n }\n ],\n \"value\": [\n {\n \"include\": \"whitespace\"\n },\n {\n \"include\": \"comment\"\n },\n {\n \"include\": \"tuple_value\"\n },\n {\n \"include\": \"collection_value\"\n },\n {\n \"include\": \"scalar_value\"\n }\n ],\n \"scalar_value\": [\n {\n \"include\": \"string\"\n },\n {\n \"include\": \"number\"\n },\n {\n \"include\": \"keywords\"\n },\n {\n \"include\": \"identifier\"\n },\n {\n \"include\": \"embed-ion\"\n },\n {\n \"include\": \"operator\"\n },\n {\n \"include\": \"punctuation\"\n }\n ],\n \"punctuation\": [\n {\n \"token\": \"punctuation.partiql\",\n \"regex\": \"[;:()\\\\[\\\\]\\\\{\\\\},.]\"\n }\n ],\n \"operator\": [\n {\n \"token\": \"keyword.operator.partiql\",\n \"regex\": \"[+*/<>=~!@#%&|?^-]+\"\n }\n ],\n \"identifier\": [\n {\n \"token\": \"variable.language.identifier.quoted.partiql\",\n \"regex\": \"([\\\"])((?:(?:\\\\\\\\.)|(?:[^\\\"\\\\\\\\]))*?)([\\\"])\"\n },\n {\n \"token\": \"variable.language.identifier.at.partiql\",\n \"regex\": \"@\\\\w+\"\n },\n {\n \"token\": \"variable.language.identifier.partiql\",\n \"regex\": \"\\\\b\\\\w+(?:\\\\.\\\\w+)?\\\\b\"\n }\n ],\n \"number\": [\n {\n \"token\": \"constant.numeric.partiql\",\n \"regex\": \"[+-]?\\\\d+(?:(?:\\\\.\\\\d*)?(?:[eE][+-]?\\\\d+)?)?\\\\b\"\n }\n ],\n \"string\": [\n {\n \"token\": [\n \"punctuation.definition.string.begin.partiql\",\n \"string.quoted.single.partiql\",\n \"punctuation.definition.string.end.partiql\"\n ],\n \"regex\": \"(['])((?:(?:\\\\\\\\.)|(?:[^'\\\\\\\\]))*?)(['])\"\n }\n ],\n \"collection_value\": [\n {\n \"include\": \"array_value\"\n },\n {\n \"include\": \"bag_value\"\n }\n ],\n \"bag_value\": [\n {\n \"token\": \"punctuation.definition.bag.begin.partiql\",\n \"regex\": \"<<\",\n \"push\": [\n {\n \"token\": \"punctuation.definition.bag.end.partiql\",\n \"regex\": \">>\",\n \"next\": \"pop\"\n },\n {\n \"include\": \"comment\"\n },\n {\n \"token\": \"punctuation.definition.bag.separator.partiql\",\n \"regex\": \",\"\n },\n {\n \"include\": \"value\"\n }\n ]\n }\n ],\n \"comment\": [\n {\n \"token\": \"comment.line.partiql\",\n \"regex\": \"--.*\"\n },\n {\n \"token\": \"comment.block.partiql\",\n \"regex\": \"/\\\\*\",\n \"push\": \"comment__1\"\n }\n ],\n \"comment__1\": [\n {\n \"token\": \"comment.block.partiql\",\n \"regex\": \"[*]/\",\n \"next\": \"pop\"\n },\n {\n \"token\": \"comment.block.partiql\",\n \"regex\": \"[^*/]+\"\n },\n {\n \"token\": \"comment.block.partiql\",\n \"regex\": \"/\\\\*\",\n \"push\": \"comment__1\"\n },\n {\n \"token\": \"comment.block.partiql\",\n \"regex\": \"[*/]+\"\n }\n ],\n \"array_value\": [\n {\n \"token\": \"punctuation.definition.array.begin.partiql\",\n \"regex\": \"\\\\[\",\n \"push\": [\n {\n \"token\": \"punctuation.definition.array.end.partiql\",\n \"regex\": \"\\\\]\",\n \"next\": \"pop\"\n },\n {\n \"include\": \"comment\"\n },\n {\n \"token\": \"punctuation.definition.array.separator.partiql\",\n \"regex\": \",\"\n },\n {\n \"include\": \"value\"\n }\n ]\n }\n ],\n \"tuple_value\": [\n {\n \"token\": \"punctuation.definition.tuple.begin.partiql\",\n \"regex\": \"\\\\{\",\n \"push\": [\n {\n \"token\": \"punctuation.definition.tuple.end.partiql\",\n \"regex\": \"\\\\}\",\n \"next\": \"pop\"\n },\n {\n \"include\": \"comment\"\n },\n {\n \"token\": \"punctuation.definition.tuple.separator.partiql\",\n \"regex\": \",|:\"\n },\n {\n \"include\": \"value\"\n }\n ]\n }\n ],\n \"whitespace\": [\n {\n \"token\": \"text.partiql\",\n \"regex\": \"\\\\s+\"\n }\n ]\n };\n this.$rules[\"keywords\"] = [keywordMapperRule];\n this.$rules[\"embed-ion\"] = [{ token: \"punctuation.definition.ion.begin.partiql\", regex: \"`\", next: \"ion-start\" }];\n this.embedRules(IonHighlightRules, \"ion-\", [{ token: \"punctuation.definition.ion.end.partiql\", regex: \"`\", next: \"start\" }]);\n this.normalizeRules();\n};\noop.inherits(PartiqlHighlightRules, TextHighlightRules);\nexports.PartiqlHighlightRules = PartiqlHighlightRules;\n\n});\n\nace.define(\"ace/mode/matching_brace_outdent\",[\"require\",\"exports\",\"module\",\"ace/range\"], function(require, exports, module){\"use strict\";\nvar Range = require(\"../range\").Range;\nvar MatchingBraceOutdent = function () { };\n(function () {\n this.checkOutdent = function (line, input) {\n if (!/^\\s+$/.test(line))\n return false;\n return /^\\s*\\}/.test(input);\n };\n this.autoOutdent = function (doc, row) {\n var line = doc.getLine(row);\n var match = line.match(/^(\\s*\\})/);\n if (!match)\n return 0;\n var column = match[1].length;\n var openBracePos = doc.findMatchingBracket({ row: row, column: column });\n if (!openBracePos || openBracePos.row == row)\n return 0;\n var indent = this.$getIndent(doc.getLine(openBracePos.row));\n doc.replace(new Range(row, 0, row, column - 1), indent);\n };\n this.$getIndent = function (line) {\n return line.match(/^\\s*/)[0];\n };\n}).call(MatchingBraceOutdent.prototype);\nexports.MatchingBraceOutdent = MatchingBraceOutdent;\n\n});\n\nace.define(\"ace/mode/folding/cstyle\",[\"require\",\"exports\",\"module\",\"ace/lib/oop\",\"ace/range\",\"ace/mode/folding/fold_mode\"], function(require, exports, module){\"use strict\";\nvar oop = require(\"../../lib/oop\");\nvar Range = require(\"../../range\").Range;\nvar BaseFoldMode = require(\"./fold_mode\").FoldMode;\nvar FoldMode = exports.FoldMode = function (commentRegex) {\n if (commentRegex) {\n this.foldingStartMarker = new RegExp(this.foldingStartMarker.source.replace(/\\|[^|]*?$/, \"|\" + commentRegex.start));\n this.foldingStopMarker = new RegExp(this.foldingStopMarker.source.replace(/\\|[^|]*?$/, \"|\" + commentRegex.end));\n }\n};\noop.inherits(FoldMode, BaseFoldMode);\n(function () {\n this.foldingStartMarker = /([\\{\\[\\(])[^\\}\\]\\)]*$|^\\s*(\\/\\*)/;\n this.foldingStopMarker = /^[^\\[\\{\\(]*([\\}\\]\\)])|^[\\s\\*]*(\\*\\/)/;\n this.singleLineBlockCommentRe = /^\\s*(\\/\\*).*\\*\\/\\s*$/;\n this.tripleStarBlockCommentRe = /^\\s*(\\/\\*\\*\\*).*\\*\\/\\s*$/;\n this.startRegionRe = /^\\s*(\\/\\*|\\/\\/)#?region\\b/;\n this._getFoldWidgetBase = this.getFoldWidget;\n this.getFoldWidget = function (session, foldStyle, row) {\n var line = session.getLine(row);\n if (this.singleLineBlockCommentRe.test(line)) {\n if (!this.startRegionRe.test(line) && !this.tripleStarBlockCommentRe.test(line))\n return \"\";\n }\n var fw = this._getFoldWidgetBase(session, foldStyle, row);\n if (!fw && this.startRegionRe.test(line))\n return \"start\"; // lineCommentRegionStart\n return fw;\n };\n this.getFoldWidgetRange = function (session, foldStyle, row, forceMultiline) {\n var line = session.getLine(row);\n if (this.startRegionRe.test(line))\n return this.getCommentRegionBlock(session, line, row);\n var match = line.match(this.foldingStartMarker);\n if (match) {\n var i = match.index;\n if (match[1])\n return this.openingBracketBlock(session, match[1], row, i);\n var range = session.getCommentFoldRange(row, i + match[0].length, 1);\n if (range && !range.isMultiLine()) {\n if (forceMultiline) {\n range = this.getSectionRange(session, row);\n }\n else if (foldStyle != \"all\")\n range = null;\n }\n return range;\n }\n if (foldStyle === \"markbegin\")\n return;\n var match = line.match(this.foldingStopMarker);\n if (match) {\n var i = match.index + match[0].length;\n if (match[1])\n return this.closingBracketBlock(session, match[1], row, i);\n return session.getCommentFoldRange(row, i, -1);\n }\n };\n this.getSectionRange = function (session, row) {\n var line = session.getLine(row);\n var startIndent = line.search(/\\S/);\n var startRow = row;\n var startColumn = line.length;\n row = row + 1;\n var endRow = row;\n var maxRow = session.getLength();\n while (++row < maxRow) {\n line = session.getLine(row);\n var indent = line.search(/\\S/);\n if (indent === -1)\n continue;\n if (startIndent > indent)\n break;\n var subRange = this.getFoldWidgetRange(session, \"all\", row);\n if (subRange) {\n if (subRange.start.row <= startRow) {\n break;\n }\n else if (subRange.isMultiLine()) {\n row = subRange.end.row;\n }\n else if (startIndent == indent) {\n break;\n }\n }\n endRow = row;\n }\n return new Range(startRow, startColumn, endRow, session.getLine(endRow).length);\n };\n this.getCommentRegionBlock = function (session, line, row) {\n var startColumn = line.search(/\\s*$/);\n var maxRow = session.getLength();\n var startRow = row;\n var re = /^\\s*(?:\\/\\*|\\/\\/|--)#?(end)?region\\b/;\n var depth = 1;\n while (++row < maxRow) {\n line = session.getLine(row);\n var m = re.exec(line);\n if (!m)\n continue;\n if (m[1])\n depth--;\n else\n depth++;\n if (!depth)\n break;\n }\n var endRow = row;\n if (endRow > startRow) {\n return new Range(startRow, startColumn, endRow, line.length);\n }\n };\n}).call(FoldMode.prototype);\n\n});\n\nace.define(\"ace/mode/partiql\",[\"require\",\"exports\",\"module\",\"ace/lib/oop\",\"ace/mode/text\",\"ace/mode/partiql_highlight_rules\",\"ace/mode/matching_brace_outdent\",\"ace/mode/folding/cstyle\"], function(require, exports, module){/*\n THIS FILE WAS GENERATED BY 'ligand' USING 'mode.js'\n*/\n\"use strict\";\nvar oop = require(\"../lib/oop\");\nvar TextMode = require(\"./text\").Mode;\nvar HighlightRules = require(\"./partiql_highlight_rules\").PartiqlHighlightRules;\nvar MatchingBraceOutdent = require(\"./matching_brace_outdent\").MatchingBraceOutdent;\nvar CStyleFoldMode = require(\"./folding/cstyle\").FoldMode;\nvar Mode = function () {\n this.HighlightRules = HighlightRules;\n this.$outdent = new MatchingBraceOutdent();\n this.$behaviour = this.$defaultBehaviour;\n this.foldingRules = new CStyleFoldMode();\n};\noop.inherits(Mode, TextMode);\n(function () {\n this.lineCommentStart = \"--\";\n this.blockComment = {\n start: \"/*\",\n end: \"*/\",\n nestable: true\n };\n this.getNextLineIndent = function (state, line, tab) {\n var indent = this.$getIndent(line);\n if (state == \"start\") {\n var match = line.match(/^.*[\\{\\(\\[]\\s*$/);\n if (match) {\n indent += tab;\n }\n }\n return indent;\n };\n this.checkOutdent = function (state, line, input) {\n return this.$outdent.checkOutdent(line, input);\n };\n this.autoOutdent = function (state, doc, row) {\n this.$outdent.autoOutdent(doc, row);\n };\n this.$id = \"ace/mode/partiql\";\n}).call(Mode.prototype);\nexports.Mode = Mode;\n\n}); (function() {\n ace.require([\"ace/mode/partiql\"], 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","IonHighlightRules","k_keywords_bool","k_bool","k_keywords_null","k_null","keywordMapper","keywordMapperRule","PartiqlHighlightRules","k_partiql_constant","k_sql_constant","k_constant","k_partiql_keyword","k_sql_keyword","k_keyword","k_partiql_type","k_sql_type","k_type","k_sql_aggfn","k_aggfn","k_sql_fn","k_fn","Range","MatchingBraceOutdent","line","input","doc","row","match","column","openBracePos","indent","BaseFoldMode","FoldMode","commentRegex","session","foldStyle","fw","forceMultiline","i","range","startIndent","startRow","startColumn","endRow","maxRow","subRange","re","depth","m","TextMode","HighlightRules","CStyleFoldMode","Mode","state","tab"],"mappings":"gaAAA,IAAI,OAAO,+BAA+B,CAAC,UAAU,UAAU,SAAS,cAAc,+BAA+B,EAAG,SAASA,EAASC,EAASC,EAAO,CAI1J,IAAIC,EAAMH,EAAQ,YAAY,EAC1BI,EAAqBJ,EAAQ,wBAAwB,EAAE,mBACvDK,EAAoB,UAAY,CAChC,IAAIC,EAAkB,aAClBC,EAASD,EACTE,EAAkB,uJAElBC,EAASD,EACTE,EAAgB,KAAK,oBAAoB,CACzC,6BAA8BH,EAC9B,6BAA8BE,CACtC,EAAO,uCAAwC,EAAI,EAC3CE,EAAoB,CACpB,MAAOD,EACP,MAAO,wBACf,EACI,KAAK,OAAS,CACV,MAAS,CACL,CACI,QAAW,OACd,CACJ,EACD,MAAS,CACL,CACI,QAAW,YACd,EACD,CACI,QAAW,SACd,EACD,CACI,QAAW,YACd,EACD,CACI,QAAW,QACd,EACD,CACI,QAAW,QACd,EACD,CACI,QAAW,UACd,EACD,CACI,QAAW,QACd,EACD,CACI,QAAW,MACd,EACD,CACI,QAAW,MACd,EACD,CACI,QAAW,QACd,EACD,CACI,QAAW,MACd,EACD,CACI,QAAW,MACd,CACJ,EACD,KAAQ,CACJ,CACI,MAAS,wCACT,MAAS,MACT,KAAQ,CACJ,CACI,MAAS,sCACT,MAAS,MACT,KAAQ,KACX,EACD,CACI,QAAW,SACd,EACD,CACI,QAAW,OACd,EACD,CACI,MAAS,mCACT,MAAS,4DACZ,CACJ,CACJ,CACJ,EACD,QAAW,CACP,CACI,MAAS,mBACT,MAAS,WACZ,EACD,CACI,MAAS,oBACT,MAAS,OACT,KAAQ,CACJ,CACI,MAAS,oBACT,MAAS,OACT,KAAQ,KACX,EACD,CACI,MAAS,oBACT,MAAS,QACZ,EACD,CACI,MAAS,oBACT,MAAS,OACZ,CACJ,CACJ,CACJ,EACD,KAAQ,CACJ,CACI,MAAS,wCACT,MAAS,MACT,KAAQ,CACJ,CACI,MAAS,sCACT,MAAS,MACT,KAAQ,KACX,EACD,CACI,QAAW,SACd,EACD,CACI,QAAW,OACd,EACD,CACI,MAAS,4CACT,MAAS,GACZ,CACJ,CACJ,CACJ,EACD,OAAU,CACN,CACI,MAAS,0CACT,MAAS,MACT,KAAQ,CACJ,CACI,MAAS,wCACT,MAAS,MACT,KAAQ,KACX,EACD,CACI,QAAW,SACd,EACD,CACI,QAAW,OACd,EACD,CACI,MAAS,8CACT,MAAS,KACZ,CACJ,CACJ,CACJ,EACD,KAAQ,CACJ,CACI,MAAS,CACL,wCACA,wBACA,qCACH,EACD,MAAS,yBACZ,CACJ,EACD,KAAQ,CACJ,CACI,MAAS,CACL,wCACA,wBACA,qC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C,EAAaF,EAAqB,IAAMC,EACxCE,EAAoB,4FAEpBC,EAAgB,mxCAmBhBC,EAAYF,EAAoB,IAAMC,EACtCE,EAAiB,4DACjBC,EAAa,6FAEbC,EAASF,EAAiB,IAAMC,EAChCE,EAAc,wBACdC,EAAUD,EACVE,EAAW,kJAEXC,EAAOD,EACPd,EAAgB,KAAK,oBAAoB,CACzC,4BAA6BK,EAC7B,wBAAyBG,EACzB,uBAAwBG,EACxB,uCAAwCE,EACxC,2BAA4BE,CACpC,EAAO,uCAAwC,EAAI,EAC3Cd,EAAoB,CACpB,MAAOD,EACP,MAAO,YACf,EACI,KAAK,OAAS,CACV,MAAS,CACL,CACI,QAAW,YACd,EACD,CACI,QAAW,SACd,EACD,CACI,QAAW,OACd,CACJ,EACD,MAAS,CACL,CACI,QAAW,YACd,EACD,CACI,QAAW,SACd,EACD,CACI,QAAW,aACd,EACD,CACI,QAAW,kBACd,EACD,CACI,QAAW,cACd,CACJ,EACD,aAAgB,CACZ,CACI,QAAW,QACd,EACD,CACI,QAAW,QACd,EACD,CACI,QAAW,UACd,EACD,CACI,QAAW,YACd,EACD,CACI,QAAW,WACd,EACD,CACI,QAAW,UACd,EACD,CACI,QAAW,aACd,CACJ,EACD,YAAe,CACX,CACI,MAAS,sBACT,MAAS,sBACZ,CACJ,EACD,SAAY,CACR,CACI,MAAS,2BACT,MAAS,qBACZ,CACJ,EACD,WAAc,CACV,CACI,MAAS,8CACT,MAAS,0CACZ,EACD,CACI,MAAS,0CACT,MAAS,OACZ,EACD,CACI,MAAS,uCACT,MAAS,wBACZ,CACJ,EACD,OAAU,CACN,CACI,MAAS,2BACT,MAAS,iDACZ,CACJ,EACD,OAAU,CACN,CACI,MAAS,CACL,8CACA,+BACA,2CACH,EACD,MAAS,0CACZ,CACJ,EACD,iBAAoB,CAChB,CACI,QAAW,aACd,EACD,CACI,QAAW,WACd,CACJ,EACD,UAAa,CACT,CACI,MAAS,2CACT,MAAS,KACT,KAAQ,CACJ,CACI,M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