monacozen 0.0.1 → 0.1.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 +124 -0
- package/assets/antimono-ClsI0fxy.js +5 -0
- package/assets/antimono-zBXMptjq.css +1 -0
- package/assets/azcli-ue5GhsHI.js +55 -0
- package/assets/bat-C6DzPBcU.js +125 -0
- package/assets/bicep-B6UDBWZN.js +220 -0
- package/assets/cameligo-BoKy-zSd.js +191 -0
- package/assets/clojure-D8WHGr6v.js +148 -0
- package/assets/coffee-C16Mnhbm.js +262 -0
- package/assets/cpp-_HbkGdoj.js +232 -0
- package/assets/csharp-DeGXkEgi.js +262 -0
- package/assets/csp-DGVEba9U.js +48 -0
- package/assets/css-DmO2GtiT.js +286 -0
- package/assets/css.worker-B59bB4vF.js +6 -0
- package/assets/css.worker-zFzGcGyJ.js +96 -0
- package/assets/cssMode-B-yiAIn5.js +65 -0
- package/assets/cypher-5654EJL_.js +214 -0
- package/assets/dart-BjXVSQM-.js +238 -0
- package/assets/dist-Bx9hOuoB.js +624 -0
- package/assets/dockerfile-DSA8TJLS.js +193 -0
- package/assets/ecl-DoDWSDGs.js +228 -0
- package/assets/editor.api-C_6h_pYy.js +83476 -0
- package/assets/editorWebWorkerMain-Cpqca1A3.js +6 -0
- package/assets/editorWebWorkerMain-_4oyTYIl.js +33 -0
- package/assets/elixir-CzC02SL7.js +525 -0
- package/assets/freemarker2-Jvnudjht.js +718 -0
- package/assets/fsharp-DRGCXPNW.js +149 -0
- package/assets/go-CyErB8P9.js +167 -0
- package/assets/graphql-CNnvnjR8.js +176 -0
- package/assets/handlebars-B9HHtHT5.js +412 -0
- package/assets/hcl-D4a6HBjk.js +221 -0
- package/assets/html-B5_5MvV-.js +333 -0
- package/assets/html.worker-Czi9KUKj.js +6 -0
- package/assets/html.worker-D4M1xqlZ.js +509 -0
- package/assets/htmlMode-DcETbRqN.js +74 -0
- package/assets/ini-CpSjysbn.js +96 -0
- package/assets/java-DkRrYYRp.js +175 -0
- package/assets/javascript-Da2MNB2t.js +20 -0
- package/assets/json.worker-D3-21m4I.js +65 -0
- package/assets/json.worker-pkLWnKxn.js +6 -0
- package/assets/jsonMode-BtwFVp_X.js +450 -0
- package/assets/julia-DXDdnD4p.js +416 -0
- package/assets/kotlin-BNDyMshT.js +184 -0
- package/assets/less-3yDKfG4U.js +244 -0
- package/assets/liquid-DCciKNzb.js +199 -0
- package/assets/lspLanguageFeatures-CAn_K3Js.js +1455 -0
- package/assets/lua-CqDy9oHE.js +202 -0
- package/assets/m3-DyBtJGhR.js +195 -0
- package/assets/main-16cPxgwS.js +107 -0
- package/assets/main-CB71Lf5W.js +129 -0
- package/assets/main-HEYSEiwe.js +66 -0
- package/assets/markdown-DIkeztiD.js +264 -0
- package/assets/mdx-BcOG7QFm.js +329 -0
- package/assets/mips-BUbWxz0r.js +130 -0
- package/assets/monaco-BMsB0TPD.js +39430 -0
- package/assets/monaco-ffd8b062.css +3 -0
- package/assets/msdax-95fojGvn.js +158 -0
- package/assets/mysql-CX3tETwr.js +170 -0
- package/assets/objective-c-CK2i53vc.js +146 -0
- package/assets/pascal-wnGRqmNG.js +178 -0
- package/assets/pascaligo-DR2NqTqc.js +203 -0
- package/assets/perl-DXuijcFO.js +318 -0
- package/assets/pgsql-BFvD7ctB.js +160 -0
- package/assets/php-FZHoZ5C_.js +473 -0
- package/assets/pla-Cmb_VVG6.js +148 -0
- package/assets/postiats-DUwtyBVk.js +506 -0
- package/assets/powerquery-wUlwxvME.js +192 -0
- package/assets/powershell-Wf4X7WOf.js +213 -0
- package/assets/protobuf-CcMDFVG6.js +661 -0
- package/assets/pug-OPBd_9cN.js +302 -0
- package/assets/python-D2Z49Cw8.js +254 -0
- package/assets/qsharp-C4P6iWbB.js +145 -0
- package/assets/r-FHjiK9Ff.js +191 -0
- package/assets/razor-CfcSDTvR.js +519 -0
- package/assets/redis-CLJ_Tkzp.js +125 -0
- package/assets/redshift-Cn0YgnO8.js +160 -0
- package/assets/restructuredtext-Ckzl4aRZ.js +289 -0
- package/assets/ruby-Dhjv9xsd.js +529 -0
- package/assets/rust-Bq7le2bN.js +180 -0
- package/assets/scala-Bth6QY64.js +553 -0
- package/assets/scheme-BHXdn3HT.js +172 -0
- package/assets/scss-DVPfVfp2.js +419 -0
- package/assets/shell-DYY2DoAm.js +225 -0
- package/assets/solidity-C2dWya5C.js +149 -0
- package/assets/sophia-BdPli0VA.js +149 -0
- package/assets/sparql-Ca6NBL_y.js +126 -0
- package/assets/sql-CE5EfRV1.js +173 -0
- package/assets/st-BKcHiAlg.js +478 -0
- package/assets/swift-v0LuaFKN.js +215 -0
- package/assets/systemverilog-BRC61WOW.js +300 -0
- package/assets/tcl-Xx48oN1j.js +225 -0
- package/assets/ts.worker-CokkJ1Lk.js +6 -0
- package/assets/ts.worker-De3FAST6.js +67741 -0
- package/assets/tsMode-cdcRizUc.js +567 -0
- package/assets/twig-Dq5WyzaF.js +390 -0
- package/assets/typescript-B25ZZJLy.js +257 -0
- package/assets/typespec-DVZXVZWY.js +236 -0
- package/assets/vb--Ows3SAS.js +262 -0
- package/assets/wgsl-gwRTfDFE.js +147 -0
- package/assets/workers-qpP7-_JR.js +48 -0
- package/assets/xml-BD6eVsMx.js +130 -0
- package/assets/yaml-unVkvP57.js +223 -0
- package/lib.d.ts +8379 -0
- package/package.json +1 -1
- package/src/main.js +24 -0
- package/index.d.ts +0 -6
- package/index.js +0 -1
- package/readme.md +0 -1
- /package/{license.txt → LICENSE} +0 -0
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
//#region node_modules/.bun/monaco-editor@0.56.0/node_modules/monaco-editor/esm/vs/languages/definitions/clojure/clojure.js
|
|
2
|
+
var e = {
|
|
3
|
+
comments: { lineComment: ";;" },
|
|
4
|
+
brackets: [
|
|
5
|
+
["[", "]"],
|
|
6
|
+
["(", ")"],
|
|
7
|
+
["{", "}"]
|
|
8
|
+
],
|
|
9
|
+
autoClosingPairs: [
|
|
10
|
+
{
|
|
11
|
+
open: "[",
|
|
12
|
+
close: "]"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
open: "\"",
|
|
16
|
+
close: "\""
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
open: "(",
|
|
20
|
+
close: ")"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
open: "{",
|
|
24
|
+
close: "}"
|
|
25
|
+
}
|
|
26
|
+
],
|
|
27
|
+
surroundingPairs: [
|
|
28
|
+
{
|
|
29
|
+
open: "[",
|
|
30
|
+
close: "]"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
open: "\"",
|
|
34
|
+
close: "\""
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
open: "(",
|
|
38
|
+
close: ")"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
open: "{",
|
|
42
|
+
close: "}"
|
|
43
|
+
}
|
|
44
|
+
]
|
|
45
|
+
}, t = {
|
|
46
|
+
defaultToken: "",
|
|
47
|
+
ignoreCase: !0,
|
|
48
|
+
tokenPostfix: ".clj",
|
|
49
|
+
brackets: [
|
|
50
|
+
{
|
|
51
|
+
open: "[",
|
|
52
|
+
close: "]",
|
|
53
|
+
token: "delimiter.square"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
open: "(",
|
|
57
|
+
close: ")",
|
|
58
|
+
token: "delimiter.parenthesis"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
open: "{",
|
|
62
|
+
close: "}",
|
|
63
|
+
token: "delimiter.curly"
|
|
64
|
+
}
|
|
65
|
+
],
|
|
66
|
+
constants: [
|
|
67
|
+
"true",
|
|
68
|
+
"false",
|
|
69
|
+
"nil"
|
|
70
|
+
],
|
|
71
|
+
numbers: /^(?:[+\-]?\d+(?:(?:N|(?:[eE][+\-]?\d+))|(?:\.?\d*(?:M|(?:[eE][+\-]?\d+))?)|\/\d+|[xX][0-9a-fA-F]+|r[0-9a-zA-Z]+)?(?=[\\\[\]\s"#'(),;@^`{}~]|$))/,
|
|
72
|
+
characters: /^(?:\\(?:backspace|formfeed|newline|return|space|tab|o[0-7]{3}|u[0-9A-Fa-f]{4}|x[0-9A-Fa-f]{4}|.)?(?=[\\\[\]\s"(),;@^`{}~]|$))/,
|
|
73
|
+
escapes: /^\\(?:["'\\bfnrt]|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
|
|
74
|
+
qualifiedSymbols: /^(?:(?:[^\\\/\[\]\d\s"#'(),;@^`{}~][^\\\[\]\s"(),;@^`{}~]*(?:\.[^\\\/\[\]\d\s"#'(),;@^`{}~][^\\\[\]\s"(),;@^`{}~]*)*\/)?(?:\/|[^\\\/\[\]\d\s"#'(),;@^`{}~][^\\\[\]\s"(),;@^`{}~]*)*(?=[\\\[\]\s"(),;@^`{}~]|$))/,
|
|
75
|
+
specialForms: [
|
|
76
|
+
".",
|
|
77
|
+
"catch",
|
|
78
|
+
"def",
|
|
79
|
+
"do",
|
|
80
|
+
"if",
|
|
81
|
+
"monitor-enter",
|
|
82
|
+
"monitor-exit",
|
|
83
|
+
"new",
|
|
84
|
+
"quote",
|
|
85
|
+
"recur",
|
|
86
|
+
"set!",
|
|
87
|
+
"throw",
|
|
88
|
+
"try",
|
|
89
|
+
"var"
|
|
90
|
+
],
|
|
91
|
+
coreSymbols: /* @__PURE__ */ "*,*',*1,*2,*3,*agent*,*allow-unresolved-vars*,*assert*,*clojure-version*,*command-line-args*,*compile-files*,*compile-path*,*compiler-options*,*data-readers*,*default-data-reader-fn*,*e,*err*,*file*,*flush-on-newline*,*fn-loader*,*in*,*math-context*,*ns*,*out*,*print-dup*,*print-length*,*print-level*,*print-meta*,*print-namespace-maps*,*print-readably*,*read-eval*,*reader-resolver*,*source-path*,*suppress-read*,*unchecked-math*,*use-context-classloader*,*verbose-defrecords*,*warn-on-reflection*,+,+',-,-',->,->>,->ArrayChunk,->Eduction,->Vec,->VecNode,->VecSeq,-cache-protocol-fn,-reset-methods,..,/,<,<=,=,==,>,>=,EMPTY-NODE,Inst,StackTraceElement->vec,Throwable->map,accessor,aclone,add-classpath,add-watch,agent,agent-error,agent-errors,aget,alength,alias,all-ns,alter,alter-meta!,alter-var-root,amap,ancestors,and,any?,apply,areduce,array-map,as->,aset,aset-boolean,aset-byte,aset-char,aset-double,aset-float,aset-int,aset-long,aset-short,assert,assoc,assoc!,assoc-in,associative?,atom,await,await-for,await1,bases,bean,bigdec,bigint,biginteger,binding,bit-and,bit-and-not,bit-clear,bit-flip,bit-not,bit-or,bit-set,bit-shift-left,bit-shift-right,bit-test,bit-xor,boolean,boolean-array,boolean?,booleans,bound-fn,bound-fn*,bound?,bounded-count,butlast,byte,byte-array,bytes,bytes?,case,cast,cat,char,char-array,char-escape-string,char-name-string,char?,chars,chunk,chunk-append,chunk-buffer,chunk-cons,chunk-first,chunk-next,chunk-rest,chunked-seq?,class,class?,clear-agent-errors,clojure-version,coll?,comment,commute,comp,comparator,compare,compare-and-set!,compile,complement,completing,concat,cond,cond->,cond->>,condp,conj,conj!,cons,constantly,construct-proxy,contains?,count,counted?,create-ns,create-struct,cycle,dec,dec',decimal?,declare,dedupe,default-data-readers,definline,definterface,defmacro,defmethod,defmulti,defn,defn-,defonce,defprotocol,defrecord,defstruct,deftype,delay,delay?,deliver,denominator,deref,derive,descendants,destructure,disj,disj!,dissoc,dissoc!,distinct,distinct?,doall,dorun,doseq,dosync,dotimes,doto,double,double-array,double?,doubles,drop,drop-last,drop-while,eduction,empty,empty?,ensure,ensure-reduced,enumeration-seq,error-handler,error-mode,eval,even?,every-pred,every?,ex-data,ex-info,extend,extend-protocol,extend-type,extenders,extends?,false?,ffirst,file-seq,filter,filterv,find,find-keyword,find-ns,find-protocol-impl,find-protocol-method,find-var,first,flatten,float,float-array,float?,floats,flush,fn,fn?,fnext,fnil,for,force,format,frequencies,future,future-call,future-cancel,future-cancelled?,future-done?,future?,gen-class,gen-interface,gensym,get,get-in,get-method,get-proxy-class,get-thread-bindings,get-validator,group-by,halt-when,hash,hash-combine,hash-map,hash-ordered-coll,hash-set,hash-unordered-coll,ident?,identical?,identity,if-let,if-not,if-some,ifn?,import,in-ns,inc,inc',indexed?,init-proxy,inst-ms,inst-ms*,inst?,instance?,int,int-array,int?,integer?,interleave,intern,interpose,into,into-array,ints,io!,isa?,iterate,iterator-seq,juxt,keep,keep-indexed,key,keys,keyword,keyword?,last,lazy-cat,lazy-seq,let,letfn,line-seq,list,list*,list?,load,load-file,load-reader,load-string,loaded-libs,locking,long,long-array,longs,loop,macroexpand,macroexpand-1,make-array,make-hierarchy,map,map-entry?,map-indexed,map?,mapcat,mapv,max,max-key,memfn,memoize,merge,merge-with,meta,method-sig,methods,min,min-key,mix-collection-hash,mod,munge,name,namespace,namespace-munge,nat-int?,neg-int?,neg?,newline,next,nfirst,nil?,nnext,not,not-any?,not-empty,not-every?,not=,ns,ns-aliases,ns-imports,ns-interns,ns-map,ns-name,ns-publics,ns-refers,ns-resolve,ns-unalias,ns-unmap,nth,nthnext,nthrest,num,number?,numerator,object-array,odd?,or,parents,partial,partition,partition-all,partition-by,pcalls,peek,persistent!,pmap,pop,pop!,pop-thread-bindings,pos-int?,pos?,pr,pr-str,prefer-method,prefers,primitives-classnames,print,print-ctor,print-dup,print-method,print-simple,print-str,printf,println,println-str,prn,prn-str,promise,proxy,proxy-call-with-super,proxy-mappings,proxy-name,proxy-super,push-thread-bindings,pvalues,qualified-ident?,qualified-keyword?,qualified-symbol?,quot,rand,rand-int,rand-nth,random-sample,range,ratio?,rational?,rationalize,re-find,re-groups,re-matcher,re-matches,re-pattern,re-seq,read,read-line,read-string,reader-conditional,reader-conditional?,realized?,record?,reduce,reduce-kv,reduced,reduced?,reductions,ref,ref-history-count,ref-max-history,ref-min-history,ref-set,refer,refer-clojure,reify,release-pending-sends,rem,remove,remove-all-methods,remove-method,remove-ns,remove-watch,repeat,repeatedly,replace,replicate,require,reset!,reset-meta!,reset-vals!,resolve,rest,restart-agent,resultset-seq,reverse,reversible?,rseq,rsubseq,run!,satisfies?,second,select-keys,send,send-off,send-via,seq,seq?,seqable?,seque,sequence,sequential?,set,set-agent-send-executor!,set-agent-send-off-executor!,set-error-handler!,set-error-mode!,set-validator!,set?,short,short-array,shorts,shuffle,shutdown-agents,simple-ident?,simple-keyword?,simple-symbol?,slurp,some,some->,some->>,some-fn,some?,sort,sort-by,sorted-map,sorted-map-by,sorted-set,sorted-set-by,sorted?,special-symbol?,spit,split-at,split-with,str,string?,struct,struct-map,subs,subseq,subvec,supers,swap!,swap-vals!,symbol,symbol?,sync,tagged-literal,tagged-literal?,take,take-last,take-nth,take-while,test,the-ns,thread-bound?,time,to-array,to-array-2d,trampoline,transduce,transient,tree-seq,true?,type,unchecked-add,unchecked-add-int,unchecked-byte,unchecked-char,unchecked-dec,unchecked-dec-int,unchecked-divide-int,unchecked-double,unchecked-float,unchecked-inc,unchecked-inc-int,unchecked-int,unchecked-long,unchecked-multiply,unchecked-multiply-int,unchecked-negate,unchecked-negate-int,unchecked-remainder-int,unchecked-short,unchecked-subtract,unchecked-subtract-int,underive,unquote,unquote-splicing,unreduced,unsigned-bit-shift-right,update,update-in,update-proxy,uri?,use,uuid?,val,vals,var-get,var-set,var?,vary-meta,vec,vector,vector-of,vector?,volatile!,volatile?,vreset!,vswap!,when,when-first,when-let,when-not,when-some,while,with-bindings,with-bindings*,with-in-str,with-loading-context,with-local-vars,with-meta,with-open,with-out-str,with-precision,with-redefs,with-redefs-fn,xml-seq,zero?,zipmap".split(","),
|
|
92
|
+
tokenizer: {
|
|
93
|
+
root: [
|
|
94
|
+
{ include: "@whitespace" },
|
|
95
|
+
[/@numbers/, "number"],
|
|
96
|
+
[/@characters/, "string"],
|
|
97
|
+
{ include: "@string" },
|
|
98
|
+
[/[()\[\]{}]/, "@brackets"],
|
|
99
|
+
[/\/#"(?:\.|(?:")|[^"\n])*"\/g/, "regexp"],
|
|
100
|
+
[/[#'@^`~]/, "meta"],
|
|
101
|
+
[/@qualifiedSymbols/, { cases: {
|
|
102
|
+
"^:.+$": "constant",
|
|
103
|
+
"@specialForms": "keyword",
|
|
104
|
+
"@coreSymbols": "keyword",
|
|
105
|
+
"@constants": "constant",
|
|
106
|
+
"@default": "identifier"
|
|
107
|
+
} }]
|
|
108
|
+
],
|
|
109
|
+
whitespace: [
|
|
110
|
+
[/[\s,]+/, "white"],
|
|
111
|
+
[/;.*$/, "comment"],
|
|
112
|
+
[
|
|
113
|
+
/\(comment\b/,
|
|
114
|
+
"comment",
|
|
115
|
+
"@comment"
|
|
116
|
+
]
|
|
117
|
+
],
|
|
118
|
+
comment: [
|
|
119
|
+
[
|
|
120
|
+
/\(/,
|
|
121
|
+
"comment",
|
|
122
|
+
"@push"
|
|
123
|
+
],
|
|
124
|
+
[
|
|
125
|
+
/\)/,
|
|
126
|
+
"comment",
|
|
127
|
+
"@pop"
|
|
128
|
+
],
|
|
129
|
+
[/[^()]/, "comment"]
|
|
130
|
+
],
|
|
131
|
+
string: [[
|
|
132
|
+
/"/,
|
|
133
|
+
"string",
|
|
134
|
+
"@multiLineString"
|
|
135
|
+
]],
|
|
136
|
+
multiLineString: [
|
|
137
|
+
[
|
|
138
|
+
/"/,
|
|
139
|
+
"string",
|
|
140
|
+
"@popall"
|
|
141
|
+
],
|
|
142
|
+
[/@escapes/, "string.escape"],
|
|
143
|
+
[/./, "string"]
|
|
144
|
+
]
|
|
145
|
+
}
|
|
146
|
+
};
|
|
147
|
+
//#endregion
|
|
148
|
+
export { e as conf, t as language };
|
|
@@ -0,0 +1,262 @@
|
|
|
1
|
+
//#region node_modules/.bun/monaco-editor@0.56.0/node_modules/monaco-editor/esm/vs/languages/definitions/coffee/coffee.js
|
|
2
|
+
var e = {
|
|
3
|
+
wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\@\#%\^\&\*\(\)\=\$\-\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,
|
|
4
|
+
comments: {
|
|
5
|
+
blockComment: ["###", "###"],
|
|
6
|
+
lineComment: "#"
|
|
7
|
+
},
|
|
8
|
+
brackets: [
|
|
9
|
+
["{", "}"],
|
|
10
|
+
["[", "]"],
|
|
11
|
+
["(", ")"]
|
|
12
|
+
],
|
|
13
|
+
autoClosingPairs: [
|
|
14
|
+
{
|
|
15
|
+
open: "{",
|
|
16
|
+
close: "}"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
open: "[",
|
|
20
|
+
close: "]"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
open: "(",
|
|
24
|
+
close: ")"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
open: "\"",
|
|
28
|
+
close: "\""
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
open: "'",
|
|
32
|
+
close: "'"
|
|
33
|
+
}
|
|
34
|
+
],
|
|
35
|
+
surroundingPairs: [
|
|
36
|
+
{
|
|
37
|
+
open: "{",
|
|
38
|
+
close: "}"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
open: "[",
|
|
42
|
+
close: "]"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
open: "(",
|
|
46
|
+
close: ")"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
open: "\"",
|
|
50
|
+
close: "\""
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
open: "'",
|
|
54
|
+
close: "'"
|
|
55
|
+
}
|
|
56
|
+
],
|
|
57
|
+
folding: { markers: {
|
|
58
|
+
start: /* @__PURE__ */ RegExp("^\\s*#region\\b"),
|
|
59
|
+
end: /* @__PURE__ */ RegExp("^\\s*#endregion\\b")
|
|
60
|
+
} }
|
|
61
|
+
}, t = {
|
|
62
|
+
defaultToken: "",
|
|
63
|
+
ignoreCase: !0,
|
|
64
|
+
tokenPostfix: ".coffee",
|
|
65
|
+
brackets: [
|
|
66
|
+
{
|
|
67
|
+
open: "{",
|
|
68
|
+
close: "}",
|
|
69
|
+
token: "delimiter.curly"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
open: "[",
|
|
73
|
+
close: "]",
|
|
74
|
+
token: "delimiter.square"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
open: "(",
|
|
78
|
+
close: ")",
|
|
79
|
+
token: "delimiter.parenthesis"
|
|
80
|
+
}
|
|
81
|
+
],
|
|
82
|
+
regEx: /\/(?!\/\/)(?:[^\/\\]|\\.)*\/[igm]*/,
|
|
83
|
+
keywords: /* @__PURE__ */ "and.or.is.isnt.not.on.yes.@.no.off.true.false.null.this.new.delete.typeof.in.instanceof.return.throw.break.continue.debugger.if.else.switch.for.while.do.try.catch.finally.class.extends.super.undefined.then.unless.until.loop.of.by.when".split("."),
|
|
84
|
+
symbols: /[=><!~?&%|+\-*\/\^\.,\:]+/,
|
|
85
|
+
escapes: /\\(?:[abfnrtv\\"'$]|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
|
|
86
|
+
tokenizer: {
|
|
87
|
+
root: [
|
|
88
|
+
[/\@[a-zA-Z_]\w*/, "variable.predefined"],
|
|
89
|
+
[/[a-zA-Z_]\w*/, { cases: {
|
|
90
|
+
this: "variable.predefined",
|
|
91
|
+
"@keywords": { token: "keyword.$0" },
|
|
92
|
+
"@default": ""
|
|
93
|
+
} }],
|
|
94
|
+
[/[ \t\r\n]+/, ""],
|
|
95
|
+
[
|
|
96
|
+
/###/,
|
|
97
|
+
"comment",
|
|
98
|
+
"@comment"
|
|
99
|
+
],
|
|
100
|
+
[/#.*$/, "comment"],
|
|
101
|
+
["///", {
|
|
102
|
+
token: "regexp",
|
|
103
|
+
next: "@hereregexp"
|
|
104
|
+
}],
|
|
105
|
+
[/^(\s*)(@regEx)/, ["", "regexp"]],
|
|
106
|
+
[/(\()(\s*)(@regEx)/, [
|
|
107
|
+
"@brackets",
|
|
108
|
+
"",
|
|
109
|
+
"regexp"
|
|
110
|
+
]],
|
|
111
|
+
[/(\,)(\s*)(@regEx)/, [
|
|
112
|
+
"delimiter",
|
|
113
|
+
"",
|
|
114
|
+
"regexp"
|
|
115
|
+
]],
|
|
116
|
+
[/(\=)(\s*)(@regEx)/, [
|
|
117
|
+
"delimiter",
|
|
118
|
+
"",
|
|
119
|
+
"regexp"
|
|
120
|
+
]],
|
|
121
|
+
[/(\:)(\s*)(@regEx)/, [
|
|
122
|
+
"delimiter",
|
|
123
|
+
"",
|
|
124
|
+
"regexp"
|
|
125
|
+
]],
|
|
126
|
+
[/(\[)(\s*)(@regEx)/, [
|
|
127
|
+
"@brackets",
|
|
128
|
+
"",
|
|
129
|
+
"regexp"
|
|
130
|
+
]],
|
|
131
|
+
[/(\!)(\s*)(@regEx)/, [
|
|
132
|
+
"delimiter",
|
|
133
|
+
"",
|
|
134
|
+
"regexp"
|
|
135
|
+
]],
|
|
136
|
+
[/(\&)(\s*)(@regEx)/, [
|
|
137
|
+
"delimiter",
|
|
138
|
+
"",
|
|
139
|
+
"regexp"
|
|
140
|
+
]],
|
|
141
|
+
[/(\|)(\s*)(@regEx)/, [
|
|
142
|
+
"delimiter",
|
|
143
|
+
"",
|
|
144
|
+
"regexp"
|
|
145
|
+
]],
|
|
146
|
+
[/(\?)(\s*)(@regEx)/, [
|
|
147
|
+
"delimiter",
|
|
148
|
+
"",
|
|
149
|
+
"regexp"
|
|
150
|
+
]],
|
|
151
|
+
[/(\{)(\s*)(@regEx)/, [
|
|
152
|
+
"@brackets",
|
|
153
|
+
"",
|
|
154
|
+
"regexp"
|
|
155
|
+
]],
|
|
156
|
+
[/(\;)(\s*)(@regEx)/, [
|
|
157
|
+
"",
|
|
158
|
+
"",
|
|
159
|
+
"regexp"
|
|
160
|
+
]],
|
|
161
|
+
[/}/, { cases: {
|
|
162
|
+
"$S2==interpolatedstring": {
|
|
163
|
+
token: "string",
|
|
164
|
+
next: "@pop"
|
|
165
|
+
},
|
|
166
|
+
"@default": "@brackets"
|
|
167
|
+
} }],
|
|
168
|
+
[/[{}()\[\]]/, "@brackets"],
|
|
169
|
+
[/@symbols/, "delimiter"],
|
|
170
|
+
[/\d+[eE]([\-+]?\d+)?/, "number.float"],
|
|
171
|
+
[/\d+\.\d+([eE][\-+]?\d+)?/, "number.float"],
|
|
172
|
+
[/0[xX][0-9a-fA-F]+/, "number.hex"],
|
|
173
|
+
[/0[0-7]+(?!\d)/, "number.octal"],
|
|
174
|
+
[/\d+/, "number"],
|
|
175
|
+
[/[,.]/, "delimiter"],
|
|
176
|
+
[
|
|
177
|
+
/"""/,
|
|
178
|
+
"string",
|
|
179
|
+
"@herestring.\"\"\""
|
|
180
|
+
],
|
|
181
|
+
[
|
|
182
|
+
/'''/,
|
|
183
|
+
"string",
|
|
184
|
+
"@herestring.'''"
|
|
185
|
+
],
|
|
186
|
+
[/"/, { cases: {
|
|
187
|
+
"@eos": "string",
|
|
188
|
+
"@default": {
|
|
189
|
+
token: "string",
|
|
190
|
+
next: "@string.\""
|
|
191
|
+
}
|
|
192
|
+
} }],
|
|
193
|
+
[/'/, { cases: {
|
|
194
|
+
"@eos": "string",
|
|
195
|
+
"@default": {
|
|
196
|
+
token: "string",
|
|
197
|
+
next: "@string.'"
|
|
198
|
+
}
|
|
199
|
+
} }]
|
|
200
|
+
],
|
|
201
|
+
string: [
|
|
202
|
+
[/[^"'\#\\]+/, "string"],
|
|
203
|
+
[/@escapes/, "string.escape"],
|
|
204
|
+
[/\./, "string.escape.invalid"],
|
|
205
|
+
[/\./, "string.escape.invalid"],
|
|
206
|
+
[/#{/, { cases: {
|
|
207
|
+
"$S2==\"": {
|
|
208
|
+
token: "string",
|
|
209
|
+
next: "root.interpolatedstring"
|
|
210
|
+
},
|
|
211
|
+
"@default": "string"
|
|
212
|
+
} }],
|
|
213
|
+
[/["']/, { cases: {
|
|
214
|
+
"$#==$S2": {
|
|
215
|
+
token: "string",
|
|
216
|
+
next: "@pop"
|
|
217
|
+
},
|
|
218
|
+
"@default": "string"
|
|
219
|
+
} }],
|
|
220
|
+
[/#/, "string"]
|
|
221
|
+
],
|
|
222
|
+
herestring: [
|
|
223
|
+
[/("""|''')/, { cases: {
|
|
224
|
+
"$1==$S2": {
|
|
225
|
+
token: "string",
|
|
226
|
+
next: "@pop"
|
|
227
|
+
},
|
|
228
|
+
"@default": "string"
|
|
229
|
+
} }],
|
|
230
|
+
[/[^#\\'"]+/, "string"],
|
|
231
|
+
[/['"]+/, "string"],
|
|
232
|
+
[/@escapes/, "string.escape"],
|
|
233
|
+
[/\./, "string.escape.invalid"],
|
|
234
|
+
[/#{/, {
|
|
235
|
+
token: "string.quote",
|
|
236
|
+
next: "root.interpolatedstring"
|
|
237
|
+
}],
|
|
238
|
+
[/#/, "string"]
|
|
239
|
+
],
|
|
240
|
+
comment: [
|
|
241
|
+
[/[^#]+/, "comment"],
|
|
242
|
+
[
|
|
243
|
+
/###/,
|
|
244
|
+
"comment",
|
|
245
|
+
"@pop"
|
|
246
|
+
],
|
|
247
|
+
[/#/, "comment"]
|
|
248
|
+
],
|
|
249
|
+
hereregexp: [
|
|
250
|
+
[/[^\\\/#]+/, "regexp"],
|
|
251
|
+
[/\\./, "regexp"],
|
|
252
|
+
[/#.*$/, "comment"],
|
|
253
|
+
["///[igm]*", {
|
|
254
|
+
token: "regexp",
|
|
255
|
+
next: "@pop"
|
|
256
|
+
}],
|
|
257
|
+
[/\//, "regexp"]
|
|
258
|
+
]
|
|
259
|
+
}
|
|
260
|
+
};
|
|
261
|
+
//#endregion
|
|
262
|
+
export { e as conf, t as language };
|
|
@@ -0,0 +1,232 @@
|
|
|
1
|
+
//#region node_modules/.bun/monaco-editor@0.56.0/node_modules/monaco-editor/esm/vs/languages/definitions/cpp/cpp.js
|
|
2
|
+
var e = {
|
|
3
|
+
comments: {
|
|
4
|
+
lineComment: "//",
|
|
5
|
+
blockComment: ["/*", "*/"]
|
|
6
|
+
},
|
|
7
|
+
brackets: [
|
|
8
|
+
["{", "}"],
|
|
9
|
+
["[", "]"],
|
|
10
|
+
["(", ")"]
|
|
11
|
+
],
|
|
12
|
+
autoClosingPairs: [
|
|
13
|
+
{
|
|
14
|
+
open: "[",
|
|
15
|
+
close: "]"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
open: "{",
|
|
19
|
+
close: "}"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
open: "(",
|
|
23
|
+
close: ")"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
open: "'",
|
|
27
|
+
close: "'",
|
|
28
|
+
notIn: ["string", "comment"]
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
open: "\"",
|
|
32
|
+
close: "\"",
|
|
33
|
+
notIn: ["string"]
|
|
34
|
+
}
|
|
35
|
+
],
|
|
36
|
+
surroundingPairs: [
|
|
37
|
+
{
|
|
38
|
+
open: "{",
|
|
39
|
+
close: "}"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
open: "[",
|
|
43
|
+
close: "]"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
open: "(",
|
|
47
|
+
close: ")"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
open: "\"",
|
|
51
|
+
close: "\""
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
open: "'",
|
|
55
|
+
close: "'"
|
|
56
|
+
}
|
|
57
|
+
],
|
|
58
|
+
folding: { markers: {
|
|
59
|
+
start: /* @__PURE__ */ RegExp("^\\s*#pragma\\s+region\\b"),
|
|
60
|
+
end: /* @__PURE__ */ RegExp("^\\s*#pragma\\s+endregion\\b")
|
|
61
|
+
} }
|
|
62
|
+
}, t = {
|
|
63
|
+
defaultToken: "",
|
|
64
|
+
tokenPostfix: ".cpp",
|
|
65
|
+
brackets: [
|
|
66
|
+
{
|
|
67
|
+
token: "delimiter.curly",
|
|
68
|
+
open: "{",
|
|
69
|
+
close: "}"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
token: "delimiter.parenthesis",
|
|
73
|
+
open: "(",
|
|
74
|
+
close: ")"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
token: "delimiter.square",
|
|
78
|
+
open: "[",
|
|
79
|
+
close: "]"
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
token: "delimiter.angle",
|
|
83
|
+
open: "<",
|
|
84
|
+
close: ">"
|
|
85
|
+
}
|
|
86
|
+
],
|
|
87
|
+
keywords: /* @__PURE__ */ "abstract.amp.array.auto.bool.break.case.catch.char.class.const.constexpr.const_cast.continue.cpu.decltype.default.delegate.delete.do.double.dynamic_cast.each.else.enum.event.explicit.export.extern.false.final.finally.float.for.friend.gcnew.generic.goto.if.in.initonly.inline.int.interface.interior_ptr.internal.literal.long.mutable.namespace.new.noexcept.nullptr.__nullptr.operator.override.partial.pascal.pin_ptr.private.property.protected.public.ref.register.reinterpret_cast.restrict.return.safe_cast.sealed.short.signed.sizeof.static.static_assert.static_cast.struct.switch.template.this.thread_local.throw.tile_static.true.try.typedef.typeid.typename.union.unsigned.using.virtual.void.volatile.wchar_t.where.while._asm._based._cdecl._declspec._fastcall._if_exists._if_not_exists._inline._multiple_inheritance._pascal._single_inheritance._stdcall._virtual_inheritance._w64.__abstract.__alignof.__asm.__assume.__based.__box.__builtin_alignof.__cdecl.__clrcall.__declspec.__delegate.__event.__except.__fastcall.__finally.__forceinline.__gc.__hook.__identifier.__if_exists.__if_not_exists.__inline.__int128.__int16.__int32.__int64.__int8.__interface.__leave.__m128.__m128d.__m128i.__m256.__m256d.__m256i.__m512.__m512d.__m512i.__m64.__multiple_inheritance.__newslot.__nogc.__noop.__nounwind.__novtordisp.__pascal.__pin.__pragma.__property.__ptr32.__ptr64.__raise.__restrict.__resume.__sealed.__single_inheritance.__stdcall.__super.__thiscall.__try.__try_cast.__typeof.__unaligned.__unhook.__uuidof.__value.__virtual_inheritance.__w64.__wchar_t".split("."),
|
|
88
|
+
operators: /* @__PURE__ */ "=.>.<.!.~.?.:.==.<=.>=.!=.&&.||.++.--.+.-.*./.&.|.^.%.<<.>>.+=.-=.*=./=.&=.|=.^=.%=.<<=.>>=".split("."),
|
|
89
|
+
symbols: /[=><!~?:&|+\-*\/\^%]+/,
|
|
90
|
+
escapes: /\\(?:[0abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
|
|
91
|
+
integersuffix: /([uU](ll|LL|l|L)|(ll|LL|l|L)?[uU]?)/,
|
|
92
|
+
floatsuffix: /[fFlL]?/,
|
|
93
|
+
encoding: /u|u8|U|L/,
|
|
94
|
+
tokenizer: {
|
|
95
|
+
root: [
|
|
96
|
+
[/@encoding?R\"(?:([^ ()\\\t]*))\(/, {
|
|
97
|
+
token: "string.raw.begin",
|
|
98
|
+
next: "@raw.$1"
|
|
99
|
+
}],
|
|
100
|
+
[/[a-zA-Z_]\w*/, { cases: {
|
|
101
|
+
"@keywords": { token: "keyword.$0" },
|
|
102
|
+
"@default": "identifier"
|
|
103
|
+
} }],
|
|
104
|
+
[/^\s*#\s*include/, {
|
|
105
|
+
token: "keyword.directive.include",
|
|
106
|
+
next: "@include"
|
|
107
|
+
}],
|
|
108
|
+
[/^\s*#\s*\w+/, "keyword.directive"],
|
|
109
|
+
{ include: "@whitespace" },
|
|
110
|
+
[/\[\s*\[/, {
|
|
111
|
+
token: "annotation",
|
|
112
|
+
next: "@annotation"
|
|
113
|
+
}],
|
|
114
|
+
[/[{}()<>\[\]]/, "@brackets"],
|
|
115
|
+
[/@symbols/, { cases: {
|
|
116
|
+
"@operators": "delimiter",
|
|
117
|
+
"@default": ""
|
|
118
|
+
} }],
|
|
119
|
+
[/\d*\d+[eE]([\-+]?\d+)?(@floatsuffix)/, "number.float"],
|
|
120
|
+
[/\d*\.\d+([eE][\-+]?\d+)?(@floatsuffix)/, "number.float"],
|
|
121
|
+
[/0[xX][0-9a-fA-F']*[0-9a-fA-F](@integersuffix)/, "number.hex"],
|
|
122
|
+
[/0[0-7']*[0-7](@integersuffix)/, "number.octal"],
|
|
123
|
+
[/0[bB][0-1']*[0-1](@integersuffix)/, "number.binary"],
|
|
124
|
+
[/\d[\d']*\d(@integersuffix)/, "number"],
|
|
125
|
+
[/\d(@integersuffix)/, "number"],
|
|
126
|
+
[/[;,.]/, "delimiter"],
|
|
127
|
+
[/"([^"\\]|\\.)*$/, "string.invalid"],
|
|
128
|
+
[
|
|
129
|
+
/"/,
|
|
130
|
+
"string",
|
|
131
|
+
"@string"
|
|
132
|
+
],
|
|
133
|
+
[/'[^\\']'/, "string"],
|
|
134
|
+
[/(')(@escapes)(')/, [
|
|
135
|
+
"string",
|
|
136
|
+
"string.escape",
|
|
137
|
+
"string"
|
|
138
|
+
]],
|
|
139
|
+
[/'/, "string.invalid"]
|
|
140
|
+
],
|
|
141
|
+
whitespace: [
|
|
142
|
+
[/[ \t\r\n]+/, ""],
|
|
143
|
+
[
|
|
144
|
+
/\/\*\*(?!\/)/,
|
|
145
|
+
"comment.doc",
|
|
146
|
+
"@doccomment"
|
|
147
|
+
],
|
|
148
|
+
[
|
|
149
|
+
/\/\*/,
|
|
150
|
+
"comment",
|
|
151
|
+
"@comment"
|
|
152
|
+
],
|
|
153
|
+
[
|
|
154
|
+
/\/\/.*\\$/,
|
|
155
|
+
"comment",
|
|
156
|
+
"@linecomment"
|
|
157
|
+
],
|
|
158
|
+
[/\/\/.*$/, "comment"]
|
|
159
|
+
],
|
|
160
|
+
comment: [
|
|
161
|
+
[/[^\/*]+/, "comment"],
|
|
162
|
+
[
|
|
163
|
+
/\*\//,
|
|
164
|
+
"comment",
|
|
165
|
+
"@pop"
|
|
166
|
+
],
|
|
167
|
+
[/[\/*]/, "comment"]
|
|
168
|
+
],
|
|
169
|
+
linecomment: [[
|
|
170
|
+
/.*[^\\]$/,
|
|
171
|
+
"comment",
|
|
172
|
+
"@pop"
|
|
173
|
+
], [/[^]+/, "comment"]],
|
|
174
|
+
doccomment: [
|
|
175
|
+
[/[^\/*]+/, "comment.doc"],
|
|
176
|
+
[
|
|
177
|
+
/\*\//,
|
|
178
|
+
"comment.doc",
|
|
179
|
+
"@pop"
|
|
180
|
+
],
|
|
181
|
+
[/[\/*]/, "comment.doc"]
|
|
182
|
+
],
|
|
183
|
+
string: [
|
|
184
|
+
[/[^\\"]+/, "string"],
|
|
185
|
+
[/@escapes/, "string.escape"],
|
|
186
|
+
[/\\./, "string.escape.invalid"],
|
|
187
|
+
[
|
|
188
|
+
/"/,
|
|
189
|
+
"string",
|
|
190
|
+
"@pop"
|
|
191
|
+
]
|
|
192
|
+
],
|
|
193
|
+
raw: [
|
|
194
|
+
[/[^)]+/, "string.raw"],
|
|
195
|
+
[/\)$S2\"/, {
|
|
196
|
+
token: "string.raw.end",
|
|
197
|
+
next: "@pop"
|
|
198
|
+
}],
|
|
199
|
+
[/\)/, "string.raw"]
|
|
200
|
+
],
|
|
201
|
+
annotation: [
|
|
202
|
+
{ include: "@whitespace" },
|
|
203
|
+
[/using|alignas/, "keyword"],
|
|
204
|
+
[/[a-zA-Z0-9_]+/, "annotation"],
|
|
205
|
+
[/[,:]/, "delimiter"],
|
|
206
|
+
[/[()]/, "@brackets"],
|
|
207
|
+
[/\]\s*\]/, {
|
|
208
|
+
token: "annotation",
|
|
209
|
+
next: "@pop"
|
|
210
|
+
}]
|
|
211
|
+
],
|
|
212
|
+
include: [[/(\s*)(<)([^<>]*)(>)/, [
|
|
213
|
+
"",
|
|
214
|
+
"keyword.directive.include.begin",
|
|
215
|
+
"string.include.identifier",
|
|
216
|
+
{
|
|
217
|
+
token: "keyword.directive.include.end",
|
|
218
|
+
next: "@pop"
|
|
219
|
+
}
|
|
220
|
+
]], [/(\s*)(")([^"]*)(")/, [
|
|
221
|
+
"",
|
|
222
|
+
"keyword.directive.include.begin",
|
|
223
|
+
"string.include.identifier",
|
|
224
|
+
{
|
|
225
|
+
token: "keyword.directive.include.end",
|
|
226
|
+
next: "@pop"
|
|
227
|
+
}
|
|
228
|
+
]]]
|
|
229
|
+
}
|
|
230
|
+
};
|
|
231
|
+
//#endregion
|
|
232
|
+
export { e as conf, t as language };
|