planche 0.5.3 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +39 -0
- package/app/_headers +19 -0
- package/app/assets/AboutDialog-HsaLhYrq.js +1 -0
- package/app/assets/ConnectDialog-DAYnaSzA.js +1 -0
- package/app/assets/CopyDatabaseDialog-DCDkX1Zt.js +1 -0
- package/app/assets/CopyTableDialog-BylicT1d.js +1 -0
- package/app/assets/CreateDatabaseDialog-i7_uV-wh.js +1 -0
- package/app/assets/DataDiffDialog-B4SeJXry.js +1 -0
- package/app/assets/DownloadToCSVDialog-jX0lEP8B.js +3 -0
- package/app/assets/EditSchemaDialog-BVOHVgBR.js +1 -0
- package/app/assets/FindReplaceDialog-B0rD26fg.js +1 -0
- package/app/assets/FlushDialog-CNu4QuYo.js +1 -0
- package/app/assets/LinkColumnDialog-BwUBtMiy.js +1 -0
- package/app/assets/LocalHistoryDialog-DUlsyn8i.js +1 -0
- package/app/assets/ProcessListDialog-Chv324I7.js +1 -0
- package/app/assets/QuickCommandPalette-BG5A7y3V.js +1 -0
- package/app/assets/RowFormDialog-C5agNu3l.js +2 -0
- package/app/assets/SafetySettingsDialog-iaN6H-EP.js +1 -0
- package/app/assets/SchemaDiffDialog-D7re7sup.js +7 -0
- package/app/assets/SchemaToHTMLDialog-Biq3ELkl.js +27 -0
- package/app/assets/StatusDialog-D8CcfFkP.js +1 -0
- package/app/assets/TermsDialog-DbHxb0ld.js +1 -0
- package/app/assets/UserAddDialog-B_fz-cXy.js +1 -0
- package/app/assets/UserManagerDialog-ku7exEzu.js +1 -0
- package/app/assets/VariablesDialog-BP2RcCBK.js +1 -0
- package/app/assets/abap-08VXUWAP.js +1 -0
- package/app/assets/apex-BWPQTe0t.js +1 -0
- package/app/assets/app-storage-B6v72zLH.js +1 -0
- package/app/assets/azcli-Bc_sGQ0U.js +1 -0
- package/app/assets/bat-i0X4ZdIN.js +1 -0
- package/app/assets/bicep-B5-_aFwp.js +2 -0
- package/app/assets/button-DkRlMkru.js +1 -0
- package/app/assets/cameligo-DMUM7wLl.js +1 -0
- package/app/assets/chevron-up-Dy_mz-03.js +1 -0
- package/app/assets/clojure-Cm7r79vr.js +1 -0
- package/app/assets/codicon-ngg6Pgfi.ttf +0 -0
- package/app/assets/coffee-Ba7i2nA0.js +1 -0
- package/app/assets/connection-store-CJ_al8qv.js +1 -0
- package/app/assets/cpp-C7h46wYY.js +1 -0
- package/app/assets/csharp-BKxtCVv1.js +1 -0
- package/app/assets/csp-bTuwJoIa.js +1 -0
- package/app/assets/css-DIMkf-bt.js +3 -0
- package/app/assets/css.worker-Dsm2X3j_.js +89 -0
- package/app/assets/cssMode-BK7_e-YI.js +1 -0
- package/app/assets/cypher-CVaqCwHa.js +1 -0
- package/app/assets/dart-onAF5SnQ.js +1 -0
- package/app/assets/database-BIhkgl2O.js +1 -0
- package/app/assets/dbms-Cq4imB7l.js +353 -0
- package/app/assets/de-B_f2X0cM.js +2 -0
- package/app/assets/dialog-BtwqThq6.js +1 -0
- package/app/assets/dist-BV6Hwye5.js +41 -0
- package/app/assets/dist-C2pydad-.js +1 -0
- package/app/assets/dist-C3MLFgG1.js +1 -0
- package/app/assets/dist-Roudme38.js +3 -0
- package/app/assets/dockerfile-DZFCIeNp.js +1 -0
- package/app/assets/ecl-D05T4iGw.js +1 -0
- package/app/assets/editor-Br_kD0ds.css +1 -0
- package/app/assets/editor.api2-JBjomUWM.js +872 -0
- package/app/assets/editor.worker-BboMRUer.js +26 -0
- package/app/assets/elixir-6RTg0lbw.js +1 -0
- package/app/assets/engine-DBTzC3si.js +1 -0
- package/app/assets/file-name-CnYBZPf9.js +1 -0
- package/app/assets/flow9-C5_-GSwl.js +1 -0
- package/app/assets/fr-DigYoMZT.js +2 -0
- package/app/assets/freemarker2-Ca8y5qEc.js +3 -0
- package/app/assets/fsharp-C8Ef5oNN.js +1 -0
- package/app/assets/go-C-y9NEjX.js +1 -0
- package/app/assets/graphql-fmXr3nnJ.js +1 -0
- package/app/assets/handlebars-CMoDOM1Y.js +1 -0
- package/app/assets/hcl-CpzslTdj.js +1 -0
- package/app/assets/html-BOS8Hfbf.js +1 -0
- package/app/assets/html.worker-fD12ABR7.js +502 -0
- package/app/assets/htmlMode-CRjI81Qd.js +1 -0
- package/app/assets/i18n-C7R6hKCp.js +2 -0
- package/app/assets/ini-sBoK_t0W.js +1 -0
- package/app/assets/ja-CPMeuUuT.js +2 -0
- package/app/assets/java-BEtHBSE6.js +1 -0
- package/app/assets/javascript-2ntxzhMa.js +1 -0
- package/app/assets/json.worker-B2CIyALT.js +58 -0
- package/app/assets/jsonMode-C8yGgOEo.js +7 -0
- package/app/assets/julia-Bri6UV-V.js +1 -0
- package/app/assets/ko-IAtUoTg5.js +2 -0
- package/app/assets/kotlin-BOotOW0E.js +1 -0
- package/app/assets/less-B9JPFI3C.js +2 -0
- package/app/assets/lexon-CfSJPG6W.js +1 -0
- package/app/assets/liquid-DThFAxbS.js +1 -0
- package/app/assets/lspLanguageFeatures-DQW0rv3P.js +4 -0
- package/app/assets/lua-CsQS60Ue.js +1 -0
- package/app/assets/m3-D-oSqn_W.js +1 -0
- package/app/assets/main-DI8DxG3x.css +2 -0
- package/app/assets/main-NJl8KiiX.js +73 -0
- package/app/assets/markdown-Cimd5fb3.js +1 -0
- package/app/assets/mdx-CI71gDmg.js +1 -0
- package/app/assets/mips-CIPQ_RoX.js +1 -0
- package/app/assets/msdax-DauUninz.js +1 -0
- package/app/assets/mysql-SOo6toE5.js +1 -0
- package/app/assets/objective-c-FvmIjYaQ.js +1 -0
- package/app/assets/pascal-DrH0SRf2.js +1 -0
- package/app/assets/pascaligo-D-ptJ9y-.js +1 -0
- package/app/assets/perl-oz_6vUea.js +1 -0
- package/app/assets/pgsql-DTj74zXo.js +1 -0
- package/app/assets/php-nr791fC2.js +1 -0
- package/app/assets/pla-CopQ2nXW.js +1 -0
- package/app/assets/postiats-43DmfD33.js +1 -0
- package/app/assets/powerquery-D3hlyOfw.js +1 -0
- package/app/assets/powershell-DmHpPYUd.js +1 -0
- package/app/assets/preload-helper-Czpn1I53.js +1 -0
- package/app/assets/protobuf-C531GsRP.js +2 -0
- package/app/assets/pug-Z5eAx3Zn.js +1 -0
- package/app/assets/python-Ck7s8L2p.js +1 -0
- package/app/assets/qsharp-DkqhCAOL.js +1 -0
- package/app/assets/query-execution-CR2mkIdH.js +7 -0
- package/app/assets/query-store-DlzOIWw1.js +1 -0
- package/app/assets/r-BwWrilGY.js +1 -0
- package/app/assets/razor-DiN-9kkz.js +1 -0
- package/app/assets/redis-ClamHrr6.js +1 -0
- package/app/assets/redshift-DT7zqm-g.js +1 -0
- package/app/assets/restructuredtext-BYgofb2h.js +1 -0
- package/app/assets/rolldown-runtime-hePW80VL.js +1 -0
- package/app/assets/ruby-DezsRK8O.js +1 -0
- package/app/assets/rust-DdL9SqIa.js +1 -0
- package/app/assets/sb-CcwsVR0C.js +1 -0
- package/app/assets/scala-DHpiXF5c.js +1 -0
- package/app/assets/schema-nodes-n_QZJb21.js +1 -0
- package/app/assets/scheme-BeGwcela.js +1 -0
- package/app/assets/scss-gp-XZpBa.js +3 -0
- package/app/assets/select-CqYxAwnu.js +1 -0
- package/app/assets/settings-store-DxKFgC4Z.js +1 -0
- package/app/assets/shell-CC2rA5mh.js +1 -0
- package/app/assets/solidity-BEEn4gHE.js +1 -0
- package/app/assets/sophia-CRfGWb83.js +1 -0
- package/app/assets/sparql-D_Lu-MrJ.js +1 -0
- package/app/assets/sql-NEE52Syq.js +1 -0
- package/app/assets/sqlite3-BVKGSWc-.wasm +0 -0
- package/app/assets/sqlite3-opfs-async-proxy-D_xnb1D8.js +876 -0
- package/app/assets/sqlite3-worker1-CVKz6JuG.js +43 -0
- package/app/assets/st-DbInun42.js +1 -0
- package/app/assets/storage-worker-DEIYmjYK.js +43 -0
- package/app/assets/swift-Bxkupp3x.js +1 -0
- package/app/assets/systemverilog-Bz4Y3fRF.js +1 -0
- package/app/assets/table-copy-2y2RNth1.js +1 -0
- package/app/assets/table-definition-Bs5VSn0X.js +1 -0
- package/app/assets/tcl-DISqw1ZD.js +1 -0
- package/app/assets/ts.worker-BwG70EDZ.js +67734 -0
- package/app/assets/tsMode-Dzctobqp.js +11 -0
- package/app/assets/twig-De2hgUGE.js +1 -0
- package/app/assets/typescript-Ww5oHWDp.js +1 -0
- package/app/assets/typespec-B8J7ngcE.js +1 -0
- package/app/assets/ui-store-BPY9VfQP.js +1 -0
- package/app/assets/use-engine-F2Y_trPz.js +1 -0
- package/app/assets/user-store-D5dzuD-E.js +1 -0
- package/app/assets/vb-DV3o63ZY.js +1 -0
- package/app/assets/wgsl-DpFanUEy.js +298 -0
- package/app/assets/xml-CT99FsSc.js +1 -0
- package/app/assets/yaml-DA78fpmA.js +1 -0
- package/app/assets/zh-DCKqmOQA.js +2 -0
- package/app/cloudflare-d1-client/index.html +111 -0
- package/app/de/cloudflare-d1-client/index.html +111 -0
- package/app/de/index.html +123 -0
- package/app/de/mariadb-client/index.html +111 -0
- package/app/de/mysql-client/index.html +112 -0
- package/app/de/neon-client/index.html +111 -0
- package/app/de/oracle-client/index.html +111 -0
- package/app/de/postgresql-client/index.html +111 -0
- package/app/de/sql-server-client/index.html +111 -0
- package/app/de/sqlite-viewer/index.html +112 -0
- package/app/de/supabase-client/index.html +111 -0
- package/app/favicon.svg +1 -0
- package/app/fr/cloudflare-d1-client/index.html +111 -0
- package/app/fr/index.html +123 -0
- package/app/fr/mariadb-client/index.html +111 -0
- package/app/fr/mysql-client/index.html +112 -0
- package/app/fr/neon-client/index.html +111 -0
- package/app/fr/oracle-client/index.html +111 -0
- package/app/fr/postgresql-client/index.html +111 -0
- package/app/fr/sql-server-client/index.html +111 -0
- package/app/fr/sqlite-viewer/index.html +112 -0
- package/app/fr/supabase-client/index.html +111 -0
- package/app/icons.svg +24 -0
- package/app/index.html +123 -0
- package/app/ja/cloudflare-d1-client/index.html +111 -0
- package/app/ja/index.html +123 -0
- package/app/ja/mariadb-client/index.html +111 -0
- package/app/ja/mysql-client/index.html +112 -0
- package/app/ja/neon-client/index.html +111 -0
- package/app/ja/oracle-client/index.html +111 -0
- package/app/ja/postgresql-client/index.html +111 -0
- package/app/ja/sql-server-client/index.html +111 -0
- package/app/ja/sqlite-viewer/index.html +112 -0
- package/app/ja/supabase-client/index.html +111 -0
- package/app/ko/cloudflare-d1-client/index.html +111 -0
- package/app/ko/index.html +123 -0
- package/app/ko/mariadb-client/index.html +111 -0
- package/app/ko/mysql-client/index.html +112 -0
- package/app/ko/neon-client/index.html +111 -0
- package/app/ko/oracle-client/index.html +111 -0
- package/app/ko/postgresql-client/index.html +111 -0
- package/app/ko/sql-server-client/index.html +111 -0
- package/app/ko/sqlite-viewer/index.html +112 -0
- package/app/ko/supabase-client/index.html +111 -0
- package/app/landing.css +25 -0
- package/app/mariadb-client/index.html +111 -0
- package/app/mysql-client/index.html +112 -0
- package/app/neon-client/index.html +111 -0
- package/app/og-image.png +0 -0
- package/app/oracle-client/index.html +111 -0
- package/app/postgresql-client/index.html +111 -0
- package/app/robots.txt +3 -0
- package/app/sample-shop.db +0 -0
- package/app/sitemap.xml +603 -0
- package/app/sql-server-client/index.html +111 -0
- package/app/sqlite-viewer/index.html +112 -0
- package/app/supabase-client/index.html +111 -0
- package/app/zh/cloudflare-d1-client/index.html +111 -0
- package/app/zh/index.html +123 -0
- package/app/zh/mariadb-client/index.html +111 -0
- package/app/zh/mysql-client/index.html +112 -0
- package/app/zh/neon-client/index.html +111 -0
- package/app/zh/oracle-client/index.html +111 -0
- package/app/zh/postgresql-client/index.html +111 -0
- package/app/zh/sql-server-client/index.html +111 -0
- package/app/zh/sqlite-viewer/index.html +112 -0
- package/app/zh/supabase-client/index.html +111 -0
- package/dist/index.js +1437 -1184
- package/package.json +5 -3
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e={comments:{blockComment:[`<!--`,`-->`]},brackets:[[`{`,`}`],[`[`,`]`],[`(`,`)`]],autoClosingPairs:[{open:`{`,close:`}`},{open:`[`,close:`]`},{open:`(`,close:`)`},{open:`<`,close:`>`,notIn:[`string`]}],surroundingPairs:[{open:`(`,close:`)`},{open:`[`,close:`]`},{open:"`",close:"`"}],folding:{markers:{start:RegExp(`^\\s*<!--\\s*#?region\\b.*-->`),end:RegExp(`^\\s*<!--\\s*#?endregion\\b.*-->`)}}},t={defaultToken:``,tokenPostfix:`.md`,control:/[\\`*_\[\]{}()#+\-\.!]/,noncontrol:/[^\\`*_\[\]{}()#+\-\.!]/,escapes:/\\(?:@control)/,jsescapes:/\\(?:[btnfr\\"']|[0-7][0-7]?|[0-3][0-7]{2})/,empty:[`area`,`base`,`basefont`,`br`,`col`,`frame`,`hr`,`img`,`input`,`isindex`,`link`,`meta`,`param`],tokenizer:{root:[[/^\s*\|/,`@rematch`,`@table_header`],[/^(\s{0,3})(#+)((?:[^\\#]|@escapes)+)((?:#+)?)/,[`white`,`keyword`,`keyword`,`keyword`]],[/^\s*(=+|\-+)\s*$/,`keyword`],[/^\s*((\*[ ]?)+)\s*$/,`meta.separator`],[/^\s*>+/,`comment`],[/^\s*([\*\-+:]|\d+\.)\s/,`keyword`],[/^(\t|[ ]{4})[^ ].*$/,`string`],[/^\s*~~~\s*((?:\w|[\/\-#])+)?\s*$/,{token:`string`,next:`@codeblock`}],[/^\s*```\s*((?:\w|[\/\-#])+).*$/,{token:`string`,next:`@codeblockgh`,nextEmbedded:`$1`}],[/^\s*```\s*$/,{token:`string`,next:`@codeblock`}],{include:`@linecontent`}],table_header:[{include:`@table_common`},[/[^\|]+/,`keyword.table.header`]],table_body:[{include:`@table_common`},{include:`@linecontent`}],table_common:[[/\s*[\-:]+\s*/,{token:`keyword`,switchTo:`table_body`}],[/^\s*\|/,`keyword.table.left`],[/^\s*[^\|]/,`@rematch`,`@pop`],[/^\s*$/,`@rematch`,`@pop`],[/\|/,{cases:{"@eos":`keyword.table.right`,"@default":`keyword.table.middle`}}]],codeblock:[[/^\s*~~~\s*$/,{token:`string`,next:`@pop`}],[/^\s*```\s*$/,{token:`string`,next:`@pop`}],[/.*$/,`variable.source`]],codeblockgh:[[/```\s*$/,{token:`string`,next:`@pop`,nextEmbedded:`@pop`}],[/[^`]+/,`variable.source`]],linecontent:[[/&\w+;/,`string.escape`],[/@escapes/,`escape`],[/\b__([^\\_]|@escapes|_(?!_))+__\b/,`strong`],[/\*\*([^\\*]|@escapes|\*(?!\*))+\*\*/,`strong`],[/\b_[^_]+_\b/,`emphasis`],[/\*([^\\*]|@escapes)+\*/,`emphasis`],[/`([^\\`]|@escapes)+`/,`variable`],[/\{+[^}]+\}+/,`string.target`],[/(!?\[)((?:[^\]\\]|@escapes)*)(\]\([^\)]+\))/,[`string.link`,``,`string.link`]],[/(!?\[)((?:[^\]\\]|@escapes)*)(\])/,`string.link`],{include:`html`}],html:[[/<(\w+)\/>/,`tag`],[/<(\w+)(\-|\w)*/,{cases:{"@empty":{token:`tag`,next:`@tag.$1`},"@default":{token:`tag`,next:`@tag.$1`}}}],[/<\/(\w+)(\-|\w)*\s*>/,{token:`tag`}],[/<!--/,`comment`,`@comment`]],comment:[[/[^<\-]+/,`comment.content`],[/-->/,`comment`,`@pop`],[/<!--/,`comment.content.invalid`],[/[<\-]/,`comment.content`]],tag:[[/[ \t\r\n]+/,`white`],[/(type)(\s*=\s*)(")([^"]+)(")/,[`attribute.name.html`,`delimiter.html`,`string.html`,{token:`string.html`,switchTo:`@tag.$S2.$4`},`string.html`]],[/(type)(\s*=\s*)(')([^']+)(')/,[`attribute.name.html`,`delimiter.html`,`string.html`,{token:`string.html`,switchTo:`@tag.$S2.$4`},`string.html`]],[/(\w+)(\s*=\s*)("[^"]*"|'[^']*')/,[`attribute.name.html`,`delimiter.html`,`string.html`]],[/\w+/,`attribute.name.html`],[/\/>/,`tag`,`@pop`],[/>/,{cases:{"$S2==style":{token:`tag`,switchTo:`embeddedStyle`,nextEmbedded:`text/css`},"$S2==script":{cases:{$S3:{token:`tag`,switchTo:`embeddedScript`,nextEmbedded:`$S3`},"@default":{token:`tag`,switchTo:`embeddedScript`,nextEmbedded:`text/javascript`}}},"@default":{token:`tag`,next:`@pop`}}}]],embeddedStyle:[[/[^<]+/,``],[/<\/style\s*>/,{token:`@rematch`,next:`@pop`,nextEmbedded:`@pop`}],[/</,``]],embeddedScript:[[/[^<]+/,``],[/<\/script\s*>/,{token:`@rematch`,next:`@pop`,nextEmbedded:`@pop`}],[/</,``]]}};export{e as conf,t as language};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{h as e}from"./editor.api2-JBjomUWM.js";var t={comments:{blockComment:[`{/*`,`*/}`]},brackets:[[`{`,`}`]],autoClosingPairs:[{open:`"`,close:`"`},{open:`'`,close:`'`},{open:`“`,close:`”`},{open:`‘`,close:`’`},{open:"`",close:"`"},{open:`{`,close:`}`},{open:`(`,close:`)`},{open:`_`,close:`_`},{open:`**`,close:`**`},{open:`<`,close:`>`}],onEnterRules:[{beforeText:/^\s*- .+/,action:{indentAction:e.IndentAction.None,appendText:`- `}},{beforeText:/^\s*\+ .+/,action:{indentAction:e.IndentAction.None,appendText:`+ `}},{beforeText:/^\s*\* .+/,action:{indentAction:e.IndentAction.None,appendText:`* `}},{beforeText:/^> /,action:{indentAction:e.IndentAction.None,appendText:`> `}},{beforeText:/<\w+/,action:{indentAction:e.IndentAction.Indent}},{beforeText:/\s+>\s*$/,action:{indentAction:e.IndentAction.Indent}},{beforeText:/<\/\w+>/,action:{indentAction:e.IndentAction.Outdent}},...Array.from({length:100},(t,n)=>({beforeText:RegExp(`^${n}\\. .+`),action:{indentAction:e.IndentAction.None,appendText:`${n+1}. `}}))]},n={defaultToken:``,tokenPostfix:`.mdx`,control:/[!#()*+.[\\\]_`{}\-]/,escapes:/\\@control/,tokenizer:{root:[[/^---$/,{token:`meta.content`,next:`@frontmatter`,nextEmbedded:`yaml`}],[/^\s*import/,{token:`keyword`,next:`@import`,nextEmbedded:`js`}],[/^\s*export/,{token:`keyword`,next:`@export`,nextEmbedded:`js`}],[/<\w+/,{token:`type.identifier`,next:`@jsx`}],[/<\/?\w+>/,`type.identifier`],[/^(\s*)(>*\s*)(#{1,6}\s)/,[{token:`white`},{token:`comment`},{token:`keyword`,next:`@header`}]],[/^(\s*)(>*\s*)([*+-])(\s+)/,[`white`,`comment`,`keyword`,`white`]],[/^(\s*)(>*\s*)(\d{1,9}\.)(\s+)/,[`white`,`comment`,`number`,`white`]],[/^(\s*)(>*\s*)(\d{1,9}\.)(\s+)/,[`white`,`comment`,`number`,`white`]],[/^(\s*)(>*\s*)(-{3,}|\*{3,}|_{3,})$/,[`white`,`comment`,`keyword`]],[/`{3,}(\s.*)?$/,{token:`string`,next:`@codeblock_backtick`}],[/~{3,}(\s.*)?$/,{token:`string`,next:`@codeblock_tilde`}],[/`{3,}(\S+).*$/,{token:`string`,next:`@codeblock_highlight_backtick`,nextEmbedded:`$1`}],[/~{3,}(\S+).*$/,{token:`string`,next:`@codeblock_highlight_tilde`,nextEmbedded:`$1`}],[/^(\s*)(-{4,})$/,[`white`,`comment`]],[/^(\s*)(>+)/,[`white`,`comment`]],{include:`content`}],content:[[/(\[)(.+)(]\()(.+)(\s+".*")(\))/,[``,`string.link`,``,`type.identifier`,`string.link`,``]],[/(\[)(.+)(]\()(.+)(\))/,[``,`type.identifier`,``,`string.link`,``]],[/(\[)(.+)(]\[)(.+)(])/,[``,`type.identifier`,``,`type.identifier`,``]],[/(\[)(.+)(]:\s+)(\S*)/,[``,`type.identifier`,``,`string.link`]],[/(\[)(.+)(])/,[``,`type.identifier`,``]],[/`.*`/,`variable.source`],[/_/,{token:`emphasis`,next:`@emphasis_underscore`}],[/\*(?!\*)/,{token:`emphasis`,next:`@emphasis_asterisk`}],[/\*\*/,{token:`strong`,next:`@strong`}],[/{/,{token:`delimiter.bracket`,next:`@expression`,nextEmbedded:`js`}]],import:[[/'\s*(;|$)/,{token:`string`,next:`@pop`,nextEmbedded:`@pop`}]],expression:[[/{/,{token:`delimiter.bracket`,next:`@expression`}],[/}/,{token:`delimiter.bracket`,next:`@pop`,nextEmbedded:`@pop`}]],export:[[/^\s*$/,{token:`delimiter.bracket`,next:`@pop`,nextEmbedded:`@pop`}]],jsx:[[/\s+/,``],[/(\w+)(=)("(?:[^"\\]|\\.)*")/,[`attribute.name`,`operator`,`string`]],[/(\w+)(=)('(?:[^'\\]|\\.)*')/,[`attribute.name`,`operator`,`string`]],[/(\w+(?=\s|>|={|$))/,[`attribute.name`]],[/={/,{token:`delimiter.bracket`,next:`@expression`,nextEmbedded:`js`}],[/>/,{token:`type.identifier`,next:`@pop`}]],header:[[/.$/,{token:`keyword`,next:`@pop`}],{include:`content`},[/./,{token:`keyword`}]],strong:[[/\*\*/,{token:`strong`,next:`@pop`}],{include:`content`},[/./,{token:`strong`}]],emphasis_underscore:[[/_/,{token:`emphasis`,next:`@pop`}],{include:`content`},[/./,{token:`emphasis`}]],emphasis_asterisk:[[/\*(?!\*)/,{token:`emphasis`,next:`@pop`}],{include:`content`},[/./,{token:`emphasis`}]],frontmatter:[[/^---$/,{token:`meta.content`,nextEmbedded:`@pop`,next:`@pop`}]],codeblock_highlight_backtick:[[/\s*`{3,}\s*$/,{token:`string`,next:`@pop`,nextEmbedded:`@pop`}],[/.*$/,`variable.source`]],codeblock_highlight_tilde:[[/\s*~{3,}\s*$/,{token:`string`,next:`@pop`,nextEmbedded:`@pop`}],[/.*$/,`variable.source`]],codeblock_backtick:[[/\s*`{3,}\s*$/,{token:`string`,next:`@pop`}],[/.*$/,`variable.source`]],codeblock_tilde:[[/\s*~{3,}\s*$/,{token:`string`,next:`@pop`}],[/.*$/,`variable.source`]]}};export{t as conf,n as language};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\#%\^\&\*\(\)\=\$\-\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{blockComment:[`###`,`###`],lineComment:`#`},folding:{markers:{start:RegExp(`^\\s*#region\\b`),end:RegExp(`^\\s*#endregion\\b`)}}},t={defaultToken:``,ignoreCase:!1,tokenPostfix:`.mips`,regEx:/\/(?!\/\/)(?:[^\/\\]|\\.)*\/[igm]*/,keywords:`.data,.text,syscall,trap,add,addu,addi,addiu,and,andi,div,divu,mult,multu,nor,or,ori,sll,slv,sra,srav,srl,srlv,sub,subu,xor,xori,lhi,lho,lhi,llo,slt,slti,sltu,sltiu,beq,bgtz,blez,bne,j,jal,jalr,jr,lb,lbu,lh,lhu,lw,li,la,sb,sh,sw,mfhi,mflo,mthi,mtlo,move`.split(`,`),symbols:/[\.,\:]+/,escapes:/\\(?:[abfnrtv\\"'$]|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[[/\$[a-zA-Z_]\w*/,`variable.predefined`],[/[.a-zA-Z_]\w*/,{cases:{this:`variable.predefined`,"@keywords":{token:`keyword.$0`},"@default":``}}],[/[ \t\r\n]+/,``],[/#.*$/,`comment`],[`///`,{token:`regexp`,next:`@hereregexp`}],[/^(\s*)(@regEx)/,[``,`regexp`]],[/(\,)(\s*)(@regEx)/,[`delimiter`,``,`regexp`]],[/(\:)(\s*)(@regEx)/,[`delimiter`,``,`regexp`]],[/@symbols/,`delimiter`],[/\d+[eE]([\-+]?\d+)?/,`number.float`],[/\d+\.\d+([eE][\-+]?\d+)?/,`number.float`],[/0[xX][0-9a-fA-F]+/,`number.hex`],[/0[0-7]+(?!\d)/,`number.octal`],[/\d+/,`number`],[/[,.]/,`delimiter`],[/"""/,`string`,`@herestring."""`],[/'''/,`string`,`@herestring.'''`],[/"/,{cases:{"@eos":`string`,"@default":{token:`string`,next:`@string."`}}}],[/'/,{cases:{"@eos":`string`,"@default":{token:`string`,next:`@string.'`}}}]],string:[[/[^"'\#\\]+/,`string`],[/@escapes/,`string.escape`],[/\./,`string.escape.invalid`],[/\./,`string.escape.invalid`],[/#{/,{cases:{'$S2=="':{token:`string`,next:`root.interpolatedstring`},"@default":`string`}}],[/["']/,{cases:{"$#==$S2":{token:`string`,next:`@pop`},"@default":`string`}}],[/#/,`string`]],herestring:[[/("""|''')/,{cases:{"$1==$S2":{token:`string`,next:`@pop`},"@default":`string`}}],[/[^#\\'"]+/,`string`],[/['"]+/,`string`],[/@escapes/,`string.escape`],[/\./,`string.escape.invalid`],[/#{/,{token:`string.quote`,next:`root.interpolatedstring`}],[/#/,`string`]],comment:[[/[^#]+/,`comment`],[/#/,`comment`]],hereregexp:[[/[^\\\/#]+/,`regexp`],[/\\./,`regexp`],[/#.*$/,`comment`],[`///[igm]*`,{token:`regexp`,next:`@pop`}],[/\//,`regexp`]]}};export{e as conf,t as language};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e={comments:{lineComment:`//`,blockComment:[`/*`,`*/`]},brackets:[[`[`,`]`],[`(`,`)`],[`{`,`}`]],autoClosingPairs:[{open:`"`,close:`"`,notIn:[`string`,`comment`]},{open:`'`,close:`'`,notIn:[`string`,`comment`]},{open:`[`,close:`]`,notIn:[`string`,`comment`]},{open:`(`,close:`)`,notIn:[`string`,`comment`]},{open:`{`,close:`}`,notIn:[`string`,`comment`]}]},t={defaultToken:``,tokenPostfix:`.msdax`,ignoreCase:!0,brackets:[{open:`[`,close:`]`,token:`delimiter.square`},{open:`{`,close:`}`,token:`delimiter.brackets`},{open:`(`,close:`)`,token:`delimiter.parenthesis`}],keywords:[`VAR`,`RETURN`,`NOT`,`EVALUATE`,`DATATABLE`,`ORDER`,`BY`,`START`,`AT`,`DEFINE`,`MEASURE`,`ASC`,`DESC`,`IN`,`BOOLEAN`,`DOUBLE`,`INTEGER`,`DATETIME`,`CURRENCY`,`STRING`],functions:`CLOSINGBALANCEMONTH,CLOSINGBALANCEQUARTER,CLOSINGBALANCEYEAR,DATEADD,DATESBETWEEN,DATESINPERIOD,DATESMTD,DATESQTD,DATESYTD,ENDOFMONTH,ENDOFQUARTER,ENDOFYEAR,FIRSTDATE,FIRSTNONBLANK,LASTDATE,LASTNONBLANK,NEXTDAY,NEXTMONTH,NEXTQUARTER,NEXTYEAR,OPENINGBALANCEMONTH,OPENINGBALANCEQUARTER,OPENINGBALANCEYEAR,PARALLELPERIOD,PREVIOUSDAY,PREVIOUSMONTH,PREVIOUSQUARTER,PREVIOUSYEAR,SAMEPERIODLASTYEAR,STARTOFMONTH,STARTOFQUARTER,STARTOFYEAR,TOTALMTD,TOTALQTD,TOTALYTD,ADDCOLUMNS,ADDMISSINGITEMS,ALL,ALLEXCEPT,ALLNOBLANKROW,ALLSELECTED,CALCULATE,CALCULATETABLE,CALENDAR,CALENDARAUTO,CROSSFILTER,CROSSJOIN,CURRENTGROUP,DATATABLE,DETAILROWS,DISTINCT,EARLIER,EARLIEST,EXCEPT,FILTER,FILTERS,GENERATE,GENERATEALL,GROUPBY,IGNORE,INTERSECT,ISONORAFTER,KEEPFILTERS,LOOKUPVALUE,NATURALINNERJOIN,NATURALLEFTOUTERJOIN,RELATED,RELATEDTABLE,ROLLUP,ROLLUPADDISSUBTOTAL,ROLLUPGROUP,ROLLUPISSUBTOTAL,ROW,SAMPLE,SELECTCOLUMNS,SUBSTITUTEWITHINDEX,SUMMARIZE,SUMMARIZECOLUMNS,TOPN,TREATAS,UNION,USERELATIONSHIP,VALUES,SUM,SUMX,PATH,PATHCONTAINS,PATHITEM,PATHITEMREVERSE,PATHLENGTH,AVERAGE,AVERAGEA,AVERAGEX,COUNT,COUNTA,COUNTAX,COUNTBLANK,COUNTROWS,COUNTX,DISTINCTCOUNT,DIVIDE,GEOMEAN,GEOMEANX,MAX,MAXA,MAXX,MEDIAN,MEDIANX,MIN,MINA,MINX,PERCENTILE.EXC,PERCENTILE.INC,PERCENTILEX.EXC,PERCENTILEX.INC,PRODUCT,PRODUCTX,RANK.EQ,RANKX,STDEV.P,STDEV.S,STDEVX.P,STDEVX.S,VAR.P,VAR.S,VARX.P,VARX.S,XIRR,XNPV,DATE,DATEDIFF,DATEVALUE,DAY,EDATE,EOMONTH,HOUR,MINUTE,MONTH,NOW,SECOND,TIME,TIMEVALUE,TODAY,WEEKDAY,WEEKNUM,YEAR,YEARFRAC,CONTAINS,CONTAINSROW,CUSTOMDATA,ERROR,HASONEFILTER,HASONEVALUE,ISBLANK,ISCROSSFILTERED,ISEMPTY,ISERROR,ISEVEN,ISFILTERED,ISLOGICAL,ISNONTEXT,ISNUMBER,ISODD,ISSUBTOTAL,ISTEXT,USERNAME,USERPRINCIPALNAME,AND,FALSE,IF,IFERROR,NOT,OR,SWITCH,TRUE,ABS,ACOS,ACOSH,ACOT,ACOTH,ASIN,ASINH,ATAN,ATANH,BETA.DIST,BETA.INV,CEILING,CHISQ.DIST,CHISQ.DIST.RT,CHISQ.INV,CHISQ.INV.RT,COMBIN,COMBINA,CONFIDENCE.NORM,CONFIDENCE.T,COS,COSH,COT,COTH,CURRENCY,DEGREES,EVEN,EXP,EXPON.DIST,FACT,FLOOR,GCD,INT,ISO.CEILING,LCM,LN,LOG,LOG10,MOD,MROUND,ODD,PERMUT,PI,POISSON.DIST,POWER,QUOTIENT,RADIANS,RAND,RANDBETWEEN,ROUND,ROUNDDOWN,ROUNDUP,SIGN,SIN,SINH,SQRT,SQRTPI,TAN,TANH,TRUNC,BLANK,CONCATENATE,CONCATENATEX,EXACT,FIND,FIXED,FORMAT,LEFT,LEN,LOWER,MID,REPLACE,REPT,RIGHT,SEARCH,SUBSTITUTE,TRIM,UNICHAR,UNICODE,UPPER,VALUE`.split(`,`),tokenizer:{root:[{include:`@comments`},{include:`@whitespace`},{include:`@numbers`},{include:`@strings`},{include:`@complexIdentifiers`},[/[;,.]/,`delimiter`],[/[({})]/,`@brackets`],[/[a-z_][a-zA-Z0-9_]*/,{cases:{"@keywords":`keyword`,"@functions":`keyword`,"@default":`identifier`}}],[/[<>=!%&+\-*/|~^]/,`operator`]],whitespace:[[/\s+/,`white`]],comments:[[/\/\/+.*/,`comment`],[/\/\*/,{token:`comment.quote`,next:`@comment`}]],comment:[[/[^*/]+/,`comment`],[/\*\//,{token:`comment.quote`,next:`@pop`}],[/./,`comment`]],numbers:[[/0[xX][0-9a-fA-F]*/,`number`],[/[$][+-]*\d*(\.\d*)?/,`number`],[/((\d+(\.\d*)?)|(\.\d+))([eE][\-+]?\d+)?/,`number`]],strings:[[/N"/,{token:`string`,next:`@string`}],[/"/,{token:`string`,next:`@string`}]],string:[[/[^"]+/,`string`],[/""/,`string`],[/"/,{token:`string`,next:`@pop`}]],complexIdentifiers:[[/\[/,{token:`identifier.quote`,next:`@bracketedIdentifier`}],[/'/,{token:`identifier.quote`,next:`@quotedIdentifier`}]],bracketedIdentifier:[[/[^\]]+/,`identifier`],[/]]/,`identifier`],[/]/,{token:`identifier.quote`,next:`@pop`}]],quotedIdentifier:[[/[^']+/,`identifier`],[/''/,`identifier`],[/'/,{token:`identifier.quote`,next:`@pop`}]]}};export{e as conf,t as language};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e={comments:{lineComment:`--`,blockComment:[`/*`,`*/`]},brackets:[[`{`,`}`],[`[`,`]`],[`(`,`)`]],autoClosingPairs:[{open:`{`,close:`}`},{open:`[`,close:`]`},{open:`(`,close:`)`},{open:`"`,close:`"`},{open:`'`,close:`'`}],surroundingPairs:[{open:`{`,close:`}`},{open:`[`,close:`]`},{open:`(`,close:`)`},{open:`"`,close:`"`},{open:`'`,close:`'`}]},t={defaultToken:``,tokenPostfix:`.sql`,ignoreCase:!0,brackets:[{open:`[`,close:`]`,token:`delimiter.square`},{open:`(`,close:`)`,token:`delimiter.parenthesis`}],keywords:`ACCESSIBLE.ADD.ALL.ALTER.ANALYZE.AND.AS.ASC.ASENSITIVE.BEFORE.BETWEEN.BIGINT.BINARY.BLOB.BOTH.BY.CALL.CASCADE.CASE.CHANGE.CHAR.CHARACTER.CHECK.COLLATE.COLUMN.CONDITION.CONSTRAINT.CONTINUE.CONVERT.CREATE.CROSS.CUBE.CUME_DIST.CURRENT_DATE.CURRENT_TIME.CURRENT_TIMESTAMP.CURRENT_USER.CURSOR.DATABASE.DATABASES.DAY_HOUR.DAY_MICROSECOND.DAY_MINUTE.DAY_SECOND.DEC.DECIMAL.DECLARE.DEFAULT.DELAYED.DELETE.DENSE_RANK.DESC.DESCRIBE.DETERMINISTIC.DISTINCT.DISTINCTROW.DIV.DOUBLE.DROP.DUAL.EACH.ELSE.ELSEIF.EMPTY.ENCLOSED.ESCAPED.EXCEPT.EXISTS.EXIT.EXPLAIN.FALSE.FETCH.FIRST_VALUE.FLOAT.FLOAT4.FLOAT8.FOR.FORCE.FOREIGN.FROM.FULLTEXT.FUNCTION.GENERATED.GET.GRANT.GROUP.GROUPING.GROUPS.HAVING.HIGH_PRIORITY.HOUR_MICROSECOND.HOUR_MINUTE.HOUR_SECOND.IF.IGNORE.IN.INDEX.INFILE.INNER.INOUT.INSENSITIVE.INSERT.INT.INT1.INT2.INT3.INT4.INT8.INTEGER.INTERVAL.INTO.IO_AFTER_GTIDS.IO_BEFORE_GTIDS.IS.ITERATE.JOIN.JSON_TABLE.KEY.KEYS.KILL.LAG.LAST_VALUE.LATERAL.LEAD.LEADING.LEAVE.LEFT.LIKE.LIMIT.LINEAR.LINES.LOAD.LOCALTIME.LOCALTIMESTAMP.LOCK.LONG.LONGBLOB.LONGTEXT.LOOP.LOW_PRIORITY.MASTER_BIND.MASTER_SSL_VERIFY_SERVER_CERT.MATCH.MAXVALUE.MEDIUMBLOB.MEDIUMINT.MEDIUMTEXT.MIDDLEINT.MINUTE_MICROSECOND.MINUTE_SECOND.MOD.MODIFIES.NATURAL.NOT.NO_WRITE_TO_BINLOG.NTH_VALUE.NTILE.NULL.NUMERIC.OF.ON.OPTIMIZE.OPTIMIZER_COSTS.OPTION.OPTIONALLY.OR.ORDER.OUT.OUTER.OUTFILE.OVER.PARTITION.PERCENT_RANK.PRECISION.PRIMARY.PROCEDURE.PURGE.RANGE.RANK.READ.READS.READ_WRITE.REAL.RECURSIVE.REFERENCES.REGEXP.RELEASE.RENAME.REPEAT.REPLACE.REQUIRE.RESIGNAL.RESTRICT.RETURN.REVOKE.RIGHT.RLIKE.ROW.ROWS.ROW_NUMBER.SCHEMA.SCHEMAS.SECOND_MICROSECOND.SELECT.SENSITIVE.SEPARATOR.SET.SHOW.SIGNAL.SMALLINT.SPATIAL.SPECIFIC.SQL.SQLEXCEPTION.SQLSTATE.SQLWARNING.SQL_BIG_RESULT.SQL_CALC_FOUND_ROWS.SQL_SMALL_RESULT.SSL.STARTING.STORED.STRAIGHT_JOIN.SYSTEM.TABLE.TERMINATED.THEN.TINYBLOB.TINYINT.TINYTEXT.TO.TRAILING.TRIGGER.TRUE.UNDO.UNION.UNIQUE.UNLOCK.UNSIGNED.UPDATE.USAGE.USE.USING.UTC_DATE.UTC_TIME.UTC_TIMESTAMP.VALUES.VARBINARY.VARCHAR.VARCHARACTER.VARYING.VIRTUAL.WHEN.WHERE.WHILE.WINDOW.WITH.WRITE.XOR.YEAR_MONTH.ZEROFILL`.split(`.`),operators:[`AND`,`BETWEEN`,`IN`,`LIKE`,`NOT`,`OR`,`IS`,`NULL`,`INTERSECT`,`UNION`,`INNER`,`JOIN`,`LEFT`,`OUTER`,`RIGHT`],builtinFunctions:`ABS.ACOS.ADDDATE.ADDTIME.AES_DECRYPT.AES_ENCRYPT.ANY_VALUE.Area.AsBinary.AsWKB.ASCII.ASIN.AsText.AsWKT.ASYMMETRIC_DECRYPT.ASYMMETRIC_DERIVE.ASYMMETRIC_ENCRYPT.ASYMMETRIC_SIGN.ASYMMETRIC_VERIFY.ATAN.ATAN2.ATAN.AVG.BENCHMARK.BIN.BIT_AND.BIT_COUNT.BIT_LENGTH.BIT_OR.BIT_XOR.Buffer.CAST.CEIL.CEILING.Centroid.CHAR.CHAR_LENGTH.CHARACTER_LENGTH.CHARSET.COALESCE.COERCIBILITY.COLLATION.COMPRESS.CONCAT.CONCAT_WS.CONNECTION_ID.Contains.CONV.CONVERT.CONVERT_TZ.ConvexHull.COS.COT.COUNT.CRC32.CREATE_ASYMMETRIC_PRIV_KEY.CREATE_ASYMMETRIC_PUB_KEY.CREATE_DH_PARAMETERS.CREATE_DIGEST.Crosses.CUME_DIST.CURDATE.CURRENT_DATE.CURRENT_ROLE.CURRENT_TIME.CURRENT_TIMESTAMP.CURRENT_USER.CURTIME.DATABASE.DATE.DATE_ADD.DATE_FORMAT.DATE_SUB.DATEDIFF.DAY.DAYNAME.DAYOFMONTH.DAYOFWEEK.DAYOFYEAR.DECODE.DEFAULT.DEGREES.DES_DECRYPT.DES_ENCRYPT.DENSE_RANK.Dimension.Disjoint.Distance.ELT.ENCODE.ENCRYPT.EndPoint.Envelope.Equals.EXP.EXPORT_SET.ExteriorRing.EXTRACT.ExtractValue.FIELD.FIND_IN_SET.FIRST_VALUE.FLOOR.FORMAT.FORMAT_BYTES.FORMAT_PICO_TIME.FOUND_ROWS.FROM_BASE64.FROM_DAYS.FROM_UNIXTIME.GEN_RANGE.GEN_RND_EMAIL.GEN_RND_PAN.GEN_RND_SSN.GEN_RND_US_PHONE.GeomCollection.GeomCollFromText.GeometryCollectionFromText.GeomCollFromWKB.GeometryCollectionFromWKB.GeometryCollection.GeometryN.GeometryType.GeomFromText.GeometryFromText.GeomFromWKB.GeometryFromWKB.GET_FORMAT.GET_LOCK.GLength.GREATEST.GROUP_CONCAT.GROUPING.GTID_SUBSET.GTID_SUBTRACT.HEX.HOUR.ICU_VERSION.IF.IFNULL.INET_ATON.INET_NTOA.INET6_ATON.INET6_NTOA.INSERT.INSTR.InteriorRingN.Intersects.INTERVAL.IS_FREE_LOCK.IS_IPV4.IS_IPV4_COMPAT.IS_IPV4_MAPPED.IS_IPV6.IS_USED_LOCK.IS_UUID.IsClosed.IsEmpty.ISNULL.IsSimple.JSON_APPEND.JSON_ARRAY.JSON_ARRAY_APPEND.JSON_ARRAY_INSERT.JSON_ARRAYAGG.JSON_CONTAINS.JSON_CONTAINS_PATH.JSON_DEPTH.JSON_EXTRACT.JSON_INSERT.JSON_KEYS.JSON_LENGTH.JSON_MERGE.JSON_MERGE_PATCH.JSON_MERGE_PRESERVE.JSON_OBJECT.JSON_OBJECTAGG.JSON_OVERLAPS.JSON_PRETTY.JSON_QUOTE.JSON_REMOVE.JSON_REPLACE.JSON_SCHEMA_VALID.JSON_SCHEMA_VALIDATION_REPORT.JSON_SEARCH.JSON_SET.JSON_STORAGE_FREE.JSON_STORAGE_SIZE.JSON_TABLE.JSON_TYPE.JSON_UNQUOTE.JSON_VALID.LAG.LAST_DAY.LAST_INSERT_ID.LAST_VALUE.LCASE.LEAD.LEAST.LEFT.LENGTH.LineFromText.LineStringFromText.LineFromWKB.LineStringFromWKB.LineString.LN.LOAD_FILE.LOCALTIME.LOCALTIMESTAMP.LOCATE.LOG.LOG10.LOG2.LOWER.LPAD.LTRIM.MAKE_SET.MAKEDATE.MAKETIME.MASK_INNER.MASK_OUTER.MASK_PAN.MASK_PAN_RELAXED.MASK_SSN.MASTER_POS_WAIT.MAX.MBRContains.MBRCoveredBy.MBRCovers.MBRDisjoint.MBREqual.MBREquals.MBRIntersects.MBROverlaps.MBRTouches.MBRWithin.MD5.MEMBER OF.MICROSECOND.MID.MIN.MINUTE.MLineFromText.MultiLineStringFromText.MLineFromWKB.MultiLineStringFromWKB.MOD.MONTH.MONTHNAME.MPointFromText.MultiPointFromText.MPointFromWKB.MultiPointFromWKB.MPolyFromText.MultiPolygonFromText.MPolyFromWKB.MultiPolygonFromWKB.MultiLineString.MultiPoint.MultiPolygon.NAME_CONST.NOT IN.NOW.NTH_VALUE.NTILE.NULLIF.NumGeometries.NumInteriorRings.NumPoints.OCT.OCTET_LENGTH.OLD_PASSWORD.ORD.Overlaps.PASSWORD.PERCENT_RANK.PERIOD_ADD.PERIOD_DIFF.PI.Point.PointFromText.PointFromWKB.PointN.PolyFromText.PolygonFromText.PolyFromWKB.PolygonFromWKB.Polygon.POSITION.POW.POWER.PS_CURRENT_THREAD_ID.PS_THREAD_ID.PROCEDURE ANALYSE.QUARTER.QUOTE.RADIANS.RAND.RANDOM_BYTES.RANK.REGEXP_INSTR.REGEXP_LIKE.REGEXP_REPLACE.REGEXP_REPLACE.RELEASE_ALL_LOCKS.RELEASE_LOCK.REPEAT.REPLACE.REVERSE.RIGHT.ROLES_GRAPHML.ROUND.ROW_COUNT.ROW_NUMBER.RPAD.RTRIM.SCHEMA.SEC_TO_TIME.SECOND.SESSION_USER.SHA1.SHA.SHA2.SIGN.SIN.SLEEP.SOUNDEX.SOURCE_POS_WAIT.SPACE.SQRT.SRID.ST_Area.ST_AsBinary.ST_AsWKB.ST_AsGeoJSON.ST_AsText.ST_AsWKT.ST_Buffer.ST_Buffer_Strategy.ST_Centroid.ST_Collect.ST_Contains.ST_ConvexHull.ST_Crosses.ST_Difference.ST_Dimension.ST_Disjoint.ST_Distance.ST_Distance_Sphere.ST_EndPoint.ST_Envelope.ST_Equals.ST_ExteriorRing.ST_FrechetDistance.ST_GeoHash.ST_GeomCollFromText.ST_GeometryCollectionFromText.ST_GeomCollFromTxt.ST_GeomCollFromWKB.ST_GeometryCollectionFromWKB.ST_GeometryN.ST_GeometryType.ST_GeomFromGeoJSON.ST_GeomFromText.ST_GeometryFromText.ST_GeomFromWKB.ST_GeometryFromWKB.ST_HausdorffDistance.ST_InteriorRingN.ST_Intersection.ST_Intersects.ST_IsClosed.ST_IsEmpty.ST_IsSimple.ST_IsValid.ST_LatFromGeoHash.ST_Length.ST_LineFromText.ST_LineStringFromText.ST_LineFromWKB.ST_LineStringFromWKB.ST_LineInterpolatePoint.ST_LineInterpolatePoints.ST_LongFromGeoHash.ST_Longitude.ST_MakeEnvelope.ST_MLineFromText.ST_MultiLineStringFromText.ST_MLineFromWKB.ST_MultiLineStringFromWKB.ST_MPointFromText.ST_MultiPointFromText.ST_MPointFromWKB.ST_MultiPointFromWKB.ST_MPolyFromText.ST_MultiPolygonFromText.ST_MPolyFromWKB.ST_MultiPolygonFromWKB.ST_NumGeometries.ST_NumInteriorRing.ST_NumInteriorRings.ST_NumPoints.ST_Overlaps.ST_PointAtDistance.ST_PointFromGeoHash.ST_PointFromText.ST_PointFromWKB.ST_PointN.ST_PolyFromText.ST_PolygonFromText.ST_PolyFromWKB.ST_PolygonFromWKB.ST_Simplify.ST_SRID.ST_StartPoint.ST_SwapXY.ST_SymDifference.ST_Touches.ST_Transform.ST_Union.ST_Validate.ST_Within.ST_X.ST_Y.StartPoint.STATEMENT_DIGEST.STATEMENT_DIGEST_TEXT.STD.STDDEV.STDDEV_POP.STDDEV_SAMP.STR_TO_DATE.STRCMP.SUBDATE.SUBSTR.SUBSTRING.SUBSTRING_INDEX.SUBTIME.SUM.SYSDATE.SYSTEM_USER.TAN.TIME.TIME_FORMAT.TIME_TO_SEC.TIMEDIFF.TIMESTAMP.TIMESTAMPADD.TIMESTAMPDIFF.TO_BASE64.TO_DAYS.TO_SECONDS.Touches.TRIM.TRUNCATE.UCASE.UNCOMPRESS.UNCOMPRESSED_LENGTH.UNHEX.UNIX_TIMESTAMP.UpdateXML.UPPER.USER.UTC_DATE.UTC_TIME.UTC_TIMESTAMP.UUID.UUID_SHORT.UUID_TO_BIN.VALIDATE_PASSWORD_STRENGTH.VALUES.VAR_POP.VAR_SAMP.VARIANCE.VERSION.WAIT_FOR_EXECUTED_GTID_SET.WAIT_UNTIL_SQL_THREAD_AFTER_GTIDS.WEEK.WEEKDAY.WEEKOFYEAR.WEIGHT_STRING.Within.X.Y.YEAR.YEARWEEK`.split(`.`),builtinVariables:[],tokenizer:{root:[{include:`@comments`},{include:`@whitespace`},{include:`@numbers`},{include:`@strings`},{include:`@complexIdentifiers`},{include:`@scopes`},[/[;,.]/,`delimiter`],[/[()]/,`@brackets`],[/[\w@]+/,{cases:{"@operators":`operator`,"@builtinVariables":`predefined`,"@builtinFunctions":`predefined`,"@keywords":`keyword`,"@default":`identifier`}}],[/[<>=!%&+\-*/|~^]/,`operator`]],whitespace:[[/\s+/,`white`]],comments:[[/--+.*/,`comment`],[/#+.*/,`comment`],[/\/\*/,{token:`comment.quote`,next:`@comment`}]],comment:[[/[^*/]+/,`comment`],[/\*\//,{token:`comment.quote`,next:`@pop`}],[/./,`comment`]],numbers:[[/0[xX][0-9a-fA-F]*/,`number`],[/[$][+-]*\d*(\.\d*)?/,`number`],[/((\d+(\.\d*)?)|(\.\d+))([eE][\-+]?\d+)?/,`number`]],strings:[[/'/,{token:`string`,next:`@string`}],[/"/,{token:`string.double`,next:`@stringDouble`}]],string:[[/\\'/,`string`],[/[^']+/,`string`],[/''/,`string`],[/'/,{token:`string`,next:`@pop`}]],stringDouble:[[/[^"]+/,`string.double`],[/""/,`string.double`],[/"/,{token:`string.double`,next:`@pop`}]],complexIdentifiers:[[/`/,{token:`identifier.quote`,next:`@quotedIdentifier`}]],quotedIdentifier:[[/[^`]+/,`identifier`],[/``/,`identifier`],[/`/,{token:`identifier.quote`,next:`@pop`}]],scopes:[]}};export{e as conf,t as language};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e={comments:{lineComment:`//`,blockComment:[`/*`,`*/`]},brackets:[[`{`,`}`],[`[`,`]`],[`(`,`)`]],autoClosingPairs:[{open:`{`,close:`}`},{open:`[`,close:`]`},{open:`(`,close:`)`},{open:`"`,close:`"`},{open:`'`,close:`'`}],surroundingPairs:[{open:`{`,close:`}`},{open:`[`,close:`]`},{open:`(`,close:`)`},{open:`"`,close:`"`},{open:`'`,close:`'`}]},t={defaultToken:``,tokenPostfix:`.objective-c`,keywords:`#import.#include.#define.#else.#endif.#if.#ifdef.#ifndef.#ident.#undef.@class.@defs.@dynamic.@encode.@end.@implementation.@interface.@package.@private.@protected.@property.@protocol.@public.@selector.@synthesize.__declspec.assign.auto.BOOL.break.bycopy.byref.case.char.Class.const.copy.continue.default.do.double.else.enum.extern.FALSE.false.float.for.goto.if.in.int.id.inout.IMP.long.nil.nonatomic.NULL.oneway.out.private.public.protected.readwrite.readonly.register.return.SEL.self.short.signed.sizeof.static.struct.super.switch.typedef.TRUE.true.union.unsigned.volatile.void.while`.split(`.`),decpart:/\d(_?\d)*/,decimal:/0|@decpart/,tokenizer:{root:[{include:`@comments`},{include:`@whitespace`},{include:`@numbers`},{include:`@strings`},[/[,:;]/,`delimiter`],[/[{}\[\]()<>]/,`@brackets`],[/[a-zA-Z@#]\w*/,{cases:{"@keywords":`keyword`,"@default":`identifier`}}],[/[<>=\\+\\-\\*\\/\\^\\|\\~,]|and\\b|or\\b|not\\b]/,`operator`]],whitespace:[[/\s+/,`white`]],comments:[[`\\/\\*`,`comment`,`@comment`],[`\\/\\/+.*`,`comment`]],comment:[[`\\*\\/`,`comment`,`@pop`],[`.`,`comment`]],numbers:[[/0[xX][0-9a-fA-F]*(_?[0-9a-fA-F])*/,`number.hex`],[/@decimal((\.@decpart)?([eE][\-+]?@decpart)?)[fF]*/,{cases:{"(\\d)*":`number`,$0:`number.float`}}]],strings:[[/'$/,`string.escape`,`@popall`],[/'/,`string.escape`,`@stringBody`],[/"$/,`string.escape`,`@popall`],[/"/,`string.escape`,`@dblStringBody`]],stringBody:[[/[^\\']+$/,`string`,`@popall`],[/[^\\']+/,`string`],[/\\./,`string`],[/'/,`string.escape`,`@popall`],[/\\$/,`string`]],dblStringBody:[[/[^\\"]+$/,`string`,`@popall`],[/[^\\"]+/,`string`],[/\\./,`string`],[/"/,`string.escape`,`@popall`],[/\\$/,`string`]]}};export{e as conf,t as language};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:`//`,blockComment:[`{`,`}`]},brackets:[[`{`,`}`],[`[`,`]`],[`(`,`)`],[`<`,`>`]],autoClosingPairs:[{open:`{`,close:`}`},{open:`[`,close:`]`},{open:`(`,close:`)`},{open:`<`,close:`>`},{open:`'`,close:`'`}],surroundingPairs:[{open:`{`,close:`}`},{open:`[`,close:`]`},{open:`(`,close:`)`},{open:`<`,close:`>`},{open:`'`,close:`'`}],folding:{markers:{start:RegExp(`^\\s*\\{\\$REGION(\\s\\'.*\\')?\\}`),end:RegExp(`^\\s*\\{\\$ENDREGION\\}`)}}},t={defaultToken:``,tokenPostfix:`.pascal`,ignoreCase:!0,brackets:[{open:`{`,close:`}`,token:`delimiter.curly`},{open:`[`,close:`]`,token:`delimiter.square`},{open:`(`,close:`)`,token:`delimiter.parenthesis`},{open:`<`,close:`>`,token:`delimiter.angle`}],keywords:`absolute.abstract.all.and_then.array.as.asm.attribute.begin.bindable.case.class.const.contains.default.div.else.end.except.exports.external.far.file.finalization.finally.forward.generic.goto.if.implements.import.in.index.inherited.initialization.interrupt.is.label.library.mod.module.name.near.not.object.of.on.only.operator.or_else.otherwise.override.package.packed.pow.private.program.protected.public.published.interface.implementation.qualified.read.record.resident.requires.resourcestring.restricted.segment.set.shl.shr.specialize.stored.strict.then.threadvar.to.try.type.unit.uses.var.view.virtual.dynamic.overload.reintroduce.with.write.xor.true.false.procedure.function.constructor.destructor.property.break.continue.exit.abort.while.do.for.raise.repeat.until`.split(`.`),typeKeywords:[`boolean`,`double`,`byte`,`integer`,`shortint`,`char`,`longint`,`float`,`string`],operators:[`=`,`>`,`<`,`<=`,`>=`,`<>`,`:`,`:=`,`and`,`or`,`+`,`-`,`*`,`/`,`@`,`&`,`^`,`%`],symbols:/[=><:@\^&|+\-*\/\^%]+/,tokenizer:{root:[[/[a-zA-Z_][\w]*/,{cases:{"@keywords":{token:`keyword.$0`},"@default":`identifier`}}],{include:`@whitespace`},[/[{}()\[\]]/,`@brackets`],[/[<>](?!@symbols)/,`@brackets`],[/@symbols/,{cases:{"@operators":`delimiter`,"@default":``}}],[/\d*\.\d+([eE][\-+]?\d+)?/,`number.float`],[/\$[0-9a-fA-F]{1,16}/,`number.hex`],[/\d+/,`number`],[/[;,.]/,`delimiter`],[/'([^'\\]|\\.)*$/,`string.invalid`],[/'/,`string`,`@string`],[/'[^\\']'/,`string`],[/'/,`string.invalid`],[/\#\d+/,`string`]],comment:[[/[^\*\}]+/,`comment`],[/\}/,`comment`,`@pop`],[/[\{]/,`comment`]],string:[[/[^\\']+/,`string`],[/\\./,`string.escape.invalid`],[/'/,{token:`string.quote`,bracket:`@close`,next:`@pop`}]],whitespace:[[/[ \t\r\n]+/,`white`],[/\{/,`comment`,`@comment`],[/\/\/.*$/,`comment`]]}};export{e as conf,t as language};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e={comments:{lineComment:`//`,blockComment:[`(*`,`*)`]},brackets:[[`{`,`}`],[`[`,`]`],[`(`,`)`],[`<`,`>`]],autoClosingPairs:[{open:`{`,close:`}`},{open:`[`,close:`]`},{open:`(`,close:`)`},{open:`<`,close:`>`},{open:`'`,close:`'`}],surroundingPairs:[{open:`{`,close:`}`},{open:`[`,close:`]`},{open:`(`,close:`)`},{open:`<`,close:`>`},{open:`'`,close:`'`}]},t={defaultToken:``,tokenPostfix:`.pascaligo`,ignoreCase:!0,brackets:[{open:`{`,close:`}`,token:`delimiter.curly`},{open:`[`,close:`]`,token:`delimiter.square`},{open:`(`,close:`)`,token:`delimiter.parenthesis`},{open:`<`,close:`>`,token:`delimiter.angle`}],keywords:[`begin`,`block`,`case`,`const`,`else`,`end`,`fail`,`for`,`from`,`function`,`if`,`is`,`nil`,`of`,`remove`,`return`,`skip`,`then`,`type`,`var`,`while`,`with`,`option`,`None`,`transaction`],typeKeywords:[`bool`,`int`,`list`,`map`,`nat`,`record`,`string`,`unit`,`address`,`map`,`mtz`,`xtz`],operators:[`=`,`>`,`<`,`<=`,`>=`,`<>`,`:`,`:=`,`and`,`mod`,`or`,`+`,`-`,`*`,`/`,`@`,`&`,`^`,`%`],symbols:/[=><:@\^&|+\-*\/\^%]+/,tokenizer:{root:[[/[a-zA-Z_][\w]*/,{cases:{"@keywords":{token:`keyword.$0`},"@default":`identifier`}}],{include:`@whitespace`},[/[{}()\[\]]/,`@brackets`],[/[<>](?!@symbols)/,`@brackets`],[/@symbols/,{cases:{"@operators":`delimiter`,"@default":``}}],[/\d*\.\d+([eE][\-+]?\d+)?/,`number.float`],[/\$[0-9a-fA-F]{1,16}/,`number.hex`],[/\d+/,`number`],[/[;,.]/,`delimiter`],[/'([^'\\]|\\.)*$/,`string.invalid`],[/'/,`string`,`@string`],[/'[^\\']'/,`string`],[/'/,`string.invalid`],[/\#\d+/,`string`]],comment:[[/[^\(\*]+/,`comment`],[/\*\)/,`comment`,`@pop`],[/\(\*/,`comment`]],string:[[/[^\\']+/,`string`],[/\\./,`string.escape.invalid`],[/'/,{token:`string.quote`,bracket:`@close`,next:`@pop`}]],whitespace:[[/[ \t\r\n]+/,`white`],[/\(\*/,`comment`,`@comment`],[/\/\/.*$/,`comment`]]}};export{e as conf,t as language};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e={comments:{lineComment:`#`},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:"`"}]},t={defaultToken:``,tokenPostfix:`.perl`,brackets:[{token:`delimiter.bracket`,open:`{`,close:`}`},{token:`delimiter.parenthesis`,open:`(`,close:`)`},{token:`delimiter.square`,open:`[`,close:`]`}],keywords:`__DATA__.else.lock.__END__.elsif.lt.__FILE__.eq.__LINE__.exp.ne.sub.__PACKAGE__.for.no.and.foreach.or.unless.cmp.ge.package.until.continue.gt.while.CORE.if.xor.do.le.__DIE__.__WARN__`.split(`.`),builtinFunctions:`-A.END.length.setpgrp.-B.endgrent.link.setpriority.-b.endhostent.listen.setprotoent.-C.endnetent.local.setpwent.-c.endprotoent.localtime.setservent.-d.endpwent.log.setsockopt.-e.endservent.lstat.shift.-f.eof.map.shmctl.-g.eval.mkdir.shmget.-k.exec.msgctl.shmread.-l.exists.msgget.shmwrite.-M.exit.msgrcv.shutdown.-O.fcntl.msgsnd.sin.-o.fileno.my.sleep.-p.flock.next.socket.-r.fork.not.socketpair.-R.format.oct.sort.-S.formline.open.splice.-s.getc.opendir.split.-T.getgrent.ord.sprintf.-t.getgrgid.our.sqrt.-u.getgrnam.pack.srand.-w.gethostbyaddr.pipe.stat.-W.gethostbyname.pop.state.-X.gethostent.pos.study.-x.getlogin.print.substr.-z.getnetbyaddr.printf.symlink.abs.getnetbyname.prototype.syscall.accept.getnetent.push.sysopen.alarm.getpeername.quotemeta.sysread.atan2.getpgrp.rand.sysseek.AUTOLOAD.getppid.read.system.BEGIN.getpriority.readdir.syswrite.bind.getprotobyname.readline.tell.binmode.getprotobynumber.readlink.telldir.bless.getprotoent.readpipe.tie.break.getpwent.recv.tied.caller.getpwnam.redo.time.chdir.getpwuid.ref.times.CHECK.getservbyname.rename.truncate.chmod.getservbyport.require.uc.chomp.getservent.reset.ucfirst.chop.getsockname.return.umask.chown.getsockopt.reverse.undef.chr.glob.rewinddir.UNITCHECK.chroot.gmtime.rindex.unlink.close.goto.rmdir.unpack.closedir.grep.say.unshift.connect.hex.scalar.untie.cos.index.seek.use.crypt.INIT.seekdir.utime.dbmclose.int.select.values.dbmopen.ioctl.semctl.vec.defined.join.semget.wait.delete.keys.semop.waitpid.DESTROY.kill.send.wantarray.die.last.setgrent.warn.dump.lc.sethostent.write.each.lcfirst.setnetent`.split(`.`),builtinFileHandlers:[`ARGV`,`STDERR`,`STDOUT`,`ARGVOUT`,`STDIN`,`ENV`],builtinVariables:`$! $^RE_TRIE_MAXBUF $LAST_REGEXP_CODE_RESULT $" $^S $LIST_SEPARATOR $# $^T $MATCH $$ $^TAINT $MULTILINE_MATCHING $% $^UNICODE $NR $& $^UTF8LOCALE $OFMT $' $^V $OFS $( $^W $ORS $) $^WARNING_BITS $OS_ERROR $* $^WIDE_SYSTEM_CALLS $OSNAME $+ $^X $OUTPUT_AUTO_FLUSH $, $_ $OUTPUT_FIELD_SEPARATOR $- $\` $OUTPUT_RECORD_SEPARATOR $. $a $PERL_VERSION $/ $ACCUMULATOR $PERLDB $0 $ARG $PID $: $ARGV $POSTMATCH $; $b $PREMATCH $< $BASETIME $PROCESS_ID $= $CHILD_ERROR $PROGRAM_NAME $> $COMPILING $REAL_GROUP_ID $? $DEBUGGING $REAL_USER_ID $@ $EFFECTIVE_GROUP_ID $RS $[ $EFFECTIVE_USER_ID $SUBSCRIPT_SEPARATOR $\\ $EGID $SUBSEP $] $ERRNO $SYSTEM_FD_MAX $^ $EUID $UID $^A $EVAL_ERROR $WARNING $^C $EXCEPTIONS_BEING_CAUGHT $| $^CHILD_ERROR_NATIVE $EXECUTABLE_NAME $~ $^D $EXTENDED_OS_ERROR %! $^E $FORMAT_FORMFEED %^H $^ENCODING $FORMAT_LINE_BREAK_CHARACTERS %ENV $^F $FORMAT_LINES_LEFT %INC $^H $FORMAT_LINES_PER_PAGE %OVERLOAD $^I $FORMAT_NAME %SIG $^L $FORMAT_PAGE_NUMBER @+ $^M $FORMAT_TOP_NAME @- $^N $GID @_ $^O $INPLACE_EDIT @ARGV $^OPEN $INPUT_LINE_NUMBER @INC $^P $INPUT_RECORD_SEPARATOR @LAST_MATCH_START $^R $LAST_MATCH_END $^RE_DEBUG_FLAGS $LAST_PAREN_MATCH`.split(` `),symbols:/[:+\-\^*$&%@=<>!?|\/~\.]/,quoteLikeOps:[`qr`,`m`,`s`,`q`,`qq`,`qx`,`qw`,`tr`,`y`],escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[{include:`@whitespace`},[/[a-zA-Z\-_][\w\-_]*/,{cases:{"@keywords":`keyword`,"@builtinFunctions":`type.identifier`,"@builtinFileHandlers":`variable.predefined`,"@quoteLikeOps":{token:`@rematch`,next:`quotedConstructs`},"@default":``}}],[/[\$@%][*@#?\+\-\$!\w\\\^><~:;\.]+/,{cases:{"@builtinVariables":`variable.predefined`,"@default":`variable`}}],{include:`@strings`},{include:`@dblStrings`},{include:`@perldoc`},{include:`@heredoc`},[/[{}\[\]()]/,`@brackets`],[/[\/](?:(?:\[(?:\\]|[^\]])+\])|(?:\\\/|[^\]\/]))*[\/]\w*\s*(?=[).,;]|$)/,`regexp`],[/@symbols/,`operators`],{include:`@numbers`},[/[,;]/,`delimiter`]],whitespace:[[/\s+/,`white`],[/(^#!.*$)/,`metatag`],[/(^#.*$)/,`comment`]],numbers:[[/\d*\.\d+([eE][\-+]?\d+)?/,`number.float`],[/0[xX][0-9a-fA-F_]*[0-9a-fA-F]/,`number.hex`],[/\d+/,`number`]],strings:[[/'/,`string`,`@stringBody`]],stringBody:[[/'/,`string`,`@popall`],[/\\'/,`string.escape`],[/./,`string`]],dblStrings:[[/"/,`string`,`@dblStringBody`]],dblStringBody:[[/"/,`string`,`@popall`],[/@escapes/,`string.escape`],[/\\./,`string.escape.invalid`],{include:`@variables`},[/./,`string`]],quotedConstructs:[[/(q|qw|tr|y)\s*\(/,{token:`string.delim`,switchTo:`@qstring.(.)`}],[/(q|qw|tr|y)\s*\[/,{token:`string.delim`,switchTo:`@qstring.[.]`}],[/(q|qw|tr|y)\s*\{/,{token:`string.delim`,switchTo:`@qstring.{.}`}],[/(q|qw|tr|y)\s*</,{token:`string.delim`,switchTo:`@qstring.<.>`}],[/(q|qw|tr|y)#/,{token:`string.delim`,switchTo:`@qstring.#.#`}],[/(q|qw|tr|y)\s*([^A-Za-z0-9#\s])/,{token:`string.delim`,switchTo:`@qstring.$2.$2`}],[/(q|qw|tr|y)\s+(\w)/,{token:`string.delim`,switchTo:`@qstring.$2.$2`}],[/(qr|m|s)\s*\(/,{token:`regexp.delim`,switchTo:`@qregexp.(.)`}],[/(qr|m|s)\s*\[/,{token:`regexp.delim`,switchTo:`@qregexp.[.]`}],[/(qr|m|s)\s*\{/,{token:`regexp.delim`,switchTo:`@qregexp.{.}`}],[/(qr|m|s)\s*</,{token:`regexp.delim`,switchTo:`@qregexp.<.>`}],[/(qr|m|s)#/,{token:`regexp.delim`,switchTo:`@qregexp.#.#`}],[/(qr|m|s)\s*([^A-Za-z0-9_#\s])/,{token:`regexp.delim`,switchTo:`@qregexp.$2.$2`}],[/(qr|m|s)\s+(\w)/,{token:`regexp.delim`,switchTo:`@qregexp.$2.$2`}],[/(qq|qx)\s*\(/,{token:`string.delim`,switchTo:`@qqstring.(.)`}],[/(qq|qx)\s*\[/,{token:`string.delim`,switchTo:`@qqstring.[.]`}],[/(qq|qx)\s*\{/,{token:`string.delim`,switchTo:`@qqstring.{.}`}],[/(qq|qx)\s*</,{token:`string.delim`,switchTo:`@qqstring.<.>`}],[/(qq|qx)#/,{token:`string.delim`,switchTo:`@qqstring.#.#`}],[/(qq|qx)\s*([^A-Za-z0-9#\s])/,{token:`string.delim`,switchTo:`@qqstring.$2.$2`}],[/(qq|qx)\s+(\w)/,{token:`string.delim`,switchTo:`@qqstring.$2.$2`}]],qstring:[[/\\./,`string.escape`],[/./,{cases:{"$#==$S3":{token:`string.delim`,next:`@pop`},"$#==$S2":{token:`string.delim`,next:`@push`},"@default":`string`}}]],qregexp:[{include:`@variables`},[/\\./,`regexp.escape`],[/./,{cases:{"$#==$S3":{token:`regexp.delim`,next:`@regexpModifiers`},"$#==$S2":{token:`regexp.delim`,next:`@push`},"@default":`regexp`}}]],regexpModifiers:[[/[msixpodualngcer]+/,{token:`regexp.modifier`,next:`@popall`}]],qqstring:[{include:`@variables`},{include:`@qstring`}],heredoc:[[/<<\s*['"`]?([\w\-]+)['"`]?/,{token:`string.heredoc.delimiter`,next:`@heredocBody.$1`}]],heredocBody:[[/^([\w\-]+)$/,{cases:{"$1==$S2":[{token:`string.heredoc.delimiter`,next:`@popall`}],"@default":`string.heredoc`}}],[/./,`string.heredoc`]],perldoc:[[/^=\w/,`comment.doc`,`@perldocBody`]],perldocBody:[[/^=cut\b/,`type.identifier`,`@popall`],[/./,`comment.doc`]],variables:[[/\$\w+/,`variable`],[/@\w+/,`variable`],[/%\w+/,`variable`]]}};export{e as conf,t as language};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e={comments:{lineComment:`--`,blockComment:[`/*`,`*/`]},brackets:[[`{`,`}`],[`[`,`]`],[`(`,`)`]],autoClosingPairs:[{open:`{`,close:`}`},{open:`[`,close:`]`},{open:`(`,close:`)`},{open:`"`,close:`"`},{open:`'`,close:`'`}],surroundingPairs:[{open:`{`,close:`}`},{open:`[`,close:`]`},{open:`(`,close:`)`},{open:`"`,close:`"`},{open:`'`,close:`'`}]},t={defaultToken:``,tokenPostfix:`.sql`,ignoreCase:!0,brackets:[{open:`[`,close:`]`,token:`delimiter.square`},{open:`(`,close:`)`,token:`delimiter.parenthesis`}],keywords:`ALL.ANALYSE.ANALYZE.AND.ANY.ARRAY.AS.ASC.ASYMMETRIC.AUTHORIZATION.BINARY.BOTH.CASE.CAST.CHECK.COLLATE.COLLATION.COLUMN.CONCURRENTLY.CONSTRAINT.CREATE.CROSS.CURRENT_CATALOG.CURRENT_DATE.CURRENT_ROLE.CURRENT_SCHEMA.CURRENT_TIME.CURRENT_TIMESTAMP.CURRENT_USER.DEFAULT.DEFERRABLE.DESC.DISTINCT.DO.ELSE.END.EXCEPT.FALSE.FETCH.FOR.FOREIGN.FREEZE.FROM.FULL.GRANT.GROUP.HAVING.ILIKE.IN.INITIALLY.INNER.INTERSECT.INTO.IS.ISNULL.JOIN.LATERAL.LEADING.LEFT.LIKE.LIMIT.LOCALTIME.LOCALTIMESTAMP.NATURAL.NOT.NOTNULL.NULL.OFFSET.ON.ONLY.OR.ORDER.OUTER.OVERLAPS.PLACING.PRIMARY.REFERENCES.RETURNING.RIGHT.SELECT.SESSION_USER.SIMILAR.SOME.SYMMETRIC.TABLE.TABLESAMPLE.THEN.TO.TRAILING.TRUE.UNION.UNIQUE.USER.USING.VARIADIC.VERBOSE.WHEN.WHERE.WINDOW.WITH`.split(`.`),operators:[`AND`,`BETWEEN`,`IN`,`LIKE`,`NOT`,`OR`,`IS`,`NULL`,`INTERSECT`,`UNION`,`INNER`,`JOIN`,`LEFT`,`OUTER`,`RIGHT`],builtinFunctions:`abbrev.abs.acldefault.aclexplode.acos.acosd.acosh.age.any.area.array_agg.array_append.array_cat.array_dims.array_fill.array_length.array_lower.array_ndims.array_position.array_positions.array_prepend.array_remove.array_replace.array_to_json.array_to_string.array_to_tsvector.array_upper.ascii.asin.asind.asinh.atan.atan2.atan2d.atand.atanh.avg.bit.bit_and.bit_count.bit_length.bit_or.bit_xor.bool_and.bool_or.bound_box.box.brin_desummarize_range.brin_summarize_new_values.brin_summarize_range.broadcast.btrim.cardinality.cbrt.ceil.ceiling.center.char_length.character_length.chr.circle.clock_timestamp.coalesce.col_description.concat.concat_ws.convert.convert_from.convert_to.corr.cos.cosd.cosh.cot.cotd.count.covar_pop.covar_samp.cume_dist.current_catalog.current_database.current_date.current_query.current_role.current_schema.current_schemas.current_setting.current_time.current_timestamp.current_user.currval.cursor_to_xml.cursor_to_xmlschema.date_bin.date_part.date_trunc.database_to_xml.database_to_xml_and_xmlschema.database_to_xmlschema.decode.degrees.dense_rank.diagonal.diameter.div.encode.enum_first.enum_last.enum_range.every.exp.extract.factorial.family.first_value.floor.format.format_type.gcd.gen_random_uuid.generate_series.generate_subscripts.get_bit.get_byte.get_current_ts_config.gin_clean_pending_list.greatest.grouping.has_any_column_privilege.has_column_privilege.has_database_privilege.has_foreign_data_wrapper_privilege.has_function_privilege.has_language_privilege.has_schema_privilege.has_sequence_privilege.has_server_privilege.has_table_privilege.has_tablespace_privilege.has_type_privilege.height.host.hostmask.inet_client_addr.inet_client_port.inet_merge.inet_same_family.inet_server_addr.inet_server_port.initcap.isclosed.isempty.isfinite.isopen.json_agg.json_array_elements.json_array_elements_text.json_array_length.json_build_array.json_build_object.json_each.json_each_text.json_extract_path.json_extract_path_text.json_object.json_object_agg.json_object_keys.json_populate_record.json_populate_recordset.json_strip_nulls.json_to_record.json_to_recordset.json_to_tsvector.json_typeof.jsonb_agg.jsonb_array_elements.jsonb_array_elements_text.jsonb_array_length.jsonb_build_array.jsonb_build_object.jsonb_each.jsonb_each_text.jsonb_extract_path.jsonb_extract_path_text.jsonb_insert.jsonb_object.jsonb_object_agg.jsonb_object_keys.jsonb_path_exists.jsonb_path_match.jsonb_path_query.jsonb_path_query_array.jsonb_path_exists_tz.jsonb_path_query_first.jsonb_path_query_array_tz.jsonb_path_query_first_tz.jsonb_path_query_tz.jsonb_path_match_tz.jsonb_populate_record.jsonb_populate_recordset.jsonb_pretty.jsonb_set.jsonb_set_lax.jsonb_strip_nulls.jsonb_to_record.jsonb_to_recordset.jsonb_to_tsvector.jsonb_typeof.justify_days.justify_hours.justify_interval.lag.last_value.lastval.lcm.lead.least.left.length.line.ln.localtime.localtimestamp.log.log10.lower.lower_inc.lower_inf.lpad.lseg.ltrim.macaddr8_set7bit.make_date.make_interval.make_time.make_timestamp.make_timestamptz.makeaclitem.masklen.max.md5.min.min_scale.mod.mode.multirange.netmask.network.nextval.normalize.now.npoints.nth_value.ntile.nullif.num_nonnulls.num_nulls.numnode.obj_description.octet_length.overlay.parse_ident.path.pclose.percent_rank.percentile_cont.percentile_disc.pg_advisory_lock.pg_advisory_lock_shared.pg_advisory_unlock.pg_advisory_unlock_all.pg_advisory_unlock_shared.pg_advisory_xact_lock.pg_advisory_xact_lock_shared.pg_backend_pid.pg_backup_start_time.pg_blocking_pids.pg_cancel_backend.pg_client_encoding.pg_collation_actual_version.pg_collation_is_visible.pg_column_compression.pg_column_size.pg_conf_load_time.pg_control_checkpoint.pg_control_init.pg_control_recovery.pg_control_system.pg_conversion_is_visible.pg_copy_logical_replication_slot.pg_copy_physical_replication_slot.pg_create_logical_replication_slot.pg_create_physical_replication_slot.pg_create_restore_point.pg_current_logfile.pg_current_snapshot.pg_current_wal_flush_lsn.pg_current_wal_insert_lsn.pg_current_wal_lsn.pg_current_xact_id.pg_current_xact_id_if_assigned.pg_current_xlog_flush_location.pg_current_xlog_insert_location.pg_current_xlog_location.pg_database_size.pg_describe_object.pg_drop_replication_slot.pg_event_trigger_ddl_commands.pg_event_trigger_dropped_objects.pg_event_trigger_table_rewrite_oid.pg_event_trigger_table_rewrite_reason.pg_export_snapshot.pg_filenode_relation.pg_function_is_visible.pg_get_catalog_foreign_keys.pg_get_constraintdef.pg_get_expr.pg_get_function_arguments.pg_get_function_identity_arguments.pg_get_function_result.pg_get_functiondef.pg_get_indexdef.pg_get_keywords.pg_get_object_address.pg_get_owned_sequence.pg_get_ruledef.pg_get_serial_sequence.pg_get_statisticsobjdef.pg_get_triggerdef.pg_get_userbyid.pg_get_viewdef.pg_get_wal_replay_pause_state.pg_has_role.pg_identify_object.pg_identify_object_as_address.pg_import_system_collations.pg_index_column_has_property.pg_index_has_property.pg_indexam_has_property.pg_indexes_size.pg_is_in_backup.pg_is_in_recovery.pg_is_other_temp_schema.pg_is_wal_replay_paused.pg_is_xlog_replay_paused.pg_jit_available.pg_last_committed_xact.pg_last_wal_receive_lsn.pg_last_wal_replay_lsn.pg_last_xact_replay_timestamp.pg_last_xlog_receive_location.pg_last_xlog_replay_location.pg_listening_channels.pg_log_backend_memory_contexts.pg_logical_emit_message.pg_logical_slot_get_binary_changes.pg_logical_slot_get_changes.pg_logical_slot_peek_binary_changes.pg_logical_slot_peek_changes.pg_ls_archive_statusdir.pg_ls_dir.pg_ls_logdir.pg_ls_tmpdir.pg_ls_waldir.pg_mcv_list_items.pg_my_temp_schema.pg_notification_queue_usage.pg_opclass_is_visible.pg_operator_is_visible.pg_opfamily_is_visible.pg_options_to_table.pg_partition_ancestors.pg_partition_root.pg_partition_tree.pg_postmaster_start_time.pg_promote.pg_read_binary_file.pg_read_file.pg_relation_filenode.pg_relation_filepath.pg_relation_size.pg_reload_conf.pg_replication_origin_advance.pg_replication_origin_create.pg_replication_origin_drop.pg_replication_origin_oid.pg_replication_origin_progress.pg_replication_origin_session_is_setup.pg_replication_origin_session_progress.pg_replication_origin_session_reset.pg_replication_origin_session_setup.pg_replication_origin_xact_reset.pg_replication_origin_xact_setup.pg_replication_slot_advance.pg_rotate_logfile.pg_safe_snapshot_blocking_pids.pg_size_bytes.pg_size_pretty.pg_sleep.pg_sleep_for.pg_sleep_until.pg_snapshot_xip.pg_snapshot_xmax.pg_snapshot_xmin.pg_start_backup.pg_stat_file.pg_statistics_obj_is_visible.pg_stop_backup.pg_switch_wal.pg_switch_xlog.pg_table_is_visible.pg_table_size.pg_tablespace_databases.pg_tablespace_location.pg_tablespace_size.pg_terminate_backend.pg_total_relation_size.pg_trigger_depth.pg_try_advisory_lock.pg_try_advisory_lock_shared.pg_try_advisory_xact_lock.pg_try_advisory_xact_lock_shared.pg_ts_config_is_visible.pg_ts_dict_is_visible.pg_ts_parser_is_visible.pg_ts_template_is_visible.pg_type_is_visible.pg_typeof.pg_visible_in_snapshot.pg_wal_lsn_diff.pg_wal_replay_pause.pg_wal_replay_resume.pg_walfile_name.pg_walfile_name_offset.pg_xact_commit_timestamp.pg_xact_commit_timestamp_origin.pg_xact_status.pg_xlog_location_diff.pg_xlog_replay_pause.pg_xlog_replay_resume.pg_xlogfile_name.pg_xlogfile_name_offset.phraseto_tsquery.pi.plainto_tsquery.point.polygon.popen.position.power.pqserverversion.query_to_xml.query_to_xml_and_xmlschema.query_to_xmlschema.querytree.quote_ident.quote_literal.quote_nullable.radians.radius.random.range_agg.range_intersect_agg.range_merge.rank.regexp_count.regexp_instr.regexp_like.regexp_match.regexp_matches.regexp_replace.regexp_split_to_array.regexp_split_to_table.regexp_substr.regr_avgx.regr_avgy.regr_count.regr_intercept.regr_r2.regr_slope.regr_sxx.regr_sxy.regr_syy.repeat.replace.reverse.right.round.row_number.row_security_active.row_to_json.rpad.rtrim.scale.schema_to_xml.schema_to_xml_and_xmlschema.schema_to_xmlschema.session_user.set_bit.set_byte.set_config.set_masklen.setseed.setval.setweight.sha224.sha256.sha384.sha512.shobj_description.sign.sin.sind.sinh.slope.split_part.sprintf.sqrt.starts_with.statement_timestamp.stddev.stddev_pop.stddev_samp.string_agg.string_to_array.string_to_table.strip.strpos.substr.substring.sum.suppress_redundant_updates_trigger.table_to_xml.table_to_xml_and_xmlschema.table_to_xmlschema.tan.tand.tanh.text.timeofday.timezone.to_ascii.to_char.to_date.to_hex.to_json.to_number.to_regclass.to_regcollation.to_regnamespace.to_regoper.to_regoperator.to_regproc.to_regprocedure.to_regrole.to_regtype.to_timestamp.to_tsquery.to_tsvector.transaction_timestamp.translate.trim.trim_array.trim_scale.trunc.ts_debug.ts_delete.ts_filter.ts_headline.ts_lexize.ts_parse.ts_rank.ts_rank_cd.ts_rewrite.ts_stat.ts_token_type.tsquery_phrase.tsvector_to_array.tsvector_update_trigger.tsvector_update_trigger_column.txid_current.txid_current_if_assigned.txid_current_snapshot.txid_snapshot_xip.txid_snapshot_xmax.txid_snapshot_xmin.txid_status.txid_visible_in_snapshot.unistr.unnest.upper.upper_inc.upper_inf.user.var_pop.var_samp.variance.version.websearch_to_tsquery.width.width_bucket.xml_is_well_formed.xml_is_well_formed_content.xml_is_well_formed_document.xmlagg.xmlcomment.xmlconcat.xmlelement.xmlexists.xmlforest.xmlparse.xmlpi.xmlroot.xmlserialize.xpath.xpath_exists`.split(`.`),builtinVariables:[],pseudoColumns:[],tokenizer:{root:[{include:`@comments`},{include:`@whitespace`},{include:`@pseudoColumns`},{include:`@numbers`},{include:`@strings`},{include:`@complexIdentifiers`},{include:`@scopes`},[/[;,.]/,`delimiter`],[/[()]/,`@brackets`],[/[\w@#$]+/,{cases:{"@operators":`operator`,"@builtinVariables":`predefined`,"@builtinFunctions":`predefined`,"@keywords":`keyword`,"@default":`identifier`}}],[/[<>=!%&+\-*/|~^]/,`operator`]],whitespace:[[/\s+/,`white`]],comments:[[/--+.*/,`comment`],[/\/\*/,{token:`comment.quote`,next:`@comment`}]],comment:[[/[^*/]+/,`comment`],[/\*\//,{token:`comment.quote`,next:`@pop`}],[/./,`comment`]],pseudoColumns:[[/[$][A-Za-z_][\w@#$]*/,{cases:{"@pseudoColumns":`predefined`,"@default":`identifier`}}]],numbers:[[/0[xX][0-9a-fA-F]*/,`number`],[/[$][+-]*\d*(\.\d*)?/,`number`],[/((\d+(\.\d*)?)|(\.\d+))([eE][\-+]?\d+)?/,`number`]],strings:[[/'/,{token:`string`,next:`@string`}]],string:[[/[^']+/,`string`],[/''/,`string`],[/'/,{token:`string`,next:`@pop`}]],complexIdentifiers:[[/"/,{token:`identifier.quote`,next:`@quotedIdentifier`}]],quotedIdentifier:[[/[^"]+/,`identifier`],[/""/,`identifier`],[/"/,{token:`identifier.quote`,next:`@pop`}]],scopes:[]}};export{e as conf,t as language};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:`//`,blockComment:[`/*`,`*/`]},brackets:[[`{`,`}`],[`[`,`]`],[`(`,`)`]],autoClosingPairs:[{open:`{`,close:`}`,notIn:[`string`]},{open:`[`,close:`]`,notIn:[`string`]},{open:`(`,close:`)`,notIn:[`string`]},{open:`"`,close:`"`,notIn:[`string`]},{open:`'`,close:`'`,notIn:[`string`,`comment`]}],folding:{markers:{start:RegExp(`^\\s*(#|//)region\\b`),end:RegExp(`^\\s*(#|//)endregion\\b`)}}},t={defaultToken:``,tokenPostfix:``,tokenizer:{root:[[/<\?((php)|=)?/,{token:`@rematch`,switchTo:`@phpInSimpleState.root`}],[/<!DOCTYPE/,`metatag.html`,`@doctype`],[/<!--/,`comment.html`,`@comment`],[/(<)(\w+)(\/>)/,[`delimiter.html`,`tag.html`,`delimiter.html`]],[/(<)(script)/,[`delimiter.html`,{token:`tag.html`,next:`@script`}]],[/(<)(style)/,[`delimiter.html`,{token:`tag.html`,next:`@style`}]],[/(<)([:\w]+)/,[`delimiter.html`,{token:`tag.html`,next:`@otherTag`}]],[/(<\/)(\w+)/,[`delimiter.html`,{token:`tag.html`,next:`@otherTag`}]],[/</,`delimiter.html`],[/[^<]+/]],doctype:[[/<\?((php)|=)?/,{token:`@rematch`,switchTo:`@phpInSimpleState.comment`}],[/[^>]+/,`metatag.content.html`],[/>/,`metatag.html`,`@pop`]],comment:[[/<\?((php)|=)?/,{token:`@rematch`,switchTo:`@phpInSimpleState.comment`}],[/-->/,`comment.html`,`@pop`],[/[^-]+/,`comment.content.html`],[/./,`comment.content.html`]],otherTag:[[/<\?((php)|=)?/,{token:`@rematch`,switchTo:`@phpInSimpleState.otherTag`}],[/\/?>/,`delimiter.html`,`@pop`],[/"([^"]*)"/,`attribute.value`],[/'([^']*)'/,`attribute.value`],[/[\w\-]+/,`attribute.name`],[/=/,`delimiter`],[/[ \t\r\n]+/]],script:[[/<\?((php)|=)?/,{token:`@rematch`,switchTo:`@phpInSimpleState.script`}],[/type/,`attribute.name`,`@scriptAfterType`],[/"([^"]*)"/,`attribute.value`],[/'([^']*)'/,`attribute.value`],[/[\w\-]+/,`attribute.name`],[/=/,`delimiter`],[/>/,{token:`delimiter.html`,next:`@scriptEmbedded.text/javascript`,nextEmbedded:`text/javascript`}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,[`delimiter.html`,`tag.html`,{token:`delimiter.html`,next:`@pop`}]]],scriptAfterType:[[/<\?((php)|=)?/,{token:`@rematch`,switchTo:`@phpInSimpleState.scriptAfterType`}],[/=/,`delimiter`,`@scriptAfterTypeEquals`],[/>/,{token:`delimiter.html`,next:`@scriptEmbedded.text/javascript`,nextEmbedded:`text/javascript`}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:`@rematch`,next:`@pop`}]],scriptAfterTypeEquals:[[/<\?((php)|=)?/,{token:`@rematch`,switchTo:`@phpInSimpleState.scriptAfterTypeEquals`}],[/"([^"]*)"/,{token:`attribute.value`,switchTo:`@scriptWithCustomType.$1`}],[/'([^']*)'/,{token:`attribute.value`,switchTo:`@scriptWithCustomType.$1`}],[/>/,{token:`delimiter.html`,next:`@scriptEmbedded.text/javascript`,nextEmbedded:`text/javascript`}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:`@rematch`,next:`@pop`}]],scriptWithCustomType:[[/<\?((php)|=)?/,{token:`@rematch`,switchTo:`@phpInSimpleState.scriptWithCustomType.$S2`}],[/>/,{token:`delimiter.html`,next:`@scriptEmbedded.$S2`,nextEmbedded:`$S2`}],[/"([^"]*)"/,`attribute.value`],[/'([^']*)'/,`attribute.value`],[/[\w\-]+/,`attribute.name`],[/=/,`delimiter`],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:`@rematch`,next:`@pop`}]],scriptEmbedded:[[/<\?((php)|=)?/,{token:`@rematch`,switchTo:`@phpInEmbeddedState.scriptEmbedded.$S2`,nextEmbedded:`@pop`}],[/<\/script/,{token:`@rematch`,next:`@pop`,nextEmbedded:`@pop`}]],style:[[/<\?((php)|=)?/,{token:`@rematch`,switchTo:`@phpInSimpleState.style`}],[/type/,`attribute.name`,`@styleAfterType`],[/"([^"]*)"/,`attribute.value`],[/'([^']*)'/,`attribute.value`],[/[\w\-]+/,`attribute.name`],[/=/,`delimiter`],[/>/,{token:`delimiter.html`,next:`@styleEmbedded.text/css`,nextEmbedded:`text/css`}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,[`delimiter.html`,`tag.html`,{token:`delimiter.html`,next:`@pop`}]]],styleAfterType:[[/<\?((php)|=)?/,{token:`@rematch`,switchTo:`@phpInSimpleState.styleAfterType`}],[/=/,`delimiter`,`@styleAfterTypeEquals`],[/>/,{token:`delimiter.html`,next:`@styleEmbedded.text/css`,nextEmbedded:`text/css`}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:`@rematch`,next:`@pop`}]],styleAfterTypeEquals:[[/<\?((php)|=)?/,{token:`@rematch`,switchTo:`@phpInSimpleState.styleAfterTypeEquals`}],[/"([^"]*)"/,{token:`attribute.value`,switchTo:`@styleWithCustomType.$1`}],[/'([^']*)'/,{token:`attribute.value`,switchTo:`@styleWithCustomType.$1`}],[/>/,{token:`delimiter.html`,next:`@styleEmbedded.text/css`,nextEmbedded:`text/css`}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:`@rematch`,next:`@pop`}]],styleWithCustomType:[[/<\?((php)|=)?/,{token:`@rematch`,switchTo:`@phpInSimpleState.styleWithCustomType.$S2`}],[/>/,{token:`delimiter.html`,next:`@styleEmbedded.$S2`,nextEmbedded:`$S2`}],[/"([^"]*)"/,`attribute.value`],[/'([^']*)'/,`attribute.value`],[/[\w\-]+/,`attribute.name`],[/=/,`delimiter`],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:`@rematch`,next:`@pop`}]],styleEmbedded:[[/<\?((php)|=)?/,{token:`@rematch`,switchTo:`@phpInEmbeddedState.styleEmbedded.$S2`,nextEmbedded:`@pop`}],[/<\/style/,{token:`@rematch`,next:`@pop`,nextEmbedded:`@pop`}]],phpInSimpleState:[[/<\?((php)|=)?/,`metatag.php`],[/\?>/,{token:`metatag.php`,switchTo:`@$S2.$S3`}],{include:`phpRoot`}],phpInEmbeddedState:[[/<\?((php)|=)?/,`metatag.php`],[/\?>/,{token:`metatag.php`,switchTo:`@$S2.$S3`,nextEmbedded:`$S3`}],{include:`phpRoot`}],phpRoot:[[/[a-zA-Z_]\w*/,{cases:{"@phpKeywords":{token:`keyword.php`},"@phpCompileTimeConstants":{token:`constant.php`},"@default":`identifier.php`}}],[/[$a-zA-Z_]\w*/,{cases:{"@phpPreDefinedVariables":{token:`variable.predefined.php`},"@default":`variable.php`}}],[/[{}]/,`delimiter.bracket.php`],[/[\[\]]/,`delimiter.array.php`],[/[()]/,`delimiter.parenthesis.php`],[/[ \t\r\n]+/],[/(#|\/\/)$/,`comment.php`],[/(#|\/\/)/,`comment.php`,`@phpLineComment`],[/\/\*/,`comment.php`,`@phpComment`],[/"/,`string.php`,`@phpDoubleQuoteString`],[/'/,`string.php`,`@phpSingleQuoteString`],[/[\+\-\*\%\&\|\^\~\!\=\<\>\/\?\;\:\.\,\@]/,`delimiter.php`],[/\d*\d+[eE]([\-+]?\d+)?/,`number.float.php`],[/\d*\.\d+([eE][\-+]?\d+)?/,`number.float.php`],[/0[xX][0-9a-fA-F']*[0-9a-fA-F]/,`number.hex.php`],[/0[0-7']*[0-7]/,`number.octal.php`],[/0[bB][0-1']*[0-1]/,`number.binary.php`],[/\d[\d']*/,`number.php`],[/\d/,`number.php`]],phpComment:[[/\*\//,`comment.php`,`@pop`],[/[^*]+/,`comment.php`],[/./,`comment.php`]],phpLineComment:[[/\?>/,{token:`@rematch`,next:`@pop`}],[/.$/,`comment.php`,`@pop`],[/[^?]+$/,`comment.php`,`@pop`],[/[^?]+/,`comment.php`],[/./,`comment.php`]],phpDoubleQuoteString:[[/[^\\"]+/,`string.php`],[/@escapes/,`string.escape.php`],[/\\./,`string.escape.invalid.php`],[/"/,`string.php`,`@pop`]],phpSingleQuoteString:[[/[^\\']+/,`string.php`],[/@escapes/,`string.escape.php`],[/\\./,`string.escape.invalid.php`],[/'/,`string.php`,`@pop`]]},phpKeywords:`abstract.and.array.as.break.callable.case.catch.cfunction.class.clone.const.continue.declare.default.do.else.elseif.enddeclare.endfor.endforeach.endif.endswitch.endwhile.extends.false.final.for.foreach.function.global.goto.if.implements.interface.instanceof.insteadof.namespace.new.null.object.old_function.or.private.protected.public.resource.static.switch.throw.trait.try.true.use.var.while.xor.die.echo.empty.exit.eval.include.include_once.isset.list.require.require_once.return.print.unset.yield.__construct`.split(`.`),phpCompileTimeConstants:[`__CLASS__`,`__DIR__`,`__FILE__`,`__LINE__`,`__NAMESPACE__`,`__METHOD__`,`__FUNCTION__`,`__TRAIT__`],phpPreDefinedVariables:[`$GLOBALS`,`$_SERVER`,`$_GET`,`$_POST`,`$_FILES`,`$_REQUEST`,`$_SESSION`,`$_ENV`,`$_COOKIE`,`$php_errormsg`,`$HTTP_RAW_POST_DATA`,`$http_response_header`,`$argc`,`$argv`],escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/};export{e as conf,t as language};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e={comments:{lineComment:`#`},brackets:[[`[`,`]`],[`<`,`>`],[`(`,`)`]],autoClosingPairs:[{open:`[`,close:`]`},{open:`<`,close:`>`},{open:`(`,close:`)`}],surroundingPairs:[{open:`[`,close:`]`},{open:`<`,close:`>`},{open:`(`,close:`)`}]},t={defaultToken:``,tokenPostfix:`.pla`,brackets:[{open:`[`,close:`]`,token:`delimiter.square`},{open:`<`,close:`>`,token:`delimiter.angle`},{open:`(`,close:`)`,token:`delimiter.parenthesis`}],keywords:[`.i`,`.o`,`.mv`,`.ilb`,`.ob`,`.label`,`.type`,`.phase`,`.pair`,`.symbolic`,`.symbolic-output`,`.kiss`,`.p`,`.e`,`.end`],comment:/#.*$/,identifier:/[a-zA-Z]+[a-zA-Z0-9_\-]*/,plaContent:/[01\-~\|]+/,tokenizer:{root:[{include:`@whitespace`},[/@comment/,`comment`],[/\.([a-zA-Z_\-]+)/,{cases:{"@eos":{token:`keyword.$1`},"@keywords":{cases:{".type":{token:`keyword.$1`,next:`@type`},"@default":{token:`keyword.$1`,next:`@keywordArg`}}},"@default":{token:`keyword.$1`}}}],[/@identifier/,`identifier`],[/@plaContent/,`string`]],whitespace:[[/[ \t\r\n]+/,``]],type:[{include:`@whitespace`},[/\w+/,{token:`type`,next:`@pop`}]],keywordArg:[[/[ \t\r\n]+/,{cases:{"@eos":{token:``,next:`@pop`},"@default":``}}],[/@comment/,`comment`,`@pop`],[/[<>()\[\]]/,{cases:{"@eos":{token:`@brackets`,next:`@pop`},"@default":`@brackets`}}],[/\-?\d+/,{cases:{"@eos":{token:`number`,next:`@pop`},"@default":`number`}}],[/@identifier/,{cases:{"@eos":{token:`identifier`,next:`@pop`},"@default":`identifier`}}],[/[;=]/,{cases:{"@eos":{token:`delimiter`,next:`@pop`},"@default":`delimiter`}}]]}};export{e as conf,t as language};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e={comments:{lineComment:`//`,blockComment:[`(*`,`*)`]},brackets:[[`{`,`}`],[`[`,`]`],[`(`,`)`],[`<`,`>`]],autoClosingPairs:[{open:`"`,close:`"`,notIn:[`string`,`comment`]},{open:`{`,close:`}`,notIn:[`string`,`comment`]},{open:`[`,close:`]`,notIn:[`string`,`comment`]},{open:`(`,close:`)`,notIn:[`string`,`comment`]}]},t={tokenPostfix:`.pats`,defaultToken:`invalid`,keywords:`abstype.abst0ype.absprop.absview.absvtype.absviewtype.absvt0ype.absviewt0ype.as.and.assume.begin.classdec.datasort.datatype.dataprop.dataview.datavtype.dataviewtype.do.end.extern.extype.extvar.exception.fn.fnx.fun.prfn.prfun.praxi.castfn.if.then.else.ifcase.in.infix.infixl.infixr.prefix.postfix.implmnt.implement.primplmnt.primplement.import.let.local.macdef.macrodef.nonfix.symelim.symintr.overload.of.op.rec.sif.scase.sortdef.sta.stacst.stadef.static.staload.dynload.try.tkindef.typedef.propdef.viewdef.vtypedef.viewtypedef.prval.var.prvar.when.where.with.withtype.withprop.withview.withvtype.withviewtype`.split(`.`),keywords_dlr:`$delay.$ldelay.$arrpsz.$arrptrsize.$d2ctype.$effmask.$effmask_ntm.$effmask_exn.$effmask_ref.$effmask_wrt.$effmask_all.$extern.$extkind.$extype.$extype_struct.$extval.$extfcall.$extmcall.$literal.$myfilename.$mylocation.$myfunction.$lst.$lst_t.$lst_vt.$list.$list_t.$list_vt.$rec.$rec_t.$rec_vt.$record.$record_t.$record_vt.$tup.$tup_t.$tup_vt.$tuple.$tuple_t.$tuple_vt.$break.$continue.$raise.$showtype.$vcopyenv_v.$vcopyenv_vt.$tempenver.$solver_assert.$solver_verify`.split(`.`),keywords_srp:[`#if`,`#ifdef`,`#ifndef`,`#then`,`#elif`,`#elifdef`,`#elifndef`,`#else`,`#endif`,`#error`,`#prerr`,`#print`,`#assert`,`#undef`,`#define`,`#include`,`#require`,`#pragma`,`#codegen2`,`#codegen3`],irregular_keyword_list:`val+.val-.val.case+.case-.case.addr@.addr.fold@.free@.fix@.fix.lam@.lam.llam@.llam.viewt@ype+.viewt@ype-.viewt@ype.viewtype+.viewtype-.viewtype.view+.view-.view@.view.type+.type-.type.vtype+.vtype-.vtype.vt@ype+.vt@ype-.vt@ype.viewt@ype+.viewt@ype-.viewt@ype.viewtype+.viewtype-.viewtype.prop+.prop-.prop.type+.type-.type.t@ype.t@ype+.t@ype-.abst@ype.abstype.absviewt@ype.absvt@ype.for*.for.while*.while`.split(`.`),keywords_types:[`bool`,`double`,`byte`,`int`,`short`,`char`,`void`,`unit`,`long`,`float`,`string`,`strptr`],keywords_effects:[`0`,`fun`,`clo`,`prf`,`funclo`,`cloptr`,`cloref`,`ref`,`ntm`,`1`],operators:[`@`,`!`,`|`,"`",`:`,`$`,`.`,`=`,`#`,`~`,`..`,`...`,`=>`,`=<>`,`=/=>`,`=>>`,`=/=>>`,`<`,`>`,`><`,`.<`,`>.`,`.<>.`,`->`,`-<>`],brackets:[{open:`,(`,close:`)`,token:`delimiter.parenthesis`},{open:"`(",close:`)`,token:`delimiter.parenthesis`},{open:`%(`,close:`)`,token:`delimiter.parenthesis`},{open:`'(`,close:`)`,token:`delimiter.parenthesis`},{open:`'{`,close:`}`,token:`delimiter.parenthesis`},{open:`@(`,close:`)`,token:`delimiter.parenthesis`},{open:`@{`,close:`}`,token:`delimiter.brace`},{open:`@[`,close:`]`,token:`delimiter.square`},{open:`#[`,close:`]`,token:`delimiter.square`},{open:`{`,close:`}`,token:`delimiter.curly`},{open:`[`,close:`]`,token:`delimiter.square`},{open:`(`,close:`)`,token:`delimiter.parenthesis`},{open:`<`,close:`>`,token:`delimiter.angle`}],symbols:/[=><!~?:&|+\-*\/\^%]+/,IDENTFST:/[a-zA-Z_]/,IDENTRST:/[a-zA-Z0-9_'$]/,symbolic:/[%&+-./:=@~`^|*!$#?<>]/,digit:/[0-9]/,digitseq0:/@digit*/,xdigit:/[0-9A-Za-z]/,xdigitseq0:/@xdigit*/,INTSP:/[lLuU]/,FLOATSP:/[fFlL]/,fexponent:/[eE][+-]?[0-9]+/,fexponent_bin:/[pP][+-]?[0-9]+/,deciexp:/\.[0-9]*@fexponent?/,hexiexp:/\.[0-9a-zA-Z]*@fexponent_bin?/,irregular_keywords:/val[+-]?|case[+-]?|addr\@?|fold\@|free\@|fix\@?|lam\@?|llam\@?|prop[+-]?|type[+-]?|view[+-@]?|viewt@?ype[+-]?|t@?ype[+-]?|v(iew)?t@?ype[+-]?|abst@?ype|absv(iew)?t@?ype|for\*?|while\*?/,ESCHAR:/[ntvbrfa\\\?'"\(\[\{]/,start:`root`,tokenizer:{root:[{regex:/[ \t\r\n]+/,action:{token:``}},{regex:/\(\*\)/,action:{token:`invalid`}},{regex:/\(\*/,action:{token:`comment`,next:`lexing_COMMENT_block_ml`}},{regex:/\(/,action:`@brackets`},{regex:/\)/,action:`@brackets`},{regex:/\[/,action:`@brackets`},{regex:/\]/,action:`@brackets`},{regex:/\{/,action:`@brackets`},{regex:/\}/,action:`@brackets`},{regex:/,\(/,action:`@brackets`},{regex:/,/,action:{token:`delimiter.comma`}},{regex:/;/,action:{token:`delimiter.semicolon`}},{regex:/@\(/,action:`@brackets`},{regex:/@\[/,action:`@brackets`},{regex:/@\{/,action:`@brackets`},{regex:/:</,action:{token:`keyword`,next:`@lexing_EFFECT_commaseq0`}},{regex:/\.@symbolic+/,action:{token:`identifier.sym`}},{regex:/\.@digit*@fexponent@FLOATSP*/,action:{token:`number.float`}},{regex:/\.@digit+/,action:{token:`number.float`}},{regex:/\$@IDENTFST@IDENTRST*/,action:{cases:{"@keywords_dlr":{token:`keyword.dlr`},"@default":{token:`namespace`}}}},{regex:/\#@IDENTFST@IDENTRST*/,action:{cases:{"@keywords_srp":{token:`keyword.srp`},"@default":{token:`identifier`}}}},{regex:/%\(/,action:{token:`delimiter.parenthesis`}},{regex:/^%{(#|\^|\$)?/,action:{token:`keyword`,next:`@lexing_EXTCODE`,nextEmbedded:`text/javascript`}},{regex:/^%}/,action:{token:`keyword`}},{regex:/'\(/,action:{token:`delimiter.parenthesis`}},{regex:/'\[/,action:{token:`delimiter.bracket`}},{regex:/'\{/,action:{token:`delimiter.brace`}},[/(')(\\@ESCHAR|\\[xX]@xdigit+|\\@digit+)(')/,[`string`,`string.escape`,`string`]],[/'[^\\']'/,`string`],[/"/,`string.quote`,`@lexing_DQUOTE`],{regex:/`\(/,action:`@brackets`},{regex:/\\/,action:{token:`punctuation`}},{regex:/@irregular_keywords(?!@IDENTRST)/,action:{token:`keyword`}},{regex:/@IDENTFST@IDENTRST*[<!\[]?/,action:{cases:{"@keywords":{token:`keyword`},"@keywords_types":{token:`type`},"@default":{token:`identifier`}}}},{regex:/\/\/\/\//,action:{token:`comment`,next:`@lexing_COMMENT_rest`}},{regex:/\/\/.*$/,action:{token:`comment`}},{regex:/\/\*/,action:{token:`comment`,next:`@lexing_COMMENT_block_c`}},{regex:/-<|=</,action:{token:`keyword`,next:`@lexing_EFFECT_commaseq0`}},{regex:/@symbolic+/,action:{cases:{"@operators":`keyword`,"@default":`operator`}}},{regex:/0[xX]@xdigit+(@hexiexp|@fexponent_bin)@FLOATSP*/,action:{token:`number.float`}},{regex:/0[xX]@xdigit+@INTSP*/,action:{token:`number.hex`}},{regex:/0[0-7]+(?![0-9])@INTSP*/,action:{token:`number.octal`}},{regex:/@digit+(@fexponent|@deciexp)@FLOATSP*/,action:{token:`number.float`}},{regex:/@digit@digitseq0@INTSP*/,action:{token:`number.decimal`}},{regex:/@digit+@INTSP*/,action:{token:`number`}}],lexing_COMMENT_block_ml:[[/[^\(\*]+/,`comment`],[/\(\*/,`comment`,`@push`],[/\(\*/,`comment.invalid`],[/\*\)/,`comment`,`@pop`],[/\*/,`comment`]],lexing_COMMENT_block_c:[[/[^\/*]+/,`comment`],[/\*\//,`comment`,`@pop`],[/[\/*]/,`comment`]],lexing_COMMENT_rest:[[/$/,`comment`,`@pop`],[/.*/,`comment`]],lexing_EFFECT_commaseq0:[{regex:/@IDENTFST@IDENTRST+|@digit+/,action:{cases:{"@keywords_effects":{token:`type.effect`},"@default":{token:`identifier`}}}},{regex:/,/,action:{token:`punctuation`}},{regex:/>/,action:{token:`@rematch`,next:`@pop`}}],lexing_EXTCODE:[{regex:/^%}/,action:{token:`@rematch`,next:`@pop`,nextEmbedded:`@pop`}},{regex:/[^%]+/,action:``}],lexing_DQUOTE:[{regex:/"/,action:{token:`string.quote`,next:`@pop`}},{regex:/(\{\$)(@IDENTFST@IDENTRST*)(\})/,action:[{token:`string.escape`},{token:`identifier`},{token:`string.escape`}]},{regex:/\\$/,action:{token:`string.escape`}},{regex:/\\(@ESCHAR|[xX]@xdigit+|@digit+)/,action:{token:`string.escape`}},{regex:/[^\\"]+/,action:{token:`string`}}]}};export{e as conf,t as language};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e={comments:{lineComment:`//`,blockComment:[`/*`,`*/`]},brackets:[[`[`,`]`],[`(`,`)`],[`{`,`}`]],autoClosingPairs:[{open:`"`,close:`"`,notIn:[`string`,`comment`,`identifier`]},{open:`[`,close:`]`,notIn:[`string`,`comment`,`identifier`]},{open:`(`,close:`)`,notIn:[`string`,`comment`,`identifier`]},{open:`{`,close:`}`,notIn:[`string`,`comment`,`identifier`]}]},t={defaultToken:``,tokenPostfix:`.pq`,ignoreCase:!1,brackets:[{open:`[`,close:`]`,token:`delimiter.square`},{open:`{`,close:`}`,token:`delimiter.brackets`},{open:`(`,close:`)`,token:`delimiter.parenthesis`}],operatorKeywords:[`and`,`not`,`or`],keywords:[`as`,`each`,`else`,`error`,`false`,`if`,`in`,`is`,`let`,`meta`,`otherwise`,`section`,`shared`,`then`,`true`,`try`,`type`],constructors:[`#binary`,`#date`,`#datetime`,`#datetimezone`,`#duration`,`#table`,`#time`],constants:[`#infinity`,`#nan`,`#sections`,`#shared`],typeKeywords:[`action`,`any`,`anynonnull`,`none`,`null`,`logical`,`number`,`time`,`date`,`datetime`,`datetimezone`,`duration`,`text`,`binary`,`list`,`record`,`table`,`function`],builtinFunctions:`Access.Database,Action.Return,Action.Sequence,Action.Try,ActiveDirectory.Domains,AdoDotNet.DataSource,AdoDotNet.Query,AdobeAnalytics.Cubes,AnalysisServices.Database,AnalysisServices.Databases,AzureStorage.BlobContents,AzureStorage.Blobs,AzureStorage.Tables,Binary.Buffer,Binary.Combine,Binary.Compress,Binary.Decompress,Binary.End,Binary.From,Binary.FromList,Binary.FromText,Binary.InferContentType,Binary.Length,Binary.ToList,Binary.ToText,BinaryFormat.7BitEncodedSignedInteger,BinaryFormat.7BitEncodedUnsignedInteger,BinaryFormat.Binary,BinaryFormat.Byte,BinaryFormat.ByteOrder,BinaryFormat.Choice,BinaryFormat.Decimal,BinaryFormat.Double,BinaryFormat.Group,BinaryFormat.Length,BinaryFormat.List,BinaryFormat.Null,BinaryFormat.Record,BinaryFormat.SignedInteger16,BinaryFormat.SignedInteger32,BinaryFormat.SignedInteger64,BinaryFormat.Single,BinaryFormat.Text,BinaryFormat.Transform,BinaryFormat.UnsignedInteger16,BinaryFormat.UnsignedInteger32,BinaryFormat.UnsignedInteger64,Byte.From,Character.FromNumber,Character.ToNumber,Combiner.CombineTextByDelimiter,Combiner.CombineTextByEachDelimiter,Combiner.CombineTextByLengths,Combiner.CombineTextByPositions,Combiner.CombineTextByRanges,Comparer.Equals,Comparer.FromCulture,Comparer.Ordinal,Comparer.OrdinalIgnoreCase,Csv.Document,Cube.AddAndExpandDimensionColumn,Cube.AddMeasureColumn,Cube.ApplyParameter,Cube.AttributeMemberId,Cube.AttributeMemberProperty,Cube.CollapseAndRemoveColumns,Cube.Dimensions,Cube.DisplayFolders,Cube.Measures,Cube.Parameters,Cube.Properties,Cube.PropertyKey,Cube.ReplaceDimensions,Cube.Transform,Currency.From,DB2.Database,Date.AddDays,Date.AddMonths,Date.AddQuarters,Date.AddWeeks,Date.AddYears,Date.Day,Date.DayOfWeek,Date.DayOfWeekName,Date.DayOfYear,Date.DaysInMonth,Date.EndOfDay,Date.EndOfMonth,Date.EndOfQuarter,Date.EndOfWeek,Date.EndOfYear,Date.From,Date.FromText,Date.IsInCurrentDay,Date.IsInCurrentMonth,Date.IsInCurrentQuarter,Date.IsInCurrentWeek,Date.IsInCurrentYear,Date.IsInNextDay,Date.IsInNextMonth,Date.IsInNextNDays,Date.IsInNextNMonths,Date.IsInNextNQuarters,Date.IsInNextNWeeks,Date.IsInNextNYears,Date.IsInNextQuarter,Date.IsInNextWeek,Date.IsInNextYear,Date.IsInPreviousDay,Date.IsInPreviousMonth,Date.IsInPreviousNDays,Date.IsInPreviousNMonths,Date.IsInPreviousNQuarters,Date.IsInPreviousNWeeks,Date.IsInPreviousNYears,Date.IsInPreviousQuarter,Date.IsInPreviousWeek,Date.IsInPreviousYear,Date.IsInYearToDate,Date.IsLeapYear,Date.Month,Date.MonthName,Date.QuarterOfYear,Date.StartOfDay,Date.StartOfMonth,Date.StartOfQuarter,Date.StartOfWeek,Date.StartOfYear,Date.ToRecord,Date.ToText,Date.WeekOfMonth,Date.WeekOfYear,Date.Year,DateTime.AddZone,DateTime.Date,DateTime.FixedLocalNow,DateTime.From,DateTime.FromFileTime,DateTime.FromText,DateTime.IsInCurrentHour,DateTime.IsInCurrentMinute,DateTime.IsInCurrentSecond,DateTime.IsInNextHour,DateTime.IsInNextMinute,DateTime.IsInNextNHours,DateTime.IsInNextNMinutes,DateTime.IsInNextNSeconds,DateTime.IsInNextSecond,DateTime.IsInPreviousHour,DateTime.IsInPreviousMinute,DateTime.IsInPreviousNHours,DateTime.IsInPreviousNMinutes,DateTime.IsInPreviousNSeconds,DateTime.IsInPreviousSecond,DateTime.LocalNow,DateTime.Time,DateTime.ToRecord,DateTime.ToText,DateTimeZone.FixedLocalNow,DateTimeZone.FixedUtcNow,DateTimeZone.From,DateTimeZone.FromFileTime,DateTimeZone.FromText,DateTimeZone.LocalNow,DateTimeZone.RemoveZone,DateTimeZone.SwitchZone,DateTimeZone.ToLocal,DateTimeZone.ToRecord,DateTimeZone.ToText,DateTimeZone.ToUtc,DateTimeZone.UtcNow,DateTimeZone.ZoneHours,DateTimeZone.ZoneMinutes,Decimal.From,Diagnostics.ActivityId,Diagnostics.Trace,DirectQueryCapabilities.From,Double.From,Duration.Days,Duration.From,Duration.FromText,Duration.Hours,Duration.Minutes,Duration.Seconds,Duration.ToRecord,Duration.ToText,Duration.TotalDays,Duration.TotalHours,Duration.TotalMinutes,Duration.TotalSeconds,Embedded.Value,Error.Record,Excel.CurrentWorkbook,Excel.Workbook,Exchange.Contents,Expression.Constant,Expression.Evaluate,Expression.Identifier,Facebook.Graph,File.Contents,Folder.Contents,Folder.Files,Function.From,Function.Invoke,Function.InvokeAfter,Function.IsDataSource,GoogleAnalytics.Accounts,Guid.From,HdInsight.Containers,HdInsight.Contents,HdInsight.Files,Hdfs.Contents,Hdfs.Files,Informix.Database,Int16.From,Int32.From,Int64.From,Int8.From,ItemExpression.From,Json.Document,Json.FromValue,Lines.FromBinary,Lines.FromText,Lines.ToBinary,Lines.ToText,List.Accumulate,List.AllTrue,List.Alternate,List.AnyTrue,List.Average,List.Buffer,List.Combine,List.Contains,List.ContainsAll,List.ContainsAny,List.Count,List.Covariance,List.DateTimeZones,List.DateTimes,List.Dates,List.Difference,List.Distinct,List.Durations,List.FindText,List.First,List.FirstN,List.Generate,List.InsertRange,List.Intersect,List.IsDistinct,List.IsEmpty,List.Last,List.LastN,List.MatchesAll,List.MatchesAny,List.Max,List.MaxN,List.Median,List.Min,List.MinN,List.Mode,List.Modes,List.NonNullCount,List.Numbers,List.PositionOf,List.PositionOfAny,List.Positions,List.Product,List.Random,List.Range,List.RemoveFirstN,List.RemoveItems,List.RemoveLastN,List.RemoveMatchingItems,List.RemoveNulls,List.RemoveRange,List.Repeat,List.ReplaceMatchingItems,List.ReplaceRange,List.ReplaceValue,List.Reverse,List.Select,List.Single,List.SingleOrDefault,List.Skip,List.Sort,List.StandardDeviation,List.Sum,List.Times,List.Transform,List.TransformMany,List.Union,List.Zip,Logical.From,Logical.FromText,Logical.ToText,MQ.Queue,MySQL.Database,Number.Abs,Number.Acos,Number.Asin,Number.Atan,Number.Atan2,Number.BitwiseAnd,Number.BitwiseNot,Number.BitwiseOr,Number.BitwiseShiftLeft,Number.BitwiseShiftRight,Number.BitwiseXor,Number.Combinations,Number.Cos,Number.Cosh,Number.Exp,Number.Factorial,Number.From,Number.FromText,Number.IntegerDivide,Number.IsEven,Number.IsNaN,Number.IsOdd,Number.Ln,Number.Log,Number.Log10,Number.Mod,Number.Permutations,Number.Power,Number.Random,Number.RandomBetween,Number.Round,Number.RoundAwayFromZero,Number.RoundDown,Number.RoundTowardZero,Number.RoundUp,Number.Sign,Number.Sin,Number.Sinh,Number.Sqrt,Number.Tan,Number.Tanh,Number.ToText,OData.Feed,Odbc.DataSource,Odbc.Query,OleDb.DataSource,OleDb.Query,Oracle.Database,Percentage.From,PostgreSQL.Database,RData.FromBinary,Record.AddField,Record.Combine,Record.Field,Record.FieldCount,Record.FieldNames,Record.FieldOrDefault,Record.FieldValues,Record.FromList,Record.FromTable,Record.HasFields,Record.RemoveFields,Record.RenameFields,Record.ReorderFields,Record.SelectFields,Record.ToList,Record.ToTable,Record.TransformFields,Replacer.ReplaceText,Replacer.ReplaceValue,RowExpression.Column,RowExpression.From,Salesforce.Data,Salesforce.Reports,SapBusinessWarehouse.Cubes,SapHana.Database,SharePoint.Contents,SharePoint.Files,SharePoint.Tables,Single.From,Soda.Feed,Splitter.SplitByNothing,Splitter.SplitTextByAnyDelimiter,Splitter.SplitTextByDelimiter,Splitter.SplitTextByEachDelimiter,Splitter.SplitTextByLengths,Splitter.SplitTextByPositions,Splitter.SplitTextByRanges,Splitter.SplitTextByRepeatedLengths,Splitter.SplitTextByWhitespace,Sql.Database,Sql.Databases,SqlExpression.SchemaFrom,SqlExpression.ToExpression,Sybase.Database,Table.AddColumn,Table.AddIndexColumn,Table.AddJoinColumn,Table.AddKey,Table.AggregateTableColumn,Table.AlternateRows,Table.Buffer,Table.Column,Table.ColumnCount,Table.ColumnNames,Table.ColumnsOfType,Table.Combine,Table.CombineColumns,Table.Contains,Table.ContainsAll,Table.ContainsAny,Table.DemoteHeaders,Table.Distinct,Table.DuplicateColumn,Table.ExpandListColumn,Table.ExpandRecordColumn,Table.ExpandTableColumn,Table.FillDown,Table.FillUp,Table.FilterWithDataTable,Table.FindText,Table.First,Table.FirstN,Table.FirstValue,Table.FromColumns,Table.FromList,Table.FromPartitions,Table.FromRecords,Table.FromRows,Table.FromValue,Table.Group,Table.HasColumns,Table.InsertRows,Table.IsDistinct,Table.IsEmpty,Table.Join,Table.Keys,Table.Last,Table.LastN,Table.MatchesAllRows,Table.MatchesAnyRows,Table.Max,Table.MaxN,Table.Min,Table.MinN,Table.NestedJoin,Table.Partition,Table.PartitionValues,Table.Pivot,Table.PositionOf,Table.PositionOfAny,Table.PrefixColumns,Table.Profile,Table.PromoteHeaders,Table.Range,Table.RemoveColumns,Table.RemoveFirstN,Table.RemoveLastN,Table.RemoveMatchingRows,Table.RemoveRows,Table.RemoveRowsWithErrors,Table.RenameColumns,Table.ReorderColumns,Table.Repeat,Table.ReplaceErrorValues,Table.ReplaceKeys,Table.ReplaceMatchingRows,Table.ReplaceRelationshipIdentity,Table.ReplaceRows,Table.ReplaceValue,Table.ReverseRows,Table.RowCount,Table.Schema,Table.SelectColumns,Table.SelectRows,Table.SelectRowsWithErrors,Table.SingleRow,Table.Skip,Table.Sort,Table.SplitColumn,Table.ToColumns,Table.ToList,Table.ToRecords,Table.ToRows,Table.TransformColumnNames,Table.TransformColumnTypes,Table.TransformColumns,Table.TransformRows,Table.Transpose,Table.Unpivot,Table.UnpivotOtherColumns,Table.View,Table.ViewFunction,TableAction.DeleteRows,TableAction.InsertRows,TableAction.UpdateRows,Tables.GetRelationships,Teradata.Database,Text.AfterDelimiter,Text.At,Text.BeforeDelimiter,Text.BetweenDelimiters,Text.Clean,Text.Combine,Text.Contains,Text.End,Text.EndsWith,Text.Format,Text.From,Text.FromBinary,Text.Insert,Text.Length,Text.Lower,Text.Middle,Text.NewGuid,Text.PadEnd,Text.PadStart,Text.PositionOf,Text.PositionOfAny,Text.Proper,Text.Range,Text.Remove,Text.RemoveRange,Text.Repeat,Text.Replace,Text.ReplaceRange,Text.Select,Text.Split,Text.SplitAny,Text.Start,Text.StartsWith,Text.ToBinary,Text.ToList,Text.Trim,Text.TrimEnd,Text.TrimStart,Text.Upper,Time.EndOfHour,Time.From,Time.FromText,Time.Hour,Time.Minute,Time.Second,Time.StartOfHour,Time.ToRecord,Time.ToText,Type.AddTableKey,Type.ClosedRecord,Type.Facets,Type.ForFunction,Type.ForRecord,Type.FunctionParameters,Type.FunctionRequiredParameters,Type.FunctionReturn,Type.Is,Type.IsNullable,Type.IsOpenRecord,Type.ListItem,Type.NonNullable,Type.OpenRecord,Type.RecordFields,Type.ReplaceFacets,Type.ReplaceTableKeys,Type.TableColumn,Type.TableKeys,Type.TableRow,Type.TableSchema,Type.Union,Uri.BuildQueryString,Uri.Combine,Uri.EscapeDataString,Uri.Parts,Value.Add,Value.As,Value.Compare,Value.Divide,Value.Equals,Value.Firewall,Value.FromText,Value.Is,Value.Metadata,Value.Multiply,Value.NativeQuery,Value.NullableEquals,Value.RemoveMetadata,Value.ReplaceMetadata,Value.ReplaceType,Value.Subtract,Value.Type,ValueAction.NativeStatement,ValueAction.Replace,Variable.Value,Web.Contents,Web.Page,WebAction.Request,Xml.Document,Xml.Tables`.split(`,`),builtinConstants:`BinaryEncoding.Base64,BinaryEncoding.Hex,BinaryOccurrence.Optional,BinaryOccurrence.Repeating,BinaryOccurrence.Required,ByteOrder.BigEndian,ByteOrder.LittleEndian,Compression.Deflate,Compression.GZip,CsvStyle.QuoteAfterDelimiter,CsvStyle.QuoteAlways,Culture.Current,Day.Friday,Day.Monday,Day.Saturday,Day.Sunday,Day.Thursday,Day.Tuesday,Day.Wednesday,ExtraValues.Error,ExtraValues.Ignore,ExtraValues.List,GroupKind.Global,GroupKind.Local,JoinAlgorithm.Dynamic,JoinAlgorithm.LeftHash,JoinAlgorithm.LeftIndex,JoinAlgorithm.PairwiseHash,JoinAlgorithm.RightHash,JoinAlgorithm.RightIndex,JoinAlgorithm.SortMerge,JoinKind.FullOuter,JoinKind.Inner,JoinKind.LeftAnti,JoinKind.LeftOuter,JoinKind.RightAnti,JoinKind.RightOuter,JoinSide.Left,JoinSide.Right,MissingField.Error,MissingField.Ignore,MissingField.UseNull,Number.E,Number.Epsilon,Number.NaN,Number.NegativeInfinity,Number.PI,Number.PositiveInfinity,Occurrence.All,Occurrence.First,Occurrence.Last,Occurrence.Optional,Occurrence.Repeating,Occurrence.Required,Order.Ascending,Order.Descending,Precision.Decimal,Precision.Double,QuoteStyle.Csv,QuoteStyle.None,RelativePosition.FromEnd,RelativePosition.FromStart,RoundingMode.AwayFromZero,RoundingMode.Down,RoundingMode.ToEven,RoundingMode.TowardZero,RoundingMode.Up,SapHanaDistribution.All,SapHanaDistribution.Connection,SapHanaDistribution.Off,SapHanaDistribution.Statement,SapHanaRangeOperator.Equals,SapHanaRangeOperator.GreaterThan,SapHanaRangeOperator.GreaterThanOrEquals,SapHanaRangeOperator.LessThan,SapHanaRangeOperator.LessThanOrEquals,SapHanaRangeOperator.NotEquals,TextEncoding.Ascii,TextEncoding.BigEndianUnicode,TextEncoding.Unicode,TextEncoding.Utf16,TextEncoding.Utf8,TextEncoding.Windows,TraceLevel.Critical,TraceLevel.Error,TraceLevel.Information,TraceLevel.Verbose,TraceLevel.Warning,WebMethod.Delete,WebMethod.Get,WebMethod.Head,WebMethod.Patch,WebMethod.Post,WebMethod.Put`.split(`,`),builtinTypes:`Action.Type,Any.Type,Binary.Type,BinaryEncoding.Type,BinaryOccurrence.Type,Byte.Type,ByteOrder.Type,Character.Type,Compression.Type,CsvStyle.Type,Currency.Type,Date.Type,DateTime.Type,DateTimeZone.Type,Day.Type,Decimal.Type,Double.Type,Duration.Type,ExtraValues.Type,Function.Type,GroupKind.Type,Guid.Type,Int16.Type,Int32.Type,Int64.Type,Int8.Type,JoinAlgorithm.Type,JoinKind.Type,JoinSide.Type,List.Type,Logical.Type,MissingField.Type,None.Type,Null.Type,Number.Type,Occurrence.Type,Order.Type,Password.Type,Percentage.Type,Precision.Type,QuoteStyle.Type,Record.Type,RelativePosition.Type,RoundingMode.Type,SapHanaDistribution.Type,SapHanaRangeOperator.Type,Single.Type,Table.Type,Text.Type,TextEncoding.Type,Time.Type,TraceLevel.Type,Type.Type,Uri.Type,WebMethod.Type`.split(`,`),tokenizer:{root:[[/#"[\w \.]+"/,`identifier.quote`],[/\d*\.\d+([eE][\-+]?\d+)?/,`number.float`],[/0[xX][0-9a-fA-F]+/,`number.hex`],[/\d+([eE][\-+]?\d+)?/,`number`],[/(#?[a-z]+)\b/,{cases:{"@typeKeywords":`type`,"@keywords":`keyword`,"@constants":`constant`,"@constructors":`constructor`,"@operatorKeywords":`operators`,"@default":`identifier`}}],[/\b([A-Z][a-zA-Z0-9]+\.Type)\b/,{cases:{"@builtinTypes":`type`,"@default":`identifier`}}],[/\b([A-Z][a-zA-Z0-9]+\.[A-Z][a-zA-Z0-9]+)\b/,{cases:{"@builtinFunctions":`keyword.function`,"@builtinConstants":`constant`,"@default":`identifier`}}],[/\b([a-zA-Z_][\w\.]*)\b/,`identifier`],{include:`@whitespace`},{include:`@comments`},{include:`@strings`},[/[{}()\[\]]/,`@brackets`],[/([=\+<>\-\*&@\?\/!])|([<>]=)|(<>)|(=>)|(\.\.\.)|(\.\.)/,`operators`],[/[,;]/,`delimiter`]],whitespace:[[/\s+/,`white`]],comments:[[`\\/\\*`,`comment`,`@comment`],[`\\/\\/+.*`,`comment`]],comment:[[`\\*\\/`,`comment`,`@pop`],[`.`,`comment`]],strings:[[`"`,`string`,`@string`]],string:[[`""`,`string.escape`],[`"`,`string`,`@pop`],[`.`,`string`]]}};export{e as conf,t as language};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\#%\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:`#`,blockComment:[`<#`,`#>`]},brackets:[[`{`,`}`],[`[`,`]`],[`(`,`)`]],autoClosingPairs:[{open:`{`,close:`}`},{open:`[`,close:`]`},{open:`(`,close:`)`},{open:`"`,close:`"`,notIn:[`string`]},{open:`'`,close:`'`,notIn:[`string`,`comment`]}],surroundingPairs:[{open:`{`,close:`}`},{open:`[`,close:`]`},{open:`(`,close:`)`},{open:`"`,close:`"`},{open:`'`,close:`'`}],folding:{markers:{start:RegExp(`^\\s*#region\\b`),end:RegExp(`^\\s*#endregion\\b`)}}},t={defaultToken:``,ignoreCase:!0,tokenPostfix:`.ps1`,brackets:[{token:`delimiter.curly`,open:`{`,close:`}`},{token:`delimiter.square`,open:`[`,close:`]`},{token:`delimiter.parenthesis`,open:`(`,close:`)`}],keywords:`begin.break.catch.class.continue.data.define.do.dynamicparam.else.elseif.end.exit.filter.finally.for.foreach.from.function.if.in.param.process.return.switch.throw.trap.try.until.using.var.while.workflow.parallel.sequence.inlinescript.configuration`.split(`.`),helpKeywords:/SYNOPSIS|DESCRIPTION|PARAMETER|EXAMPLE|INPUTS|OUTPUTS|NOTES|LINK|COMPONENT|ROLE|FUNCTIONALITY|FORWARDHELPTARGETNAME|FORWARDHELPCATEGORY|REMOTEHELPRUNSPACE|EXTERNALHELP/,symbols:/[=><!~?&%|+\-*\/\^;\.,]+/,escapes:/`(?:[abfnrtv\\"'$]|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[[/[a-zA-Z_][\w-]*/,{cases:{"@keywords":{token:`keyword.$0`},"@default":``}}],[/[ \t\r\n]+/,``],[/^:\w*/,`metatag`],[/\$(\{((global|local|private|script|using):)?[\w]+\}|((global|local|private|script|using):)?[\w]+)/,`variable`],[/<#/,`comment`,`@comment`],[/#.*$/,`comment`],[/[{}()\[\]]/,`@brackets`],[/@symbols/,`delimiter`],[/\d*\.\d+([eE][\-+]?\d+)?/,`number.float`],[/0[xX][0-9a-fA-F_]*[0-9a-fA-F]/,`number.hex`],[/\d+?/,`number`],[/[;,.]/,`delimiter`],[/\@"/,`string`,`@herestring."`],[/\@'/,`string`,`@herestring.'`],[/"/,{cases:{"@eos":`string`,"@default":{token:`string`,next:`@string."`}}}],[/'/,{cases:{"@eos":`string`,"@default":{token:`string`,next:`@string.'`}}}]],string:[[/[^"'\$`]+/,{cases:{"@eos":{token:`string`,next:`@popall`},"@default":`string`}}],[/@escapes/,{cases:{"@eos":{token:`string.escape`,next:`@popall`},"@default":`string.escape`}}],[/`./,{cases:{"@eos":{token:`string.escape.invalid`,next:`@popall`},"@default":`string.escape.invalid`}}],[/\$[\w]+$/,{cases:{'$S2=="':{token:`variable`,next:`@popall`},"@default":{token:`string`,next:`@popall`}}}],[/\$[\w]+/,{cases:{'$S2=="':`variable`,"@default":`string`}}],[/["']/,{cases:{"$#==$S2":{token:`string`,next:`@pop`},"@default":{cases:{"@eos":{token:`string`,next:`@popall`},"@default":`string`}}}}]],herestring:[[/^\s*(["'])@/,{cases:{"$1==$S2":{token:`string`,next:`@pop`},"@default":`string`}}],[/[^\$`]+/,`string`],[/@escapes/,`string.escape`],[/`./,`string.escape.invalid`],[/\$[\w]+/,{cases:{'$S2=="':`variable`,"@default":`string`}}]],comment:[[/[^#\.]+/,`comment`],[/#>/,`comment`,`@pop`],[/(\.)(@helpKeywords)(?!\w)/,{token:`comment.keyword.$2`}],[/[\.#]/,`comment`]]}};export{e as conf,t as language};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=function(e){return`/`+e},t={},n=function(n,r,i){let a=Promise.resolve();if(r&&r.length>0){let n=document.getElementsByTagName(`link`),o=document.querySelector(`meta[property=csp-nonce]`),s=o?.nonce||o?.getAttribute(`nonce`);function c(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function l(e){return import.meta.resolve?import.meta.resolve(e):new URL(e,import.meta.url).href}a=c(r.map(r=>{if(r=e(r,i),r=l(r),r in t)return;t[r]=!0;let a=r.endsWith(`.css`);for(let e=n.length-1;e>=0;e--){let t=n[e];if(t.href===r&&(!a||t.rel===`stylesheet`))return}let o=document.createElement(`link`);if(o.rel=a?`stylesheet`:`modulepreload`,a||(o.as=`script`),o.crossOrigin=``,o.href=r,s&&o.setAttribute(`nonce`,s),document.head.appendChild(o),a)return new Promise((e,t)=>{o.addEventListener(`load`,e),o.addEventListener(`error`,()=>t(Error(`Unable to preload CSS for ${r}`)))})}))}function o(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return a.then(e=>{for(let t of e||[])t.status===`rejected`&&o(t.reason);return n().catch(o)})};export{n as t};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var e=[`true`,`false`],t={comments:{lineComment:`//`,blockComment:[`/*`,`*/`]},brackets:[[`{`,`}`],[`[`,`]`],[`(`,`)`],[`<`,`>`]],surroundingPairs:[{open:`{`,close:`}`},{open:`[`,close:`]`},{open:`(`,close:`)`},{open:`<`,close:`>`},{open:`"`,close:`"`},{open:`'`,close:`'`}],autoClosingPairs:[{open:`{`,close:`}`},{open:`[`,close:`]`},{open:`(`,close:`)`},{open:`<`,close:`>`},{open:`"`,close:`"`,notIn:[`string`]},{open:`'`,close:`'`,notIn:[`string`]}],autoCloseBefore:`.,=}])>'
|
|
2
|
+
`,indentationRules:{increaseIndentPattern:RegExp(`^((?!\\/\\/).)*(\\{[^}"'\`]*|\\([^)"'\`]*|\\[[^\\]"'\`]*)$`),decreaseIndentPattern:RegExp(`^((?!.*?\\/\\*).*\\*/)?\\s*[\\}\\]].*$`)}},n={defaultToken:``,tokenPostfix:`.proto`,brackets:[{open:`{`,close:`}`,token:`delimiter.curly`},{open:`[`,close:`]`,token:`delimiter.square`},{open:`(`,close:`)`,token:`delimiter.parenthesis`},{open:`<`,close:`>`,token:`delimiter.angle`}],symbols:/[=><!~?:&|+\-*/^%]+/,keywords:[`syntax`,`import`,`weak`,`public`,`package`,`option`,`repeated`,`oneof`,`map`,`reserved`,`to`,`max`,`enum`,`message`,`service`,`rpc`,`stream`,`returns`,`package`,`optional`,`true`,`false`],builtinTypes:[`double`,`float`,`int32`,`int64`,`uint32`,`uint64`,`sint32`,`sint64`,`fixed32`,`fixed64`,`sfixed32`,`sfixed64`,`bool`,`string`,`bytes`],operators:[`=`,`+`,`-`],namedLiterals:e,escapes:"\\\\(u{[0-9A-Fa-f]+}|n|r|t|\\\\|'|\\${)",identifier:/[a-zA-Z]\w*/,fullIdentifier:/@identifier(?:\s*\.\s*@identifier)*/,optionName:/(?:@identifier|\(\s*@fullIdentifier\s*\))(?:\s*\.\s*@identifier)*/,messageName:/@identifier/,enumName:/@identifier/,messageType:/\.?\s*(?:@identifier\s*\.\s*)*@messageName/,enumType:/\.?\s*(?:@identifier\s*\.\s*)*@enumName/,floatLit:/[0-9]+\s*\.\s*[0-9]*(?:@exponent)?|[0-9]+@exponent|\.[0-9]+(?:@exponent)?/,exponent:/[eE]\s*[+-]?\s*[0-9]+/,boolLit:/true\b|false\b/,decimalLit:/[1-9][0-9]*/,octalLit:/0[0-7]*/,hexLit:/0[xX][0-9a-fA-F]+/,type:/double|float|int32|int64|uint32|uint64|sint32|sint64|fixed32|fixed64|sfixed32|sfixed64|bool|string|bytes|@messageType|@enumType/,keyType:/int32|int64|uint32|uint64|sint32|sint64|fixed32|fixed64|sfixed32|sfixed64|bool|string/,tokenizer:{root:[{include:`@whitespace`},[/syntax/,`keyword`],[/=/,`operators`],[/;/,`delimiter`],[/(")(proto3)(")/,[`string.quote`,`string`,{token:`string.quote`,switchTo:`@topLevel.proto3`}]],[/(")(proto2)(")/,[`string.quote`,`string`,{token:`string.quote`,switchTo:`@topLevel.proto2`}]],[/.*?/,{token:``,switchTo:`@topLevel.proto2`}]],topLevel:[{include:`@whitespace`},{include:`@constant`},[/=/,`operators`],[/[;.]/,`delimiter`],[/@fullIdentifier/,{cases:{option:{token:`keyword`,next:`@option.$S2`},enum:{token:`keyword`,next:`@enumDecl.$S2`},message:{token:`keyword`,next:`@messageDecl.$S2`},service:{token:`keyword`,next:`@serviceDecl.$S2`},extend:{cases:{"$S2==proto2":{token:`keyword`,next:`@extendDecl.$S2`}}},"@keywords":`keyword`,"@default":`identifier`}}]],enumDecl:[{include:`@whitespace`},[/@identifier/,`type.identifier`],[/{/,{token:`@brackets`,bracket:`@open`,switchTo:`@enumBody.$S2`}]],enumBody:[{include:`@whitespace`},{include:`@constant`},[/=/,`operators`],[/;/,`delimiter`],[/option\b/,`keyword`,`@option.$S2`],[/@identifier/,`identifier`],[/\[/,{token:`@brackets`,bracket:`@open`,next:`@options.$S2`}],[/}/,{token:`@brackets`,bracket:`@close`,next:`@pop`}]],messageDecl:[{include:`@whitespace`},[/@identifier/,`type.identifier`],[/{/,{token:`@brackets`,bracket:`@open`,switchTo:`@messageBody.$S2`}]],messageBody:[{include:`@whitespace`},{include:`@constant`},[/=/,`operators`],[/;/,`delimiter`],[`(map)(s*)(<)`,[`keyword`,`white`,{token:`@brackets`,bracket:`@open`,next:`@map.$S2`}]],[/@identifier/,{cases:{option:{token:`keyword`,next:`@option.$S2`},enum:{token:`keyword`,next:`@enumDecl.$S2`},message:{token:`keyword`,next:`@messageDecl.$S2`},oneof:{token:`keyword`,next:`@oneofDecl.$S2`},extensions:{cases:{"$S2==proto2":{token:`keyword`,next:`@reserved.$S2`}}},reserved:{token:`keyword`,next:`@reserved.$S2`},"(?:repeated|optional)":{token:`keyword`,next:`@field.$S2`},required:{cases:{"$S2==proto2":{token:`keyword`,next:`@field.$S2`}}},"$S2==proto3":{token:`@rematch`,next:`@field.$S2`}}}],[/\[/,{token:`@brackets`,bracket:`@open`,next:`@options.$S2`}],[/}/,{token:`@brackets`,bracket:`@close`,next:`@pop`}]],extendDecl:[{include:`@whitespace`},[/@identifier/,`type.identifier`],[/{/,{token:`@brackets`,bracket:`@open`,switchTo:`@extendBody.$S2`}]],extendBody:[{include:`@whitespace`},{include:`@constant`},[/;/,`delimiter`],[/(?:repeated|optional|required)/,`keyword`,`@field.$S2`],[/\[/,{token:`@brackets`,bracket:`@open`,next:`@options.$S2`}],[/}/,{token:`@brackets`,bracket:`@close`,next:`@pop`}]],options:[{include:`@whitespace`},{include:`@constant`},[/;/,`delimiter`],[/@optionName/,`annotation`],[/[()]/,`annotation.brackets`],[/=/,`operator`],[/\]/,{token:`@brackets`,bracket:`@close`,next:`@pop`}]],option:[{include:`@whitespace`},[/@optionName/,`annotation`],[/[()]/,`annotation.brackets`],[/=/,`operator`,`@pop`]],oneofDecl:[{include:`@whitespace`},[/@identifier/,`identifier`],[/{/,{token:`@brackets`,bracket:`@open`,switchTo:`@oneofBody.$S2`}]],oneofBody:[{include:`@whitespace`},{include:`@constant`},[/;/,`delimiter`],[/(@identifier)(\s*)(=)/,[`identifier`,`white`,`delimiter`]],[/@fullIdentifier|\./,{cases:{"@builtinTypes":`keyword`,"@default":`type.identifier`}}],[/\[/,{token:`@brackets`,bracket:`@open`,next:`@options.$S2`}],[/}/,{token:`@brackets`,bracket:`@close`,next:`@pop`}]],reserved:[{include:`@whitespace`},[/,/,`delimiter`],[/;/,`delimiter`,`@pop`],{include:`@constant`},[/to\b|max\b/,`keyword`]],map:[{include:`@whitespace`},[/@fullIdentifier|\./,{cases:{"@builtinTypes":`keyword`,"@default":`type.identifier`}}],[/,/,`delimiter`],[/>/,{token:`@brackets`,bracket:`@close`,switchTo:`identifier`}]],field:[{include:`@whitespace`},[`group`,{cases:{"$S2==proto2":{token:`keyword`,switchTo:`@groupDecl.$S2`}}}],[/(@identifier)(\s*)(=)/,[`identifier`,`white`,{token:`delimiter`,next:`@pop`}]],[/@fullIdentifier|\./,{cases:{"@builtinTypes":`keyword`,"@default":`type.identifier`}}]],groupDecl:[{include:`@whitespace`},[/@identifier/,`identifier`],[`=`,`operator`],[/{/,{token:`@brackets`,bracket:`@open`,switchTo:`@messageBody.$S2`}],{include:`@constant`}],type:[{include:`@whitespace`},[/@identifier/,`type.identifier`,`@pop`],[/./,`delimiter`]],identifier:[{include:`@whitespace`},[/@identifier/,`identifier`,`@pop`]],serviceDecl:[{include:`@whitespace`},[/@identifier/,`identifier`],[/{/,{token:`@brackets`,bracket:`@open`,switchTo:`@serviceBody.$S2`}]],serviceBody:[{include:`@whitespace`},{include:`@constant`},[/;/,`delimiter`],[/option\b/,`keyword`,`@option.$S2`],[/rpc\b/,`keyword`,`@rpc.$S2`],[/\[/,{token:`@brackets`,bracket:`@open`,next:`@options.$S2`}],[/}/,{token:`@brackets`,bracket:`@close`,next:`@pop`}]],rpc:[{include:`@whitespace`},[/@identifier/,`identifier`],[/\(/,{token:`@brackets`,bracket:`@open`,switchTo:`@request.$S2`}],[/{/,{token:`@brackets`,bracket:`@open`,next:`@methodOptions.$S2`}],[/;/,`delimiter`,`@pop`]],request:[{include:`@whitespace`},[/@messageType/,{cases:{stream:{token:`keyword`,next:`@type.$S2`},"@default":`type.identifier`}}],[/\)/,{token:`@brackets`,bracket:`@close`,switchTo:`@returns.$S2`}]],returns:[{include:`@whitespace`},[/returns\b/,`keyword`],[/\(/,{token:`@brackets`,bracket:`@open`,switchTo:`@response.$S2`}]],response:[{include:`@whitespace`},[/@messageType/,{cases:{stream:{token:`keyword`,next:`@type.$S2`},"@default":`type.identifier`}}],[/\)/,{token:`@brackets`,bracket:`@close`,switchTo:`@rpc.$S2`}]],methodOptions:[{include:`@whitespace`},{include:`@constant`},[/;/,`delimiter`],[`option`,`keyword`],[/@optionName/,`annotation`],[/[()]/,`annotation.brackets`],[/=/,`operator`],[/}/,{token:`@brackets`,bracket:`@close`,next:`@pop`}]],comment:[[/[^\/*]+/,`comment`],[/\/\*/,`comment`,`@push`],[`\\*/`,`comment`,`@pop`],[/[\/*]/,`comment`]],string:[[/[^\\"]+/,`string`],[/@escapes/,`string.escape`],[/\\./,`string.escape.invalid`],[/"/,{token:`string.quote`,bracket:`@close`,next:`@pop`}]],stringSingle:[[/[^\\']+/,`string`],[/@escapes/,`string.escape`],[/\\./,`string.escape.invalid`],[/'/,{token:`string.quote`,bracket:`@close`,next:`@pop`}]],constant:[[`@boolLit`,`keyword.constant`],[`@hexLit`,`number.hex`],[`@octalLit`,`number.octal`],[`@decimalLit`,`number`],[`@floatLit`,`number.float`],[/("([^"\\]|\\.)*|'([^'\\]|\\.)*)$/,`string.invalid`],[/"/,{token:`string.quote`,bracket:`@open`,next:`@string`}],[/'/,{token:`string.quote`,bracket:`@open`,next:`@stringSingle`}],[/{/,{token:`@brackets`,bracket:`@open`,next:`@prototext`}],[/identifier/,`identifier`]],whitespace:[[/[ \t\r\n]+/,`white`],[/\/\*/,`comment`,`@comment`],[/\/\/.*$/,`comment`]],prototext:[{include:`@whitespace`},{include:`@constant`},[/@identifier/,`identifier`],[/[:;]/,`delimiter`],[/}/,{token:`@brackets`,bracket:`@close`,next:`@pop`}]]}};export{t as conf,n as language};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e={comments:{lineComment:`//`},brackets:[[`{`,`}`],[`[`,`]`],[`(`,`)`]],autoClosingPairs:[{open:`"`,close:`"`,notIn:[`string`,`comment`]},{open:`'`,close:`'`,notIn:[`string`,`comment`]},{open:`{`,close:`}`,notIn:[`string`,`comment`]},{open:`[`,close:`]`,notIn:[`string`,`comment`]},{open:`(`,close:`)`,notIn:[`string`,`comment`]}],folding:{offSide:!0}},t={defaultToken:``,tokenPostfix:`.pug`,ignoreCase:!0,brackets:[{token:`delimiter.curly`,open:`{`,close:`}`},{token:`delimiter.array`,open:`[`,close:`]`},{token:`delimiter.parenthesis`,open:`(`,close:`)`}],keywords:[`append`,`block`,`case`,`default`,`doctype`,`each`,`else`,`extends`,`for`,`if`,`in`,`include`,`mixin`,`typeof`,`unless`,`var`,`when`],tags:`a.abbr.acronym.address.area.article.aside.audio.b.base.basefont.bdi.bdo.blockquote.body.br.button.canvas.caption.center.cite.code.col.colgroup.command.datalist.dd.del.details.dfn.div.dl.dt.em.embed.fieldset.figcaption.figure.font.footer.form.frame.frameset.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.iframe.img.input.ins.keygen.kbd.label.li.link.map.mark.menu.meta.meter.nav.noframes.noscript.object.ol.optgroup.option.output.p.param.pre.progress.q.rp.rt.ruby.s.samp.script.section.select.small.source.span.strike.strong.style.sub.summary.sup.table.tbody.td.textarea.tfoot.th.thead.time.title.tr.tracks.tt.u.ul.video.wbr`.split(`.`),symbols:/[\+\-\*\%\&\|\!\=\/\.\,\:]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[[/^(\s*)([a-zA-Z_-][\w-]*)/,{cases:{"$2@tags":{cases:{"@eos":[``,`tag`],"@default":[``,{token:`tag`,next:`@tag.$1`}]}},"$2@keywords":[``,{token:`keyword.$2`}],"@default":[``,``]}}],[/^(\s*)(#[a-zA-Z_-][\w-]*)/,{cases:{"@eos":[``,`tag.id`],"@default":[``,{token:`tag.id`,next:`@tag.$1`}]}}],[/^(\s*)(\.[a-zA-Z_-][\w-]*)/,{cases:{"@eos":[``,`tag.class`],"@default":[``,{token:`tag.class`,next:`@tag.$1`}]}}],[/^(\s*)(\|.*)$/,``],{include:`@whitespace`},[/[a-zA-Z_$][\w$]*/,{cases:{"@keywords":{token:`keyword.$0`},"@default":``}}],[/[{}()\[\]]/,`@brackets`],[/@symbols/,`delimiter`],[/\d+\.\d+([eE][\-+]?\d+)?/,`number.float`],[/\d+/,`number`],[/"/,`string`,`@string."`],[/'/,`string`,`@string.'`]],tag:[[/(\.)(\s*$)/,[{token:`delimiter`,next:`@blockText.$S2.`},``]],[/\s+/,{token:``,next:`@simpleText`}],[/#[a-zA-Z_-][\w-]*/,{cases:{"@eos":{token:`tag.id`,next:`@pop`},"@default":`tag.id`}}],[/\.[a-zA-Z_-][\w-]*/,{cases:{"@eos":{token:`tag.class`,next:`@pop`},"@default":`tag.class`}}],[/\(/,{token:`delimiter.parenthesis`,next:`@attributeList`}]],simpleText:[[/[^#]+$/,{token:``,next:`@popall`}],[/[^#]+/,{token:``}],[/(#{)([^}]*)(})/,{cases:{"@eos":[`interpolation.delimiter`,`interpolation`,{token:`interpolation.delimiter`,next:`@popall`}],"@default":[`interpolation.delimiter`,`interpolation`,`interpolation.delimiter`]}}],[/#$/,{token:``,next:`@popall`}],[/#/,``]],attributeList:[[/\s+/,``],[/(\w+)(\s*=\s*)("|')/,[`attribute.name`,`delimiter`,{token:`attribute.value`,next:`@value.$3`}]],[/\w+/,`attribute.name`],[/,/,{cases:{"@eos":{token:`attribute.delimiter`,next:`@popall`},"@default":`attribute.delimiter`}}],[/\)$/,{token:`delimiter.parenthesis`,next:`@popall`}],[/\)/,{token:`delimiter.parenthesis`,next:`@pop`}]],whitespace:[[/^(\s*)(\/\/.*)$/,{token:`comment`,next:`@blockText.$1.comment`}],[/[ \t\r\n]+/,``],[/<!--/,{token:`comment`,next:`@comment`}]],blockText:[[/^\s+.*$/,{cases:{"($S2\\s+.*$)":{token:`$S3`},"@default":{token:`@rematch`,next:`@popall`}}}],[/./,{token:`@rematch`,next:`@popall`}]],comment:[[/[^<\-]+/,`comment.content`],[/-->/,{token:`comment`,next:`@pop`}],[/<!--/,`comment.content.invalid`],[/[<\-]/,`comment.content`]],string:[[/[^\\"'#]+/,{cases:{"@eos":{token:`string`,next:`@popall`},"@default":`string`}}],[/@escapes/,{cases:{"@eos":{token:`string.escape`,next:`@popall`},"@default":`string.escape`}}],[/\\./,{cases:{"@eos":{token:`string.escape.invalid`,next:`@popall`},"@default":`string.escape.invalid`}}],[/(#{)([^}]*)(})/,[`interpolation.delimiter`,`interpolation`,`interpolation.delimiter`]],[/#/,`string`],[/["']/,{cases:{"$#==$S2":{token:`string`,next:`@pop`},"@default":{token:`string`}}}]],value:[[/[^\\"']+/,{cases:{"@eos":{token:`attribute.value`,next:`@popall`},"@default":`attribute.value`}}],[/\\./,{cases:{"@eos":{token:`attribute.value`,next:`@popall`},"@default":`attribute.value`}}],[/["']/,{cases:{"$#==$S2":{token:`attribute.value`,next:`@pop`},"@default":{token:`attribute.value`}}}]]}};export{e as conf,t as language};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{h as e}from"./editor.api2-JBjomUWM.js";var t={comments:{lineComment:`#`,blockComment:[`'''`,`'''`]},brackets:[[`{`,`}`],[`[`,`]`],[`(`,`)`]],autoClosingPairs:[{open:`{`,close:`}`},{open:`[`,close:`]`},{open:`(`,close:`)`},{open:`"`,close:`"`,notIn:[`string`]},{open:`'`,close:`'`,notIn:[`string`,`comment`]}],surroundingPairs:[{open:`{`,close:`}`},{open:`[`,close:`]`},{open:`(`,close:`)`},{open:`"`,close:`"`},{open:`'`,close:`'`}],onEnterRules:[{beforeText:RegExp(`^\\s*(?:def|class|for|if|elif|else|while|try|with|finally|except|async|match|case).*?:\\s*$`),action:{indentAction:e.IndentAction.Indent}}],folding:{offSide:!0,markers:{start:RegExp(`^\\s*#region\\b`),end:RegExp(`^\\s*#endregion\\b`)}}},n={defaultToken:``,tokenPostfix:`.python`,keywords:`False.None.True._.and.as.assert.async.await.break.case.class.continue.def.del.elif.else.except.exec.finally.for.from.global.if.import.in.is.lambda.match.nonlocal.not.or.pass.print.raise.return.try.type.while.with.yield.int.float.long.complex.hex.abs.all.any.apply.basestring.bin.bool.buffer.bytearray.callable.chr.classmethod.cmp.coerce.compile.complex.delattr.dict.dir.divmod.enumerate.eval.execfile.file.filter.format.frozenset.getattr.globals.hasattr.hash.help.id.input.intern.isinstance.issubclass.iter.len.locals.list.map.max.memoryview.min.next.object.oct.open.ord.pow.print.property.reversed.range.raw_input.reduce.reload.repr.reversed.round.self.set.setattr.slice.sorted.staticmethod.str.sum.super.tuple.type.unichr.unicode.vars.xrange.zip.__dict__.__methods__.__members__.__class__.__bases__.__name__.__mro__.__subclasses__.__init__.__import__`.split(`.`),brackets:[{open:`{`,close:`}`,token:`delimiter.curly`},{open:`[`,close:`]`,token:`delimiter.bracket`},{open:`(`,close:`)`,token:`delimiter.parenthesis`}],tokenizer:{root:[{include:`@whitespace`},{include:`@numbers`},{include:`@strings`},[/[,:;]/,`delimiter`],[/[{}\[\]()]/,`@brackets`],[/@[a-zA-Z_]\w*/,`tag`],[/[a-zA-Z_]\w*/,{cases:{"@keywords":`keyword`,"@default":`identifier`}}]],whitespace:[[/\s+/,`white`],[/(^#.*$)/,`comment`],[/'''/,`string`,`@endDocString`],[/"""/,`string`,`@endDblDocString`]],endDocString:[[/[^']+/,`string`],[/\\'/,`string`],[/'''/,`string`,`@popall`],[/'/,`string`]],endDblDocString:[[/[^"]+/,`string`],[/\\"/,`string`],[/"""/,`string`,`@popall`],[/"/,`string`]],numbers:[[/-?0x([abcdef]|[ABCDEF]|\d)+[lL]?/,`number.hex`],[/-?(\d*\.)?\d+([eE][+\-]?\d+)?[jJ]?[lL]?/,`number`]],strings:[[/'$/,`string.escape`,`@popall`],[/f'{1,3}/,`string.escape`,`@fStringBody`],[/'/,`string.escape`,`@stringBody`],[/"$/,`string.escape`,`@popall`],[/f"{1,3}/,`string.escape`,`@fDblStringBody`],[/"/,`string.escape`,`@dblStringBody`]],fStringBody:[[/[^\\'\{\}]+$/,`string`,`@popall`],[/[^\\'\{\}]+/,`string`],[/\{[^\}':!=]+/,`identifier`,`@fStringDetail`],[/\\./,`string`],[/'/,`string.escape`,`@popall`],[/\\$/,`string`]],stringBody:[[/[^\\']+$/,`string`,`@popall`],[/[^\\']+/,`string`],[/\\./,`string`],[/'/,`string.escape`,`@popall`],[/\\$/,`string`]],fDblStringBody:[[/[^\\"\{\}]+$/,`string`,`@popall`],[/[^\\"\{\}]+/,`string`],[/\{[^\}':!=]+/,`identifier`,`@fStringDetail`],[/\\./,`string`],[/"/,`string.escape`,`@popall`],[/\\$/,`string`]],dblStringBody:[[/[^\\"]+$/,`string`,`@popall`],[/[^\\"]+/,`string`],[/\\./,`string`],[/"/,`string.escape`,`@popall`],[/\\$/,`string`]],fStringDetail:[[/[:][^}]+/,`string`],[/[!][ars]/,`string`],[/=/,`string`],[/\}/,`identifier`,`@pop`]]}};export{t as conf,n as language};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e={comments:{lineComment:`//`},brackets:[[`{`,`}`],[`[`,`]`],[`(`,`)`]],autoClosingPairs:[{open:`{`,close:`}`},{open:`[`,close:`]`},{open:`(`,close:`)`},{open:`"`,close:`"`,notIn:[`string`,`comment`]}],surroundingPairs:[{open:`{`,close:`}`},{open:`[`,close:`]`},{open:`(`,close:`)`},{open:`"`,close:`"`}]},t={keywords:`namespace.open.import.export.as.operation.function.body.adjoint.newtype.struct.controlled.if.elif.else.repeat.until.fixup.for.in.while.return.fail.within.apply.Adjoint.Controlled.Adj.Ctl.is.self.auto.distribute.invert.intrinsic.let.set.w/.new.not.and.or.use.borrow.using.borrowing.mutable.internal`.split(`.`),typeKeywords:[`Unit`,`Int`,`BigInt`,`Double`,`Bool`,`String`,`Qubit`,`Result`,`Pauli`,`Range`],invalidKeywords:`abstract.base.bool.break.byte.case.catch.char.checked.class.const.continue.decimal.default.delegate.do.double.enum.event.explicit.extern.finally.fixed.float.foreach.goto.implicit.int.interface.lock.long.null.object.operator.out.override.params.private.protected.public.readonly.ref.sbyte.sealed.short.sizeof.stackalloc.static.string.switch.this.throw.try.typeof.unit.ulong.unchecked.unsafe.ushort.virtual.void.volatile`.split(`.`),constants:[`true`,`false`,`PauliI`,`PauliX`,`PauliY`,`PauliZ`,`One`,`Zero`],builtin:`X.Y.Z.H.HY.S.T.SWAP.CNOT.CCNOT.MultiX.R.RFrac.Rx.Ry.Rz.R1.R1Frac.Exp.ExpFrac.Measure.M.MultiM.Message.Length.Assert.AssertProb.AssertEqual`.split(`.`),operators:`and=,<-,->,*,*=,@,!,^,^=,:,::,.,..,==,...,=,=>,>,>=,<,<=,-,-=,!=,or=,%,%=,|,+,+=,?,/,/=,&&&,&&&=,^^^,^^^=,>>>,>>>=,<<<,<<<=,|||,|||=,~~~,_,w/,w/=`.split(`,`),namespaceFollows:[`namespace`,`open`],importsFollows:[`import`],symbols:/[=><!~?:&|+\-*\/\^%@._]+/,escapes:/\\[\s\S]/,tokenizer:{root:[[/[a-zA-Z_$][\w$]*/,{cases:{"@namespaceFollows":{token:`keyword.$0`,next:`@namespace`},"@importsFollows":{token:`keyword.$0`,next:`@imports`},"@typeKeywords":`type`,"@keywords":`keyword`,"@constants":`constant`,"@builtin":`keyword`,"@invalidKeywords":`invalid`,"@default":`identifier`}}],{include:`@whitespace`},[/[{}()\[\]]/,`@brackets`],[/@symbols/,{cases:{"@operators":`operator`,"@default":``}}],[/\d*\.\d+([eE][\-+]?\d+)?/,`number.float`],[/\d+/,`number`],[/[;,.]/,`delimiter`],[/"/,{token:`string.quote`,bracket:`@open`,next:`@string`}]],string:[[/[^\\"]+/,`string`],[/@escapes/,`string.escape`],[/"/,{token:`string.quote`,bracket:`@close`,next:`@pop`}]],namespace:[{include:`@whitespace`},[/[A-Za-z]\w*/,`namespace`],[/[\.]/,`delimiter`],[``,``,`@pop`]],imports:[{include:`@whitespace`},[/[A-Za-z]\w*(?=\.)/,`namespace`],[/[A-Za-z]\w*/,`identifier`],[/\*/,`wildcard`],[/[\.,]/,`delimiter`],[``,``,`@pop`]],whitespace:[[/[ \t\r\n]+/,`white`],[/(\/\/).*/,`comment`]]}};export{e as conf,t as language};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/main-NJl8KiiX.js","assets/rolldown-runtime-hePW80VL.js","assets/ui-store-BPY9VfQP.js","assets/button-DkRlMkru.js","assets/i18n-C7R6hKCp.js","assets/preload-helper-Czpn1I53.js","assets/editor.api2-JBjomUWM.js","assets/editor-Br_kD0ds.css","assets/dist-BV6Hwye5.js","assets/dist-C2pydad-.js","assets/dist-C3MLFgG1.js","assets/app-storage-B6v72zLH.js","assets/connection-store-CJ_al8qv.js","assets/query-store-DlzOIWw1.js","assets/settings-store-DxKFgC4Z.js","assets/database-BIhkgl2O.js","assets/dbms-Cq4imB7l.js","assets/engine-DBTzC3si.js","assets/schema-nodes-n_QZJb21.js","assets/use-engine-F2Y_trPz.js","assets/table-copy-2y2RNth1.js","assets/table-definition-Bs5VSn0X.js","assets/main-DI8DxG3x.css"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{r as e}from"./rolldown-runtime-hePW80VL.js";import{c as t,m as n,n as r}from"./ui-store-BPY9VfQP.js";import{i}from"./i18n-C7R6hKCp.js";import{t as a}from"./preload-helper-Czpn1I53.js";import{t as o}from"./connection-store-CJ_al8qv.js";import{n as s}from"./query-store-DlzOIWw1.js";import{n as c}from"./settings-store-DxKFgC4Z.js";import{A as l,M as u,b as d,o as f,r as p}from"./database-BIhkgl2O.js";import{a as m,o as h}from"./dbms-Cq4imB7l.js";import{n as g,r as ee}from"./engine-DBTzC3si.js";import{n as te,t as ne}from"./schema-nodes-n_QZJb21.js";var _=u(`editors`,()=>new Map),v=(e,t)=>`${e}:${t}`;function re(e,t,n){return _.set(v(e,t),n),()=>{_.get(v(e,t))===n&&_.delete(v(e,t))}}function y(e,t){return _.get(v(e,t))}function ie(e,t){let n=y(e,t),r=n?.getModel();if(!n||!r)return null;let i=n.getSelection();if(i&&!i.isEmpty())return{selection:r.getValueInRange(i)};let a=n.getPosition();return{cursorOffset:a?r.getOffsetAt(a):0}}var ae={undo:`undo`,redo:`redo`,cut:`editor.action.clipboardCutAction`,copy:`editor.action.clipboardCopyAction`,paste:`editor.action.clipboardPasteAction`,selectAll:`editor.action.selectAll`};function oe(e,t,n){let r=y(e,t);return r?(r.focus(),r.trigger(`menu`,ae[n],null),!0):!1}var se=[`<=>`,`->>`,`->`,`<>`,`!=`,`<=`,`>=`,`<<`,`>>`,`:=`,`||`,`&&`];function b(e){return/[A-Za-z_$\u0080-\uFFFF]/.test(e)}function x(e){return/[A-Za-z0-9_$\u0080-\uFFFF]/.test(e)}function S(e){return e>=`0`&&e<=`9`}function C(e){return e===` `||e===` `||e===`
|
|
3
|
+
`||e===`\r`||e===`\f`||e===`\v`}var ce=class{input;syntax;pos=0;delimiter;significantInStatement=0;constructor(e,t,n=`;`){this.input=e,this.syntax=t,this.delimiter=n}tokenize(){let e=[];for(;this.pos<this.input.length;){let t=this.next();t.kind===`terminator`||t.kind===`delimiter_command`?this.significantInStatement=0:t.kind!==`space`&&t.kind!==`comment`&&this.significantInStatement++,e.push(t)}return e}atLineStart(e){let t=e-1;for(;t>=0&&(this.input[t]===` `||this.input[t]===` `);)t--;return t<0||this.input[t]===`
|
|
4
|
+
`}make(e,t,n){let r=this.input.slice(t,n),i={kind:e,value:r,start:t,end:n};return e===`identifier`&&(i.upper=r.toUpperCase()),i}next(){let e=this.input,t=this.pos,n=e[t];if(C(n)){let n=t+1;for(;n<e.length&&C(e[n]);)n++;return this.pos=n,this.make(`space`,t,n)}if(e.startsWith(this.delimiter,t))return this.pos=t+this.delimiter.length,this.make(`terminator`,t,this.pos);if(n===`#`&&this.syntax.hashComments)return this.lineComment(t);if(n===`-`&&e[t+1]===`-`){let n=e[t+2];if(!this.syntax.dashCommentNeedsSpace||n===void 0||C(n))return this.lineComment(t)}if(n===`/`&&e[t+1]===`*`){let n=e.indexOf(`*/`,t+2);return this.pos=n===-1?e.length:n+2,this.make(`comment`,t,this.pos)}if(n===`$`&&this.syntax.dollarQuotes){let n=/^\$([A-Za-z_\u0080-\uFFFF][A-Za-z0-9_\u0080-\uFFFF]*)?\$/.exec(e.slice(t,t+64));if(n){let r=e.indexOf(n[0],t+n[0].length);return this.pos=r===-1?e.length:r+n[0].length,this.make(`string`,t,this.pos)}}if((n===`e`||n===`E`)&&e[t+1]===`'`&&this.syntax.dollarQuotes){this.pos=t+1;let e=this.quoted(t+1,`'`,`string`,!0);return this.make(`string`,t,e.end)}if(n===`'`)return this.quoted(t,`'`,`string`,this.syntax.backslashEscapes);if(n===`"`)return this.syntax.doubleQuoteIsIdentifier?this.quoted(t,`"`,`quoted_identifier`,!1):this.quoted(t,`"`,`string`,this.syntax.backslashEscapes);if((n===`x`||n===`X`||n===`b`||n===`B`||n===`n`||n===`N`)&&e[t+1]===`'`){this.pos=t+1;let e=this.quoted(t+1,`'`,`string`,this.syntax.backslashEscapes);return this.make(`string`,t,e.end)}if(n==="`")return this.quoted(t,"`",`quoted_identifier`,!1);if(n===`[`&&this.syntax.bracketIdentifiers){let n=e.indexOf(`]`,t+1);return this.pos=n===-1?e.length:n+1,this.make(`quoted_identifier`,t,this.pos)}if(S(n)||n===`.`&&S(e[t+1]??``))return this.number(t);if(n===`@`){let n=t+1;if(e[n]===`@`&&n++,e[n]===`'`||e[n]===`"`||e[n]==="`"){let r=e[n];this.pos=n;let i=this.quoted(n,r,`string`,this.syntax.backslashEscapes);return this.make(`variable`,t,i.end)}for(;n<e.length&&(x(e[n])||e[n]===`.`);)n++;return this.pos=n,this.make(`variable`,t,n)}if((n===`:`||n===`$`)&&b(e[t+1]??``)&&e[t+1]!==`$`){let n=t+1;for(;n<e.length&&x(e[n]);)n++;return this.pos=n,this.make(`variable`,t,n)}if(n===`?`){let n=t+1;for(;n<e.length&&S(e[n]);)n++;return this.pos=n,this.make(`placeholder`,t,n)}if(b(n)){let n=t+1;for(;n<e.length&&x(e[n])&&!e.startsWith(this.delimiter,n);)n++;let r=e.slice(t,n).toUpperCase();if(r===`DELIMITER`&&this.syntax.delimiterCommand&&this.significantInStatement===0){let r=n;for(;r<e.length&&(e[r]===` `||e[r]===` `);)r++;let i=r;for(;i<e.length&&!C(e[i]);)i++;if(i>r)return this.delimiter=e.slice(r,i),this.pos=i,this.make(`delimiter_command`,t,i)}if(r===`GO`&&this.syntax.goBatchSeparator&&this.atLineStart(t)){let r=n;for(;r<e.length&&(e[r]===` `||e[r]===` `);)r++;for(;r<e.length&&S(e[r]);)r++;for(;r<e.length&&(e[r]===` `||e[r]===` `||e[r]===`\r`);)r++;if(r>=e.length||e[r]===`
|
|
5
|
+
`)return this.pos=r,this.make(`delimiter_command`,t,r)}return this.pos=n,this.make(`identifier`,t,n)}if(n===`/`&&this.syntax.plsqlBlocks&&this.atLineStart(t)){let n=t+1;for(;n<e.length&&(e[n]===` `||e[n]===` `||e[n]===`\r`);)n++;if(n>=e.length||e[n]===`
|
|
6
|
+
`)return this.pos=n,this.make(`delimiter_command`,t,n)}if(n===`(`)return this.pos=t+1,this.make(`lparen`,t,this.pos);if(n===`)`)return this.pos=t+1,this.make(`rparen`,t,this.pos);for(let n of se)if(e.startsWith(n,t))return this.pos=t+n.length,this.make(`operator`,t,this.pos);return`=<>!+-*/%^~&|`.includes(n)?(this.pos=t+1,this.make(`operator`,t,this.pos)):`,.;:[]{}`.includes(n)?(this.pos=t+1,this.make(`punct`,t,this.pos)):(this.pos=t+1,this.make(`unknown`,t,this.pos))}lineComment(e){let t=this.input,n=e;for(;n<t.length&&t[n]!==`
|
|
7
|
+
`;)n++;return this.pos=n,this.make(`comment`,e,n)}quoted(e,t,n,r){let i=this.input,a=e+1;for(;a<i.length;){let e=i[a];if(r&&e===`\\`){a+=2;continue}if(e===t){if(i[a+1]===t){a+=2;continue}a++;break}a++}return this.pos=Math.min(a,i.length),this.make(n,e,this.pos)}number(e){let t=this.input,n=e;if(t[n]===`0`&&(t[n+1]===`x`||t[n+1]===`X`))for(n+=2;n<t.length&&/[0-9A-Fa-f]/.test(t[n]);)n++;else if(t[n]===`0`&&(t[n+1]===`b`||t[n+1]===`B`)&&(t[n+2]===`0`||t[n+2]===`1`))for(n+=2;n<t.length&&(t[n]===`0`||t[n]===`1`);)n++;else{for(;n<t.length&&S(t[n]);)n++;if(t[n]===`.`)for(n++;n<t.length&&S(t[n]);)n++;if((t[n]===`e`||t[n]===`E`)&&(S(t[n+1]??``)||(t[n+1]===`+`||t[n+1]===`-`)&&S(t[n+2]??``)))for(n+=2;n<t.length&&S(t[n]);)n++}return this.pos=n,this.make(`number`,e,n)}},w=new Set([`BEGIN`,`CASE`,`IF`,`LOOP`,`WHILE`,`REPEAT`]);function T(e){return e.kind!==`space`&&e.kind!==`comment`}function le(e,t){let n=[],r=[],i=[],a=0,o=!1,s=t=>{for(let n=t+1;n<e.length;n++)if(T(e[n]))return e[n]},c=e=>{r.length!==0&&(n.push({tokens:r,start:r[0].start,end:r[r.length-1].end,terminated:e}),r=[],i=[],a=0,o=!1)};for(let n=0;n<e.length;n++){let l=e[n];if(l.kind===`delimiter_command`){i.length>0?c(!1):r=[];continue}if(l.kind===`terminator`){if(a>0&&l.value===`;`){r.push({...l,kind:`punct`}),i.push(l);continue}r.push(l),c(!0);continue}if(r.push(l),T(l)){if(l.kind===`identifier`){let e=l.upper,r=i.length===0;if(o&&(o=!1,w.has(e))){i.push(l);continue}if(e===`END`)a>0&&a--,o=!0;else if(e===`BEGIN`){let e=s(n),o=i[i.length-1];r?(t.plsqlBlocks||e?.kind===`identifier`&&e.upper===`NOT`)&&a++:!(e=>e!==void 0&&(e.kind===`operator`||e.kind===`rparen`||e.kind===`punct`&&(e.value===`,`||e.value===`.`)||e.kind===`identifier`&&e.upper===`FROM`))(e)&&!(o&&(o.kind===`operator`||o.kind===`punct`&&(o.value===`,`||o.value===`.`)))&&a++}else if(e===`CASE`)a++;else if(a>0&&(e===`IF`||e===`LOOP`||e===`WHILE`||e===`REPEAT`)){let e=s(n);e?.kind!==`lparen`&&(e?.kind!==`identifier`||e.upper!==`EXISTS`&&e.upper!==`NOT`)&&a++}}i.push(l)}}return c(!1),n}var ue=new Set([`SELECT`,`VALUES`,`TABLE`,`WITH`,`SHOW`,`EXPLAIN`,`DESCRIBE`,`DESC`,`HELP`,`CHECK`,`CHECKSUM`,`ANALYZE`,`OPTIMIZE`,`REPAIR`,`PRAGMA`]),de=new Set([`SELECT`,`INSERT`,`UPDATE`,`DELETE`,`REPLACE`,`VALUES`,`TABLE`,`MERGE`]),fe=new Set([`TABLE`,`DATABASE`,`SCHEMA`,`TABLESPACE`]),pe=new Set([`WHERE`,`SET`,`USING`,`ORDER`,`LIMIT`,`JOIN`,`INNER`,`LEFT`,`RIGHT`,`CROSS`,`NATURAL`,`STRAIGHT_JOIN`,`ON`,`PARTITION`,`AS`,`RETURNING`,`INDEXED`,`NOT`]);function E(e){if(e.kind!==`quoted_identifier`)return e.value;let t=e.value[0],n=t===`[`?`]`:t,r=e.value.slice(1,e.value.endsWith(n)?-1:void 0);return t!==`[`&&(r=r.replaceAll(n+n,n)),r}function D(e){return e.kind===`identifier`||e.kind===`quoted_identifier`}function O(e,t,n=pe){let r=[];for(;t<e.length;){let i=e[t];if(!D(i)||i.kind===`identifier`&&n.has(i.upper))break;let a=[E(i)];for(t++;t+1<e.length&&e[t].kind===`punct`&&e[t].value===`.`&&D(e[t+1]);)a.push(E(e[t+1])),t+=2;if(r.push(a.join(`.`)),e[t]?.kind===`punct`&&e[t].value===`,`){t++;continue}break}return{names:r,next:t}}function k(e,t,n=0){let r=0;for(let i=n;i<e.length;i++){let n=e[i];if(n.kind===`lparen`)r++;else if(n.kind===`rparen`)r=Math.max(0,r-1);else if(r===0&&n.kind===`identifier`&&n.upper===t)return i}return-1}function me(e){let t=0;for(;t<e.length&&e[t].kind===`lparen`;)t++;if(t>=e.length||e[t].kind!==`identifier`)return{kind:``,index:t};if(e[t].upper!==`WITH`)return{kind:e[t].upper,index:t};let n=0,r=!1;for(let i=t+1;i<e.length;i++){let t=e[i];if(t.kind===`lparen`){n++,r=!1;continue}if(t.kind===`rparen`){n--,r=n===0;continue}if(n===0&&r&&t.kind===`identifier`&&de.has(t.upper))return{kind:t.upper,index:i};r=!1}return{kind:`WITH`,index:t}}function he(e,t){let n=k(e,`LIMIT`,t);if(n===-1)return null;let r=e[n+1];if(!r||r.kind!==`number`)return null;let i=e[n+2],a=e[n+3];return i?.kind===`punct`&&i.value===`,`&&a?.kind===`number`?{offset:Number(r.value),count:Number(a.value)}:i?.kind===`identifier`&&i.upper===`OFFSET`&&a?.kind===`number`?{offset:Number(a.value),count:Number(r.value)}:{offset:0,count:Number(r.value)}}function ge(e,t,n){let r=t=>e[t]?.kind===`identifier`?e[t].upper:void 0;switch(t){case`DROP`:{let t=n+1;r(t)===`TEMPORARY`&&t++;let i=r(t);if(!i)return null;t++,r(t)===`IF`&&(t+=2);let{names:a}=O(e,t,new Set([`ON`,`RESTRICT`,`CASCADE`]));return{action:`DROP`,objectType:i,names:a,dataLoss:fe.has(i)}}case`TRUNCATE`:{let t=n+1;r(t)===`TABLE`&&t++;let{names:i}=O(e,t);return{action:`TRUNCATE`,objectType:`TABLE`,names:i,dataLoss:!0}}case`DELETE`:{if(k(e,`WHERE`,n)!==-1)return null;let t=n+1;for(;r(t)===`LOW_PRIORITY`||r(t)===`QUICK`||r(t)===`IGNORE`;)t++;return{action:`DELETE_ALL`,names:r(t)===`FROM`?O(e,t+1).names:O(e,t,new Set([`FROM`])).names,dataLoss:!0}}case`UPDATE`:{if(k(e,`WHERE`,n)!==-1)return null;let t=n+1;for(;r(t)===`LOW_PRIORITY`||r(t)===`IGNORE`||r(t)===`OR`;)t+=r(t)===`OR`?2:1;let{names:i}=O(e,t);return{action:`UPDATE_ALL`,names:i,dataLoss:!0}}case`ALTER`:{if(r(n+1)!==`TABLE`)return null;let{names:t}=O(e,n+2,new Set([`ADD`,`DROP`,`MODIFY`,`CHANGE`,`RENAME`,`ALTER`])),i=[],a=0;for(let t=n+2;t<e.length;t++){let n=e[t];if(n.kind===`lparen`){a++;continue}if(n.kind===`rparen`){a--;continue}if(a!==0||n.kind!==`identifier`||n.upper!==`DROP`)continue;let r=e[t+1],o=r?.kind===`identifier`?r.upper:``;if(o===`COLUMN`){let n=e[t+2];n&&D(n)&&i.push(E(n))}else o===`PARTITION`?i.push(`PARTITION ${O(e,t+2).names.join(`, `)}`):r&&D(r)&&![`PRIMARY`,`FOREIGN`,`INDEX`,`KEY`,`CONSTRAINT`,`CHECK`,`DEFAULT`,`TABLESPACE`].includes(o)&&i.push(E(r))}return i.length===0?null:{action:`ALTER_DROP`,objectType:`TABLE`,names:t.map(e=>`${e} (${i.join(`, `)})`),dataLoss:!0}}default:return null}}function _e(e,t){let n=e.tokens.filter(e=>T(e)&&e.kind!==`terminator`),r=e.terminated?e.tokens.slice(0,-1):e.tokens,i=r.length?r[r.length-1].end:e.start,a=t.slice(e.start,i).trim(),{kind:o,index:s}=me(n),c=ue.has(o)||k(n,`RETURNING`,s)!==-1,l=c?he(n,s):null,u=ge(n,o,s);return{sql:a,raw:t.slice(e.start,e.end),start:e.start,end:e.end,tokens:e.tokens,kind:o,isEmpty:n.length===0,returnsRows:c,limit:l,destructive:u}}function A(e,t){let n=e.tokens.filter(e=>T(e)&&e.kind!==`terminator`),r=n.findIndex(e=>e.kind!==`lparen`);return k(n,t.toUpperCase(),Math.max(0,r))!==-1}function j(e){return e.start+e.raw.indexOf(e.sql)}function ve(e){let t=e.tokens.filter(e=>T(e)&&e.kind!==`terminator`),n=0;for(;n<t.length&&t[n].kind===`lparen`;)n++;let r=t[n];if(!r||r.kind!==`identifier`||r.upper!==`SELECT`)return-1;let i=r,a=t[n+1];return a?.kind===`identifier`&&(a.upper===`DISTINCT`||a.upper===`ALL`)&&(i=a),i.end-j(e)}var M=class{syntax;constructor(e){this.syntax=`syntax`in e?e.syntax:e}tokenize(e,t=`;`){return new ce(e,this.syntax,t).tokenize()}parse(e,t=`;`){return le(this.tokenize(e,t),this.syntax).map(t=>_e(t,e))}statements(e,t=`;`){return this.parse(e,t).filter(e=>!e.isEmpty)}},ye=new Set([`ORDER`,`LIMIT`,`RETURNING`,`OUTPUT`,`OPTION`]);function N(e,t,n,r){return n?e.slice(n.start-t,(r?r.start:2**53-1)-t).trim():``}function P(e,t,n){let r=t;for(;r<n&&e[r].kind===`identifier`&&(e[r].upper===`ONLY`||e[r].upper===`LOW_PRIORITY`||e[r].upper===`IGNORE`||e[r].upper===`QUICK`);)r++;if(r>=n||!D(e[r]))return null;let i=E(e[r]),a=e[r].kind===`quoted_identifier`;for(r++;r+1<n&&e[r].kind===`punct`&&e[r].value===`.`&&D(e[r+1]);)i=E(e[r+1]),a=e[r+1].kind===`quoted_identifier`,r+=2;return r<n&&e[r].kind===`identifier`&&e[r].upper===`AS`&&r++,r<n&&D(e[r])&&!(e[r].kind===`identifier`&&[`SET`,`WHERE`,`JOIN`,`INNER`,`LEFT`,`RIGHT`,`CROSS`,`USING`,`FROM`,`ON`,`NATURAL`,`STRAIGHT_JOIN`,`WITH`,`OUTPUT`].includes(e[r].upper))?(e[r].kind,e[r].value):a?`"${i.replaceAll(`"`,`""`)}"`:i}function be(e,t=`"`){let n=e.tokens.filter(e=>T(e)&&e.kind!==`terminator`),r=j(e),i=e.sql,a=e=>(e.startsWith(t)||e.startsWith(`"`)||e.startsWith("`")||e.startsWith(`[`),e),o=n[0];if(!o||o.kind!==`identifier`||o.upper!==`UPDATE`&&o.upper!==`DELETE`)return null;let s=k(n,`WHERE`),c=-1;for(let e of ye){let t=k(n,e,s===-1?1:s);t!==-1&&(c===-1||t<c)&&(c=t)}let l=e=>e===-1?n.length:e,u=s===-1?``:` `+N(i,r,n[s],n[l(c)]),d=``;if(c!==-1&&(n[c].upper===`ORDER`||n[c].upper===`LIMIT`)){let e=[`RETURNING`,`OUTPUT`,`OPTION`].map(e=>k(n,e,c)).filter(e=>e!==-1);d=` `+N(i,r,n[c],e.length?n[Math.min(...e)]:void 0)}let f,p,m;if(o.upper===`UPDATE`){let e=k(n,`SET`);if(e===-1)return null;let t=k(n,`FROM`,e),a=e,o=N(i,r,n[1],n[a]);if(!o||n[1].kind===`lparen`)return null;if(p=P(n,1,a),m=o,t!==-1&&(s===-1||t<s)){let e=N(i,r,n[t+1],n[l(s===-1?c:s)]);f=p!==null&&RegExp(`(^|[\\s,])${p.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}(\\s|$|,)`,`i`).test(e)?e:`${o}, ${e}`}else f=o}else{let e=k(n,`FROM`);if(e===-1)return null;let t=k(n,`USING`,e),a=l(t===-1?s===-1?c:s:t),o=N(i,r,n[e+1],n[a]);if(!o||n[e+1]?.kind===`lparen`)return null;let u=N(i,r,n[1],n[e]),d=u?u.split(`,`)[0].trim().replace(/^(LOW_PRIORITY|QUICK|IGNORE)\s+/i,``):``;p=d||P(n,e+1,a),m=d||o;let h=t===-1?``:N(i,r,n[t+1],n[l(s===-1?c:s)]);f=h?`${o}, ${h}`:o}return p?{select:`SELECT ${a(p)}.* FROM ${f}${u}${d}`,count:d?`SELECT COUNT(*) AS affected FROM (SELECT 1 AS one FROM ${f}${u}${d}) planche_preview`:`SELECT COUNT(*) AS affected FROM ${f}${u}`,table:m,limited:/\bLIMIT\b/i.test(d)}:null}function F(e){return o.getState().activeConnections.find(t=>t.id===e)?.database||ne(d.getState().trees[e]??[])}function xe(e,t,n,r){return g(e).tree.objectPath(t,n,r,F(e))}function I(e,t){return g(e).tree.namespacePath(t,F(e))}function L(e,t){for(let n of e){if(n.id===t)return n;let e=L(n.children,t);if(e)return e}return null}async function Se(e,t,n){let r=d.getState;for(let i=0;i<t.length;i++){let a=r().trees[e];if(!a)return!1;let o=L(a,t[i]);if(!o)return!1;if(i===t.length-1)return r().setSelected(e,o.id),!0;o.children.length===0&&!o.isLeaf?await n(e,o):o.isExpanded||r().setExpanded(e,o.id,!0)}return!1}function R(e,t){for(let n of e){if(n.id===t)return n;let e=R(n.children,t);if(e)return e}return null}function z(e,t){let n=d.getState(),r=n.trees[e];if(!r||!t)return;let i=I(e,t),a=null;for(let t of i){let i=R(r,t);if(!i||(a=i,i.isLeaf))break;!i.isExpanded&&i.children.length>0&&n.setExpanded(e,i.id,!0)}!a||a.id!==i[i.length-1]||(n.setSelected(e,a.id),!a.isExpanded&&a.children.length>0&&n.setExpanded(e,a.id,!0))}var B=e(n(),1);function Ce(e,t,n){let r=[];function i(e){for(let n of e){if(r.push(n),n.id===t||n.children.length>0&&i(n.children))return!0;r.pop()}return!1}i(e);for(let e=r.length-1;e>=0;e--)if(r[e].type===n)return r[e];return null}function V(e,t){for(let n of e){if(n.id===t)return n;if(n.children.length>0){let e=V(n.children,t);if(e)return e}}return null}var H=u(`schemaTreeLoadingRoots`,()=>new Set);function U(e){let t=o.getState().activeConnections.find(t=>t.id===e);return t?.serverConnectionId?{engine:g(e),run:p(t.serverConnectionId),database:t.database||void 0}:null}function we(){let{setTree:e,setChildren:t,setNodeMetadata:n,setLoading:a}=d(),o=(0,B.useCallback)(async t=>{let n=U(t);if(n&&!H.has(t)){H.add(t);try{e(t,await n.engine.tree.loadRoot(n))}catch(n){let a=n instanceof Error?n.message:String(n);console.error(`Failed to load databases:`,n),r.getState().setFooterMessage(i.t(`schema.tree.loadDatabasesFailed`,{message:a})),e(t,[])}finally{H.delete(t)}}},[e]),s=(0,B.useCallback)(async(e,r)=>{if(!d.getState().trees[e])return;let i=U(e);if(i&&!r.isLeaf){a(e,r.id,!0);try{let a=await i.engine.tree.loadChildren(i,r);t(e,r.id,a),Promise.all(a.filter(e=>e.type===h.FOLDER&&e.metadata?.countable).map(async t=>{try{let r=await i.engine.tree.loadChildren(i,t);n(e,t.id,{count:r.length})}catch(e){console.error(`Failed to count ${t.text}:`,e)}}))}catch(t){console.error(`Failed to load children:`,t),a(e,r.id,!1)}}},[t,n,a]);return{loadDatabases:o,loadChildren:s,refreshNode:(0,B.useCallback)(async(e,t)=>{await s(e,t)},[s]),createNode:m,findNode:V,findAncestor:Ce}}async function W(e,t){let n=d.getState().trees[e];if(!n||!t)return;let r=U(e);if(!r)return;let i=I(e,t),a=te(n,i[i.length-1]);!a||a.children.length===0||await Promise.all(a.children.filter(e=>e.type===h.FOLDER).map(async t=>{try{let n=await r.engine.tree.loadChildren(r,t),i=d.getState();(t.children.length>0||t.isExpanded)&&i.setChildren(e,t.id,n),t.metadata?.countable&&i.setNodeMetadata(e,t.id,{count:n.length})}catch(e){console.error(`Failed to refresh ${t.text}:`,e)}}))}var G=class extends Error{sql;constructor(e,t){super(e),this.name=`QueryError`,this.sql=t}},K=class extends Error{constructor(e=`Cancelled`){super(e),this.name=`ExecutionCancelled`}};function Te(e){let t=e.fields??[],n=e.records??[];return{fields:t.map(e=>({name:e.name,type:e.type,orgTable:e.orgTable??e.table??``,orgName:e.orgName??e.name,db:e.db??``})),rows:n.map(e=>{let n={};return t.forEach((t,r)=>{n[t.name]=e[r]}),n}),affectedRows:e.affectedRows??0,insertId:e.insertId??0,message:e.message??(n.length>0?i.t(`services.query.rowsReturned`,{count:n.length}):i.t(`services.query.rowsAffected`,{count:e.affectedRows??0}))}}async function q(e,t,n,r=ee(t)){let i=new Set(e.fields.map(e=>e.orgTable).filter(Boolean));if(i.size!==1)return e;let a=[...i][0];try{let i=await r.introspect.getPrimaryKeys(p(t),n,a);i.length>0&&(e.primaryKeys=i)}catch{}return!e.primaryKeys?.length&&e.fields.some(e=>e.name===`_rowid_`)&&(e.primaryKeys=[l]),e}var Ee=new Set([`SELECT`,`SHOW`,`EXPLAIN`,`DESCRIBE`,`DESC`,`HELP`,`VALUES`,`TABLE`,`WITH`,`USE`,`SET`,`CHECK`,`CHECKSUM`]);function J(e){return e.kind===`PRAGMA`?!e.sql.includes(`=`):!(!Ee.has(e.kind)||e.destructive||e.kind===`SELECT`&&A(e,`INTO`))}var De=new Set([`INSERT`,`UPDATE`,`DELETE`,`REPLACE`,`MERGE`,`LOAD`]),Oe=new Set([`CREATE`,`ALTER`,`DROP`,`TRUNCATE`,`RENAME`,`GRANT`,`REVOKE`,`FLUSH`,`LOCK`,`UNLOCK`]),ke=new Set([`CREATE`,`ALTER`,`DROP`,`RENAME`]);function Ae(e){return De.has(e.kind)||!!e.destructive?.dataLoss}function je(e,t,n=`limit`){if(t<=0||e.kind!==`SELECT`||e.limit!==null||A(e,`LIMIT`)||A(e,`INTO`)||A(e,`FOR`)||A(e,`LOCK`))return{sql:e.sql,limited:!1};if(n===`top`){if(A(e,`TOP`)||A(e,`OFFSET`))return{sql:e.sql,limited:!1};let n=ve(e);return n===-1?{sql:e.sql,limited:!1}:{sql:`${e.sql.slice(0,n)} TOP ${t}${e.sql.slice(n)}`,limited:!0}}return n===`fetch`?A(e,`FETCH`)||/\bROWNUM\b/i.test(e.sql)?{sql:e.sql,limited:!1}:{sql:`${e.sql} FETCH FIRST ${t} ROWS ONLY`,limited:!0}:{sql:`${e.sql} LIMIT ${t}`,limited:!0}}function Me(e){let t=c.getState().resultRowLimit;return t>0?e.limitClause(t):``}function Ne(e){let t=e.destructive,n=t.names.length?t.names.join(`, `):i.t(`services.destructive.unknownTarget`);switch(t.action){case`DROP`:return`DROP ${t.objectType} ${n}`;case`TRUNCATE`:return`TRUNCATE ${n}`;case`DELETE_ALL`:return i.t(`services.destructive.deleteAll`,{target:n});case`UPDATE_ALL`:return i.t(`services.destructive.updateAll`,{target:n});case`ALTER_DROP`:return i.t(`services.destructive.alterDrop`,{target:n})}}async function Pe(e){if(!c.getState().confirmDestructive)return!0;let t=e.filter(e=>e.destructive?.dataLoss);return t.length===0||r.getState().requestDestructiveConfirm({title:i.t(`services.destructive.title`,{count:t.length}),description:i.t(`services.destructive.description`),statements:t.map(Ne),confirmLabel:i.t(`services.runAnyway`)})}async function Fe(e,t){if(!e.readOnly)return;let n=t.filter(e=>!J(e));if(n.length===0)return;let a=`${e.hostName||e.host}`;if(!c.getState().allowReadOnlyOverride)throw new G(i.t(`services.readOnly.refused`,{label:a,count:n.length}));if(!await r.getState().requestDestructiveConfirm({title:i.t(`services.readOnly.title`,{label:a}),description:i.t(`services.readOnly.description`),statements:n.map(e=>e.sql.length>120?e.sql.slice(0,117)+`...`:e.sql),confirmLabel:i.t(`services.runAnyway`)}))throw new K(`Cancelled: connection is read-only.`)}function Y(e,t){let n=o.getState(),r=n.activeConnections.find(t=>t.id===e);if(!r?.serverConnectionId)throw new G(i.t(`services.query.notConnected`));if(n.pendingReopen[e])throw new G(i.t(`services.query.fileNotOpen`));return{connId:e,serverConnId:r.serverConnectionId,conn:r,engine:g(e),tabId:t}}async function X(e,t,n){let r=new M(e.engine).statements(t);if(e.conn.scratchpad){let{materializeFederated:t}=await a(async()=>{let{materializeFederated:e}=await import(`./main-NJl8KiiX.js`).then(e=>e.F);return{materializeFederated:e}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22]));for(let n of r)n.sql=await t(e.connId,n.sql)}if(await Fe(e.conn,r),!n.skipDestructiveConfirm&&!await Pe(r))throw new K;return r}async function Z(e,n,a){let{connId:c,serverConnId:l,engine:u,tabId:d}=e,p=n.stmt?.kind??``,m=()=>o.getState();if(e.conn.transactionMode===`manual`&&u.capabilities.transactions&&n.stmt&&Ae(n.stmt)&&!m().transactionOpen[c]){let e=await f(l,u.getQuery(`START_TRANSACTION`),a||void 0);if(!e.success)throw new G(e.message??i.t(`services.transaction.startFailed`));m().setTransactionOpen(c,!0),r.getState().setFooterMessage(i.t(`services.transaction.started`))}let h=await f(l,n.sql,a||void 0);if(!h.success){let r=h.message??i.t(`services.query.failed`);throw s.getState().recordExecution({connectionId:c,tabId:d,query:n.sql,database:a,executionTime:h.execTime,error:r,kind:p||void 0}),t(`query_execute`,{dbms:e.conn.dbms,kind:p||`unknown`,source:d?`editor`:`app`,success:!1}),new G(r,n.sql)}let g=Te(h);return p===`COMMIT`||p===`ROLLBACK`?m().setTransactionOpen(c,!1):p===`START`||p===`BEGIN`?m().setTransactionOpen(c,!0):Oe.has(p)&&m().transactionOpen[c]&&u.capabilities.implicitCommitDdl&&(m().setTransactionOpen(c,!1),r.getState().setFooterMessage(i.t(`services.transaction.implicitCommit`,{kind:p}))),ke.has(p)&&W(c,a),e.skipHistory||s.getState().recordExecution({connectionId:c,tabId:d,query:n.sql,database:a,executionTime:h.execTime,kind:p||void 0,...g.fields.length>0?{rowCount:g.rows.length}:{affectedRows:g.affectedRows}}),t(`query_execute`,{dbms:e.conn.dbms,kind:p||`unknown`,source:d?`editor`:`app`,success:!0,exec_time_ms:Math.round(h.execTime??0)}),{qr:g,execTime:h.execTime}}async function Q(e,t,n={}){let r=Y(e,n.tabId??null);r.skipHistory=n.skipHistory;let a=t.trim();if(!a)throw new G(i.t(`services.query.nothingToExecute`));let o=await X(r,a,n),s=o.length>0?o.map(e=>({sql:e.sql,stmt:e})):[{sql:a,stmt:null}],c=n.database??``,l=null;for(let e of s){let{qr:t}=await Z(r,e,c);n.primaryKeys&&t.fields.length>0&&c&&await q(t,r.serverConnId,c,r.engine),l=t}return l}function Ie(e,t){let n=s.getState().tabs[e]?.find(e=>e.id===t);if(!n)return null;let r=ie(e,t);if(r&&`selection`in r)return r.selection;let i=r&&`cursorOffset`in r?r.cursorOffset:n.query.length,a=new M(g(e)).statements(n.query);return a.length===0?null:(a.find(e=>i>=j(e)&&i<=e.end)??[...a].reverse().find(e=>e.end<=i)??a[0]).sql}async function Le(e,t,n={}){let r=()=>s.getState(),a=r().tabs[e]?.find(e=>e.id===t);if(!a)return;let o=(n.sql??a.query)?.trim();if(!o)return;let l,u;try{l=Y(e,t),u=await X(l,o,{})}catch(n){if(n instanceof K){n.message!==`Cancelled`&&r().setError(e,t,n.message);return}r().setError(e,t,n instanceof Error?n.message:String(n));return}let d=c.getState();if(d.previewAffectedRows)try{await Be(l,u,a.database||``)}catch(e){if(e instanceof K)return;throw e}let f=u.length>0?u.map(e=>({...je(e,d.resultRowLimit,l.engine.syntax.limitStyle),stmt:e})):[{sql:o,limited:!1,stmt:null}];r().captureSnapshot(e,t,`execute`),r().setExecuting(e,t,!0),r().setError(e,t,null);let p=[],m=a.database||``;try{for(let n of f){let{qr:a,execTime:o}=await Z(l,n,m);if(a.sql=n.stmt?.sql??n.sql,a.executionTime=o,n.limited&&a.rows.length>=d.resultRowLimit&&(a.limited=!0,a.message=i.t(`services.query.rowsReturnedLimited`,{count:a.rows.length,limit:d.resultRowLimit})),!m&&a.fields.length>0){let n=a.fields.find(e=>e.db)?.db;n&&(m=n,r().setDatabase(e,t,m),z(e,m))}a.fields.length>0&&m&&await q(a,l.serverConnId,m,l.engine),p.push(a)}r().setResults(e,t,p)}catch(n){p.length>0&&r().setResults(e,t,p),r().setError(e,t,n instanceof Error?n.message:String(n),n instanceof G?n.sql:null)}}var Re=50;function ze(e,t,n){return e.syntax.limitStyle===`top`?t.replace(/^SELECT\b/i,`SELECT TOP ${n}`):`${t} ${e.limitClause(n)}`}async function Be(e,t,n){for(let i of t){if(i.kind!==`UPDATE`&&i.kind!==`DELETE`)continue;let t=be(i);if(!t)continue;let a=null,o=[],s=[],c,l=await f(e.serverConnId,t.count,n||void 0);if(l.success){let r=Number(l.records[0]?.[0]);a=Number.isFinite(r)?r:null;let i=await f(e.serverConnId,t.limited?t.select:ze(e.engine,t.select,Re),n||void 0);i.success?(o=i.fields.map(e=>e.name),s=i.records):c=i.message}else c=l.message;if(!await r.getState().requestDryRun({statement:i.sql,previewSql:t.select,count:a,fields:o,rows:s,truncated:a!==null&&s.length<a,error:c}))throw new K}}async function $(e,t){let n=o.getState(),a=n.activeConnections.find(t=>t.id===e);if(!a?.serverConnectionId)return;let s=g(e);try{let e=await f(a.serverConnectionId,s.getQuery(t));if(!e.success)throw new G(e.message??i.t(`services.transaction.commandFailed`,{name:t}));r.getState().setFooterMessage(t===`COMMIT`?i.t(`services.transaction.committed`):i.t(`services.transaction.rolledBack`))}catch(e){r.getState().setFooterMessage(i.t(`services.transaction.commandFailedWith`,{name:t,message:e instanceof Error?e.message:String(e)}))}finally{n.setTransactionOpen(e,!1)}}var Ve=e=>$(e,`COMMIT`),He=e=>$(e,`ROLLBACK`);export{j as _,Ie as a,oe as b,Q as c,we as d,z as f,E as g,M as h,Le as i,Me as l,xe as m,G as n,J as o,Se as p,Ve as r,He as s,K as t,W as u,y as v,re as y};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e}from"./ui-store-BPY9VfQP.js";import{i as t,t as n}from"./app-storage-B6v72zLH.js";import{n as r}from"./connection-store-CJ_al8qv.js";import{n as i}from"./settings-store-DxKFgC4Z.js";var a=/--[^\n]*|\/\*[\s\S]*?\*\/|\$([A-Za-z_]\w*)?\$[\s\S]*?\$\1\$|'(?:[^']|'')*'|"(?:[^"]|"")*"|\[[^\]]*\]|[A-Za-z_][\w$#]*|\S/g,o=`'***'`,s=/((?:password|pwd)\s*=\s*)[^;'"]+/gi;function c(e){let t=[];for(let n of e.matchAll(a)){let e=n[0];if(e.startsWith(`--`)||e.startsWith(`/*`))continue;let r=e[0],i=r===`'`||r===`"`||r===`$`?`literal`:/[A-Za-z_]/.test(r)?`word`:`other`;t.push({text:e,start:n.index,end:n.index+e.length,kind:i})}return t}var l=e=>e?.kind===`word`?e.text.toUpperCase():``;function u(e){let t=c(e),n=[],r=e=>{!e||e.kind===`other`||n.push({start:e.start,end:e.end,text:e.kind===`literal`?o:`***`})},i=e=>{let n=t[e];return n?n.kind===`literal`?{token:n,span:1}:n.kind===`word`&&/^[NE]$/i.test(n.text)&&t[e+1]?.kind===`literal`?{token:t[e+1],span:2}:null:null};for(let e=0;e<t.length;e++){let a=t[e];if(a.kind===`literal`){s.test(a.text)&&(s.lastIndex=0,n.push({start:a.start,end:a.end,text:a.text.replace(s,`$1***`)})),s.lastIndex=0;continue}if(a.kind!==`word`)continue;let o=a.text.toUpperCase();if(o===`IDENTIFIED`){let n=e+1;if(l(t[n])===`WITH`&&(n+=2),l(t[n])!==`BY`&&l(t[n])!==`AS`||(n+=1,(l(t[n])===`PASSWORD`||l(t[n])===`VALUES`)&&(n+=1),l(t[n])===`RANDOM`))continue;let a=i(n);a?(r(a.token),n+=a.span):t[n]?.kind===`word`&&(r(t[n]),n+=1),l(t[n])===`REPLACE`&&r(i(n+1)?.token??t[n+1]);continue}if(o===`PASSWORD`){let n=e+1;if(t[n]?.text===`(`){r(i(n+1)?.token);continue}if(l(t[n])===`FOR`)for(;n<t.length&&t[n].text!==`=`;)n++;t[n]?.text===`=`&&(n+=1),r(i(n)?.token)}}if(n.length===0)return e;n.sort((e,t)=>e.start-t.start);let a=``,u=0;for(let t of n)t.start<u||(a+=e.slice(u,t.start)+t.text,u=t.end);return a+e.slice(u)}var d=30,f=200,p=Object.freeze([]);function m(e,t,n){return e.map(e=>e.id===t?{...e,...n}:e)}function h(e){let t=e;if(delete t.erdOpen,delete t.erdDatabase,t.tabs&&typeof t.tabs==`object`){let e=t.tabs;for(let t of Object.keys(e))e[t]=e[t].map(e=>{if(!Array.isArray(e.results)){let t={...e};return delete t.result,{...t,results:[]}}return e})}return t}var g=e()(t((e,t)=>({tabs:{},activeTabId:{},history:[],snapshots:{},addQueryTab:(t,n)=>e(e=>{let r=e.tabs[t]??[];return{tabs:{...e.tabs,[t]:[...r,n]},activeTabId:{...e.activeTabId,[t]:n.id}}}),removeQueryTab:(e,n)=>t().removeQueryTabs(e,[n]),removeQueryTabs:(t,n)=>e(e=>{let r=new Set(n),i=(e.tabs[t]??[]).filter(e=>!r.has(e.id)),a=e.activeTabId[t],o=a&&r.has(a)?i.length>0?i[i.length-1].id:null:a,s={...e.snapshots[t]};for(let e of n)delete s[e];return{tabs:{...e.tabs,[t]:i},activeTabId:{...e.activeTabId,[t]:o},snapshots:{...e.snapshots,[t]:s}}}),reorderQueryTab:(t,n,i)=>e(e=>({tabs:{...e.tabs,[t]:r(e.tabs[t]??[],n,i)}})),setActiveQueryTab:(t,n)=>e(e=>({activeTabId:{...e.activeTabId,[t]:n}})),setEditorContent:(t,n,r)=>e(e=>{let i=e.tabs[t]??[];return{tabs:{...e.tabs,[t]:m(i,n,{query:r})}}}),setResults:(t,n,r)=>e(e=>{let i=e.tabs[t]??[];return{tabs:{...e.tabs,[t]:m(i,n,{results:r,isExecuting:!1,error:null})}}}),setExecuting:(t,n,r)=>e(e=>{let i=e.tabs[t]??[];return{tabs:{...e.tabs,[t]:m(i,n,{isExecuting:r})}}}),setError:(t,n,r,i=null)=>e(e=>{let a=e.tabs[t]??[];return{tabs:{...e.tabs,[t]:m(a,n,{error:r,errorSql:r?i:null,isExecuting:!1})}}}),setDatabase:(t,n,r)=>e(e=>{let i=e.tabs[t]??[];return{tabs:{...e.tabs,[t]:m(i,n,{database:r})}}}),setExecutionTime:(t,n,r)=>e(e=>{let i=e.tabs[t]??[];return{tabs:{...e.tabs,[t]:m(i,n,{executionTime:r})}}}),addHistory:t=>e(e=>({history:[t,...e.history].slice(0,500)})),recordExecution:({connectionId:e,tabId:n,query:r,database:i,executionTime:a,error:o,kind:s,rowCount:c,affectedRows:l})=>t().addHistory({id:crypto.randomUUID(),query:u(r),database:i,timestamp:Date.now(),executionTime:a,success:!o,connectionId:e,tabId:n??void 0,...o?{error:o}:{},...s?{kind:s}:{},...c==null?{}:{rowCount:c},...l==null?{}:{affectedRows:l}}),clearHistory:()=>e({history:[]}),captureSnapshot:(t,n,r)=>e(e=>{let i=e.tabs[t]?.find(e=>e.id===n),a=u(i?.query??``);if(!a.trim())return{};let o=e.snapshots[t]?.[n]??[];if(o[0]?.text===a)return{};let s=[{text:a,timestamp:Date.now(),reason:r},...o].slice(0,d);return{snapshots:{...e.snapshots,[t]:{...e.snapshots[t],[n]:s}}}})}),{name:`planche-query`,storage:n(),version:2,migrate:h,partialize:e=>({tabs:Object.fromEntries(Object.entries(e.tabs).map(([e,t])=>[e,t.map(e=>({...e,isExecuting:!1,results:[],error:null,errorSql:null,executionTime:null}))])),activeTabId:e.activeTabId,history:i.getState().persistQueryHistory?e.history.slice(0,f):[],snapshots:i.getState().persistQueryHistory?Object.fromEntries(Object.entries(e.snapshots).map(([t,n])=>{let r=new Set((e.tabs[t]??[]).map(e=>e.id));return[t,Object.fromEntries(Object.entries(n).filter(([e])=>r.has(e)).map(([e,t])=>[e,t.slice(0,d)]))]})):{}})}));export{g as n,p as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e={comments:{lineComment:`#`},brackets:[[`{`,`}`],[`[`,`]`],[`(`,`)`]],autoClosingPairs:[{open:`{`,close:`}`},{open:`[`,close:`]`},{open:`(`,close:`)`},{open:`"`,close:`"`}],surroundingPairs:[{open:`{`,close:`}`},{open:`[`,close:`]`},{open:`(`,close:`)`},{open:`"`,close:`"`}]},t={defaultToken:``,tokenPostfix:`.r`,roxygen:`@alias.@aliases.@assignee.@author.@backref.@callGraph.@callGraphDepth.@callGraphPrimitives.@concept.@describeIn.@description.@details.@docType.@encoding.@evalNamespace.@evalRd.@example.@examples.@export.@exportClass.@exportMethod.@exportPattern.@family.@field.@formals.@format.@import.@importClassesFrom.@importFrom.@importMethodsFrom.@include.@inherit.@inheritDotParams.@inheritParams.@inheritSection.@keywords.@md.@method.@name.@noMd.@noRd.@note.@param.@rawNamespace.@rawRd.@rdname.@references.@return.@S3method.@section.@seealso.@setClass.@slot.@source.@template.@templateVar.@title.@TODO.@usage.@useDynLib`.split(`.`),constants:[`NULL`,`FALSE`,`TRUE`,`NA`,`Inf`,`NaN`,`NA_integer_`,`NA_real_`,`NA_complex_`,`NA_character_`,`T`,`F`,`LETTERS`,`letters`,`month.abb`,`month.name`,`pi`,`R.version.string`],keywords:`break,next,return,if,else,for,in,repeat,while,array,category,character,complex,double,function,integer,list,logical,matrix,numeric,vector,data.frame,factor,library,require,attach,detach,source`.split(`,`),special:[`\\n`,`\\r`,`\\t`,`\\b`,`\\a`,`\\f`,`\\v`,`\\'`,`\\"`,`\\\\`],brackets:[{open:`{`,close:`}`,token:`delimiter.curly`},{open:`[`,close:`]`,token:`delimiter.bracket`},{open:`(`,close:`)`,token:`delimiter.parenthesis`}],tokenizer:{root:[{include:`@numbers`},{include:`@strings`},[/[{}\[\]()]/,`@brackets`],{include:`@operators`},[/#'$/,`comment.doc`],[/#'/,`comment.doc`,`@roxygen`],[/(^#.*$)/,`comment`],[/\s+/,`white`],[/[,:;]/,`delimiter`],[/@[a-zA-Z]\w*/,`tag`],[/[a-zA-Z]\w*/,{cases:{"@keywords":`keyword`,"@constants":`constant`,"@default":`identifier`}}]],roxygen:[[/@\w+/,{cases:{"@roxygen":`tag`,"@eos":{token:`comment.doc`,next:`@pop`},"@default":`comment.doc`}}],[/\s+/,{cases:{"@eos":{token:`comment.doc`,next:`@pop`},"@default":`comment.doc`}}],[/.*/,{token:`comment.doc`,next:`@pop`}]],numbers:[[/0[xX][0-9a-fA-F]+/,`number.hex`],[/-?(\d*\.)?\d+([eE][+\-]?\d+)?/,`number`]],operators:[[/<{1,2}-/,`operator`],[/->{1,2}/,`operator`],[/%[^%\s]+%/,`operator`],[/\*\*/,`operator`],[/%%/,`operator`],[/&&/,`operator`],[/\|\|/,`operator`],[/<</,`operator`],[/>>/,`operator`],[/[-+=&|!<>^~*/:$]/,`operator`]],strings:[[/'/,`string.escape`,`@stringBody`],[/"/,`string.escape`,`@dblStringBody`]],stringBody:[[/\\./,{cases:{"@special":`string`,"@default":`error-token`}}],[/'/,`string.escape`,`@popall`],[/./,`string`]],dblStringBody:[[/\\./,{cases:{"@special":`string`,"@default":`error-token`}}],[/"/,`string.escape`,`@popall`],[/./,`string`]]}};export{e as conf,t as language};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{h as e}from"./editor.api2-JBjomUWM.js";var t=[`area`,`base`,`br`,`col`,`embed`,`hr`,`img`,`input`,`keygen`,`link`,`menuitem`,`meta`,`param`,`source`,`track`,`wbr`],n={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:[`<!--`,`-->`]},brackets:[[`<!--`,`-->`],[`<`,`>`],[`{`,`}`],[`(`,`)`]],autoClosingPairs:[{open:`{`,close:`}`},{open:`[`,close:`]`},{open:`(`,close:`)`},{open:`"`,close:`"`},{open:`'`,close:`'`}],surroundingPairs:[{open:`"`,close:`"`},{open:`'`,close:`'`},{open:`<`,close:`>`}],onEnterRules:[{beforeText:RegExp(`<(?!(?:${t.join(`|`)}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,`i`),afterText:/^<\/(\w[\w\d]*)\s*>$/i,action:{indentAction:e.IndentAction.IndentOutdent}},{beforeText:RegExp(`<(?!(?:${t.join(`|`)}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,`i`),action:{indentAction:e.IndentAction.Indent}}]},r={defaultToken:``,tokenPostfix:``,tokenizer:{root:[[/@@@@/],[/@[^@]/,{token:`@rematch`,switchTo:`@razorInSimpleState.root`}],[/<!DOCTYPE/,`metatag.html`,`@doctype`],[/<!--/,`comment.html`,`@comment`],[/(<)([\w\-]+)(\/>)/,[`delimiter.html`,`tag.html`,`delimiter.html`]],[/(<)(script)/,[`delimiter.html`,{token:`tag.html`,next:`@script`}]],[/(<)(style)/,[`delimiter.html`,{token:`tag.html`,next:`@style`}]],[/(<)([:\w\-]+)/,[`delimiter.html`,{token:`tag.html`,next:`@otherTag`}]],[/(<\/)([\w\-]+)/,[`delimiter.html`,{token:`tag.html`,next:`@otherTag`}]],[/</,`delimiter.html`],[/[ \t\r\n]+/],[/[^<@]+/]],doctype:[[/@[^@]/,{token:`@rematch`,switchTo:`@razorInSimpleState.comment`}],[/[^>]+/,`metatag.content.html`],[/>/,`metatag.html`,`@pop`]],comment:[[/@[^@]/,{token:`@rematch`,switchTo:`@razorInSimpleState.comment`}],[/-->/,`comment.html`,`@pop`],[/[^-]+/,`comment.content.html`],[/./,`comment.content.html`]],otherTag:[[/@[^@]/,{token:`@rematch`,switchTo:`@razorInSimpleState.otherTag`}],[/\/?>/,`delimiter.html`,`@pop`],[/"([^"]*)"/,`attribute.value`],[/'([^']*)'/,`attribute.value`],[/[\w\-]+/,`attribute.name`],[/=/,`delimiter`],[/[ \t\r\n]+/]],script:[[/@[^@]/,{token:`@rematch`,switchTo:`@razorInSimpleState.script`}],[/type/,`attribute.name`,`@scriptAfterType`],[/"([^"]*)"/,`attribute.value`],[/'([^']*)'/,`attribute.value`],[/[\w\-]+/,`attribute.name`],[/=/,`delimiter`],[/>/,{token:`delimiter.html`,next:`@scriptEmbedded.text/javascript`,nextEmbedded:`text/javascript`}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,[`delimiter.html`,`tag.html`,{token:`delimiter.html`,next:`@pop`}]]],scriptAfterType:[[/@[^@]/,{token:`@rematch`,switchTo:`@razorInSimpleState.scriptAfterType`}],[/=/,`delimiter`,`@scriptAfterTypeEquals`],[/>/,{token:`delimiter.html`,next:`@scriptEmbedded.text/javascript`,nextEmbedded:`text/javascript`}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:`@rematch`,next:`@pop`}]],scriptAfterTypeEquals:[[/@[^@]/,{token:`@rematch`,switchTo:`@razorInSimpleState.scriptAfterTypeEquals`}],[/"([^"]*)"/,{token:`attribute.value`,switchTo:`@scriptWithCustomType.$1`}],[/'([^']*)'/,{token:`attribute.value`,switchTo:`@scriptWithCustomType.$1`}],[/>/,{token:`delimiter.html`,next:`@scriptEmbedded.text/javascript`,nextEmbedded:`text/javascript`}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:`@rematch`,next:`@pop`}]],scriptWithCustomType:[[/@[^@]/,{token:`@rematch`,switchTo:`@razorInSimpleState.scriptWithCustomType.$S2`}],[/>/,{token:`delimiter.html`,next:`@scriptEmbedded.$S2`,nextEmbedded:`$S2`}],[/"([^"]*)"/,`attribute.value`],[/'([^']*)'/,`attribute.value`],[/[\w\-]+/,`attribute.name`],[/=/,`delimiter`],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:`@rematch`,next:`@pop`}]],scriptEmbedded:[[/@[^@]/,{token:`@rematch`,switchTo:`@razorInEmbeddedState.scriptEmbedded.$S2`,nextEmbedded:`@pop`}],[/<\/script/,{token:`@rematch`,next:`@pop`,nextEmbedded:`@pop`}]],style:[[/@[^@]/,{token:`@rematch`,switchTo:`@razorInSimpleState.style`}],[/type/,`attribute.name`,`@styleAfterType`],[/"([^"]*)"/,`attribute.value`],[/'([^']*)'/,`attribute.value`],[/[\w\-]+/,`attribute.name`],[/=/,`delimiter`],[/>/,{token:`delimiter.html`,next:`@styleEmbedded.text/css`,nextEmbedded:`text/css`}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,[`delimiter.html`,`tag.html`,{token:`delimiter.html`,next:`@pop`}]]],styleAfterType:[[/@[^@]/,{token:`@rematch`,switchTo:`@razorInSimpleState.styleAfterType`}],[/=/,`delimiter`,`@styleAfterTypeEquals`],[/>/,{token:`delimiter.html`,next:`@styleEmbedded.text/css`,nextEmbedded:`text/css`}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:`@rematch`,next:`@pop`}]],styleAfterTypeEquals:[[/@[^@]/,{token:`@rematch`,switchTo:`@razorInSimpleState.styleAfterTypeEquals`}],[/"([^"]*)"/,{token:`attribute.value`,switchTo:`@styleWithCustomType.$1`}],[/'([^']*)'/,{token:`attribute.value`,switchTo:`@styleWithCustomType.$1`}],[/>/,{token:`delimiter.html`,next:`@styleEmbedded.text/css`,nextEmbedded:`text/css`}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:`@rematch`,next:`@pop`}]],styleWithCustomType:[[/@[^@]/,{token:`@rematch`,switchTo:`@razorInSimpleState.styleWithCustomType.$S2`}],[/>/,{token:`delimiter.html`,next:`@styleEmbedded.$S2`,nextEmbedded:`$S2`}],[/"([^"]*)"/,`attribute.value`],[/'([^']*)'/,`attribute.value`],[/[\w\-]+/,`attribute.name`],[/=/,`delimiter`],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:`@rematch`,next:`@pop`}]],styleEmbedded:[[/@[^@]/,{token:`@rematch`,switchTo:`@razorInEmbeddedState.styleEmbedded.$S2`,nextEmbedded:`@pop`}],[/<\/style/,{token:`@rematch`,next:`@pop`,nextEmbedded:`@pop`}]],razorInSimpleState:[[/@\*/,`comment.cs`,`@razorBlockCommentTopLevel`],[/@[{(]/,`metatag.cs`,`@razorRootTopLevel`],[/(@)(\s*[\w]+)/,[`metatag.cs`,{token:`identifier.cs`,switchTo:`@$S2.$S3`}]],[/[})]/,{token:`metatag.cs`,switchTo:`@$S2.$S3`}],[/\*@/,{token:`comment.cs`,switchTo:`@$S2.$S3`}]],razorInEmbeddedState:[[/@\*/,`comment.cs`,`@razorBlockCommentTopLevel`],[/@[{(]/,`metatag.cs`,`@razorRootTopLevel`],[/(@)(\s*[\w]+)/,[`metatag.cs`,{token:`identifier.cs`,switchTo:`@$S2.$S3`,nextEmbedded:`$S3`}]],[/[})]/,{token:`metatag.cs`,switchTo:`@$S2.$S3`,nextEmbedded:`$S3`}],[/\*@/,{token:`comment.cs`,switchTo:`@$S2.$S3`,nextEmbedded:`$S3`}]],razorBlockCommentTopLevel:[[/\*@/,`@rematch`,`@pop`],[/[^*]+/,`comment.cs`],[/./,`comment.cs`]],razorBlockComment:[[/\*@/,`comment.cs`,`@pop`],[/[^*]+/,`comment.cs`],[/./,`comment.cs`]],razorRootTopLevel:[[/\{/,`delimiter.bracket.cs`,`@razorRoot`],[/\(/,`delimiter.parenthesis.cs`,`@razorRoot`],[/[})]/,`@rematch`,`@pop`],{include:`razorCommon`}],razorRoot:[[/\{/,`delimiter.bracket.cs`,`@razorRoot`],[/\(/,`delimiter.parenthesis.cs`,`@razorRoot`],[/\}/,`delimiter.bracket.cs`,`@pop`],[/\)/,`delimiter.parenthesis.cs`,`@pop`],{include:`razorCommon`}],razorCommon:[[/[a-zA-Z_]\w*/,{cases:{"@razorKeywords":{token:`keyword.cs`},"@default":`identifier.cs`}}],[/[\[\]]/,`delimiter.array.cs`],[/[ \t\r\n]+/],[/\/\/.*$/,`comment.cs`],[/@\*/,`comment.cs`,`@razorBlockComment`],[/"([^"]*)"/,`string.cs`],[/'([^']*)'/,`string.cs`],[/(<)([\w\-]+)(\/>)/,[`delimiter.html`,`tag.html`,`delimiter.html`]],[/(<)([\w\-]+)(>)/,[`delimiter.html`,`tag.html`,`delimiter.html`]],[/(<\/)([\w\-]+)(>)/,[`delimiter.html`,`tag.html`,`delimiter.html`]],[/[\+\-\*\%\&\|\^\~\!\=\<\>\/\?\;\:\.\,]/,`delimiter.cs`],[/\d*\d+[eE]([\-+]?\d+)?/,`number.float.cs`],[/\d*\.\d+([eE][\-+]?\d+)?/,`number.float.cs`],[/0[xX][0-9a-fA-F']*[0-9a-fA-F]/,`number.hex.cs`],[/0[0-7']*[0-7]/,`number.octal.cs`],[/0[bB][0-1']*[0-1]/,`number.binary.cs`],[/\d[\d']*/,`number.cs`],[/\d/,`number.cs`]]},razorKeywords:`abstract.as.async.await.base.bool.break.by.byte.case.catch.char.checked.class.const.continue.decimal.default.delegate.do.double.descending.explicit.event.extern.else.enum.false.finally.fixed.float.for.foreach.from.goto.group.if.implicit.in.int.interface.internal.into.is.lock.long.nameof.new.null.namespace.object.operator.out.override.orderby.params.private.protected.public.readonly.ref.return.switch.struct.sbyte.sealed.short.sizeof.stackalloc.static.string.select.this.throw.true.try.typeof.uint.ulong.unchecked.unsafe.ushort.using.var.virtual.volatile.void.when.while.where.yield.model.inject`.split(`.`),escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/};export{n as conf,r as language};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e={brackets:[[`{`,`}`],[`[`,`]`],[`(`,`)`]],autoClosingPairs:[{open:`{`,close:`}`},{open:`[`,close:`]`},{open:`(`,close:`)`},{open:`"`,close:`"`},{open:`'`,close:`'`}],surroundingPairs:[{open:`{`,close:`}`},{open:`[`,close:`]`},{open:`(`,close:`)`},{open:`"`,close:`"`},{open:`'`,close:`'`}]},t={defaultToken:``,tokenPostfix:`.redis`,ignoreCase:!0,brackets:[{open:`[`,close:`]`,token:`delimiter.square`},{open:`(`,close:`)`,token:`delimiter.parenthesis`}],keywords:`APPEND.AUTH.BGREWRITEAOF.BGSAVE.BITCOUNT.BITFIELD.BITOP.BITPOS.BLPOP.BRPOP.BRPOPLPUSH.CLIENT.KILL.LIST.GETNAME.PAUSE.REPLY.SETNAME.CLUSTER.ADDSLOTS.COUNT-FAILURE-REPORTS.COUNTKEYSINSLOT.DELSLOTS.FAILOVER.FORGET.GETKEYSINSLOT.INFO.KEYSLOT.MEET.NODES.REPLICATE.RESET.SAVECONFIG.SET-CONFIG-EPOCH.SETSLOT.SLAVES.SLOTS.COMMAND.COUNT.GETKEYS.CONFIG.GET.REWRITE.SET.RESETSTAT.DBSIZE.DEBUG.OBJECT.SEGFAULT.DECR.DECRBY.DEL.DISCARD.DUMP.ECHO.EVAL.EVALSHA.EXEC.EXISTS.EXPIRE.EXPIREAT.FLUSHALL.FLUSHDB.GEOADD.GEOHASH.GEOPOS.GEODIST.GEORADIUS.GEORADIUSBYMEMBER.GETBIT.GETRANGE.GETSET.HDEL.HEXISTS.HGET.HGETALL.HINCRBY.HINCRBYFLOAT.HKEYS.HLEN.HMGET.HMSET.HSET.HSETNX.HSTRLEN.HVALS.INCR.INCRBY.INCRBYFLOAT.KEYS.LASTSAVE.LINDEX.LINSERT.LLEN.LPOP.LPUSH.LPUSHX.LRANGE.LREM.LSET.LTRIM.MGET.MIGRATE.MONITOR.MOVE.MSET.MSETNX.MULTI.PERSIST.PEXPIRE.PEXPIREAT.PFADD.PFCOUNT.PFMERGE.PING.PSETEX.PSUBSCRIBE.PUBSUB.PTTL.PUBLISH.PUNSUBSCRIBE.QUIT.RANDOMKEY.READONLY.READWRITE.RENAME.RENAMENX.RESTORE.ROLE.RPOP.RPOPLPUSH.RPUSH.RPUSHX.SADD.SAVE.SCARD.SCRIPT.FLUSH.LOAD.SDIFF.SDIFFSTORE.SELECT.SETBIT.SETEX.SETNX.SETRANGE.SHUTDOWN.SINTER.SINTERSTORE.SISMEMBER.SLAVEOF.SLOWLOG.SMEMBERS.SMOVE.SORT.SPOP.SRANDMEMBER.SREM.STRLEN.SUBSCRIBE.SUNION.SUNIONSTORE.SWAPDB.SYNC.TIME.TOUCH.TTL.TYPE.UNSUBSCRIBE.UNLINK.UNWATCH.WAIT.WATCH.ZADD.ZCARD.ZCOUNT.ZINCRBY.ZINTERSTORE.ZLEXCOUNT.ZRANGE.ZRANGEBYLEX.ZREVRANGEBYLEX.ZRANGEBYSCORE.ZRANK.ZREM.ZREMRANGEBYLEX.ZREMRANGEBYRANK.ZREMRANGEBYSCORE.ZREVRANGE.ZREVRANGEBYSCORE.ZREVRANK.ZSCORE.ZUNIONSTORE.SCAN.SSCAN.HSCAN.ZSCAN`.split(`.`),operators:[],builtinFunctions:[],builtinVariables:[],pseudoColumns:[],tokenizer:{root:[{include:`@whitespace`},{include:`@pseudoColumns`},{include:`@numbers`},{include:`@strings`},{include:`@scopes`},[/[;,.]/,`delimiter`],[/[()]/,`@brackets`],[/[\w@#$]+/,{cases:{"@keywords":`keyword`,"@operators":`operator`,"@builtinVariables":`predefined`,"@builtinFunctions":`predefined`,"@default":`identifier`}}],[/[<>=!%&+\-*/|~^]/,`operator`]],whitespace:[[/\s+/,`white`]],pseudoColumns:[[/[$][A-Za-z_][\w@#$]*/,{cases:{"@pseudoColumns":`predefined`,"@default":`identifier`}}]],numbers:[[/0[xX][0-9a-fA-F]*/,`number`],[/[$][+-]*\d*(\.\d*)?/,`number`],[/((\d+(\.\d*)?)|(\.\d+))([eE][\-+]?\d+)?/,`number`]],strings:[[/'/,{token:`string`,next:`@string`}],[/"/,{token:`string.double`,next:`@stringDouble`}]],string:[[/[^']+/,`string`],[/''/,`string`],[/'/,{token:`string`,next:`@pop`}]],stringDouble:[[/[^"]+/,`string.double`],[/""/,`string.double`],[/"/,{token:`string.double`,next:`@pop`}]],scopes:[]}};export{e as conf,t as language};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e={comments:{lineComment:`--`,blockComment:[`/*`,`*/`]},brackets:[[`{`,`}`],[`[`,`]`],[`(`,`)`]],autoClosingPairs:[{open:`{`,close:`}`},{open:`[`,close:`]`},{open:`(`,close:`)`},{open:`"`,close:`"`},{open:`'`,close:`'`}],surroundingPairs:[{open:`{`,close:`}`},{open:`[`,close:`]`},{open:`(`,close:`)`},{open:`"`,close:`"`},{open:`'`,close:`'`}]},t={defaultToken:``,tokenPostfix:`.sql`,ignoreCase:!0,brackets:[{open:`[`,close:`]`,token:`delimiter.square`},{open:`(`,close:`)`,token:`delimiter.parenthesis`}],keywords:`AES128.AES256.ALL.ALLOWOVERWRITE.ANALYSE.ANALYZE.AND.ANY.ARRAY.AS.ASC.AUTHORIZATION.AZ64.BACKUP.BETWEEN.BINARY.BLANKSASNULL.BOTH.BYTEDICT.BZIP2.CASE.CAST.CHECK.COLLATE.COLUMN.CONSTRAINT.CREATE.CREDENTIALS.CROSS.CURRENT_DATE.CURRENT_TIME.CURRENT_TIMESTAMP.CURRENT_USER.CURRENT_USER_ID.DEFAULT.DEFERRABLE.DEFLATE.DEFRAG.DELTA.DELTA32K.DESC.DISABLE.DISTINCT.DO.ELSE.EMPTYASNULL.ENABLE.ENCODE.ENCRYPT.ENCRYPTION.END.EXCEPT.EXPLICIT.FALSE.FOR.FOREIGN.FREEZE.FROM.FULL.GLOBALDICT256.GLOBALDICT64K.GRANT.GROUP.GZIP.HAVING.IDENTITY.IGNORE.ILIKE.IN.INITIALLY.INNER.INTERSECT.INTO.IS.ISNULL.JOIN.LANGUAGE.LEADING.LEFT.LIKE.LIMIT.LOCALTIME.LOCALTIMESTAMP.LUN.LUNS.LZO.LZOP.MINUS.MOSTLY16.MOSTLY32.MOSTLY8.NATURAL.NEW.NOT.NOTNULL.NULL.NULLS.OFF.OFFLINE.OFFSET.OID.OLD.ON.ONLY.OPEN.OR.ORDER.OUTER.OVERLAPS.PARALLEL.PARTITION.PERCENT.PERMISSIONS.PLACING.PRIMARY.RAW.READRATIO.RECOVER.REFERENCES.RESPECT.REJECTLOG.RESORT.RESTORE.RIGHT.SELECT.SESSION_USER.SIMILAR.SNAPSHOT.SOME.SYSDATE.SYSTEM.TABLE.TAG.TDES.TEXT255.TEXT32K.THEN.TIMESTAMP.TO.TOP.TRAILING.TRUE.TRUNCATECOLUMNS.UNION.UNIQUE.USER.USING.VERBOSE.WALLET.WHEN.WHERE.WITH.WITHOUT`.split(`.`),operators:[`AND`,`BETWEEN`,`IN`,`LIKE`,`NOT`,`OR`,`IS`,`NULL`,`INTERSECT`,`UNION`,`INNER`,`JOIN`,`LEFT`,`OUTER`,`RIGHT`],builtinFunctions:`current_schema.current_schemas.has_database_privilege.has_schema_privilege.has_table_privilege.age.current_time.current_timestamp.localtime.isfinite.now.ascii.get_bit.get_byte.set_bit.set_byte.to_ascii.approximate percentile_disc.avg.count.listagg.max.median.min.percentile_cont.stddev_samp.stddev_pop.sum.var_samp.var_pop.bit_and.bit_or.bool_and.bool_or.cume_dist.first_value.lag.last_value.lead.nth_value.ratio_to_report.dense_rank.ntile.percent_rank.rank.row_number.case.coalesce.decode.greatest.least.nvl.nvl2.nullif.add_months.at time zone.convert_timezone.current_date.date_cmp.date_cmp_timestamp.date_cmp_timestamptz.date_part_year.dateadd.datediff.date_part.date_trunc.extract.getdate.interval_cmp.last_day.months_between.next_day.sysdate.timeofday.timestamp_cmp.timestamp_cmp_date.timestamp_cmp_timestamptz.timestamptz_cmp.timestamptz_cmp_date.timestamptz_cmp_timestamp.timezone.to_timestamp.trunc.abs.acos.asin.atan.atan2.cbrt.ceil.ceiling.checksum.cos.cot.degrees.dexp.dlog1.dlog10.exp.floor.ln.log.mod.pi.power.radians.random.round.sin.sign.sqrt.tan.to_hex.bpcharcmp.btrim.bttext_pattern_cmp.char_length.character_length.charindex.chr.concat.crc32.func_sha1.initcap.left and rights.len.length.lower.lpad and rpads.ltrim.md5.octet_length.position.quote_ident.quote_literal.regexp_count.regexp_instr.regexp_replace.regexp_substr.repeat.replace.replicate.reverse.rtrim.split_part.strpos.strtol.substring.textlen.translate.trim.upper.cast.convert.to_char.to_date.to_number.json_array_length.json_extract_array_element_text.json_extract_path_text.current_setting.pg_cancel_backend.pg_terminate_backend.set_config.current_database.current_user.current_user_id.pg_backend_pid.pg_last_copy_count.pg_last_copy_id.pg_last_query_id.pg_last_unload_count.session_user.slice_num.user.version.abbrev.acosd.any.area.array_agg.array_append.array_cat.array_dims.array_fill.array_length.array_lower.array_ndims.array_position.array_positions.array_prepend.array_remove.array_replace.array_to_json.array_to_string.array_to_tsvector.array_upper.asind.atan2d.atand.bit.bit_length.bound_box.box.brin_summarize_new_values.broadcast.cardinality.center.circle.clock_timestamp.col_description.concat_ws.convert_from.convert_to.corr.cosd.cotd.covar_pop.covar_samp.current_catalog.current_query.current_role.currval.cursor_to_xml.diameter.div.encode.enum_first.enum_last.enum_range.every.family.format.format_type.generate_series.generate_subscripts.get_current_ts_config.gin_clean_pending_list.grouping.has_any_column_privilege.has_column_privilege.has_foreign_data_wrapper_privilege.has_function_privilege.has_language_privilege.has_sequence_privilege.has_server_privilege.has_tablespace_privilege.has_type_privilege.height.host.hostmask.inet_client_addr.inet_client_port.inet_merge.inet_same_family.inet_server_addr.inet_server_port.isclosed.isempty.isopen.json_agg.json_object.json_object_agg.json_populate_record.json_populate_recordset.json_to_record.json_to_recordset.jsonb_agg.jsonb_object_agg.justify_days.justify_hours.justify_interval.lastval.left.line.localtimestamp.lower_inc.lower_inf.lpad.lseg.make_date.make_interval.make_time.make_timestamp.make_timestamptz.masklen.mode.netmask.network.nextval.npoints.num_nonnulls.num_nulls.numnode.obj_description.overlay.parse_ident.path.pclose.percentile_disc.pg_advisory_lock.pg_advisory_lock_shared.pg_advisory_unlock.pg_advisory_unlock_all.pg_advisory_unlock_shared.pg_advisory_xact_lock.pg_advisory_xact_lock_shared.pg_backup_start_time.pg_blocking_pids.pg_client_encoding.pg_collation_is_visible.pg_column_size.pg_conf_load_time.pg_control_checkpoint.pg_control_init.pg_control_recovery.pg_control_system.pg_conversion_is_visible.pg_create_logical_replication_slot.pg_create_physical_replication_slot.pg_create_restore_point.pg_current_xlog_flush_location.pg_current_xlog_insert_location.pg_current_xlog_location.pg_database_size.pg_describe_object.pg_drop_replication_slot.pg_export_snapshot.pg_filenode_relation.pg_function_is_visible.pg_get_constraintdef.pg_get_expr.pg_get_function_arguments.pg_get_function_identity_arguments.pg_get_function_result.pg_get_functiondef.pg_get_indexdef.pg_get_keywords.pg_get_object_address.pg_get_owned_sequence.pg_get_ruledef.pg_get_serial_sequence.pg_get_triggerdef.pg_get_userbyid.pg_get_viewdef.pg_has_role.pg_identify_object.pg_identify_object_as_address.pg_index_column_has_property.pg_index_has_property.pg_indexam_has_property.pg_indexes_size.pg_is_in_backup.pg_is_in_recovery.pg_is_other_temp_schema.pg_is_xlog_replay_paused.pg_last_committed_xact.pg_last_xact_replay_timestamp.pg_last_xlog_receive_location.pg_last_xlog_replay_location.pg_listening_channels.pg_logical_emit_message.pg_logical_slot_get_binary_changes.pg_logical_slot_get_changes.pg_logical_slot_peek_binary_changes.pg_logical_slot_peek_changes.pg_ls_dir.pg_my_temp_schema.pg_notification_queue_usage.pg_opclass_is_visible.pg_operator_is_visible.pg_opfamily_is_visible.pg_options_to_table.pg_postmaster_start_time.pg_read_binary_file.pg_read_file.pg_relation_filenode.pg_relation_filepath.pg_relation_size.pg_reload_conf.pg_replication_origin_create.pg_replication_origin_drop.pg_replication_origin_oid.pg_replication_origin_progress.pg_replication_origin_session_is_setup.pg_replication_origin_session_progress.pg_replication_origin_session_reset.pg_replication_origin_session_setup.pg_replication_origin_xact_reset.pg_replication_origin_xact_setup.pg_rotate_logfile.pg_size_bytes.pg_size_pretty.pg_sleep.pg_sleep_for.pg_sleep_until.pg_start_backup.pg_stat_file.pg_stop_backup.pg_switch_xlog.pg_table_is_visible.pg_table_size.pg_tablespace_databases.pg_tablespace_location.pg_tablespace_size.pg_total_relation_size.pg_trigger_depth.pg_try_advisory_lock.pg_try_advisory_lock_shared.pg_try_advisory_xact_lock.pg_try_advisory_xact_lock_shared.pg_ts_config_is_visible.pg_ts_dict_is_visible.pg_ts_parser_is_visible.pg_ts_template_is_visible.pg_type_is_visible.pg_typeof.pg_xact_commit_timestamp.pg_xlog_location_diff.pg_xlog_replay_pause.pg_xlog_replay_resume.pg_xlogfile_name.pg_xlogfile_name_offset.phraseto_tsquery.plainto_tsquery.point.polygon.popen.pqserverversion.query_to_xml.querytree.quote_nullable.radius.range_merge.regexp_matches.regexp_split_to_array.regexp_split_to_table.regr_avgx.regr_avgy.regr_count.regr_intercept.regr_r2.regr_slope.regr_sxx.regr_sxy.regr_syy.right.row_security_active.row_to_json.rpad.scale.set_masklen.setseed.setval.setweight.shobj_description.sind.sprintf.statement_timestamp.stddev.string_agg.string_to_array.strip.substr.table_to_xml.table_to_xml_and_xmlschema.tand.text.to_json.to_regclass.to_regnamespace.to_regoper.to_regoperator.to_regproc.to_regprocedure.to_regrole.to_regtype.to_tsquery.to_tsvector.transaction_timestamp.ts_debug.ts_delete.ts_filter.ts_headline.ts_lexize.ts_parse.ts_rank.ts_rank_cd.ts_rewrite.ts_stat.ts_token_type.tsquery_phrase.tsvector_to_array.tsvector_update_trigger.tsvector_update_trigger_column.txid_current.txid_current_snapshot.txid_snapshot_xip.txid_snapshot_xmax.txid_snapshot_xmin.txid_visible_in_snapshot.unnest.upper_inc.upper_inf.variance.width.width_bucket.xml_is_well_formed.xml_is_well_formed_content.xml_is_well_formed_document.xmlagg.xmlcomment.xmlconcat.xmlelement.xmlexists.xmlforest.xmlparse.xmlpi.xmlroot.xmlserialize.xpath.xpath_exists`.split(`.`),builtinVariables:[],pseudoColumns:[],tokenizer:{root:[{include:`@comments`},{include:`@whitespace`},{include:`@pseudoColumns`},{include:`@numbers`},{include:`@strings`},{include:`@complexIdentifiers`},{include:`@scopes`},[/[;,.]/,`delimiter`],[/[()]/,`@brackets`],[/[\w@#$]+/,{cases:{"@keywords":`keyword`,"@operators":`operator`,"@builtinVariables":`predefined`,"@builtinFunctions":`predefined`,"@default":`identifier`}}],[/[<>=!%&+\-*/|~^]/,`operator`]],whitespace:[[/\s+/,`white`]],comments:[[/--+.*/,`comment`],[/\/\*/,{token:`comment.quote`,next:`@comment`}]],comment:[[/[^*/]+/,`comment`],[/\*\//,{token:`comment.quote`,next:`@pop`}],[/./,`comment`]],pseudoColumns:[[/[$][A-Za-z_][\w@#$]*/,{cases:{"@pseudoColumns":`predefined`,"@default":`identifier`}}]],numbers:[[/0[xX][0-9a-fA-F]*/,`number`],[/[$][+-]*\d*(\.\d*)?/,`number`],[/((\d+(\.\d*)?)|(\.\d+))([eE][\-+]?\d+)?/,`number`]],strings:[[/'/,{token:`string`,next:`@string`}]],string:[[/[^']+/,`string`],[/''/,`string`],[/'/,{token:`string`,next:`@pop`}]],complexIdentifiers:[[/"/,{token:`identifier.quote`,next:`@quotedIdentifier`}]],quotedIdentifier:[[/[^"]+/,`identifier`],[/""/,`identifier`],[/"/,{token:`identifier.quote`,next:`@pop`}]],scopes:[]}};export{e as conf,t as language};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e={brackets:[[`{`,`}`],[`[`,`]`],[`(`,`)`]],autoClosingPairs:[{open:`{`,close:`}`},{open:`[`,close:`]`},{open:`(`,close:`)`},{open:`<`,close:`>`,notIn:[`string`]}],surroundingPairs:[{open:`(`,close:`)`},{open:`[`,close:`]`},{open:"`",close:"`"}],folding:{markers:{start:RegExp(`^\\s*<!--\\s*#?region\\b.*-->`),end:RegExp(`^\\s*<!--\\s*#?endregion\\b.*-->`)}}},t={defaultToken:``,tokenPostfix:`.rst`,control:/[\\`*_\[\]{}()#+\-\.!]/,escapes:/\\(?:@control)/,empty:[`area`,`base`,`basefont`,`br`,`col`,`frame`,`hr`,`img`,`input`,`isindex`,`link`,`meta`,`param`],alphanumerics:/[A-Za-z0-9]/,simpleRefNameWithoutBq:/(?:@alphanumerics[-_+:.]*@alphanumerics)+|(?:@alphanumerics+)/,simpleRefName:/(?:`@phrase`|@simpleRefNameWithoutBq)/,phrase:/@simpleRefNameWithoutBq(?:\s@simpleRefNameWithoutBq)*/,citationName:/[A-Za-z][A-Za-z0-9-_.]*/,blockLiteralStart:/(?:[!"#$%&'()*+,-./:;<=>?@\[\]^_`{|}~]|[\s])/,precedingChars:/(?:[ -:/'"<([{])/,followingChars:/(?:[ -.,:;!?/'")\]}>]|$)/,punctuation:/(=|-|~|`|#|"|\^|\+|\*|:|\.|'|_|\+)/,tokenizer:{root:[[/^(@punctuation{3,}$){1,1}?/,`keyword`],[/^\s*([\*\-+‣•]|[a-zA-Z0-9]+\.|\([a-zA-Z0-9]+\)|[a-zA-Z0-9]+\))\s/,`keyword`],[/([ ]::)\s*$/,`keyword`,`@blankLineOfLiteralBlocks`],[/(::)\s*$/,`keyword`,`@blankLineOfLiteralBlocks`],{include:`@tables`},{include:`@explicitMarkupBlocks`},{include:`@inlineMarkup`}],explicitMarkupBlocks:[{include:`@citations`},{include:`@footnotes`},[/^(\.\.\s)(@simpleRefName)(::\s)(.*)$/,[{token:``,next:`subsequentLines`},`keyword`,``,``]],[/^(\.\.)(\s+)(_)(@simpleRefName)(:)(\s+)(.*)/,[{token:``,next:`hyperlinks`},``,``,`string.link`,``,``,`string.link`]],[/^((?:(?:\.\.)(?:\s+))?)(__)(:)(\s+)(.*)/,[{token:``,next:`subsequentLines`},``,``,``,`string.link`]],[/^(__\s+)(.+)/,[``,`string.link`]],[/^(\.\.)( \|)([^| ]+[^|]*[^| ]*)(\| )(@simpleRefName)(:: .*)/,[{token:``,next:`subsequentLines`},``,`string.link`,``,`keyword`,``],`@rawBlocks`],[/(\|)([^| ]+[^|]*[^| ]*)(\|_{0,2})/,[``,`string.link`,``]],[/^(\.\.)([ ].*)$/,[{token:``,next:`@comments`},`comment`]]],inlineMarkup:[{include:`@citationsReference`},{include:`@footnotesReference`},[/(@simpleRefName)(_{1,2})/,[`string.link`,``]],[/(`)([^<`]+\s+)(<)(.*)(>)(`)(_)/,[``,`string.link`,``,`string.link`,``,``,``]],[/\*\*([^\\*]|\*(?!\*))+\*\*/,`strong`],[/\*[^*]+\*/,`emphasis`],[/(``)((?:[^`]|\`(?!`))+)(``)/,[``,`keyword`,``]],[/(__\s+)(.+)/,[``,`keyword`]],[/(:)((?:@simpleRefNameWithoutBq)?)(:`)([^`]+)(`)/,[``,`keyword`,``,``,``]],[/(`)([^`]+)(`:)((?:@simpleRefNameWithoutBq)?)(:)/,[``,``,``,`keyword`,``]],[/(`)([^`]+)(`)/,``],[/(_`)(@phrase)(`)/,[``,`string.link`,``]]],citations:[[/^(\.\.\s+\[)((?:@citationName))(\]\s+)(.*)/,[{token:``,next:`@subsequentLines`},`string.link`,``,``]]],citationsReference:[[/(\[)(@citationName)(\]_)/,[``,`string.link`,``]]],footnotes:[[/^(\.\.\s+\[)((?:[0-9]+))(\]\s+.*)/,[{token:``,next:`@subsequentLines`},`string.link`,``]],[/^(\.\.\s+\[)((?:#@simpleRefName?))(\]\s+)(.*)/,[{token:``,next:`@subsequentLines`},`string.link`,``,``]],[/^(\.\.\s+\[)((?:\*))(\]\s+)(.*)/,[{token:``,next:`@subsequentLines`},`string.link`,``,``]]],footnotesReference:[[/(\[)([0-9]+)(\])(_)/,[``,`string.link`,``,``]],[/(\[)(#@simpleRefName?)(\])(_)/,[``,`string.link`,``,``]],[/(\[)(\*)(\])(_)/,[``,`string.link`,``,``]]],blankLineOfLiteralBlocks:[[/^$/,``,`@subsequentLinesOfLiteralBlocks`],[/^.*$/,``,`@pop`]],subsequentLinesOfLiteralBlocks:[[/(@blockLiteralStart+)(.*)/,[`keyword`,``]],[/^(?!blockLiteralStart)/,``,`@popall`]],subsequentLines:[[/^[\s]+.*/,``],[/^(?!\s)/,``,`@pop`]],hyperlinks:[[/^[\s]+.*/,`string.link`],[/^(?!\s)/,``,`@pop`]],comments:[[/^[\s]+.*/,`comment`],[/^(?!\s)/,``,`@pop`]],tables:[[/\+-[+-]+/,`keyword`],[/\+=[+=]+/,`keyword`]]}};export{e as conf,t as language};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),s=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},c=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},l=(n,r,o)=>(o=n==null?{}:e(i(n)),c(r||!n||!n.__esModule||!a.call(n,`default`)?t(o,`default`,{value:n,enumerable:!0}):o,n));export{s as n,l as r,o as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e={comments:{lineComment:`#`,blockComment:[`=begin`,`=end`]},brackets:[[`(`,`)`],[`{`,`}`],[`[`,`]`]],autoClosingPairs:[{open:`{`,close:`}`},{open:`[`,close:`]`},{open:`(`,close:`)`},{open:`"`,close:`"`},{open:`'`,close:`'`}],surroundingPairs:[{open:`{`,close:`}`},{open:`[`,close:`]`},{open:`(`,close:`)`},{open:`"`,close:`"`},{open:`'`,close:`'`}],indentationRules:{increaseIndentPattern:RegExp(`^\\s*((begin|class|(private|protected)\\s+def|def|else|elsif|ensure|for|if|module|rescue|unless|until|when|while|case)|([^#]*\\sdo\\b)|([^#]*=\\s*(case|if|unless)))\\b([^#\\{;]|("|'|/).*\\4)*(#.*)?$`),decreaseIndentPattern:RegExp(`^\\s*([}\\]]([,)]?\\s*(#|$)|\\.[a-zA-Z_]\\w*\\b)|(end|rescue|ensure|else|elsif|when)\\b)`)}},t={tokenPostfix:`.ruby`,keywords:`__LINE__.__ENCODING__.__FILE__.BEGIN.END.alias.and.begin.break.case.class.def.defined?.do.else.elsif.end.ensure.for.false.if.in.module.next.nil.not.or.redo.rescue.retry.return.self.super.then.true.undef.unless.until.when.while.yield`.split(`.`),keywordops:[`::`,`..`,`...`,`?`,`:`,`=>`],builtins:[`require`,`public`,`private`,`include`,`extend`,`attr_reader`,`protected`,`private_class_method`,`protected_class_method`,`new`],declarations:[`module`,`class`,`def`,`case`,`do`,`begin`,`for`,`if`,`while`,`until`,`unless`],linedecls:[`def`,`case`,`do`,`begin`,`for`,`if`,`while`,`until`,`unless`],operators:"^.&.|.<=>.==.===.!~.=~.>.>=.<.<=.<<.>>.+.-.*./.%.**.~.+@.-@.[].[]=.`.+=.-=.*=.**=./=.^=.%=.<<=.>>=.&=.&&=.||=.|=".split(`.`),brackets:[{open:`(`,close:`)`,token:`delimiter.parenthesis`},{open:`{`,close:`}`,token:`delimiter.curly`},{open:`[`,close:`]`,token:`delimiter.square`}],symbols:/[=><!~?:&|+\-*\/\^%\.]+/,escape:/(?:[abefnrstv\\"'\n\r]|[0-7]{1,3}|x[0-9A-Fa-f]{1,2}|u[0-9A-Fa-f]{4})/,escapes:/\\(?:C\-(@escape|.)|c(@escape|.)|@escape)/,decpart:/\d(_?\d)*/,decimal:/0|@decpart/,delim:/[^a-zA-Z0-9\s\n\r]/,heredelim:/(?:\w+|'[^']*'|"[^"]*"|`[^`]*`)/,regexpctl:/[(){}\[\]\$\^|\-*+?\.]/,regexpesc:/\\(?:[AzZbBdDfnrstvwWn0\\\/]|@regexpctl|c[A-Z]|x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4})?/,tokenizer:{root:[[/^(\s*)([a-z_]\w*[!?=]?)/,[`white`,{cases:{"for|until|while":{token:`keyword.$2`,next:`@dodecl.$2`},"@declarations":{token:`keyword.$2`,next:`@root.$2`},end:{token:`keyword.$S2`,next:`@pop`},"@keywords":`keyword`,"@builtins":`predefined`,"@default":`identifier`}}]],[/[a-z_]\w*[!?=]?/,{cases:{"if|unless|while|until":{token:`keyword.$0x`,next:`@modifier.$0x`},for:{token:`keyword.$2`,next:`@dodecl.$2`},"@linedecls":{token:`keyword.$0`,next:`@root.$0`},end:{token:`keyword.$S2`,next:`@pop`},"@keywords":`keyword`,"@builtins":`predefined`,"@default":`identifier`}}],[/[A-Z][\w]*[!?=]?/,`constructor.identifier`],[/\$[\w]*/,`global.constant`],[/@[\w]*/,`namespace.instance.identifier`],[/@@@[\w]*/,`namespace.class.identifier`],[/<<[-~](@heredelim).*/,{token:`string.heredoc.delimiter`,next:`@heredoc.$1`}],[/[ \t\r\n]+<<(@heredelim).*/,{token:`string.heredoc.delimiter`,next:`@heredoc.$1`}],[/^<<(@heredelim).*/,{token:`string.heredoc.delimiter`,next:`@heredoc.$1`}],{include:`@whitespace`},[/"/,{token:`string.d.delim`,next:`@dstring.d."`}],[/'/,{token:`string.sq.delim`,next:`@sstring.sq`}],[/%([rsqxwW]|Q?)/,{token:`@rematch`,next:`pstring`}],[/`/,{token:`string.x.delim`,next:"@dstring.x.`"}],[/:(\w|[$@])\w*[!?=]?/,`string.s`],[/:"/,{token:`string.s.delim`,next:`@dstring.s."`}],[/:'/,{token:`string.s.delim`,next:`@sstring.s`}],[/\/(?=(\\\/|[^\/\n])+\/)/,{token:`regexp.delim`,next:`@regexp`}],[/[{}()\[\]]/,`@brackets`],[/@symbols/,{cases:{"@keywordops":`keyword`,"@operators":`operator`,"@default":``}}],[/[;,]/,`delimiter`],[/0[xX][0-9a-fA-F](_?[0-9a-fA-F])*/,`number.hex`],[/0[_oO][0-7](_?[0-7])*/,`number.octal`],[/0[bB][01](_?[01])*/,`number.binary`],[/0[dD]@decpart/,`number`],[/@decimal((\.@decpart)?([eE][\-+]?@decpart)?)/,{cases:{$1:`number.float`,"@default":`number`}}]],dodecl:[[/^/,{token:``,switchTo:`@root.$S2`}],[/[a-z_]\w*[!?=]?/,{cases:{end:{token:`keyword.$S2`,next:`@pop`},do:{token:`keyword`,switchTo:`@root.$S2`},"@linedecls":{token:`@rematch`,switchTo:`@root.$S2`},"@keywords":`keyword`,"@builtins":`predefined`,"@default":`identifier`}}],{include:`@root`}],modifier:[[/^/,``,`@pop`],[/[a-z_]\w*[!?=]?/,{cases:{end:{token:`keyword.$S2`,next:`@pop`},"then|else|elsif|do":{token:`keyword`,switchTo:`@root.$S2`},"@linedecls":{token:`@rematch`,switchTo:`@root.$S2`},"@keywords":`keyword`,"@builtins":`predefined`,"@default":`identifier`}}],{include:`@root`}],sstring:[[/[^\\']+/,`string.$S2`],[/\\\\|\\'|\\$/,`string.$S2.escape`],[/\\./,`string.$S2.invalid`],[/'/,{token:`string.$S2.delim`,next:`@pop`}]],dstring:[[/[^\\`"#]+/,`string.$S2`],[/#/,`string.$S2.escape`,`@interpolated`],[/\\$/,`string.$S2.escape`],[/@escapes/,`string.$S2.escape`],[/\\./,`string.$S2.escape.invalid`],[/[`"]/,{cases:{"$#==$S3":{token:`string.$S2.delim`,next:`@pop`},"@default":`string.$S2`}}]],heredoc:[[/^(\s*)(@heredelim)$/,{cases:{"$2==$S2":[`string.heredoc`,{token:`string.heredoc.delimiter`,next:`@pop`}],"@default":[`string.heredoc`,`string.heredoc`]}}],[/.*/,`string.heredoc`]],interpolated:[[/\$\w*/,`global.constant`,`@pop`],[/@\w*/,`namespace.class.identifier`,`@pop`],[/@@@\w*/,`namespace.instance.identifier`,`@pop`],[/[{]/,{token:`string.escape.curly`,switchTo:`@interpolated_compound`}],[``,``,`@pop`]],interpolated_compound:[[/[}]/,{token:`string.escape.curly`,next:`@pop`}],{include:`@root`}],pregexp:[{include:`@whitespace`},[/[^\(\{\[\\]/,{cases:{"$#==$S3":{token:`regexp.delim`,next:`@pop`},"$#==$S2":{token:`regexp.delim`,next:`@push`},"~[)}\\]]":`@brackets.regexp.escape.control`,"~@regexpctl":`regexp.escape.control`,"@default":`regexp`}}],{include:`@regexcontrol`}],regexp:[{include:`@regexcontrol`},[/[^\\\/]/,`regexp`],[`/[ixmp]*`,{token:`regexp.delim`},`@pop`]],regexcontrol:[[/(\{)(\d+(?:,\d*)?)(\})/,[`@brackets.regexp.escape.control`,`regexp.escape.control`,`@brackets.regexp.escape.control`]],[/(\[)(\^?)/,[`@brackets.regexp.escape.control`,{token:`regexp.escape.control`,next:`@regexrange`}]],[/(\()(\?[:=!])/,[`@brackets.regexp.escape.control`,`regexp.escape.control`]],[/\(\?#/,{token:`regexp.escape.control`,next:`@regexpcomment`}],[/[()]/,`@brackets.regexp.escape.control`],[/@regexpctl/,`regexp.escape.control`],[/\\$/,`regexp.escape`],[/@regexpesc/,`regexp.escape`],[/\\\./,`regexp.invalid`],[/#/,`regexp.escape`,`@interpolated`]],regexrange:[[/-/,`regexp.escape.control`],[/\^/,`regexp.invalid`],[/\\$/,`regexp.escape`],[/@regexpesc/,`regexp.escape`],[/[^\]]/,`regexp`],[/\]/,`@brackets.regexp.escape.control`,`@pop`]],regexpcomment:[[/[^)]+/,`comment`],[/\)/,{token:`regexp.escape.control`,next:`@pop`}]],pstring:[[/%([qws])\(/,{token:`string.$1.delim`,switchTo:`@qstring.$1.(.)`}],[/%([qws])\[/,{token:`string.$1.delim`,switchTo:`@qstring.$1.[.]`}],[/%([qws])\{/,{token:`string.$1.delim`,switchTo:`@qstring.$1.{.}`}],[/%([qws])</,{token:`string.$1.delim`,switchTo:`@qstring.$1.<.>`}],[/%([qws])(@delim)/,{token:`string.$1.delim`,switchTo:`@qstring.$1.$2.$2`}],[/%r\(/,{token:`regexp.delim`,switchTo:`@pregexp.(.)`}],[/%r\[/,{token:`regexp.delim`,switchTo:`@pregexp.[.]`}],[/%r\{/,{token:`regexp.delim`,switchTo:`@pregexp.{.}`}],[/%r</,{token:`regexp.delim`,switchTo:`@pregexp.<.>`}],[/%r(@delim)/,{token:`regexp.delim`,switchTo:`@pregexp.$1.$1`}],[/%(x|W|Q?)\(/,{token:`string.$1.delim`,switchTo:`@qqstring.$1.(.)`}],[/%(x|W|Q?)\[/,{token:`string.$1.delim`,switchTo:`@qqstring.$1.[.]`}],[/%(x|W|Q?)\{/,{token:`string.$1.delim`,switchTo:`@qqstring.$1.{.}`}],[/%(x|W|Q?)</,{token:`string.$1.delim`,switchTo:`@qqstring.$1.<.>`}],[/%(x|W|Q?)(@delim)/,{token:`string.$1.delim`,switchTo:`@qqstring.$1.$2.$2`}],[/%([rqwsxW]|Q?)./,{token:`invalid`,next:`@pop`}],[/./,{token:`invalid`,next:`@pop`}]],qstring:[[/\\$/,`string.$S2.escape`],[/\\./,`string.$S2.escape`],[/./,{cases:{"$#==$S4":{token:`string.$S2.delim`,next:`@pop`},"$#==$S3":{token:`string.$S2.delim`,next:`@push`},"@default":`string.$S2`}}]],qqstring:[[/#/,`string.$S2.escape`,`@interpolated`],{include:`@qstring`}],whitespace:[[/[ \t\r\n]+/,``],[/^\s*=begin\b/,`comment`,`@comment`],[/#.*$/,`comment`]],comment:[[/[^=]+/,`comment`],[/^\s*=begin\b/,`comment.invalid`],[/^\s*=end\b.*/,`comment`,`@pop`],[/[=]/,`comment`]]}};export{e as conf,t as language};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e={comments:{lineComment:`//`,blockComment:[`/*`,`*/`]},brackets:[[`{`,`}`],[`[`,`]`],[`(`,`)`]],autoClosingPairs:[{open:`[`,close:`]`},{open:`{`,close:`}`},{open:`(`,close:`)`},{open:`"`,close:`"`,notIn:[`string`]}],surroundingPairs:[{open:`{`,close:`}`},{open:`[`,close:`]`},{open:`(`,close:`)`},{open:`"`,close:`"`},{open:`'`,close:`'`}],folding:{markers:{start:RegExp(`^\\s*#pragma\\s+region\\b`),end:RegExp(`^\\s*#pragma\\s+endregion\\b`)}}},t={tokenPostfix:`.rust`,defaultToken:`invalid`,keywords:`as.async.await.box.break.const.continue.crate.dyn.else.enum.extern.false.fn.for.if.impl.in.let.loop.match.mod.move.mut.pub.ref.return.self.static.struct.super.trait.true.try.type.unsafe.use.where.while.catch.default.union.static.abstract.alignof.become.do.final.macro.offsetof.override.priv.proc.pure.sizeof.typeof.unsized.virtual.yield`.split(`.`),typeKeywords:`Self.m32.m64.m128.f80.f16.f128.int.uint.float.char.bool.u8.u16.u32.u64.f32.f64.i8.i16.i32.i64.str.Option.Either.c_float.c_double.c_void.FILE.fpos_t.DIR.dirent.c_char.c_schar.c_uchar.c_short.c_ushort.c_int.c_uint.c_long.c_ulong.size_t.ptrdiff_t.clock_t.time_t.c_longlong.c_ulonglong.intptr_t.uintptr_t.off_t.dev_t.ino_t.pid_t.mode_t.ssize_t`.split(`.`),constants:[`true`,`false`,`Some`,`None`,`Left`,`Right`,`Ok`,`Err`],supportConstants:`EXIT_FAILURE.EXIT_SUCCESS.RAND_MAX.EOF.SEEK_SET.SEEK_CUR.SEEK_END._IOFBF._IONBF._IOLBF.BUFSIZ.FOPEN_MAX.FILENAME_MAX.L_tmpnam.TMP_MAX.O_RDONLY.O_WRONLY.O_RDWR.O_APPEND.O_CREAT.O_EXCL.O_TRUNC.S_IFIFO.S_IFCHR.S_IFBLK.S_IFDIR.S_IFREG.S_IFMT.S_IEXEC.S_IWRITE.S_IREAD.S_IRWXU.S_IXUSR.S_IWUSR.S_IRUSR.F_OK.R_OK.W_OK.X_OK.STDIN_FILENO.STDOUT_FILENO.STDERR_FILENO`.split(`.`),supportMacros:[`format!`,`print!`,`println!`,`panic!`,`format_args!`,`unreachable!`,`write!`,`writeln!`],operators:`!,!=,%,%=,&,&=,&&,*,*=,+,+=,-,-=,->,.,..,...,/,/=,:,;,<<,<<=,<,<=,=,==,=>,>,>=,>>,>>=,@,^,^=,|,|=,||,_,?,#`.split(`,`),escapes:/\\([nrt0\"''\\]|x\h{2}|u\{\h{1,6}\})/,delimiters:/[,]/,symbols:/[\#\!\%\&\*\+\-\.\/\:\;\<\=\>\@\^\|_\?]+/,intSuffixes:/[iu](8|16|32|64|128|size)/,floatSuffixes:/f(32|64)/,tokenizer:{root:[[/r(#*)"/,{token:`string.quote`,bracket:`@open`,next:`@stringraw.$1`}],[/[a-zA-Z][a-zA-Z0-9_]*!?|_[a-zA-Z0-9_]+/,{cases:{"@typeKeywords":`keyword.type`,"@keywords":`keyword`,"@supportConstants":`keyword`,"@supportMacros":`keyword`,"@constants":`keyword`,"@default":`identifier`}}],[/\$/,`identifier`],[/'[a-zA-Z_][a-zA-Z0-9_]*(?=[^\'])/,`identifier`],[/'(\S|@escapes)'/,`string.byteliteral`],[/"/,{token:`string.quote`,bracket:`@open`,next:`@string`}],{include:`@numbers`},{include:`@whitespace`},[/@delimiters/,{cases:{"@keywords":`keyword`,"@default":`delimiter`}}],[/[{}()\[\]<>]/,`@brackets`],[/@symbols/,{cases:{"@operators":`operator`,"@default":``}}]],whitespace:[[/[ \t\r\n]+/,`white`],[/\/\*/,`comment`,`@comment`],[/\/\/.*$/,`comment`]],comment:[[/[^\/*]+/,`comment`],[/\/\*/,`comment`,`@push`],[`\\*/`,`comment`,`@pop`],[/[\/*]/,`comment`]],string:[[/[^\\"]+/,`string`],[/@escapes/,`string.escape`],[/\\./,`string.escape.invalid`],[/"/,{token:`string.quote`,bracket:`@close`,next:`@pop`}]],stringraw:[[/[^"#]+/,{token:`string`}],[/"(#*)/,{cases:{"$1==$S2":{token:`string.quote`,bracket:`@close`,next:`@pop`},"@default":{token:`string`}}}],[/["#]/,{token:`string`}]],numbers:[[/(0o[0-7_]+)(@intSuffixes)?/,{token:`number`}],[/(0b[0-1_]+)(@intSuffixes)?/,{token:`number`}],[/[\d][\d_]*(\.[\d][\d_]*)?[eE][+-][\d_]+(@floatSuffixes)?/,{token:`number`}],[/\b(\d\.?[\d_]*)(@floatSuffixes)?\b/,{token:`number`}],[/(0x[\da-fA-F]+)_?(@intSuffixes)?/,{token:`number`}],[/[\d][\d_]*(@intSuffixes?)?/,{token:`number`}]]}};export{e as conf,t as language};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e={comments:{lineComment:`'`},brackets:[[`(`,`)`],[`[`,`]`],[`If`,`EndIf`],[`While`,`EndWhile`],[`For`,`EndFor`],[`Sub`,`EndSub`]],autoClosingPairs:[{open:`"`,close:`"`,notIn:[`string`,`comment`]},{open:`(`,close:`)`,notIn:[`string`,`comment`]},{open:`[`,close:`]`,notIn:[`string`,`comment`]}]},t={defaultToken:``,tokenPostfix:`.sb`,ignoreCase:!0,brackets:[{token:`delimiter.array`,open:`[`,close:`]`},{token:`delimiter.parenthesis`,open:`(`,close:`)`},{token:`keyword.tag-if`,open:`If`,close:`EndIf`},{token:`keyword.tag-while`,open:`While`,close:`EndWhile`},{token:`keyword.tag-for`,open:`For`,close:`EndFor`},{token:`keyword.tag-sub`,open:`Sub`,close:`EndSub`}],keywords:[`Else`,`ElseIf`,`EndFor`,`EndIf`,`EndSub`,`EndWhile`,`For`,`Goto`,`If`,`Step`,`Sub`,`Then`,`To`,`While`],tagwords:[`If`,`Sub`,`While`,`For`],operators:[`>`,`<`,`<>`,`<=`,`>=`,`And`,`Or`,`+`,`-`,`*`,`/`,`=`],identifier:/[a-zA-Z_][\w]*/,symbols:/[=><:+\-*\/%\.,]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[{include:`@whitespace`},[/(@identifier)(?=[.])/,`type`],[/@identifier/,{cases:{"@keywords":{token:`keyword.$0`},"@operators":`operator`,"@default":`variable.name`}}],[/([.])(@identifier)/,{cases:{$2:[`delimiter`,`type.member`],"@default":``}}],[/\d*\.\d+/,`number.float`],[/\d+/,`number`],[/[()\[\]]/,`@brackets`],[/@symbols/,{cases:{"@operators":`operator`,"@default":`delimiter`}}],[/"([^"\\]|\\.)*$/,`string.invalid`],[/"/,`string`,`@string`]],whitespace:[[/[ \t\r\n]+/,``],[/(\').*$/,`comment`]],string:[[/[^\\"]+/,`string`],[/@escapes/,`string.escape`],[/\\./,`string.escape.invalid`],[/"C?/,`string`,`@pop`]]}};export{e as conf,t as language};
|