@agent-link/server 0.1.293 → 0.1.295
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/package.json +1 -1
- package/web/dist/assets/abap-DLDM7-KI.js +1 -1
- package/web/dist/assets/apex-BNdX0WAH.js +1 -1
- package/web/dist/assets/azcli-Y6nb8tq_.js +1 -1
- package/web/dist/assets/bat-BwHxbl9M.js +1 -1
- package/web/dist/assets/bicep-C6ulU1r4.js +1 -1
- package/web/dist/assets/cameligo-Bf6VGUru.js +1 -1
- package/web/dist/assets/clojure-Dnu-v4kV.js +1 -1
- package/web/dist/assets/coffee-CozJ4qrN.js +1 -1
- package/web/dist/assets/cpp-BBo9EYEl.js +1 -1
- package/web/dist/assets/csharp-Co3qMtFm.js +1 -1
- package/web/dist/assets/csp-D-4FJmMZ.js +1 -1
- package/web/dist/assets/css-B3WdvWL3.js +1 -1
- package/web/dist/assets/cssMode-B3Oovqsk.js +1 -0
- package/web/dist/assets/cypher-Xe3m_mFX.js +1 -1
- package/web/dist/assets/dart-BqPeQaEN.js +1 -1
- package/web/dist/assets/dockerfile-BG73LgW2.js +1 -1
- package/web/dist/assets/ecl-BEgZUVRK.js +1 -1
- package/web/dist/assets/editor.main-Cbmwhgxk.js +3 -0
- package/web/dist/assets/elixir-BkW5O-1t.js +1 -1
- package/web/dist/assets/flow9-BeJ5waoc.js +1 -1
- package/web/dist/assets/freemarker2-5MQXwYU7.js +1 -0
- package/web/dist/assets/fsharp-PahG7c26.js +1 -1
- package/web/dist/assets/go-acbASCJo.js +1 -1
- package/web/dist/assets/graphql-BxJiqAUM.js +1 -1
- package/web/dist/assets/handlebars-DbIuepFC.js +1 -0
- package/web/dist/assets/hcl-DtV1sZF8.js +1 -1
- package/web/dist/assets/html-B5pU6xqW.js +1 -0
- package/web/dist/assets/htmlMode-CuTT_90i.js +1 -0
- package/web/dist/assets/index-BtAAK7Od.js +25 -0
- package/web/dist/assets/index-DHw8I_3A.css +1 -0
- package/web/dist/assets/ini-Kd9XrMLS.js +1 -1
- package/web/dist/assets/java-CXBNlu9o.js +1 -1
- package/web/dist/assets/javascript-CUefL6LA.js +1 -0
- package/web/dist/assets/jsonMode-DLCeCZ_e.js +1 -0
- package/web/dist/assets/julia-cl7-CwDS.js +1 -1
- package/web/dist/assets/kotlin-s7OhZKlX.js +1 -1
- package/web/dist/assets/less-BnJUVY2t.js +1 -1
- package/web/dist/assets/lexon-OrD6JF1K.js +1 -1
- package/web/dist/assets/liquid-BLA_h2KA.js +1 -0
- package/web/dist/assets/lspLanguageFeatures-Belz9URg.js +1 -0
- package/web/dist/assets/lua-Cyyb5UIc.js +1 -1
- package/web/dist/assets/m3-LY51E2VB.js +1 -1
- package/web/dist/assets/markdown-B2IVEJkz.js +1 -1
- package/web/dist/assets/mdx-DgrXtVst.js +1 -0
- package/web/dist/assets/mips-CiqrrVzr.js +1 -1
- package/web/dist/assets/msalAuth-sOt-7u8x.js +116 -1
- package/web/dist/assets/msdax-DmeGPVcC.js +1 -1
- package/web/dist/assets/mysql-C_tMU-Nz.js +1 -1
- package/web/dist/assets/objective-c-DBm-qgi-.js +1 -1
- package/web/dist/assets/pascal-vHIfCaH5.js +1 -1
- package/web/dist/assets/pascaligo-DtZ0uQbO.js +1 -1
- package/web/dist/assets/perl-Ub6l9XKa.js +1 -1
- package/web/dist/assets/pgsql-BlNEE0v7.js +1 -1
- package/web/dist/assets/php-BBUBE1dy.js +1 -1
- package/web/dist/assets/pla-DSh2-awV.js +1 -1
- package/web/dist/assets/postiats-CocnycG-.js +1 -1
- package/web/dist/assets/powerquery-tScXyioY.js +1 -1
- package/web/dist/assets/powershell-COWaemsV.js +1 -1
- package/web/dist/assets/protobuf-CNF4Uy2b.js +1 -1
- package/web/dist/assets/pug-8SOpv6rk.js +1 -1
- package/web/dist/assets/python-DGb10oHo.js +1 -0
- package/web/dist/assets/qsharp-Bw9ernYp.js +1 -1
- package/web/dist/assets/r-j7ic8hl3.js +1 -1
- package/web/dist/assets/razor-Bq2C8eiu.js +1 -0
- package/web/dist/assets/redis-Bu5POkcn.js +1 -1
- package/web/dist/assets/redshift-Bs9aos_-.js +1 -1
- package/web/dist/assets/restructuredtext-CdmJ0L9T.js +1 -1
- package/web/dist/assets/ruby-DekwO-k2.js +1 -1
- package/web/dist/assets/rust-BzKRNQWT.js +1 -1
- package/web/dist/assets/sb-BBc9UKZt.js +1 -1
- package/web/dist/assets/scala-D9hQfWCl.js +1 -1
- package/web/dist/assets/scheme-BPhDTwHR.js +1 -1
- package/web/dist/assets/scss-CYJiWjYa.js +1 -1
- package/web/dist/assets/shell-DiJ1NA_G.js +1 -1
- package/web/dist/assets/solidity-Db0IVjzk.js +1 -1
- package/web/dist/assets/sophia-CnS9iZB_.js +1 -1
- package/web/dist/assets/sparql-CJmd_6j2.js +1 -1
- package/web/dist/assets/sql-ClhHkBeG.js +1 -1
- package/web/dist/assets/st-CHwy0fLd.js +1 -1
- package/web/dist/assets/swift-CEacdKTa.js +4 -1
- package/web/dist/assets/systemverilog-Bs9z6M-B.js +1 -1
- package/web/dist/assets/tcl-Dm6ycUr_.js +1 -1
- package/web/dist/assets/tsMode-eJUoQl_i.js +1 -0
- package/web/dist/assets/twig-CU7587ZD.js +1 -1
- package/web/dist/assets/typescript-CCHeCsc2.js +1 -0
- package/web/dist/assets/typespec-Dhh-p9HY.js +1 -1
- package/web/dist/assets/vb-Db0cS2oM.js +1 -1
- package/web/dist/assets/wgsl-DG5JRU1r.js +1 -1
- package/web/dist/assets/xml-D_bUT6SS.js +1 -0
- package/web/dist/assets/yaml-CnoIXwMT.js +1 -0
- package/web/dist/index.html +2 -2
- package/web/dist/assets/cssMode-2yUEcnyT.js +0 -1
- package/web/dist/assets/editor.main-B2VSPWS9.js +0 -3
- package/web/dist/assets/freemarker2-D3iDobFb.js +0 -1
- package/web/dist/assets/handlebars-MzTzTdYQ.js +0 -1
- package/web/dist/assets/html-CsgdpE2D.js +0 -1
- package/web/dist/assets/htmlMode-Bg4gy5T5.js +0 -1
- package/web/dist/assets/index-CX0GNeVP.css +0 -1
- package/web/dist/assets/index-ZEjQDtps.js +0 -22
- package/web/dist/assets/javascript-DlxVpMJ8.js +0 -1
- package/web/dist/assets/jsonMode-BiuVZ32e.js +0 -1
- package/web/dist/assets/liquid-BiHwXK7Z.js +0 -1
- package/web/dist/assets/lspLanguageFeatures-D5Q1Xzo2.js +0 -1
- package/web/dist/assets/mdx-_waxS_G9.js +0 -1
- package/web/dist/assets/python-Dw8ONuze.js +0 -1
- package/web/dist/assets/razor-CCVDTxQN.js +0 -1
- package/web/dist/assets/tsMode-DaI9g48I.js +0 -1
- package/web/dist/assets/typescript-kTSVTP8a.js +0 -1
- package/web/dist/assets/xml-B4vZ33NN.js +0 -1
- package/web/dist/assets/yaml-CWJEuDdf.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x3bab3d=_0x4a07;(function(_0x419d28,_0x30c53c){const _0x34ffd5=_0x4a07,_0x247b65=_0x419d28();while(!![]){try{const _0x3152a6=-parseInt(_0x34ffd5(0x9e))/0x1*(-parseInt(_0x34ffd5(0x85))/0x2)+-parseInt(_0x34ffd5(0xea))/0x3*(parseInt(_0x34ffd5(0x91))/0x4)+-parseInt(_0x34ffd5(0xd6))/0x5*(parseInt(_0x34ffd5(0xa0))/0x6)+parseInt(_0x34ffd5(0xce))/0x7+parseInt(_0x34ffd5(0xd2))/0x8*(-parseInt(_0x34ffd5(0xc5))/0x9)+parseInt(_0x34ffd5(0xa9))/0xa*(parseInt(_0x34ffd5(0xec))/0xb)+parseInt(_0x34ffd5(0xb4))/0xc*(parseInt(_0x34ffd5(0xb9))/0xd);if(_0x3152a6===_0x30c53c)break;else _0x247b65['push'](_0x247b65['shift']());}catch(_0x282c4f){_0x247b65['push'](_0x247b65['shift']());}}}(_0x942f,0x4407f));function _0x942f(){const _0x32f718=['number.constant','@sigilStart.$S2.$1.(.)','@sigilStart.$S2.$1.{.}','unless','keyword','function.call','variable.language','defimpl','unquote_splicing','operator','and','@sigil.noInterpol','comment.block.documentation','@interpolationContinue','__DIR__','true','@singleQuotedString','def','@strings','@pop','false','2tNsUNf','@stringContentInterpol','white','@sigils','number.octal','constant.character.escape','@sigil.interpol','delimiter.square','cond','comment','else','catch','4pXMfFz','@rematch','@doubleQuotedStringDocstring','defexception','@atoms','@interpolation','comment.punctuation','constant.language','.elixir','@singleQuotedHeredoc','sigil.delimiter','keyword.declaration','identifier','58391GFHYBl','@whitespace','6DkUqZG','constant.delimiter','@numbers','@sigilStart.$S2.$1.[.]','@sigilStart.$S2.$1.<.>','quote','string.delimiter','regexp','@attributes','271310UvzQdu','end','__STACKTRACE__','@escapeChar','__MODULE__','delimiter.parenthesis','use','unquote','@stringContent','regexp.delimiter','__CALLER__','686652VDDNms','constant.punctuation','@doubleQuotedHeredoc','defnp','defguardp','13ZSLENp','@singleQuotedStringDocstring','number.hex','not','@brackets','type.identifier','require','delimiter.bracket.embed','sigil','@stringConstantContentInterpol','comment.unused','@regexpContent','22383TPMqhF','@sigilStart.$S2.$1.$2.$2','for','@doubleQuotedHeredocDocstring','defp','@singleQuotedStringKeyword','function','@doubleQuotedString','defprotocol','1358392HfuynY','string','constant','defmodule','656IQjFSt','@docstringContent','throw','case','1612780lddHvX','rescue','@root','@comments','number.binary','@singleQuotedHeredocDocstring','@doubleQuotedStringAtom','defmacrop','@sigilContent','defdelegate','@stringConstantContent','\x22\x22\x22','punctuation','when','@sigilContinue.$S2.$S3.$S4.$S5','after','raise','@singleQuotedStringAtom','with','defguard','141429EyhgAQ','number','220uRXdix','delimiter.angle.special'];_0x942f=function(){return _0x32f718;};return _0x942f();}function _0x4a07(_0x29fc02,_0x53f1c2){_0x29fc02=_0x29fc02-0x82;const _0x942f2b=_0x942f();let _0x4a07ac=_0x942f2b[_0x29fc02];return _0x4a07ac;}const e={'comments':{'lineComment':'#'},'brackets':[['{','}'],['[',']'],['(',')']],'surroundingPairs':[{'open':'{','close':'}'},{'open':'[','close':']'},{'open':'(','close':')'},{'open':'\x27','close':'\x27'},{'open':'\x22','close':'\x22'}],'autoClosingPairs':[{'open':'\x27','close':'\x27','notIn':[_0x3bab3d(0xcf),_0x3bab3d(0x8e)]},{'open':'\x22','close':'\x22','notIn':['comment']},{'open':'\x22\x22\x22','close':_0x3bab3d(0xe1)},{'open':'`','close':'`','notIn':[_0x3bab3d(0xcf),_0x3bab3d(0x8e)]},{'open':'(','close':')'},{'open':'{','close':'}'},{'open':'[','close':']'},{'open':'<<','close':'>>'}],'indentationRules':{'increaseIndentPattern':/^\s*(after|else|catch|rescue|fn|[^#]*(do|<\-|\->|\{|\[|\=))\s*$/,'decreaseIndentPattern':/^\s*((\}|\])\s*$|(after|else|catch|rescue|end)\b)/}},t={'defaultToken':'source','tokenPostfix':_0x3bab3d(0x99),'brackets':[{'open':'[','close':']','token':_0x3bab3d(0x8c)},{'open':'(','close':')','token':_0x3bab3d(0xae)},{'open':'{','close':'}','token':'delimiter.curly'},{'open':'<<','close':'>>','token':_0x3bab3d(0xed)}],'declarationKeywords':[_0x3bab3d(0xff),_0x3bab3d(0xc9),'defn',_0x3bab3d(0xb7),_0x3bab3d(0xe9),_0x3bab3d(0xb8),'defmacro',_0x3bab3d(0xdd),_0x3bab3d(0xdf),'defcallback','defmacrocallback',_0x3bab3d(0xd1),_0x3bab3d(0xcd),_0x3bab3d(0x94),_0x3bab3d(0xf5),'defstruct'],'operatorKeywords':[_0x3bab3d(0xf8),'in',_0x3bab3d(0xbc),'or',_0x3bab3d(0xe3)],'namespaceKeywords':['alias','import',_0x3bab3d(0xbf),_0x3bab3d(0xaf)],'otherKeywords':[_0x3bab3d(0xe5),_0x3bab3d(0xd5),_0x3bab3d(0x90),_0x3bab3d(0x8d),'do',_0x3bab3d(0x8f),_0x3bab3d(0xaa),'fn',_0x3bab3d(0xc7),'if',_0x3bab3d(0xa5),_0x3bab3d(0xe6),'receive',_0x3bab3d(0xd7),'super',_0x3bab3d(0xd4),'try',_0x3bab3d(0xf1),_0x3bab3d(0xf6),_0x3bab3d(0xb0),_0x3bab3d(0xe8)],'constants':[_0x3bab3d(0xfd),_0x3bab3d(0x84),'nil'],'nameBuiltin':[_0x3bab3d(0xad),_0x3bab3d(0xfc),'__ENV__',_0x3bab3d(0xb3),_0x3bab3d(0xab)],'operator':/-[->]?|!={0,2}|\*{1,2}|\/|\\\\|&{1,3}|\.\.?|\^(?:\^\^)?|\+\+?|<(?:-|<<|=|>|\|>|~>?)?|=~|={1,3}|>(?:=|>>)?|\|~>|\|>|\|{1,3}|~>>?|~~~|::/,'variableName':/[a-z_][a-zA-Z0-9_]*[?!]?/,'atomName':/[a-zA-Z_][a-zA-Z0-9_@]*[?!]?|@specialAtomName|@operator/,'specialAtomName':/\.\.\.|<<>>|%\{\}|%|\{\}/,'aliasPart':/[A-Z][a-zA-Z0-9_]*/,'moduleName':/@aliasPart(?:\.@aliasPart)*/,'sigilSymmetricDelimiter':/"""|'''|"|'|\/|\|/,'sigilStartDelimiter':/@sigilSymmetricDelimiter|<|\{|\[|\(/,'sigilEndDelimiter':/@sigilSymmetricDelimiter|>|\}|\]|\)/,'sigilModifiers':/[a-zA-Z0-9]*/,'decimal':/\d(?:_?\d)*/,'hex':/[0-9a-fA-F](_?[0-9a-fA-F])*/,'octal':/[0-7](_?[0-7])*/,'binary':/[01](_?[01])*/,'escape':/\\u[0-9a-fA-F]{4}|\\x[0-9a-fA-F]{2}|\\./,'tokenizer':{'root':[{'include':_0x3bab3d(0x9f)},{'include':_0x3bab3d(0xd9)},{'include':'@keywordsShorthand'},{'include':_0x3bab3d(0xa2)},{'include':'@identifiers'},{'include':_0x3bab3d(0x82)},{'include':_0x3bab3d(0x95)},{'include':_0x3bab3d(0x88)},{'include':_0x3bab3d(0xa8)},{'include':'@symbols'}],'whitespace':[[/\s+/,_0x3bab3d(0x87)]],'comments':[[/(#)(.*)/,[_0x3bab3d(0x97),_0x3bab3d(0x8e)]]],'keywordsShorthand':[[/(@atomName)(:)(\s+)/,[_0x3bab3d(0xd0),_0x3bab3d(0xb5),_0x3bab3d(0x87)]],[/"(?=([^"]|#\{.*?\}|\\")*":)/,{'token':'constant.delimiter','next':'@doubleQuotedStringKeyword'}],[/'(?=([^']|#\{.*?\}|\\')*':)/,{'token':_0x3bab3d(0xa1),'next':_0x3bab3d(0xca)}]],'doubleQuotedStringKeyword':[[/":/,{'token':_0x3bab3d(0xa1),'next':'@pop'}],{'include':_0x3bab3d(0xc2)}],'singleQuotedStringKeyword':[[/':/,{'token':_0x3bab3d(0xa1),'next':'@pop'}],{'include':_0x3bab3d(0xc2)}],'numbers':[[/0b@binary/,_0x3bab3d(0xda)],[/0o@octal/,_0x3bab3d(0x89)],[/0x@hex/,_0x3bab3d(0xbb)],[/@decimal\.@decimal([eE]-?@decimal)?/,'number.float'],[/@decimal/,_0x3bab3d(0xeb)]],'identifiers':[[/\b(defp?|defnp?|defmacrop?|defguardp?|defdelegate)(\s+)(@variableName)(?!\s+@operator)/,['keyword.declaration',_0x3bab3d(0x87),{'cases':{'unquote':_0x3bab3d(0xf2),'@default':_0x3bab3d(0xcb)}}]],[/(@variableName)(?=\s*\.?\s*\()/,{'cases':{'@declarationKeywords':_0x3bab3d(0x9c),'@namespaceKeywords':_0x3bab3d(0xf2),'@otherKeywords':'keyword','@default':_0x3bab3d(0xf3)}}],[/(@moduleName)(\s*)(\.)(\s*)(@variableName)/,[_0x3bab3d(0xbe),_0x3bab3d(0x87),_0x3bab3d(0xf7),_0x3bab3d(0x87),_0x3bab3d(0xf3)]],[/(:)(@atomName)(\s*)(\.)(\s*)(@variableName)/,[_0x3bab3d(0xb5),'constant','white',_0x3bab3d(0xf7),_0x3bab3d(0x87),_0x3bab3d(0xf3)]],[/(\|>)(\s*)(@variableName)/,[_0x3bab3d(0xf7),_0x3bab3d(0x87),{'cases':{'@otherKeywords':_0x3bab3d(0xf2),'@default':'function.call'}}]],[/(&)(\s*)(@variableName)/,[_0x3bab3d(0xf7),_0x3bab3d(0x87),'function.call']],[/@variableName/,{'cases':{'@declarationKeywords':_0x3bab3d(0x9c),'@operatorKeywords':'keyword.operator','@namespaceKeywords':_0x3bab3d(0xf2),'@otherKeywords':_0x3bab3d(0xf2),'@constants':_0x3bab3d(0x98),'@nameBuiltin':_0x3bab3d(0xf4),'_.*':_0x3bab3d(0xc3),'@default':_0x3bab3d(0x9d)}}],[/@moduleName/,_0x3bab3d(0xbe)]],'strings':[[/"""/,{'token':_0x3bab3d(0xa6),'next':_0x3bab3d(0xb6)}],[/'''/,{'token':'string.delimiter','next':_0x3bab3d(0x9a)}],[/"/,{'token':_0x3bab3d(0xa6),'next':_0x3bab3d(0xcc)}],[/'/,{'token':_0x3bab3d(0xa6),'next':_0x3bab3d(0xfe)}]],'doubleQuotedHeredoc':[[/"""/,{'token':_0x3bab3d(0xa6),'next':_0x3bab3d(0x83)}],{'include':_0x3bab3d(0x86)}],'singleQuotedHeredoc':[[/'''/,{'token':_0x3bab3d(0xa6),'next':_0x3bab3d(0x83)}],{'include':_0x3bab3d(0x86)}],'doubleQuotedString':[[/"/,{'token':_0x3bab3d(0xa6),'next':'@pop'}],{'include':_0x3bab3d(0x86)}],'singleQuotedString':[[/'/,{'token':_0x3bab3d(0xa6),'next':_0x3bab3d(0x83)}],{'include':_0x3bab3d(0x86)}],'atoms':[[/(:)(@atomName)/,[_0x3bab3d(0xb5),_0x3bab3d(0xd0)]],[/:"/,{'token':_0x3bab3d(0xa1),'next':_0x3bab3d(0xdc)}],[/:'/,{'token':_0x3bab3d(0xa1),'next':_0x3bab3d(0xe7)}]],'doubleQuotedStringAtom':[[/"/,{'token':_0x3bab3d(0xa1),'next':_0x3bab3d(0x83)}],{'include':_0x3bab3d(0xc2)}],'singleQuotedStringAtom':[[/'/,{'token':_0x3bab3d(0xa1),'next':_0x3bab3d(0x83)}],{'include':_0x3bab3d(0xc2)}],'sigils':[[/~[a-z]@sigilStartDelimiter/,{'token':_0x3bab3d(0x92),'next':_0x3bab3d(0x8b)}],[/~([A-Z]+)@sigilStartDelimiter/,{'token':_0x3bab3d(0x92),'next':_0x3bab3d(0xf9)}]],'sigil':[[/~([a-z]|[A-Z]+)\{/,{'token':_0x3bab3d(0x92),'switchTo':_0x3bab3d(0xf0)}],[/~([a-z]|[A-Z]+)\[/,{'token':_0x3bab3d(0x92),'switchTo':_0x3bab3d(0xa3)}],[/~([a-z]|[A-Z]+)\(/,{'token':_0x3bab3d(0x92),'switchTo':_0x3bab3d(0xef)}],[/~([a-z]|[A-Z]+)\</,{'token':'@rematch','switchTo':_0x3bab3d(0xa4)}],[/~([a-z]|[A-Z]+)(@sigilSymmetricDelimiter)/,{'token':_0x3bab3d(0x92),'switchTo':_0x3bab3d(0xc6)}]],'sigilStart.interpol.s':[[/~s@sigilStartDelimiter/,{'token':_0x3bab3d(0xa6),'switchTo':_0x3bab3d(0xe4)}]],'sigilContinue.interpol.s':[[/(@sigilEndDelimiter)@sigilModifiers/,{'cases':{'$1==$S5':{'token':_0x3bab3d(0xa6),'next':_0x3bab3d(0x83)},'@default':_0x3bab3d(0xcf)}}],{'include':_0x3bab3d(0x86)}],'sigilStart.noInterpol.S':[[/~S@sigilStartDelimiter/,{'token':_0x3bab3d(0xa6),'switchTo':_0x3bab3d(0xe4)}]],'sigilContinue.noInterpol.S':[[/(^|[^\\])\\@sigilEndDelimiter/,'string'],[/(@sigilEndDelimiter)@sigilModifiers/,{'cases':{'$1==$S5':{'token':_0x3bab3d(0xa6),'next':_0x3bab3d(0x83)},'@default':'string'}}],{'include':'@stringContent'}],'sigilStart.interpol.r':[[/~r@sigilStartDelimiter/,{'token':_0x3bab3d(0xb2),'switchTo':'@sigilContinue.$S2.$S3.$S4.$S5'}]],'sigilContinue.interpol.r':[[/(@sigilEndDelimiter)@sigilModifiers/,{'cases':{'$1==$S5':{'token':_0x3bab3d(0xb2),'next':_0x3bab3d(0x83)},'@default':_0x3bab3d(0xa7)}}],{'include':'@regexpContentInterpol'}],'sigilStart.noInterpol.R':[[/~R@sigilStartDelimiter/,{'token':'regexp.delimiter','switchTo':_0x3bab3d(0xe4)}]],'sigilContinue.noInterpol.R':[[/(^|[^\\])\\@sigilEndDelimiter/,_0x3bab3d(0xa7)],[/(@sigilEndDelimiter)@sigilModifiers/,{'cases':{'$1==$S5':{'token':'regexp.delimiter','next':_0x3bab3d(0x83)},'@default':_0x3bab3d(0xa7)}}],{'include':_0x3bab3d(0xc4)}],'sigilStart.interpol':[[/~([a-z]|[A-Z]+)@sigilStartDelimiter/,{'token':'sigil.delimiter','switchTo':'@sigilContinue.$S2.$S3.$S4.$S5'}]],'sigilContinue.interpol':[[/(@sigilEndDelimiter)@sigilModifiers/,{'cases':{'$1==$S5':{'token':'sigil.delimiter','next':'@pop'},'@default':_0x3bab3d(0xc1)}}],{'include':'@sigilContentInterpol'}],'sigilStart.noInterpol':[[/~([a-z]|[A-Z]+)@sigilStartDelimiter/,{'token':_0x3bab3d(0x9b),'switchTo':_0x3bab3d(0xe4)}]],'sigilContinue.noInterpol':[[/(^|[^\\])\\@sigilEndDelimiter/,_0x3bab3d(0xc1)],[/(@sigilEndDelimiter)@sigilModifiers/,{'cases':{'$1==$S5':{'token':_0x3bab3d(0x9b),'next':'@pop'},'@default':_0x3bab3d(0xc1)}}],{'include':_0x3bab3d(0xde)}],'attributes':[[/\@(module|type)?doc (~[sS])?"""/,{'token':'comment.block.documentation','next':_0x3bab3d(0xc8)}],[/\@(module|type)?doc (~[sS])?'''/,{'token':_0x3bab3d(0xfa),'next':_0x3bab3d(0xdb)}],[/\@(module|type)?doc (~[sS])?"/,{'token':_0x3bab3d(0xfa),'next':_0x3bab3d(0x93)}],[/\@(module|type)?doc (~[sS])?'/,{'token':_0x3bab3d(0xfa),'next':_0x3bab3d(0xba)}],[/\@(module|type)?doc false/,_0x3bab3d(0xfa)],[/\@(@variableName)/,'variable']],'doubleQuotedHeredocDocstring':[[/"""/,{'token':_0x3bab3d(0xfa),'next':'@pop'}],{'include':_0x3bab3d(0xd3)}],'singleQuotedHeredocDocstring':[[/'''/,{'token':_0x3bab3d(0xfa),'next':_0x3bab3d(0x83)}],{'include':'@docstringContent'}],'doubleQuotedStringDocstring':[[/"/,{'token':_0x3bab3d(0xfa),'next':'@pop'}],{'include':_0x3bab3d(0xd3)}],'singleQuotedStringDocstring':[[/'/,{'token':_0x3bab3d(0xfa),'next':_0x3bab3d(0x83)}],{'include':_0x3bab3d(0xd3)}],'symbols':[[/\?(\\.|[^\\\s])/,_0x3bab3d(0xee)],[/&\d+/,_0x3bab3d(0xf7)],[/<<<|>>>/,'operator'],[/[()\[\]\{\}]|<<|>>/,_0x3bab3d(0xbd)],[/\.\.\./,_0x3bab3d(0x9d)],[/=>/,'punctuation'],[/@operator/,'operator'],[/[:;,.%]/,_0x3bab3d(0xe2)]],'stringContentInterpol':[{'include':'@interpolation'},{'include':_0x3bab3d(0xac)},{'include':_0x3bab3d(0xb1)}],'stringContent':[[/./,_0x3bab3d(0xcf)]],'stringConstantContentInterpol':[{'include':_0x3bab3d(0x96)},{'include':_0x3bab3d(0xac)},{'include':_0x3bab3d(0xe0)}],'stringConstantContent':[[/./,_0x3bab3d(0xd0)]],'regexpContentInterpol':[{'include':_0x3bab3d(0x96)},{'include':_0x3bab3d(0xac)},{'include':_0x3bab3d(0xc4)}],'regexpContent':[[/(\s)(#)(\s.*)$/,['white',_0x3bab3d(0x97),_0x3bab3d(0x8e)]],[/./,'regexp']],'sigilContentInterpol':[{'include':_0x3bab3d(0x96)},{'include':_0x3bab3d(0xac)},{'include':_0x3bab3d(0xde)}],'sigilContent':[[/./,'sigil']],'docstringContent':[[/./,_0x3bab3d(0xfa)]],'escapeChar':[[/@escape/,_0x3bab3d(0x8a)]],'interpolation':[[/#{/,{'token':_0x3bab3d(0xc0),'next':_0x3bab3d(0xfb)}]],'interpolationContinue':[[/}/,{'token':_0x3bab3d(0xc0),'next':'@pop'}],{'include':_0x3bab3d(0xd8)}]}};export{e as conf,t as language};
|
|
1
|
+
const e={comments:{lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"'",close:"'"},{open:'"',close:'"'}],autoClosingPairs:[{open:"'",close:"'",notIn:["string","comment"]},{open:'"',close:'"',notIn:["comment"]},{open:'"""',close:'"""'},{open:"`",close:"`",notIn:["string","comment"]},{open:"(",close:")"},{open:"{",close:"}"},{open:"[",close:"]"},{open:"<<",close:">>"}],indentationRules:{increaseIndentPattern:/^\s*(after|else|catch|rescue|fn|[^#]*(do|<\-|\->|\{|\[|\=))\s*$/,decreaseIndentPattern:/^\s*((\}|\])\s*$|(after|else|catch|rescue|end)\b)/}},t={defaultToken:"source",tokenPostfix:".elixir",brackets:[{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"{",close:"}",token:"delimiter.curly"},{open:"<<",close:">>",token:"delimiter.angle.special"}],declarationKeywords:["def","defp","defn","defnp","defguard","defguardp","defmacro","defmacrop","defdelegate","defcallback","defmacrocallback","defmodule","defprotocol","defexception","defimpl","defstruct"],operatorKeywords:["and","in","not","or","when"],namespaceKeywords:["alias","import","require","use"],otherKeywords:["after","case","catch","cond","do","else","end","fn","for","if","quote","raise","receive","rescue","super","throw","try","unless","unquote_splicing","unquote","with"],constants:["true","false","nil"],nameBuiltin:["__MODULE__","__DIR__","__ENV__","__CALLER__","__STACKTRACE__"],operator:/-[->]?|!={0,2}|\*{1,2}|\/|\\\\|&{1,3}|\.\.?|\^(?:\^\^)?|\+\+?|<(?:-|<<|=|>|\|>|~>?)?|=~|={1,3}|>(?:=|>>)?|\|~>|\|>|\|{1,3}|~>>?|~~~|::/,variableName:/[a-z_][a-zA-Z0-9_]*[?!]?/,atomName:/[a-zA-Z_][a-zA-Z0-9_@]*[?!]?|@specialAtomName|@operator/,specialAtomName:/\.\.\.|<<>>|%\{\}|%|\{\}/,aliasPart:/[A-Z][a-zA-Z0-9_]*/,moduleName:/@aliasPart(?:\.@aliasPart)*/,sigilSymmetricDelimiter:/"""|'''|"|'|\/|\|/,sigilStartDelimiter:/@sigilSymmetricDelimiter|<|\{|\[|\(/,sigilEndDelimiter:/@sigilSymmetricDelimiter|>|\}|\]|\)/,sigilModifiers:/[a-zA-Z0-9]*/,decimal:/\d(?:_?\d)*/,hex:/[0-9a-fA-F](_?[0-9a-fA-F])*/,octal:/[0-7](_?[0-7])*/,binary:/[01](_?[01])*/,escape:/\\u[0-9a-fA-F]{4}|\\x[0-9a-fA-F]{2}|\\./,tokenizer:{root:[{include:"@whitespace"},{include:"@comments"},{include:"@keywordsShorthand"},{include:"@numbers"},{include:"@identifiers"},{include:"@strings"},{include:"@atoms"},{include:"@sigils"},{include:"@attributes"},{include:"@symbols"}],whitespace:[[/\s+/,"white"]],comments:[[/(#)(.*)/,["comment.punctuation","comment"]]],keywordsShorthand:[[/(@atomName)(:)(\s+)/,["constant","constant.punctuation","white"]],[/"(?=([^"]|#\{.*?\}|\\")*":)/,{token:"constant.delimiter",next:"@doubleQuotedStringKeyword"}],[/'(?=([^']|#\{.*?\}|\\')*':)/,{token:"constant.delimiter",next:"@singleQuotedStringKeyword"}]],doubleQuotedStringKeyword:[[/":/,{token:"constant.delimiter",next:"@pop"}],{include:"@stringConstantContentInterpol"}],singleQuotedStringKeyword:[[/':/,{token:"constant.delimiter",next:"@pop"}],{include:"@stringConstantContentInterpol"}],numbers:[[/0b@binary/,"number.binary"],[/0o@octal/,"number.octal"],[/0x@hex/,"number.hex"],[/@decimal\.@decimal([eE]-?@decimal)?/,"number.float"],[/@decimal/,"number"]],identifiers:[[/\b(defp?|defnp?|defmacrop?|defguardp?|defdelegate)(\s+)(@variableName)(?!\s+@operator)/,["keyword.declaration","white",{cases:{unquote:"keyword","@default":"function"}}]],[/(@variableName)(?=\s*\.?\s*\()/,{cases:{"@declarationKeywords":"keyword.declaration","@namespaceKeywords":"keyword","@otherKeywords":"keyword","@default":"function.call"}}],[/(@moduleName)(\s*)(\.)(\s*)(@variableName)/,["type.identifier","white","operator","white","function.call"]],[/(:)(@atomName)(\s*)(\.)(\s*)(@variableName)/,["constant.punctuation","constant","white","operator","white","function.call"]],[/(\|>)(\s*)(@variableName)/,["operator","white",{cases:{"@otherKeywords":"keyword","@default":"function.call"}}]],[/(&)(\s*)(@variableName)/,["operator","white","function.call"]],[/@variableName/,{cases:{"@declarationKeywords":"keyword.declaration","@operatorKeywords":"keyword.operator","@namespaceKeywords":"keyword","@otherKeywords":"keyword","@constants":"constant.language","@nameBuiltin":"variable.language","_.*":"comment.unused","@default":"identifier"}}],[/@moduleName/,"type.identifier"]],strings:[[/"""/,{token:"string.delimiter",next:"@doubleQuotedHeredoc"}],[/'''/,{token:"string.delimiter",next:"@singleQuotedHeredoc"}],[/"/,{token:"string.delimiter",next:"@doubleQuotedString"}],[/'/,{token:"string.delimiter",next:"@singleQuotedString"}]],doubleQuotedHeredoc:[[/"""/,{token:"string.delimiter",next:"@pop"}],{include:"@stringContentInterpol"}],singleQuotedHeredoc:[[/'''/,{token:"string.delimiter",next:"@pop"}],{include:"@stringContentInterpol"}],doubleQuotedString:[[/"/,{token:"string.delimiter",next:"@pop"}],{include:"@stringContentInterpol"}],singleQuotedString:[[/'/,{token:"string.delimiter",next:"@pop"}],{include:"@stringContentInterpol"}],atoms:[[/(:)(@atomName)/,["constant.punctuation","constant"]],[/:"/,{token:"constant.delimiter",next:"@doubleQuotedStringAtom"}],[/:'/,{token:"constant.delimiter",next:"@singleQuotedStringAtom"}]],doubleQuotedStringAtom:[[/"/,{token:"constant.delimiter",next:"@pop"}],{include:"@stringConstantContentInterpol"}],singleQuotedStringAtom:[[/'/,{token:"constant.delimiter",next:"@pop"}],{include:"@stringConstantContentInterpol"}],sigils:[[/~[a-z]@sigilStartDelimiter/,{token:"@rematch",next:"@sigil.interpol"}],[/~([A-Z]+)@sigilStartDelimiter/,{token:"@rematch",next:"@sigil.noInterpol"}]],sigil:[[/~([a-z]|[A-Z]+)\{/,{token:"@rematch",switchTo:"@sigilStart.$S2.$1.{.}"}],[/~([a-z]|[A-Z]+)\[/,{token:"@rematch",switchTo:"@sigilStart.$S2.$1.[.]"}],[/~([a-z]|[A-Z]+)\(/,{token:"@rematch",switchTo:"@sigilStart.$S2.$1.(.)"}],[/~([a-z]|[A-Z]+)\</,{token:"@rematch",switchTo:"@sigilStart.$S2.$1.<.>"}],[/~([a-z]|[A-Z]+)(@sigilSymmetricDelimiter)/,{token:"@rematch",switchTo:"@sigilStart.$S2.$1.$2.$2"}]],"sigilStart.interpol.s":[[/~s@sigilStartDelimiter/,{token:"string.delimiter",switchTo:"@sigilContinue.$S2.$S3.$S4.$S5"}]],"sigilContinue.interpol.s":[[/(@sigilEndDelimiter)@sigilModifiers/,{cases:{"$1==$S5":{token:"string.delimiter",next:"@pop"},"@default":"string"}}],{include:"@stringContentInterpol"}],"sigilStart.noInterpol.S":[[/~S@sigilStartDelimiter/,{token:"string.delimiter",switchTo:"@sigilContinue.$S2.$S3.$S4.$S5"}]],"sigilContinue.noInterpol.S":[[/(^|[^\\])\\@sigilEndDelimiter/,"string"],[/(@sigilEndDelimiter)@sigilModifiers/,{cases:{"$1==$S5":{token:"string.delimiter",next:"@pop"},"@default":"string"}}],{include:"@stringContent"}],"sigilStart.interpol.r":[[/~r@sigilStartDelimiter/,{token:"regexp.delimiter",switchTo:"@sigilContinue.$S2.$S3.$S4.$S5"}]],"sigilContinue.interpol.r":[[/(@sigilEndDelimiter)@sigilModifiers/,{cases:{"$1==$S5":{token:"regexp.delimiter",next:"@pop"},"@default":"regexp"}}],{include:"@regexpContentInterpol"}],"sigilStart.noInterpol.R":[[/~R@sigilStartDelimiter/,{token:"regexp.delimiter",switchTo:"@sigilContinue.$S2.$S3.$S4.$S5"}]],"sigilContinue.noInterpol.R":[[/(^|[^\\])\\@sigilEndDelimiter/,"regexp"],[/(@sigilEndDelimiter)@sigilModifiers/,{cases:{"$1==$S5":{token:"regexp.delimiter",next:"@pop"},"@default":"regexp"}}],{include:"@regexpContent"}],"sigilStart.interpol":[[/~([a-z]|[A-Z]+)@sigilStartDelimiter/,{token:"sigil.delimiter",switchTo:"@sigilContinue.$S2.$S3.$S4.$S5"}]],"sigilContinue.interpol":[[/(@sigilEndDelimiter)@sigilModifiers/,{cases:{"$1==$S5":{token:"sigil.delimiter",next:"@pop"},"@default":"sigil"}}],{include:"@sigilContentInterpol"}],"sigilStart.noInterpol":[[/~([a-z]|[A-Z]+)@sigilStartDelimiter/,{token:"sigil.delimiter",switchTo:"@sigilContinue.$S2.$S3.$S4.$S5"}]],"sigilContinue.noInterpol":[[/(^|[^\\])\\@sigilEndDelimiter/,"sigil"],[/(@sigilEndDelimiter)@sigilModifiers/,{cases:{"$1==$S5":{token:"sigil.delimiter",next:"@pop"},"@default":"sigil"}}],{include:"@sigilContent"}],attributes:[[/\@(module|type)?doc (~[sS])?"""/,{token:"comment.block.documentation",next:"@doubleQuotedHeredocDocstring"}],[/\@(module|type)?doc (~[sS])?'''/,{token:"comment.block.documentation",next:"@singleQuotedHeredocDocstring"}],[/\@(module|type)?doc (~[sS])?"/,{token:"comment.block.documentation",next:"@doubleQuotedStringDocstring"}],[/\@(module|type)?doc (~[sS])?'/,{token:"comment.block.documentation",next:"@singleQuotedStringDocstring"}],[/\@(module|type)?doc false/,"comment.block.documentation"],[/\@(@variableName)/,"variable"]],doubleQuotedHeredocDocstring:[[/"""/,{token:"comment.block.documentation",next:"@pop"}],{include:"@docstringContent"}],singleQuotedHeredocDocstring:[[/'''/,{token:"comment.block.documentation",next:"@pop"}],{include:"@docstringContent"}],doubleQuotedStringDocstring:[[/"/,{token:"comment.block.documentation",next:"@pop"}],{include:"@docstringContent"}],singleQuotedStringDocstring:[[/'/,{token:"comment.block.documentation",next:"@pop"}],{include:"@docstringContent"}],symbols:[[/\?(\\.|[^\\\s])/,"number.constant"],[/&\d+/,"operator"],[/<<<|>>>/,"operator"],[/[()\[\]\{\}]|<<|>>/,"@brackets"],[/\.\.\./,"identifier"],[/=>/,"punctuation"],[/@operator/,"operator"],[/[:;,.%]/,"punctuation"]],stringContentInterpol:[{include:"@interpolation"},{include:"@escapeChar"},{include:"@stringContent"}],stringContent:[[/./,"string"]],stringConstantContentInterpol:[{include:"@interpolation"},{include:"@escapeChar"},{include:"@stringConstantContent"}],stringConstantContent:[[/./,"constant"]],regexpContentInterpol:[{include:"@interpolation"},{include:"@escapeChar"},{include:"@regexpContent"}],regexpContent:[[/(\s)(#)(\s.*)$/,["white","comment.punctuation","comment"]],[/./,"regexp"]],sigilContentInterpol:[{include:"@interpolation"},{include:"@escapeChar"},{include:"@sigilContent"}],sigilContent:[[/./,"sigil"]],docstringContent:[[/./,"comment.block.documentation"]],escapeChar:[[/@escape/,"constant.character.escape"]],interpolation:[[/#{/,{token:"delimiter.bracket.embed",next:"@interpolationContinue"}]],interpolationContinue:[[/}/,{token:"delimiter.bracket.embed",next:"@pop"}],{include:"@root"}]}};export{e as conf,t as language};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const e={comments:{blockComment:["/*","*/"],lineComment:"//"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}",notIn:["string"]},{open:"[",close:"]",notIn:["string"]},{open:"(",close:")",notIn:["string"]},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"<",close:">"}]},o={defaultToken:"",tokenPostfix:".flow",keywords:["import","require","export","forbid","native","if","else","cast","unsafe","switch","default"],types:["io","mutable","bool","int","double","string","flow","void","ref","true","false","with"],operators:["=",">","<","<=",">=","==","!","!=",":=","::=","&&","||","+","-","*","/","@","&","%",":","->","\\","$","??","^"],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":"keyword","@types":"type","@default":"identifier"}}],{include:"@whitespace"},[/[{}()\[\]]/,"delimiter"],[/[<>](?!@symbols)/,"delimiter"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/((0(x|X)[0-9a-fA-F]*)|(([0-9]+\.?[0-9]*)|(\.[0-9]+))((e|E)(\+|-)?[0-9]+)?)/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]]}};export{e as conf,o as language};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{l as e}from"./editor.main-Cbmwhgxk.js";import"./index-BtAAK7Od.js";const t=["assign","flush","ftl","return","global","import","include","break","continue","local","nested","nt","setting","stop","t","lt","rt","fallback"],n=["attempt","autoesc","autoEsc","compress","comment","escape","noescape","function","if","list","items","sep","macro","noparse","noParse","noautoesc","noAutoEsc","outputformat","switch","visit","recurse"],o={close:">",id:"angle",open:"<"},i={close:"\\]",id:"bracket",open:"\\["},_={close:"[>\\]]",id:"auto",open:"[<\\[]"},r={close:"\\}",id:"dollar",open1:"\\$",open2:"\\{"},a={close:"\\]",id:"bracket",open1:"\\[",open2:"="};function s(o){return{brackets:[["<",">"],["[","]"],["(",")"],["{","}"]],comments:{blockComment:[`${o.open}--`,`--${o.close}`]},autoCloseBefore:"\n\r\t }]),.:;=",autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string"]}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"}],folding:{markers:{start:new RegExp(`${o.open}#(?:${n.join("|")})([^/${o.close}]*(?!/)${o.close})[^${o.open}]*$`),end:new RegExp(`${o.open}/#(?:${n.join("|")})[\\r\\n\\t ]*>`)}},onEnterRules:[{beforeText:new RegExp(`${o.open}#(?!(?:${t.join("|")}))([a-zA-Z_]+)([^/${o.close}]*(?!/)${o.close})[^${o.open}]*$`),afterText:new RegExp(`^${o.open}/#([a-zA-Z_]+)[\\r\\n\\t ]*${o.close}$`),action:{indentAction:e.IndentAction.IndentOutdent}},{beforeText:new RegExp(`${o.open}#(?!(?:${t.join("|")}))([a-zA-Z_]+)([^/${o.close}]*(?!/)${o.close})[^${o.open}]*$`),action:{indentAction:e.IndentAction.Indent}}]}}function u(){return{brackets:[["<",">"],["[","]"],["(",")"],["{","}"]],autoCloseBefore:"\n\r\t }]),.:;=",autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string"]}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"}],folding:{markers:{start:new RegExp(`[<\\[]#(?:${n.join("|")})([^/>\\]]*(?!/)[>\\]])[^<\\[]*$`),end:new RegExp(`[<\\[]/#(?:${n.join("|")})[\\r\\n\\t ]*>`)}},onEnterRules:[{beforeText:new RegExp(`[<\\[]#(?!(?:${t.join("|")}))([a-zA-Z_]+)([^/>\\]]*(?!/)[>\\]])[^[<\\[]]*$`),afterText:new RegExp("^[<\\[]/#([a-zA-Z_]+)[\\r\\n\\t ]*[>\\]]$"),action:{indentAction:e.IndentAction.IndentOutdent}},{beforeText:new RegExp(`[<\\[]#(?!(?:${t.join("|")}))([a-zA-Z_]+)([^/>\\]]*(?!/)[>\\]])[^[<\\[]]*$`),action:{indentAction:e.IndentAction.Indent}}]}}function d(e,t){const n=`_${e.id}_${t.id}`,o=e=>e.replace(/__id__/g,n),i=e=>{const t=e.source.replace(/__id__/g,n);return new RegExp(t,e.flags)};return{unicode:!0,includeLF:!1,start:o("default__id__"),ignoreCase:!1,defaultToken:"invalid",tokenPostfix:".freemarker2",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],[o("open__id__")]:new RegExp(e.open),[o("close__id__")]:new RegExp(e.close),[o("iOpen1__id__")]:new RegExp(t.open1),[o("iOpen2__id__")]:new RegExp(t.open2),[o("iClose__id__")]:new RegExp(t.close),[o("startTag__id__")]:i(/(@open__id__)(#)/),[o("endTag__id__")]:i(/(@open__id__)(\/#)/),[o("startOrEndTag__id__")]:i(/(@open__id__)(\/?#)/),[o("closeTag1__id__")]:i(/((?:@blank)*)(@close__id__)/),[o("closeTag2__id__")]:i(/((?:@blank)*\/?)(@close__id__)/),blank:/[ \t\n\r]/,keywords:["false","true","in","as","using"],directiveStartCloseTag1:/attempt|recover|sep|auto[eE]sc|no(?:autoe|AutoE)sc|compress|default|no[eE]scape|comment|no[pP]arse/,directiveStartCloseTag2:/else|break|continue|return|stop|flush|t|lt|rt|nt|nested|recurse|fallback|ftl/,directiveStartBlank:/if|else[iI]f|list|for[eE]ach|switch|case|assign|global|local|include|import|function|macro|transform|visit|stop|return|call|setting|output[fF]ormat|nested|recurse|escape|ftl|items/,directiveEndCloseTag1:/if|list|items|sep|recover|attempt|for[eE]ach|local|global|assign|function|macro|output[fF]ormat|auto[eE]sc|no(?:autoe|AutoE)sc|compress|transform|switch|escape|no[eE]scape/,escapedChar:/\\(?:[ntrfbgla\\'"\{=]|(?:x[0-9A-Fa-f]{1,4}))/,asciiDigit:/[0-9]/,integer:/[0-9]+/,nonEscapedIdStartChar:/[\$@-Z_a-z\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u1FFF\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183-\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3006\u3031-\u3035\u303B-\u303C\u3040-\u318F\u31A0-\u31BA\u31F0-\u31FF\u3300-\u337F\u3400-\u4DB5\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5-\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40-\uFB41\uFB43-\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,escapedIdChar:/\\[\-\.:#]/,idStartChar:/(?:@nonEscapedIdStartChar)|(?:@escapedIdChar)/,id:/(?:@idStartChar)(?:(?:@idStartChar)|(?:@asciiDigit))*/,specialHashKeys:/\*\*|\*|false|true|in|as|using/,namedSymbols:/<=|>=|\\lte|\\lt|<|\\gte|\\gt|>|&&|\\and|->|->|==|!=|\+=|-=|\*=|\/=|%=|\+\+|--|<=|&&|\|\||:|\.\.\.|\.\.\*|\.\.<|\.\.!|\?\?|=|<|\+|-|\*|\/|%|\||\.\.|\?|!|&|\.|,|;/,arrows:["->","->"],delimiters:[";",":",",","."],stringOperators:["lte","lt","gte","gt"],noParseTags:["noparse","noParse","comment"],tokenizer:{[o("default__id__")]:[{include:o("@directive_token__id__")},{include:o("@interpolation_and_text_token__id__")}],[o("fmExpression__id__.directive")]:[{include:o("@blank_and_expression_comment_token__id__")},{include:o("@directive_end_token__id__")},{include:o("@expression_token__id__")}],[o("fmExpression__id__.interpolation")]:[{include:o("@blank_and_expression_comment_token__id__")},{include:o("@expression_token__id__")},{include:o("@greater_operators_token__id__")}],[o("inParen__id__.plain")]:[{include:o("@blank_and_expression_comment_token__id__")},{include:o("@directive_end_token__id__")},{include:o("@expression_token__id__")}],[o("inParen__id__.gt")]:[{include:o("@blank_and_expression_comment_token__id__")},{include:o("@expression_token__id__")},{include:o("@greater_operators_token__id__")}],[o("noSpaceExpression__id__")]:[{include:o("@no_space_expression_end_token__id__")},{include:o("@directive_end_token__id__")},{include:o("@expression_token__id__")}],[o("unifiedCall__id__")]:[{include:o("@unified_call_token__id__")}],[o("singleString__id__")]:[{include:o("@string_single_token__id__")}],[o("doubleString__id__")]:[{include:o("@string_double_token__id__")}],[o("rawSingleString__id__")]:[{include:o("@string_single_raw_token__id__")}],[o("rawDoubleString__id__")]:[{include:o("@string_double_raw_token__id__")}],[o("expressionComment__id__")]:[{include:o("@expression_comment_token__id__")}],[o("noParse__id__")]:[{include:o("@no_parse_token__id__")}],[o("terseComment__id__")]:[{include:o("@terse_comment_token__id__")}],[o("directive_token__id__")]:[[i(/(?:@startTag__id__)(@directiveStartCloseTag1)(?:@closeTag1__id__)/),"auto"===e.id?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${t.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${t.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{cases:{"@noParseTags":{token:"tag",next:o("@noParse__id__.$3")},"@default":{token:"tag"}}},{token:"delimiter.directive"},{token:"@brackets.directive"}]],[i(/(?:@startTag__id__)(@directiveStartCloseTag2)(?:@closeTag2__id__)/),"auto"===e.id?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${t.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${t.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:"delimiter.directive"},{token:"@brackets.directive"}]],[i(/(?:@startTag__id__)(@directiveStartBlank)(@blank)/),"auto"===e.id?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${t.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${t.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:"",next:o("@fmExpression__id__.directive")}]],[i(/(?:@endTag__id__)(@directiveEndCloseTag1)(?:@closeTag1__id__)/),"auto"===e.id?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${t.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${t.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:"delimiter.directive"},{token:"@brackets.directive"}]],[i(/(@open__id__)(@)/),"auto"===e.id?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${t.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${t.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive",next:o("@unifiedCall__id__")}]],[i(/(@open__id__)(\/@)((?:(?:@id)(?:\.(?:@id))*)?)(?:@closeTag1__id__)/),[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:"delimiter.directive"},{token:"@brackets.directive"}]],[i(/(@open__id__)#--/),"auto"===e.id?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${t.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${t.id}`}}}:{token:"comment",next:o("@terseComment__id__")}],[i(/(?:@startOrEndTag__id__)([a-zA-Z_]+)/),"auto"===e.id?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${t.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${t.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag.invalid",next:o("@fmExpression__id__.directive")}]]],[o("interpolation_and_text_token__id__")]:[[i(/(@iOpen1__id__)(@iOpen2__id__)/),[{token:"bracket"===t.id?"@brackets.interpolation":"delimiter.interpolation"},{token:"bracket"===t.id?"delimiter.interpolation":"@brackets.interpolation",next:o("@fmExpression__id__.interpolation")}]],[/[\$#<\[\{]|(?:@blank)+|[^\$<#\[\{\n\r\t ]+/,{token:"source"}]],[o("string_single_token__id__")]:[[/[^'\\]/,{token:"string"}],[/@escapedChar/,{token:"string.escape"}],[/'/,{token:"string",next:"@pop"}]],[o("string_double_token__id__")]:[[/[^"\\]/,{token:"string"}],[/@escapedChar/,{token:"string.escape"}],[/"/,{token:"string",next:"@pop"}]],[o("string_single_raw_token__id__")]:[[/[^']+/,{token:"string.raw"}],[/'/,{token:"string.raw",next:"@pop"}]],[o("string_double_raw_token__id__")]:[[/[^"]+/,{token:"string.raw"}],[/"/,{token:"string.raw",next:"@pop"}]],[o("expression_token__id__")]:[[/(r?)(['"])/,{cases:{"r'":[{token:"keyword"},{token:"string.raw",next:o("@rawSingleString__id__")}],'r"':[{token:"keyword"},{token:"string.raw",next:o("@rawDoubleString__id__")}],"'":[{token:"source"},{token:"string",next:o("@singleString__id__")}],'"':[{token:"source"},{token:"string",next:o("@doubleString__id__")}]}}],[/(?:@integer)(?:\.(?:@integer))?/,{cases:{"(?:@integer)":{token:"number"},"@default":{token:"number.float"}}}],[/(\.)(@blank*)(@specialHashKeys)/,[{token:"delimiter"},{token:""},{token:"identifier"}]],[/(?:@namedSymbols)/,{cases:{"@arrows":{token:"meta.arrow"},"@delimiters":{token:"delimiter"},"@default":{token:"operators"}}}],[/@id/,{cases:{"@keywords":{token:"keyword.$0"},"@stringOperators":{token:"operators"},"@default":{token:"identifier"}}}],[/[\[\]\(\)\{\}]/,{cases:{"\\[":{cases:{"$S2==gt":{token:"@brackets",next:o("@inParen__id__.gt")},"@default":{token:"@brackets",next:o("@inParen__id__.plain")}}},"\\]":{cases:{..."bracket"===t.id?{"$S2==interpolation":{token:"@brackets.interpolation",next:"@popall"}}:{},..."bracket"===e.id?{"$S2==directive":{token:"@brackets.directive",next:"@popall"}}:{},[o("$S1==inParen__id__")]:{token:"@brackets",next:"@pop"},"@default":{token:"@brackets"}}},"\\(":{token:"@brackets",next:o("@inParen__id__.gt")},"\\)":{cases:{[o("$S1==inParen__id__")]:{token:"@brackets",next:"@pop"},"@default":{token:"@brackets"}}},"\\{":{cases:{"$S2==gt":{token:"@brackets",next:o("@inParen__id__.gt")},"@default":{token:"@brackets",next:o("@inParen__id__.plain")}}},"\\}":{cases:{..."bracket"===t.id?{}:{"$S2==interpolation":{token:"@brackets.interpolation",next:"@popall"}},[o("$S1==inParen__id__")]:{token:"@brackets",next:"@pop"},"@default":{token:"@brackets"}}}}}],[/\$\{/,{token:"delimiter.invalid"}]],[o("blank_and_expression_comment_token__id__")]:[[/(?:@blank)+/,{token:""}],[/[<\[][#!]--/,{token:"comment",next:o("@expressionComment__id__")}]],[o("directive_end_token__id__")]:[[/>/,"bracket"===e.id?{token:"operators"}:{token:"@brackets.directive",next:"@popall"}],[i(/(\/)(@close__id__)/),[{token:"delimiter.directive"},{token:"@brackets.directive",next:"@popall"}]]],[o("greater_operators_token__id__")]:[[/>/,{token:"operators"}],[/>=/,{token:"operators"}]],[o("no_space_expression_end_token__id__")]:[[/(?:@blank)+/,{token:"",switchTo:o("@fmExpression__id__.directive")}]],[o("unified_call_token__id__")]:[[/(@id)((?:@blank)+)/,[{token:"tag"},{token:"",next:o("@fmExpression__id__.directive")}]],[i(/(@id)(\/?)(@close__id__)/),[{token:"tag"},{token:"delimiter.directive"},{token:"@brackets.directive",next:"@popall"}]],[/./,{token:"@rematch",next:o("@noSpaceExpression__id__")}]],[o("no_parse_token__id__")]:[[i(/(@open__id__)(\/#?)([a-zA-Z]+)((?:@blank)*)(@close__id__)/),{cases:{"$S2==$3":[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:""},{token:"@brackets.directive",next:"@popall"}],"$S2==comment":[{token:"comment"},{token:"comment"},{token:"comment"},{token:"comment"},{token:"comment"}],"@default":[{token:"source"},{token:"source"},{token:"source"},{token:"source"},{token:"source"}]}}],[/[^<\[\-]+|[<\[\-]/,{cases:{"$S2==comment":{token:"comment"},"@default":{token:"source"}}}]],[o("expression_comment_token__id__")]:[[/--[>\]]/,{token:"comment",next:"@pop"}],[/[^\->\]]+|[>\]\-]/,{token:"comment"}]],[o("terse_comment_token__id__")]:[[i(/--(?:@close__id__)/),{token:"comment",next:"@popall"}],[/[^<\[\-]+|[<\[\-]/,{token:"comment"}]]}}}function c(e){const t=d(o,e),n=d(i,e),r=d(_,e);return{...t,...n,...r,unicode:!0,includeLF:!1,start:`default_auto_${e.id}`,ignoreCase:!1,defaultToken:"invalid",tokenPostfix:".freemarker2",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],tokenizer:{...t.tokenizer,...n.tokenizer,...r.tokenizer}}}const l={conf:s(o),language:d(o,r)},k={conf:s(i),language:d(i,r)},p={conf:s(o),language:d(o,a)},A={conf:s(i),language:d(i,a)},g={conf:u(),language:c(r)},m={conf:u(),language:c(a)};export{p as TagAngleInterpolationBracket,l as TagAngleInterpolationDollar,m as TagAutoInterpolationBracket,g as TagAutoInterpolationDollar,A as TagBracketInterpolationBracket,k as TagBracketInterpolationDollar};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const e={comments:{lineComment:"//",blockComment:["(*","*)"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{markers:{start:new RegExp("^\\s*//\\s*#region\\b|^\\s*\\(\\*\\s*#region(.*)\\*\\)"),end:new RegExp("^\\s*//\\s*#endregion\\b|^\\s*\\(\\*\\s*#endregion\\s*\\*\\)")}}},n={defaultToken:"",tokenPostfix:".fs",keywords:["abstract","and","atomic","as","assert","asr","base","begin","break","checked","component","const","constraint","constructor","continue","class","default","delegate","do","done","downcast","downto","elif","else","end","exception","eager","event","external","extern","false","finally","for","fun","function","fixed","functor","global","if","in","include","inherit","inline","interface","internal","land","lor","lsl","lsr","lxor","lazy","let","match","member","mod","module","mutable","namespace","method","mixin","new","not","null","of","open","or","object","override","private","parallel","process","protected","pure","public","rec","return","static","sealed","struct","sig","then","to","true","tailcall","trait","try","type","upcast","use","val","void","virtual","volatile","when","while","with","yield"],symbols:/[=><!~?:&|+\-*\^%;\.,\/]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,integersuffix:/[uU]?[yslnLI]?/,floatsuffix:/[fFmM]?/,tokenizer:{root:[[/[a-zA-Z_]\w*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"identifier"}}],{include:"@whitespace"},[/\[<.*>\]/,"annotation"],[/^#(if|else|endif)/,"keyword"],[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,"delimiter"],[/\d*\d+[eE]([\-+]?\d+)?(@floatsuffix)/,"number.float"],[/\d*\.\d+([eE][\-+]?\d+)?(@floatsuffix)/,"number.float"],[/0x[0-9a-fA-F]+LF/,"number.float"],[/0x[0-9a-fA-F]+(@integersuffix)/,"number.hex"],[/0b[0-1]+(@integersuffix)/,"number.bin"],[/\d+(@integersuffix)/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"""/,"string",'@string."""'],[/"/,"string",'@string."'],[/\@"/,{token:"string.quote",next:"@litstring"}],[/'[^\\']'B?/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],whitespace:[[/[ \t\r\n]+/,""],[/\(\*(?!\))/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^*(]+/,"comment"],[/\*\)/,"comment","@pop"],[/\*/,"comment"],[/\(\*\)/,"comment"],[/\(/,"comment"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/("""|"B?)/,{cases:{"$#==$S2":{token:"string",next:"@pop"},"@default":"string"}}]],litstring:[[/[^"]+/,"string"],[/""/,"string.escape"],[/"/,{token:"string.quote",next:"@pop"}]]}};export{e as conf,n as language};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const e={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"`",close:"`",notIn:["string"]},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"`",close:"`"},{open:'"',close:'"'},{open:"'",close:"'"}]},n={defaultToken:"",tokenPostfix:".go",keywords:["break","case","chan","const","continue","default","defer","else","fallthrough","for","func","go","goto","if","import","interface","map","package","range","return","select","struct","switch","type","var","bool","true","false","uint8","uint16","uint32","uint64","int8","int16","int32","int64","float32","float64","complex64","complex128","byte","rune","uint","int","uintptr","string","nil"],operators:["+","-","*","/","%","&","|","^","<<",">>","&^","+=","-=","*=","/=","%=","&=","|=","^=","<<=",">>=","&^=","&&","||","<-","++","--","==","<",">","=","!","!=","<=",">=",":=","...","(",")","","]","{","}",",",";",".",":"],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":"identifier"}}],{include:"@whitespace"},[/\[\[.*\]\]/,"annotation"],[/^\s*#\w+/,"keyword"],[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/\d*\d+[eE]([\-+]?\d+)?/,"number.float"],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F']*[0-9a-fA-F]/,"number.hex"],[/0[0-7']*[0-7]/,"number.octal"],[/0[bB][0-1']*[0-1]/,"number.binary"],[/\d[\d']*/,"number"],[/\d/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string"],[/`/,"string","@rawstring"],[/'[^\\']'/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@doccomment"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],doccomment:[[/[^\/*]+/,"comment.doc"],[/\/\*/,"comment.doc.invalid"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],rawstring:[[/[^\`]/,"string"],[/`/,"string","@pop"]]}};export{e as conf,n as language};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const e={comments:{lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"""',close:'"""',notIn:["string","comment"]},{open:'"',close:'"',notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"""',close:'"""'},{open:'"',close:'"'}],folding:{offSide:!0}},n={defaultToken:"invalid",tokenPostfix:".gql",keywords:["null","true","false","query","mutation","subscription","extend","schema","directive","scalar","type","interface","union","enum","input","implements","fragment","on"],typeKeywords:["Int","Float","String","Boolean","ID"],directiveLocations:["SCHEMA","SCALAR","OBJECT","FIELD_DEFINITION","ARGUMENT_DEFINITION","INTERFACE","UNION","ENUM","ENUM_VALUE","INPUT_OBJECT","INPUT_FIELD_DEFINITION","QUERY","MUTATION","SUBSCRIPTION","FIELD","FRAGMENT_DEFINITION","FRAGMENT_SPREAD","INLINE_FRAGMENT","VARIABLE_DEFINITION"],operators:["=","!","?",":","&","|"],symbols:/[=!?:&|]+/,escapes:/\\(?:["\\\/bfnrt]|u[0-9A-Fa-f]{4})/,tokenizer:{root:[[/[a-z_][\w$]*/,{cases:{"@keywords":"keyword","@default":"key.identifier"}}],[/[$][\w$]*/,{cases:{"@keywords":"keyword","@default":"argument.identifier"}}],[/[A-Z][\w\$]*/,{cases:{"@typeKeywords":"keyword","@default":"type.identifier"}}],{include:"@whitespace"},[/[{}()\[\]]/,"@brackets"],[/@symbols/,{cases:{"@operators":"operator","@default":""}}],[/@\s*[a-zA-Z_\$][\w\$]*/,{token:"annotation",log:"annotation token: $0"}],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F]+/,"number.hex"],[/\d+/,"number"],[/[;,.]/,"delimiter"],[/"""/,{token:"string",next:"@mlstring",nextEmbedded:"markdown"}],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,{token:"string.quote",bracket:"@open",next:"@string"}]],mlstring:[[/[^"]+/,"string"],['"""',{token:"string",next:"@pop",nextEmbedded:"@pop"}]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,{token:"string.quote",bracket:"@close",next:"@pop"}]],whitespace:[[/[ \t\r\n]+/,""],[/#.*$/,"comment"]]}};export{e as conf,n as language};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{l as e}from"./editor.main-Cbmwhgxk.js";import"./index-BtAAK7Od.js";const 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:[["\x3c!--","--\x3e"],["<",">"],["{{","}}"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${t.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/(\w[\w\d]*)\s*>$/i,action:{indentAction:e.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${t.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:e.IndentAction.Indent}}]},a={defaultToken:"",tokenPostfix:"",tokenizer:{root:[[/\{\{!--/,"comment.block.start.handlebars","@commentBlock"],[/\{\{!/,"comment.start.handlebars","@comment"],[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.root"}],[/<!DOCTYPE/,"metatag.html","@doctype"],[/<!--/,"comment.html","@commentHtml"],[/(<)(\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"],[/\{/,"delimiter.html"],[/[^<{]+/]],doctype:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.comment"}],[/[^>]+/,"metatag.content.html"],[/>/,"metatag.html","@pop"]],comment:[[/\}\}/,"comment.end.handlebars","@pop"],[/./,"comment.content.handlebars"]],commentBlock:[[/--\}\}/,"comment.block.end.handlebars","@pop"],[/./,"comment.content.handlebars"]],commentHtml:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.comment"}],[/-->/,"comment.html","@pop"],[/[^-]+/,"comment.content.html"],[/./,"comment.content.html"]],otherTag:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.otherTag"}],[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.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:"@handlebarsInSimpleState.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:"@handlebarsInSimpleState.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:"@handlebarsInSimpleState.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:"@handlebarsInEmbeddedState.scriptEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],style:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.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:"@handlebarsInSimpleState.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:"@handlebarsInSimpleState.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:"@handlebarsInSimpleState.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:"@handlebarsInEmbeddedState.styleEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],handlebarsInSimpleState:[[/\{\{\{?/,"delimiter.handlebars"],[/\}\}\}?/,{token:"delimiter.handlebars",switchTo:"@$S2.$S3"}],{include:"handlebarsRoot"}],handlebarsInEmbeddedState:[[/\{\{\{?/,"delimiter.handlebars"],[/\}\}\}?/,{token:"delimiter.handlebars",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}],{include:"handlebarsRoot"}],handlebarsRoot:[[/"[^"]*"/,"string.handlebars"],[/[#/][^\s}]+/,"keyword.helper.handlebars"],[/else\b/,"keyword.helper.handlebars"],[/[\s]+/],[/[^}]/,"variable.parameter.handlebars"]]}};export{n as conf,a as language};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const 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:'"'}]},t={defaultToken:"",tokenPostfix:".hcl",keywords:["var","local","path","for_each","any","string","number","bool","true","false","null","if ","else ","endif ","for ","in","endfor"],operators:["=",">=","<=","==","!=","+","-","*","/","%","&&","||","!","<",">","?","...",":"],symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,terraformFunctions:/(abs|ceil|floor|log|max|min|pow|signum|chomp|format|formatlist|indent|join|lower|regex|regexall|replace|split|strrev|substr|title|trimspace|upper|chunklist|coalesce|coalescelist|compact|concat|contains|distinct|element|flatten|index|keys|length|list|lookup|map|matchkeys|merge|range|reverse|setintersection|setproduct|setunion|slice|sort|transpose|values|zipmap|base64decode|base64encode|base64gzip|csvdecode|jsondecode|jsonencode|urlencode|yamldecode|yamlencode|abspath|dirname|pathexpand|basename|file|fileexists|fileset|filebase64|templatefile|formatdate|timeadd|timestamp|base64sha256|base64sha512|bcrypt|filebase64sha256|filebase64sha512|filemd5|filemd1|filesha256|filesha512|md5|rsadecrypt|sha1|sha256|sha512|uuid|uuidv5|cidrhost|cidrnetmask|cidrsubnet|tobool|tolist|tomap|tonumber|toset|tostring)/,terraformMainBlocks:/(module|data|terraform|resource|provider|variable|output|locals)/,tokenizer:{root:[[/^@terraformMainBlocks([ \t]*)([\w-]+|"[\w-]+"|)([ \t]*)([\w-]+|"[\w-]+"|)([ \t]*)(\{)/,["type","","string","","string","","@brackets"]],[/(\w+[ \t]+)([ \t]*)([\w-]+|"[\w-]+"|)([ \t]*)([\w-]+|"[\w-]+"|)([ \t]*)(\{)/,["identifier","","string","","string","","@brackets"]],[/(\w+[ \t]+)([ \t]*)([\w-]+|"[\w-]+"|)([ \t]*)([\w-]+|"[\w-]+"|)(=)(\{)/,["identifier","","string","","operator","","@brackets"]],{include:"@terraform"}],terraform:[[/@terraformFunctions(\()/,["type","@brackets"]],[/[a-zA-Z_]\w*-*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"variable"}}],{include:"@whitespace"},{include:"@heredoc"},[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"operator","@default":""}}],[/\d*\d+[eE]([\-+]?\d+)?/,"number.float"],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/\d[\d']*/,"number"],[/\d/,"number"],[/[;,.]/,"delimiter"],[/"/,"string","@string"],[/'/,"invalid"]],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"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"],[/#.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],string:[[/\$\{/,{token:"delimiter",next:"@stringExpression"}],[/[^\\"\$]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@popall"]],stringInsideExpression:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],stringExpression:[[/\}/,{token:"delimiter",next:"@pop"}],[/"/,"string","@stringInsideExpression"],{include:"@terraform"}]}};export{e as conf,t as language};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{l as e}from"./editor.main-Cbmwhgxk.js";import"./index-BtAAK7Od.js";const t=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],i={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:["\x3c!--","--\x3e"]},brackets:[["\x3c!--","--\x3e"],["<",">"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${t.join("|")}))([_:\\w][_:\\w-.\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/([_:\w][_:\w-.\d]*)\s*>$/i,action:{indentAction:e.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${t.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:e.IndentAction.Indent}}],folding:{markers:{start:new RegExp("^\\s*\x3c!--\\s*#region\\b.*--\x3e"),end:new RegExp("^\\s*\x3c!--\\s*#endregion\\b.*--\x3e")}}},n={defaultToken:"",tokenPostfix:".html",ignoreCase:!0,tokenizer:{root:[[/<!DOCTYPE/,"metatag","@doctype"],[/<!--/,"comment","@comment"],[/(<)((?:[\w\-]+:)?[\w\-]+)(\s*)(\/>)/,["delimiter","tag","","delimiter"]],[/(<)(script)/,["delimiter",{token:"tag",next:"@script"}]],[/(<)(style)/,["delimiter",{token:"tag",next:"@style"}]],[/(<)((?:[\w\-]+:)?[\w\-]+)/,["delimiter",{token:"tag",next:"@otherTag"}]],[/(<\/)((?:[\w\-]+:)?[\w\-]+)/,["delimiter",{token:"tag",next:"@otherTag"}]],[/</,"delimiter"],[/[^<]+/]],doctype:[[/[^>]+/,"metatag.content"],[/>/,"metatag","@pop"]],comment:[[/-->/,"comment","@pop"],[/[^-]+/,"comment.content"],[/./,"comment.content"]],otherTag:[[/\/?>/,"delimiter","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter","tag",{token:"delimiter",next:"@pop"}]]],scriptAfterType:[[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/"module"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.text/javascript"}],[/'module'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.text/javascript"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/>/,{token:"delimiter",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]],style:[[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter","tag",{token:"delimiter",next:"@pop"}]]],styleAfterType:[[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/>/,{token:"delimiter",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]]}};export{i as conf,n as language};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as e,l as t}from"./editor.main-Cbmwhgxk.js";import{H as r,D as i,h as s,F as n,b as o,S as a,c as g,f as l,g as d,C as h}from"./lspLanguageFeatures-Belz9URg.js";import{a as u,e as c,d as m,R as p,i as w,j as _,t as v,k as f}from"./lspLanguageFeatures-Belz9URg.js";import"./index-BtAAK7Od.js";class k{constructor(e){this._defaults=e,this._worker=null,this._client=null,this._idleCheckInterval=window.setInterval(()=>this._checkIfIdle(),3e4),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange(()=>this._stopWorker())}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}dispose(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()}_checkIfIdle(){if(!this._worker)return;Date.now()-this._lastUsedTime>12e4&&this._stopWorker()}_getClient(){return this._lastUsedTime=Date.now(),this._client||(this._worker=e({moduleId:"vs/language/html/htmlWorker",createWorker:()=>new Worker(new URL(""+new URL("html.worker-ew3dng7d.js",import.meta.url).href,import.meta.url),{type:"module"}),createData:{languageSettings:this._defaults.options,languageId:this._defaults.languageId},label:this._defaults.languageId}),this._client=this._worker.getProxy()),this._client}getLanguageServiceWorker(...e){let t;return this._getClient().then(e=>{t=e}).then(t=>{if(this._worker)return this._worker.withSyncedResources(e)}).then(e=>t)}}class P extends h{constructor(e){super(e,[".",":","<",'"',"=","/"])}}function I(e){const h=new k(e),u=(...e)=>h.getLanguageServiceWorker(...e);let c=e.languageId;t.registerCompletionItemProvider(c,new P(u)),t.registerHoverProvider(c,new r(u)),t.registerDocumentHighlightProvider(c,new i(u)),t.registerLinkProvider(c,new s(u)),t.registerFoldingRangeProvider(c,new n(u)),t.registerDocumentSymbolProvider(c,new o(u)),t.registerSelectionRangeProvider(c,new a(u)),t.registerRenameProvider(c,new g(u)),"html"===c&&(t.registerDocumentFormattingEditProvider(c,new l(u)),t.registerDocumentRangeFormattingEditProvider(c,new d(u)))}function R(e){const h=[],u=[],c=new k(e);h.push(c);const m=(...e)=>c.getLanguageServiceWorker(...e);return function(){const{languageId:h,modeConfiguration:c}=e;C(u),c.completionItems&&u.push(t.registerCompletionItemProvider(h,new P(m))),c.hovers&&u.push(t.registerHoverProvider(h,new r(m))),c.documentHighlights&&u.push(t.registerDocumentHighlightProvider(h,new i(m))),c.links&&u.push(t.registerLinkProvider(h,new s(m))),c.documentSymbols&&u.push(t.registerDocumentSymbolProvider(h,new o(m))),c.rename&&u.push(t.registerRenameProvider(h,new g(m))),c.foldingRanges&&u.push(t.registerFoldingRangeProvider(h,new n(m))),c.selectionRanges&&u.push(t.registerSelectionRangeProvider(h,new a(m))),c.documentFormattingEdits&&u.push(t.registerDocumentFormattingEditProvider(h,new l(m))),c.documentRangeFormattingEdits&&u.push(t.registerDocumentRangeFormattingEditProvider(h,new d(m)))}(),h.push(D(u)),D(h)}function D(e){return{dispose:()=>C(e)}}function C(e){for(;e.length;)e.pop().dispose()}export{h as CompletionAdapter,u as DefinitionAdapter,c as DiagnosticsAdapter,m as DocumentColorAdapter,l as DocumentFormattingEditProvider,i as DocumentHighlightAdapter,s as DocumentLinkAdapter,d as DocumentRangeFormattingEditProvider,o as DocumentSymbolAdapter,n as FoldingRangeAdapter,r as HoverAdapter,p as ReferenceAdapter,g as RenameAdapter,a as SelectionRangeAdapter,k as WorkerManager,w as fromPosition,_ as fromRange,R as setupMode,I as setupMode1,v as toRange,f as toTextEdit};
|