"use strict";(self.webpackChunk_ytsaurus_ui=self.webpackChunk_ytsaurus_ui||[]).push([[9293],{14919:(e,t,n)=>{n.r(t),n.d(t,{conf:()=>s,language:()=>p});var o,c=n(68175),a=n(50449),s={comments:{lineComment:"--",blockComment:["```","```"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}]},r=m(a.RE),i=m(a.SL.filter((function(e){return/^\S*$/.test(e)}))),l=m(a.js),p={defaultToken:"text",brackets:[{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"{",close:"}",token:"delimiter.curly"}],keywords:a.RE,keywordsDouble:["".concat(u("GROUP"),"\\W+").concat(u("BY")),"".concat(u("ON"),"\\W+").concat(u("CLUSTER")),"".concat(u("ORDER"),"\\W+").concat(u("BY")),"".concat(u("LIMIT"),"\\W+\\d+\\W*,\\W*\\d+"),"".concat(u("LIMIT"),"\\W+\\d+\\W+").concat(u("BY"),"\\W+"),"".concat(u("LIMIT"),"\\W+\\d+"),"".concat(u("RENAME"),"\\W+").concat(u("TABLE")),"".concat(u("IF"),"\\W+").concat(u("NOT"),"\\W+").concat(u("EXISTS")),"".concat(u("IF"),"\\W+").concat(u("EXISTS")),"".concat(u("FORMAT"),"\\W+Vertical"),"".concat(u("FORMAT"),"\\W+JSONCompact"),"".concat(u("FORMAT"),"\\W+JSONEachRow"),"".concat(u("FORMAT"),"\\W+TSKV"),"".concat(u("FORMAT"),"\\W+TabSeparatedWithNames"),"".concat(u("FORMAT"),"\\W+TabSeparatedWithNamesAndTypes"),"".concat(u("FORMAT"),"\\W+TabSeparatedRaw"),"".concat(u("FORMAT"),"\\W+BlockTabSeparated"),"".concat(u("FORMAT"),"\\W+CSVWithNames"),"".concat(u("FORMAT"),"\\W+CSV"),"".concat(u("FORMAT"),"\\W+JSON"),"".concat(u("FORMAT"),"\\W+TabSeparated")].join("|"),typeKeywords:a.j4,typeKeywordsDouble:m((o=a.SL,o.filter((function(e){return/\s/.test(e)})).sort((function(e,t){return t.localeCompare(e)})))),constants:a.AA,builtinFunctions:a.g6,tableFunctions:a.m4,tableEngines:a.gI,operators:["+","-","/","//","%","<@>","@>","<@","&","^","~","<",">","<=","=>","==","!=","<>","="],symbols:/[=><!~?:&|+\-*/^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,variables:/[\w]+(?:\[[\w\]+]|[=-]>\w+)?/,tokenizer:{root:[{include:"@whitespace"},{include:"@comments"},{include:"@numbers"},{include:"@strings"},[/[$@:](@variables)/,"variable"],[/{(@variables)}/,"variable"],[/[?;,.]/,"delimiter"],[/[(){}[\]]/,"@brackets"],[/(\w+\.)*`\/\/(.*?)`/g,{token:"path"}],[/@keywordsDouble/,"keyword"],[/@typeKeywordsDouble/,"keyword.type"],[/[a-zA-Z_$][\w$]*/,{cases:(0,c.A)((0,c.A)((0,c.A)((0,c.A)((0,c.A)((0,c.A)((0,c.A)((0,c.A)((0,c.A)({},r,{token:"keyword"}),"@constants",{token:"constant"}),"@builtinFunctions",{token:"constant.other.color"}),l,{token:"constant.other.color"}),"@tableFunctions",{token:"constant.other.color"}),"@tableEngines",{token:"constant.other.color"}),"@typeKeywords",{token:"keyword.type"}),i,{token:"keyword.type"}),"@default","identifier")}],[/@symbols/,{cases:{"@operators":"operator.sql","@default":""}}]],whitespace:[[/\s+/,"white"]],comments:[[/--+.*/,"comment"],[/\/\*/,{token:"comment.quote",next:"@cppComment"}]],comment:[[/[^`]+/,"comment"],[/./,"comment"]],cppComment:[[/[^*/]+/,"comment"],[/./,"comment"]],numbers:[[/[+-]?\d+(?:(?:\.\d*)?(?:[eE][+-]?\d+)?)?\b/,"number"]],strings:[[/'/,{token:"string",next:"@stringSingle"}],[/"/,{token:"string.tablepath",next:"@stringDouble"}]],stringSingle:[[/[^\\']/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/'/,{token:"string",next:"@pop"}]],stringDouble:[[/[^\\"]/,"string.tablepath"],[/@escapes/,"string.tablepath"],[/\\./,"string.tablepath"],[/"/,{token:"string.tablepath",next:"@pop"}]]}};function u(e){return e.split("").map((function(e){return/[a-zA-Z]/.test(e)?"[".concat(e.toLowerCase()).concat(e.toUpperCase(),"]"):e})).join("")}function m(e){return"(".concat(e.map((function(e){return u(e).replace(/\s+/g,"\\s")})).join("|"),")")}}}]);
//# sourceMappingURL=yql-lang-clickhouse.7ef979ea.chunk.js.map