@milkdown/crepe 7.3.3
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/LICENSE +21 -0
- package/README.md +11 -0
- package/lib/apl-p0IPP13W.js +76 -0
- package/lib/asciiarmor-lJsBxlJJ.js +34 -0
- package/lib/asn1-Q9v1zIy5.js +102 -0
- package/lib/asterisk-foNkeTjy.js +273 -0
- package/lib/brainfuck-0XqyXpNS.js +35 -0
- package/lib/clike-ak6Z6Yhe.js +639 -0
- package/lib/clojure-iYO8U8Sg.js +810 -0
- package/lib/clsx-7d8NmkQq.js +21 -0
- package/lib/cmake-SVzjkxV_.js +28 -0
- package/lib/cobol-APHEnAOX.js +74 -0
- package/lib/coffeescript-KqQa0SYG.js +182 -0
- package/lib/commonlisp-bwqNqR5V.js +79 -0
- package/lib/core/crepe.d.ts +21 -0
- package/lib/core/crepe.d.ts.map +1 -0
- package/lib/core/index.d.ts +3 -0
- package/lib/core/index.d.ts.map +1 -0
- package/lib/core/slice.d.ts +12 -0
- package/lib/core/slice.d.ts.map +1 -0
- package/lib/crystal-BViWuDpA.js +217 -0
- package/lib/css-KHXHXfXg.js +1572 -0
- package/lib/cypher-XpTt4zQ3.js +69 -0
- package/lib/d-fLig6yqY.js +139 -0
- package/lib/diff-WoKGLpy6.js +18 -0
- package/lib/dockerfile-u6f6Vw2s.js +194 -0
- package/lib/dtd-SIJRUW6K.js +91 -0
- package/lib/dylan-4HCLhpWP.js +238 -0
- package/lib/ebnf-h_0lged5.js +77 -0
- package/lib/ecl-Lf4FF0lf.js +133 -0
- package/lib/eiffel-qlw8KUyf.js +112 -0
- package/lib/elm-QRnB3zXs.js +108 -0
- package/lib/erlang-fyVKb7eK.js +488 -0
- package/lib/factor-BEeN4upY.js +65 -0
- package/lib/fcl-lRek3hEb.js +106 -0
- package/lib/feature/block-edit/handle/component.d.ts +9 -0
- package/lib/feature/block-edit/handle/component.d.ts.map +1 -0
- package/lib/feature/block-edit/handle/index.d.ts +12 -0
- package/lib/feature/block-edit/handle/index.d.ts.map +1 -0
- package/lib/feature/block-edit/index.d.ts +3 -0
- package/lib/feature/block-edit/index.d.ts.map +1 -0
- package/lib/feature/block-edit/menu/component.d.ts +14 -0
- package/lib/feature/block-edit/menu/component.d.ts.map +1 -0
- package/lib/feature/block-edit/menu/config.d.ts +21 -0
- package/lib/feature/block-edit/menu/config.d.ts.map +1 -0
- package/lib/feature/block-edit/menu/icons.d.ts +14 -0
- package/lib/feature/block-edit/menu/icons.d.ts.map +1 -0
- package/lib/feature/block-edit/menu/index.d.ts +9 -0
- package/lib/feature/block-edit/menu/index.d.ts.map +1 -0
- package/lib/feature/code-mirror/index.d.ts +3 -0
- package/lib/feature/code-mirror/index.d.ts.map +1 -0
- package/lib/feature/gap-cursor/index.d.ts +3 -0
- package/lib/feature/gap-cursor/index.d.ts.map +1 -0
- package/lib/feature/image-block/index.d.ts +3 -0
- package/lib/feature/image-block/index.d.ts.map +1 -0
- package/lib/feature/index.d.ts +18 -0
- package/lib/feature/index.d.ts.map +1 -0
- package/lib/feature/link-tooltip/consts.d.ts +5 -0
- package/lib/feature/link-tooltip/consts.d.ts.map +1 -0
- package/lib/feature/link-tooltip/index.d.ts +3 -0
- package/lib/feature/link-tooltip/index.d.ts.map +1 -0
- package/lib/feature/list-item/consts.d.ts +2 -0
- package/lib/feature/list-item/consts.d.ts.map +1 -0
- package/lib/feature/list-item/index.d.ts +3 -0
- package/lib/feature/list-item/index.d.ts.map +1 -0
- package/lib/feature/placeholder/index.d.ts +10 -0
- package/lib/feature/placeholder/index.d.ts.map +1 -0
- package/lib/feature/shared.d.ts +3 -0
- package/lib/feature/shared.d.ts.map +1 -0
- package/lib/feature/toolbar/component.d.ts +13 -0
- package/lib/feature/toolbar/component.d.ts.map +1 -0
- package/lib/feature/toolbar/consts.d.ts +5 -0
- package/lib/feature/toolbar/consts.d.ts.map +1 -0
- package/lib/feature/toolbar/index.d.ts +3 -0
- package/lib/feature/toolbar/index.d.ts.map +1 -0
- package/lib/forth-ua2bRd8T.js +60 -0
- package/lib/fortran-WnF7znuN.js +443 -0
- package/lib/gas-wowve1o7.js +183 -0
- package/lib/gherkin-m7GIChu3.js +34 -0
- package/lib/go-th443Dhb.js +158 -0
- package/lib/groovy-tR4RiZnc.js +161 -0
- package/lib/haskell-jxVBofv5.js +375 -0
- package/lib/haxe-kWPI2tq3.js +390 -0
- package/lib/hooks-82sqkbtE.js +21 -0
- package/lib/http-3GIFWUlG.js +45 -0
- package/lib/icons-HYkfuR-O.js +50 -0
- package/lib/idl-PvpMZg-l.js +947 -0
- package/lib/index-0RbcZMbq.js +8 -0
- package/lib/index-4afXjFMY.js +517 -0
- package/lib/index-7MeyepDG.js +78 -0
- package/lib/index-7QgQq3x3.js +551 -0
- package/lib/index-7pgP6qYs.js +107 -0
- package/lib/index-8DvtgRVa.js +19511 -0
- package/lib/index-8Gg-jEP4.js +288 -0
- package/lib/index-8S8qcncB.js +507 -0
- package/lib/index-9A_GmGh4.js +1039 -0
- package/lib/index-EJJfYLzA.js +928 -0
- package/lib/index-Eg39w5kL.js +984 -0
- package/lib/index-FIk_7oPb.js +168 -0
- package/lib/index-LlbrXb_n.js +368 -0
- package/lib/index-MovKtgMG.js +121 -0
- package/lib/index-N9GtIS4X.js +64 -0
- package/lib/index-Pwn25-kf.js +8 -0
- package/lib/index-SdFSDosa.js +1295 -0
- package/lib/index-W5Th22-Z.js +1744 -0
- package/lib/index-XiXSFLmI.js +20975 -0
- package/lib/index-bknOViGv.js +47 -0
- package/lib/index-bkuIUPFS.js +275 -0
- package/lib/index-jPA8J9Eo.js +8 -0
- package/lib/index-lsG76a9s.js +552 -0
- package/lib/index-oTRzPo3B.js +146 -0
- package/lib/index-rrf6_6DC.js +317 -0
- package/lib/index-vJbZIHYF.js +81 -0
- package/lib/index-vPRh55CO.js +137 -0
- package/lib/index-vxy63hib.js +323 -0
- package/lib/index-wn1_LgCS.js +99 -0
- package/lib/index-xHADmDT3.js +12 -0
- package/lib/index-yt2EpMtv.js +141 -0
- package/lib/index.d.ts +4 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.es.js +7 -0
- package/lib/javascript-8ZHqHagw.js +758 -0
- package/lib/jinja2-vsOFe0qD.js +154 -0
- package/lib/julia-dlp_pbN1.js +241 -0
- package/lib/livescript-Gf5R-LT6.js +273 -0
- package/lib/lua-c5Y_JsBp.js +221 -0
- package/lib/mathematica-iiGTGmUs.js +35 -0
- package/lib/mbox-ZJh86H8B.js +78 -0
- package/lib/meta-tAGyVRPE.js +511 -0
- package/lib/mirc-i0qkCa0y.js +73 -0
- package/lib/mllike-Dy551fZW.js +275 -0
- package/lib/modelica-n6tGqUT9.js +94 -0
- package/lib/mscgen-aKSbB7D9.js +104 -0
- package/lib/mumps-lNiKA6sp.js +25 -0
- package/lib/nginx--YmuCfDj.js +93 -0
- package/lib/nsis-zhS8iA09.js +62 -0
- package/lib/ntriples-E3jQl3MC.js +79 -0
- package/lib/octave-EQvkGIeG.js +144 -0
- package/lib/oz-W2cpqFf6.js +152 -0
- package/lib/pascal-lCh6ouNZ.js +79 -0
- package/lib/perl-PxEQBX0B.js +915 -0
- package/lib/pig-Y_bNcrzS.js +56 -0
- package/lib/powershell-GaQP-TZr.js +249 -0
- package/lib/properties-mbRyn54L.js +26 -0
- package/lib/prosemirror-noTDkx-k.js +4 -0
- package/lib/protobuf-8CJideyJ.js +49 -0
- package/lib/puppet-ABBaChNZ.js +45 -0
- package/lib/python-sKdHg3Ka.js +321 -0
- package/lib/q-_1yG40Nm.js +89 -0
- package/lib/r-Ziz56bHT.js +108 -0
- package/lib/rpm-ORjGOHaQ.js +57 -0
- package/lib/ruby-jlbYq0dT.js +233 -0
- package/lib/sas-2n7xeUuO.js +107 -0
- package/lib/schema-tKk3m1fu.js +62 -0
- package/lib/scheme-XCs-NPeU.js +126 -0
- package/lib/shell-0_1Um7Dq.js +184 -0
- package/lib/sieve-7uyJD1x1.js +73 -0
- package/lib/simple-mode--HIzBxba.js +95 -0
- package/lib/smalltalk-PEFzrlQ-.js +48 -0
- package/lib/solr-BLBaHahN.js +41 -0
- package/lib/sparql-4F9ZWf1b.js +204 -0
- package/lib/spreadsheet-SGSo6blj.js +49 -0
- package/lib/sql-tebLBzN0.js +291 -0
- package/lib/stex-SFJcFGOO.js +130 -0
- package/lib/stylus-rwwWYWFm.js +256 -0
- package/lib/swift-eorJ0tCv.js +238 -0
- package/lib/tcl-IwXMB8U4.js +82 -0
- package/lib/textile-ok2VyjwC.js +299 -0
- package/lib/theme/classic/index.d.ts +3 -0
- package/lib/theme/classic/index.d.ts.map +1 -0
- package/lib/theme/classic-dark/index.d.ts +3 -0
- package/lib/theme/classic-dark/index.d.ts.map +1 -0
- package/lib/theme/headless/index.d.ts +3 -0
- package/lib/theme/headless/index.d.ts.map +1 -0
- package/lib/theme/index.d.ts +8 -0
- package/lib/theme/index.d.ts.map +1 -0
- package/lib/theme/shared.d.ts +3 -0
- package/lib/theme/shared.d.ts.map +1 -0
- package/lib/tiddlywiki-DLhz8_pc.js +156 -0
- package/lib/tiki-DFAqFElY.js +183 -0
- package/lib/tippy.esm-MZ2vxByW.js +1813 -0
- package/lib/toml-ryxpTZEV.js +49 -0
- package/lib/tooltip-plugin-gcwyQdiT.js +119 -0
- package/lib/troff-ZzZyvNct.js +36 -0
- package/lib/ttcn-6gvkqqpW.js +136 -0
- package/lib/ttcn-cfg-oSu-Dq5C.js +98 -0
- package/lib/turtle-10ofr5au.js +87 -0
- package/lib/use-css-light-dom-EKWZDmbJ.js +82 -0
- package/lib/utils/index.d.ts +4 -0
- package/lib/utils/index.d.ts.map +1 -0
- package/lib/vb-a6n6fzrD.js +74 -0
- package/lib/vbscript-dgvo8jPt.js +324 -0
- package/lib/velocity-CBncCrwO.js +97 -0
- package/lib/verilog-KlcACt6C.js +271 -0
- package/lib/vhdl-NMd7Gf35.js +117 -0
- package/lib/webidl-z1UE5DN_.js +160 -0
- package/lib/xquery-hDt5jWTp.js +431 -0
- package/lib/yacas-ftgh_qwr.js +74 -0
- package/lib/yaml-DnNTfjXK.js +53 -0
- package/lib/z80-dA1PqWe1.js +62 -0
- package/package.json +87 -0
- package/src/core/crepe.ts +98 -0
- package/src/core/index.ts +4 -0
- package/src/core/slice.ts +44 -0
- package/src/feature/block-edit/handle/component.ts +68 -0
- package/src/feature/block-edit/handle/index.ts +81 -0
- package/src/feature/block-edit/index.ts +17 -0
- package/src/feature/block-edit/menu/component.ts +210 -0
- package/src/feature/block-edit/menu/config.ts +335 -0
- package/src/feature/block-edit/menu/icons.ts +171 -0
- package/src/feature/block-edit/menu/index.ts +113 -0
- package/src/feature/block-edit/style.css +126 -0
- package/src/feature/code-mirror/index.ts +60 -0
- package/src/feature/code-mirror/style.css +159 -0
- package/src/feature/gap-cursor/index.ts +31 -0
- package/src/feature/image-block/index.ts +59 -0
- package/src/feature/image-block/style.css +215 -0
- package/src/feature/index.ts +66 -0
- package/src/feature/link-tooltip/consts.ts +47 -0
- package/src/feature/link-tooltip/index.ts +22 -0
- package/src/feature/link-tooltip/style.css +107 -0
- package/src/feature/list-item/consts.ts +15 -0
- package/src/feature/list-item/index.ts +30 -0
- package/src/feature/list-item/style.css +23 -0
- package/src/feature/placeholder/index.ts +87 -0
- package/src/feature/placeholder/style.css +9 -0
- package/src/feature/shared.ts +4 -0
- package/src/feature/toolbar/component.ts +101 -0
- package/src/feature/toolbar/consts.ts +26 -0
- package/src/feature/toolbar/index.ts +92 -0
- package/src/feature/toolbar/style.css +37 -0
- package/src/index.ts +5 -0
- package/src/theme/classic/index.ts +12 -0
- package/src/theme/classic/style.css +192 -0
- package/src/theme/classic-dark/index.ts +12 -0
- package/src/theme/classic-dark/style.css +197 -0
- package/src/theme/headless/index.ts +9 -0
- package/src/theme/index.ts +26 -0
- package/src/theme/shared.ts +4 -0
- package/src/utils/index.ts +12 -0
- package/src/vite-env.d.ts +2 -0
|
@@ -0,0 +1,488 @@
|
|
|
1
|
+
var S = [
|
|
2
|
+
"-type",
|
|
3
|
+
"-spec",
|
|
4
|
+
"-export_type",
|
|
5
|
+
"-opaque"
|
|
6
|
+
], x = [
|
|
7
|
+
"after",
|
|
8
|
+
"begin",
|
|
9
|
+
"catch",
|
|
10
|
+
"case",
|
|
11
|
+
"cond",
|
|
12
|
+
"end",
|
|
13
|
+
"fun",
|
|
14
|
+
"if",
|
|
15
|
+
"let",
|
|
16
|
+
"of",
|
|
17
|
+
"query",
|
|
18
|
+
"receive",
|
|
19
|
+
"try",
|
|
20
|
+
"when"
|
|
21
|
+
], z = /[\->,;]/, E = [
|
|
22
|
+
"->",
|
|
23
|
+
";",
|
|
24
|
+
","
|
|
25
|
+
], T = [
|
|
26
|
+
"and",
|
|
27
|
+
"andalso",
|
|
28
|
+
"band",
|
|
29
|
+
"bnot",
|
|
30
|
+
"bor",
|
|
31
|
+
"bsl",
|
|
32
|
+
"bsr",
|
|
33
|
+
"bxor",
|
|
34
|
+
"div",
|
|
35
|
+
"not",
|
|
36
|
+
"or",
|
|
37
|
+
"orelse",
|
|
38
|
+
"rem",
|
|
39
|
+
"xor"
|
|
40
|
+
], R = /[\+\-\*\/<>=\|:!]/, A = [
|
|
41
|
+
"=",
|
|
42
|
+
"+",
|
|
43
|
+
"-",
|
|
44
|
+
"*",
|
|
45
|
+
"/",
|
|
46
|
+
">",
|
|
47
|
+
">=",
|
|
48
|
+
"<",
|
|
49
|
+
"=<",
|
|
50
|
+
"=:=",
|
|
51
|
+
"==",
|
|
52
|
+
"=/=",
|
|
53
|
+
"/=",
|
|
54
|
+
"||",
|
|
55
|
+
"<-",
|
|
56
|
+
"!"
|
|
57
|
+
], U = /[<\(\[\{]/, b = [
|
|
58
|
+
"<<",
|
|
59
|
+
"(",
|
|
60
|
+
"[",
|
|
61
|
+
"{"
|
|
62
|
+
], Z = /[>\)\]\}]/, y = [
|
|
63
|
+
"}",
|
|
64
|
+
"]",
|
|
65
|
+
")",
|
|
66
|
+
">>"
|
|
67
|
+
], m = [
|
|
68
|
+
"is_atom",
|
|
69
|
+
"is_binary",
|
|
70
|
+
"is_bitstring",
|
|
71
|
+
"is_boolean",
|
|
72
|
+
"is_float",
|
|
73
|
+
"is_function",
|
|
74
|
+
"is_integer",
|
|
75
|
+
"is_list",
|
|
76
|
+
"is_number",
|
|
77
|
+
"is_pid",
|
|
78
|
+
"is_port",
|
|
79
|
+
"is_record",
|
|
80
|
+
"is_reference",
|
|
81
|
+
"is_tuple",
|
|
82
|
+
"atom",
|
|
83
|
+
"binary",
|
|
84
|
+
"bitstring",
|
|
85
|
+
"boolean",
|
|
86
|
+
"function",
|
|
87
|
+
"integer",
|
|
88
|
+
"list",
|
|
89
|
+
"number",
|
|
90
|
+
"pid",
|
|
91
|
+
"port",
|
|
92
|
+
"record",
|
|
93
|
+
"reference",
|
|
94
|
+
"tuple"
|
|
95
|
+
], P = [
|
|
96
|
+
"abs",
|
|
97
|
+
"adler32",
|
|
98
|
+
"adler32_combine",
|
|
99
|
+
"alive",
|
|
100
|
+
"apply",
|
|
101
|
+
"atom_to_binary",
|
|
102
|
+
"atom_to_list",
|
|
103
|
+
"binary_to_atom",
|
|
104
|
+
"binary_to_existing_atom",
|
|
105
|
+
"binary_to_list",
|
|
106
|
+
"binary_to_term",
|
|
107
|
+
"bit_size",
|
|
108
|
+
"bitstring_to_list",
|
|
109
|
+
"byte_size",
|
|
110
|
+
"check_process_code",
|
|
111
|
+
"contact_binary",
|
|
112
|
+
"crc32",
|
|
113
|
+
"crc32_combine",
|
|
114
|
+
"date",
|
|
115
|
+
"decode_packet",
|
|
116
|
+
"delete_module",
|
|
117
|
+
"disconnect_node",
|
|
118
|
+
"element",
|
|
119
|
+
"erase",
|
|
120
|
+
"exit",
|
|
121
|
+
"float",
|
|
122
|
+
"float_to_list",
|
|
123
|
+
"garbage_collect",
|
|
124
|
+
"get",
|
|
125
|
+
"get_keys",
|
|
126
|
+
"group_leader",
|
|
127
|
+
"halt",
|
|
128
|
+
"hd",
|
|
129
|
+
"integer_to_list",
|
|
130
|
+
"internal_bif",
|
|
131
|
+
"iolist_size",
|
|
132
|
+
"iolist_to_binary",
|
|
133
|
+
"is_alive",
|
|
134
|
+
"is_atom",
|
|
135
|
+
"is_binary",
|
|
136
|
+
"is_bitstring",
|
|
137
|
+
"is_boolean",
|
|
138
|
+
"is_float",
|
|
139
|
+
"is_function",
|
|
140
|
+
"is_integer",
|
|
141
|
+
"is_list",
|
|
142
|
+
"is_number",
|
|
143
|
+
"is_pid",
|
|
144
|
+
"is_port",
|
|
145
|
+
"is_process_alive",
|
|
146
|
+
"is_record",
|
|
147
|
+
"is_reference",
|
|
148
|
+
"is_tuple",
|
|
149
|
+
"length",
|
|
150
|
+
"link",
|
|
151
|
+
"list_to_atom",
|
|
152
|
+
"list_to_binary",
|
|
153
|
+
"list_to_bitstring",
|
|
154
|
+
"list_to_existing_atom",
|
|
155
|
+
"list_to_float",
|
|
156
|
+
"list_to_integer",
|
|
157
|
+
"list_to_pid",
|
|
158
|
+
"list_to_tuple",
|
|
159
|
+
"load_module",
|
|
160
|
+
"make_ref",
|
|
161
|
+
"module_loaded",
|
|
162
|
+
"monitor_node",
|
|
163
|
+
"node",
|
|
164
|
+
"node_link",
|
|
165
|
+
"node_unlink",
|
|
166
|
+
"nodes",
|
|
167
|
+
"notalive",
|
|
168
|
+
"now",
|
|
169
|
+
"open_port",
|
|
170
|
+
"pid_to_list",
|
|
171
|
+
"port_close",
|
|
172
|
+
"port_command",
|
|
173
|
+
"port_connect",
|
|
174
|
+
"port_control",
|
|
175
|
+
"pre_loaded",
|
|
176
|
+
"process_flag",
|
|
177
|
+
"process_info",
|
|
178
|
+
"processes",
|
|
179
|
+
"purge_module",
|
|
180
|
+
"put",
|
|
181
|
+
"register",
|
|
182
|
+
"registered",
|
|
183
|
+
"round",
|
|
184
|
+
"self",
|
|
185
|
+
"setelement",
|
|
186
|
+
"size",
|
|
187
|
+
"spawn",
|
|
188
|
+
"spawn_link",
|
|
189
|
+
"spawn_monitor",
|
|
190
|
+
"spawn_opt",
|
|
191
|
+
"split_binary",
|
|
192
|
+
"statistics",
|
|
193
|
+
"term_to_binary",
|
|
194
|
+
"time",
|
|
195
|
+
"throw",
|
|
196
|
+
"tl",
|
|
197
|
+
"trunc",
|
|
198
|
+
"tuple_size",
|
|
199
|
+
"tuple_to_list",
|
|
200
|
+
"unlink",
|
|
201
|
+
"unregister",
|
|
202
|
+
"whereis"
|
|
203
|
+
], p = /[\w@Ø-ÞÀ-Öß-öø-ÿ]/, q = /[0-7]{1,3}|[bdefnrstv\\"']|\^[a-zA-Z]|x[0-9a-zA-Z]{2}|x{[0-9a-zA-Z]+}/;
|
|
204
|
+
function j(e, n) {
|
|
205
|
+
if (n.in_string)
|
|
206
|
+
return n.in_string = !v(e), t(n, e, "string");
|
|
207
|
+
if (n.in_atom)
|
|
208
|
+
return n.in_atom = !h(e), t(n, e, "atom");
|
|
209
|
+
if (e.eatSpace())
|
|
210
|
+
return t(n, e, "whitespace");
|
|
211
|
+
if (!_(n) && e.match(/-\s*[a-zß-öø-ÿ][\wØ-ÞÀ-Öß-öø-ÿ]*/))
|
|
212
|
+
return u(e.current(), S) ? t(n, e, "type") : t(n, e, "attribute");
|
|
213
|
+
var r = e.next();
|
|
214
|
+
if (r == "%")
|
|
215
|
+
return e.skipToEnd(), t(n, e, "comment");
|
|
216
|
+
if (r == ":")
|
|
217
|
+
return t(n, e, "colon");
|
|
218
|
+
if (r == "?")
|
|
219
|
+
return e.eatSpace(), e.eatWhile(p), t(n, e, "macro");
|
|
220
|
+
if (r == "#")
|
|
221
|
+
return e.eatSpace(), e.eatWhile(p), t(n, e, "record");
|
|
222
|
+
if (r == "$")
|
|
223
|
+
return e.next() == "\\" && !e.match(q) ? t(n, e, "error") : t(n, e, "number");
|
|
224
|
+
if (r == ".")
|
|
225
|
+
return t(n, e, "dot");
|
|
226
|
+
if (r == "'") {
|
|
227
|
+
if (!(n.in_atom = !h(e))) {
|
|
228
|
+
if (e.match(/\s*\/\s*[0-9]/, !1))
|
|
229
|
+
return e.match(/\s*\/\s*[0-9]/, !0), t(n, e, "fun");
|
|
230
|
+
if (e.match(/\s*\(/, !1) || e.match(/\s*:/, !1))
|
|
231
|
+
return t(n, e, "function");
|
|
232
|
+
}
|
|
233
|
+
return t(n, e, "atom");
|
|
234
|
+
}
|
|
235
|
+
if (r == '"')
|
|
236
|
+
return n.in_string = !v(e), t(n, e, "string");
|
|
237
|
+
if (/[A-Z_Ø-ÞÀ-Ö]/.test(r))
|
|
238
|
+
return e.eatWhile(p), t(n, e, "variable");
|
|
239
|
+
if (/[a-z_ß-öø-ÿ]/.test(r)) {
|
|
240
|
+
if (e.eatWhile(p), e.match(/\s*\/\s*[0-9]/, !1))
|
|
241
|
+
return e.match(/\s*\/\s*[0-9]/, !0), t(n, e, "fun");
|
|
242
|
+
var i = e.current();
|
|
243
|
+
return u(i, x) ? t(n, e, "keyword") : u(i, T) ? t(n, e, "operator") : e.match(/\s*\(/, !1) ? u(i, P) && (_(n).token != ":" || _(n, 2).token == "erlang") ? t(n, e, "builtin") : u(i, m) ? t(n, e, "guard") : t(n, e, "function") : Q(e) == ":" ? i == "erlang" ? t(n, e, "builtin") : t(n, e, "function") : u(i, ["true", "false"]) ? t(n, e, "boolean") : t(n, e, "atom");
|
|
244
|
+
}
|
|
245
|
+
var l = /[0-9]/, o = /[0-9a-zA-Z]/;
|
|
246
|
+
return l.test(r) ? (e.eatWhile(l), e.eat("#") ? e.eatWhile(o) || e.backUp(1) : e.eat(".") && (e.eatWhile(l) ? e.eat(/[eE]/) && (e.eat(/[-+]/) ? e.eatWhile(l) || e.backUp(2) : e.eatWhile(l) || e.backUp(1)) : e.backUp(1)), t(n, e, "number")) : g(e, U, b) ? t(n, e, "open_paren") : g(e, Z, y) ? t(n, e, "close_paren") : k(e, z, E) ? t(n, e, "separator") : k(e, R, A) ? t(n, e, "operator") : t(n, e, null);
|
|
247
|
+
}
|
|
248
|
+
function g(e, n, r) {
|
|
249
|
+
if (e.current().length == 1 && n.test(e.current())) {
|
|
250
|
+
for (e.backUp(1); n.test(e.peek()); )
|
|
251
|
+
if (e.next(), u(e.current(), r))
|
|
252
|
+
return !0;
|
|
253
|
+
e.backUp(e.current().length - 1);
|
|
254
|
+
}
|
|
255
|
+
return !1;
|
|
256
|
+
}
|
|
257
|
+
function k(e, n, r) {
|
|
258
|
+
if (e.current().length == 1 && n.test(e.current())) {
|
|
259
|
+
for (; n.test(e.peek()); )
|
|
260
|
+
e.next();
|
|
261
|
+
for (; 0 < e.current().length; ) {
|
|
262
|
+
if (u(e.current(), r))
|
|
263
|
+
return !0;
|
|
264
|
+
e.backUp(1);
|
|
265
|
+
}
|
|
266
|
+
e.next();
|
|
267
|
+
}
|
|
268
|
+
return !1;
|
|
269
|
+
}
|
|
270
|
+
function v(e) {
|
|
271
|
+
return w(e, '"', "\\");
|
|
272
|
+
}
|
|
273
|
+
function h(e) {
|
|
274
|
+
return w(e, "'", "\\");
|
|
275
|
+
}
|
|
276
|
+
function w(e, n, r) {
|
|
277
|
+
for (; !e.eol(); ) {
|
|
278
|
+
var i = e.next();
|
|
279
|
+
if (i == n)
|
|
280
|
+
return !0;
|
|
281
|
+
i == r && e.next();
|
|
282
|
+
}
|
|
283
|
+
return !1;
|
|
284
|
+
}
|
|
285
|
+
function Q(e) {
|
|
286
|
+
var n = e.match(/^\s*([^\s%])/, !1);
|
|
287
|
+
return n ? n[1] : "";
|
|
288
|
+
}
|
|
289
|
+
function u(e, n) {
|
|
290
|
+
return -1 < n.indexOf(e);
|
|
291
|
+
}
|
|
292
|
+
function t(e, n, r) {
|
|
293
|
+
switch (N(e, D(r, n)), r) {
|
|
294
|
+
case "atom":
|
|
295
|
+
return "atom";
|
|
296
|
+
case "attribute":
|
|
297
|
+
return "attribute";
|
|
298
|
+
case "boolean":
|
|
299
|
+
return "atom";
|
|
300
|
+
case "builtin":
|
|
301
|
+
return "builtin";
|
|
302
|
+
case "close_paren":
|
|
303
|
+
return null;
|
|
304
|
+
case "colon":
|
|
305
|
+
return null;
|
|
306
|
+
case "comment":
|
|
307
|
+
return "comment";
|
|
308
|
+
case "dot":
|
|
309
|
+
return null;
|
|
310
|
+
case "error":
|
|
311
|
+
return "error";
|
|
312
|
+
case "fun":
|
|
313
|
+
return "meta";
|
|
314
|
+
case "function":
|
|
315
|
+
return "tag";
|
|
316
|
+
case "guard":
|
|
317
|
+
return "property";
|
|
318
|
+
case "keyword":
|
|
319
|
+
return "keyword";
|
|
320
|
+
case "macro":
|
|
321
|
+
return "macroName";
|
|
322
|
+
case "number":
|
|
323
|
+
return "number";
|
|
324
|
+
case "open_paren":
|
|
325
|
+
return null;
|
|
326
|
+
case "operator":
|
|
327
|
+
return "operator";
|
|
328
|
+
case "record":
|
|
329
|
+
return "bracket";
|
|
330
|
+
case "separator":
|
|
331
|
+
return null;
|
|
332
|
+
case "string":
|
|
333
|
+
return "string";
|
|
334
|
+
case "type":
|
|
335
|
+
return "def";
|
|
336
|
+
case "variable":
|
|
337
|
+
return "variable";
|
|
338
|
+
default:
|
|
339
|
+
return null;
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
function W(e, n, r, i) {
|
|
343
|
+
return {
|
|
344
|
+
token: e,
|
|
345
|
+
column: n,
|
|
346
|
+
indent: r,
|
|
347
|
+
type: i
|
|
348
|
+
};
|
|
349
|
+
}
|
|
350
|
+
function D(e, n) {
|
|
351
|
+
return W(
|
|
352
|
+
n.current(),
|
|
353
|
+
n.column(),
|
|
354
|
+
n.indentation(),
|
|
355
|
+
e
|
|
356
|
+
);
|
|
357
|
+
}
|
|
358
|
+
function I(e) {
|
|
359
|
+
return W(e, 0, 0, e);
|
|
360
|
+
}
|
|
361
|
+
function _(e, n) {
|
|
362
|
+
var r = e.tokenStack.length, i = n || 1;
|
|
363
|
+
return r < i ? !1 : e.tokenStack[r - i];
|
|
364
|
+
}
|
|
365
|
+
function N(e, n) {
|
|
366
|
+
n.type == "comment" || n.type == "whitespace" || (e.tokenStack = O(e.tokenStack, n), e.tokenStack = $(e.tokenStack));
|
|
367
|
+
}
|
|
368
|
+
function O(e, n) {
|
|
369
|
+
var r = e.length - 1;
|
|
370
|
+
return 0 < r && e[r].type === "record" && n.type === "dot" ? e.pop() : (0 < r && e[r].type === "group" && e.pop(), e.push(n)), e;
|
|
371
|
+
}
|
|
372
|
+
function $(e) {
|
|
373
|
+
if (!e.length)
|
|
374
|
+
return e;
|
|
375
|
+
var n = e.length - 1;
|
|
376
|
+
if (e[n].type === "dot")
|
|
377
|
+
return [];
|
|
378
|
+
if (n > 1 && e[n].type === "fun" && e[n - 1].token === "fun")
|
|
379
|
+
return e.slice(0, n - 1);
|
|
380
|
+
switch (e[n].token) {
|
|
381
|
+
case "}":
|
|
382
|
+
return a(e, { g: ["{"] });
|
|
383
|
+
case "]":
|
|
384
|
+
return a(e, { i: ["["] });
|
|
385
|
+
case ")":
|
|
386
|
+
return a(e, { i: ["("] });
|
|
387
|
+
case ">>":
|
|
388
|
+
return a(e, { i: ["<<"] });
|
|
389
|
+
case "end":
|
|
390
|
+
return a(e, { i: ["begin", "case", "fun", "if", "receive", "try"] });
|
|
391
|
+
case ",":
|
|
392
|
+
return a(e, { e: [
|
|
393
|
+
"begin",
|
|
394
|
+
"try",
|
|
395
|
+
"when",
|
|
396
|
+
"->",
|
|
397
|
+
",",
|
|
398
|
+
"(",
|
|
399
|
+
"[",
|
|
400
|
+
"{",
|
|
401
|
+
"<<"
|
|
402
|
+
] });
|
|
403
|
+
case "->":
|
|
404
|
+
return a(e, {
|
|
405
|
+
r: ["when"],
|
|
406
|
+
m: ["try", "if", "case", "receive"]
|
|
407
|
+
});
|
|
408
|
+
case ";":
|
|
409
|
+
return a(e, { E: ["case", "fun", "if", "receive", "try", "when"] });
|
|
410
|
+
case "catch":
|
|
411
|
+
return a(e, { e: ["try"] });
|
|
412
|
+
case "of":
|
|
413
|
+
return a(e, { e: ["case"] });
|
|
414
|
+
case "after":
|
|
415
|
+
return a(e, { e: ["receive", "try"] });
|
|
416
|
+
default:
|
|
417
|
+
return e;
|
|
418
|
+
}
|
|
419
|
+
}
|
|
420
|
+
function a(e, n) {
|
|
421
|
+
for (var r in n)
|
|
422
|
+
for (var i = e.length - 1, l = n[r], o = i - 1; -1 < o; o--)
|
|
423
|
+
if (u(e[o].token, l)) {
|
|
424
|
+
var c = e.slice(0, o);
|
|
425
|
+
switch (r) {
|
|
426
|
+
case "m":
|
|
427
|
+
return c.concat(e[o]).concat(e[i]);
|
|
428
|
+
case "r":
|
|
429
|
+
return c.concat(e[i]);
|
|
430
|
+
case "i":
|
|
431
|
+
return c;
|
|
432
|
+
case "g":
|
|
433
|
+
return c.concat(I("group"));
|
|
434
|
+
case "E":
|
|
435
|
+
return c.concat(e[o]);
|
|
436
|
+
case "e":
|
|
437
|
+
return c.concat(e[o]);
|
|
438
|
+
}
|
|
439
|
+
}
|
|
440
|
+
return r == "E" ? [] : e;
|
|
441
|
+
}
|
|
442
|
+
function B(e, n, r) {
|
|
443
|
+
var i, l = C(n), o = _(e, 1), c = _(e, 2);
|
|
444
|
+
return e.in_string || e.in_atom ? null : c ? o.token == "when" ? o.column + r.unit : l === "when" && c.type === "function" ? c.indent + r.unit : l === "(" && o.token === "fun" ? o.column + 3 : l === "catch" && (i = s(e, ["try"])) ? i.column : u(l, ["end", "after", "of"]) ? (i = s(e, ["begin", "case", "fun", "if", "receive", "try"]), i ? i.column : null) : u(l, y) ? (i = s(e, b), i ? i.column : null) : u(o.token, [",", "|", "||"]) || u(l, [",", "|", "||"]) ? (i = F(e), i ? i.column + i.token.length : r.unit) : o.token == "->" ? u(c.token, ["receive", "case", "if", "try"]) ? c.column + r.unit + r.unit : c.column + r.unit : u(o.token, b) ? o.column + o.token.length : (i = G(e), f(i) ? i.column + r.unit : 0) : 0;
|
|
445
|
+
}
|
|
446
|
+
function C(e) {
|
|
447
|
+
var n = e.match(/,|[a-z]+|\}|\]|\)|>>|\|+|\(/);
|
|
448
|
+
return f(n) && n.index === 0 ? n[0] : "";
|
|
449
|
+
}
|
|
450
|
+
function F(e) {
|
|
451
|
+
var n = e.tokenStack.slice(0, -1), r = d(n, "type", ["open_paren"]);
|
|
452
|
+
return f(n[r]) ? n[r] : !1;
|
|
453
|
+
}
|
|
454
|
+
function G(e) {
|
|
455
|
+
var n = e.tokenStack, r = d(n, "type", ["open_paren", "separator", "keyword"]), i = d(n, "type", ["operator"]);
|
|
456
|
+
return f(r) && f(i) && r < i ? n[r + 1] : f(r) ? n[r] : !1;
|
|
457
|
+
}
|
|
458
|
+
function s(e, n) {
|
|
459
|
+
var r = e.tokenStack, i = d(r, "token", n);
|
|
460
|
+
return f(r[i]) ? r[i] : !1;
|
|
461
|
+
}
|
|
462
|
+
function d(e, n, r) {
|
|
463
|
+
for (var i = e.length - 1; -1 < i; i--)
|
|
464
|
+
if (u(e[i][n], r))
|
|
465
|
+
return i;
|
|
466
|
+
return !1;
|
|
467
|
+
}
|
|
468
|
+
function f(e) {
|
|
469
|
+
return e !== !1 && e != null;
|
|
470
|
+
}
|
|
471
|
+
const H = {
|
|
472
|
+
name: "erlang",
|
|
473
|
+
startState() {
|
|
474
|
+
return {
|
|
475
|
+
tokenStack: [],
|
|
476
|
+
in_string: !1,
|
|
477
|
+
in_atom: !1
|
|
478
|
+
};
|
|
479
|
+
},
|
|
480
|
+
token: j,
|
|
481
|
+
indent: B,
|
|
482
|
+
languageData: {
|
|
483
|
+
commentTokens: { line: "%" }
|
|
484
|
+
}
|
|
485
|
+
};
|
|
486
|
+
export {
|
|
487
|
+
H as erlang
|
|
488
|
+
};
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { s as e } from "./simple-mode--HIzBxba.js";
|
|
2
|
+
const n = e({
|
|
3
|
+
start: [
|
|
4
|
+
// comments
|
|
5
|
+
{ regex: /#?!.*/, token: "comment" },
|
|
6
|
+
// strings """, multiline --> state
|
|
7
|
+
{ regex: /"""/, token: "string", next: "string3" },
|
|
8
|
+
{ regex: /(STRING:)(\s)/, token: ["keyword", null], next: "string2" },
|
|
9
|
+
{ regex: /\S*?"/, token: "string", next: "string" },
|
|
10
|
+
// numbers: dec, hex, unicode, bin, fractional, complex
|
|
11
|
+
{ regex: /(?:0x[\d,a-f]+)|(?:0o[0-7]+)|(?:0b[0,1]+)|(?:\-?\d+.?\d*)(?=\s)/, token: "number" },
|
|
12
|
+
//{regex: /[+-]?/} //fractional
|
|
13
|
+
// definition: defining word, defined word, etc
|
|
14
|
+
{ regex: /((?:GENERIC)|\:?\:)(\s+)(\S+)(\s+)(\()/, token: ["keyword", null, "def", null, "bracket"], next: "stack" },
|
|
15
|
+
// method definition: defining word, type, defined word, etc
|
|
16
|
+
{ regex: /(M\:)(\s+)(\S+)(\s+)(\S+)/, token: ["keyword", null, "def", null, "tag"] },
|
|
17
|
+
// vocabulary using --> state
|
|
18
|
+
{ regex: /USING\:/, token: "keyword", next: "vocabulary" },
|
|
19
|
+
// vocabulary definition/use
|
|
20
|
+
{ regex: /(USE\:|IN\:)(\s+)(\S+)(?=\s|$)/, token: ["keyword", null, "tag"] },
|
|
21
|
+
// definition: a defining word, defined word
|
|
22
|
+
{ regex: /(\S+\:)(\s+)(\S+)(?=\s|$)/, token: ["keyword", null, "def"] },
|
|
23
|
+
// "keywords", incl. ; t f . [ ] { } defining words
|
|
24
|
+
{ regex: /(?:;|\\|t|f|if|loop|while|until|do|PRIVATE>|<PRIVATE|\.|\S*\[|\]|\S*\{|\})(?=\s|$)/, token: "keyword" },
|
|
25
|
+
// <constructors> and the like
|
|
26
|
+
{ regex: /\S+[\)>\.\*\?]+(?=\s|$)/, token: "builtin" },
|
|
27
|
+
{ regex: /[\)><]+\S+(?=\s|$)/, token: "builtin" },
|
|
28
|
+
// operators
|
|
29
|
+
{ regex: /(?:[\+\-\=\/\*<>])(?=\s|$)/, token: "keyword" },
|
|
30
|
+
// any id (?)
|
|
31
|
+
{ regex: /\S+/, token: "variable" },
|
|
32
|
+
{ regex: /\s+|./, token: null }
|
|
33
|
+
],
|
|
34
|
+
vocabulary: [
|
|
35
|
+
{ regex: /;/, token: "keyword", next: "start" },
|
|
36
|
+
{ regex: /\S+/, token: "tag" },
|
|
37
|
+
{ regex: /\s+|./, token: null }
|
|
38
|
+
],
|
|
39
|
+
string: [
|
|
40
|
+
{ regex: /(?:[^\\]|\\.)*?"/, token: "string", next: "start" },
|
|
41
|
+
{ regex: /.*/, token: "string" }
|
|
42
|
+
],
|
|
43
|
+
string2: [
|
|
44
|
+
{ regex: /^;/, token: "keyword", next: "start" },
|
|
45
|
+
{ regex: /.*/, token: "string" }
|
|
46
|
+
],
|
|
47
|
+
string3: [
|
|
48
|
+
{ regex: /(?:[^\\]|\\.)*?"""/, token: "string", next: "start" },
|
|
49
|
+
{ regex: /.*/, token: "string" }
|
|
50
|
+
],
|
|
51
|
+
stack: [
|
|
52
|
+
{ regex: /\)/, token: "bracket", next: "start" },
|
|
53
|
+
{ regex: /--/, token: "bracket" },
|
|
54
|
+
{ regex: /\S+/, token: "meta" },
|
|
55
|
+
{ regex: /\s+|./, token: null }
|
|
56
|
+
],
|
|
57
|
+
languageData: {
|
|
58
|
+
name: "factor",
|
|
59
|
+
dontIndentStates: ["start", "vocabulary", "string", "string3", "stack"],
|
|
60
|
+
commentTokens: { line: "!" }
|
|
61
|
+
}
|
|
62
|
+
});
|
|
63
|
+
export {
|
|
64
|
+
n as factor
|
|
65
|
+
};
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
var d = {
|
|
2
|
+
term: !0,
|
|
3
|
+
method: !0,
|
|
4
|
+
accu: !0,
|
|
5
|
+
rule: !0,
|
|
6
|
+
then: !0,
|
|
7
|
+
is: !0,
|
|
8
|
+
and: !0,
|
|
9
|
+
or: !0,
|
|
10
|
+
if: !0,
|
|
11
|
+
default: !0
|
|
12
|
+
}, f = {
|
|
13
|
+
var_input: !0,
|
|
14
|
+
var_output: !0,
|
|
15
|
+
fuzzify: !0,
|
|
16
|
+
defuzzify: !0,
|
|
17
|
+
function_block: !0,
|
|
18
|
+
ruleblock: !0
|
|
19
|
+
}, o = {
|
|
20
|
+
end_ruleblock: !0,
|
|
21
|
+
end_defuzzify: !0,
|
|
22
|
+
end_function_block: !0,
|
|
23
|
+
end_fuzzify: !0,
|
|
24
|
+
end_var: !0
|
|
25
|
+
}, p = {
|
|
26
|
+
true: !0,
|
|
27
|
+
false: !0,
|
|
28
|
+
nan: !0,
|
|
29
|
+
real: !0,
|
|
30
|
+
min: !0,
|
|
31
|
+
max: !0,
|
|
32
|
+
cog: !0,
|
|
33
|
+
cogs: !0
|
|
34
|
+
}, l = /[+\-*&^%:=<>!|\/]/;
|
|
35
|
+
function i(e, n) {
|
|
36
|
+
var t = e.next();
|
|
37
|
+
if (/[\d\.]/.test(t))
|
|
38
|
+
return t == "." ? e.match(/^[0-9]+([eE][\-+]?[0-9]+)?/) : t == "0" ? e.match(/^[xX][0-9a-fA-F]+/) || e.match(/^0[0-7]+/) : e.match(/^[0-9]*\.?[0-9]*([eE][\-+]?[0-9]+)?/), "number";
|
|
39
|
+
if (t == "/" || t == "(") {
|
|
40
|
+
if (e.eat("*"))
|
|
41
|
+
return n.tokenize = c, c(e, n);
|
|
42
|
+
if (e.eat("/"))
|
|
43
|
+
return e.skipToEnd(), "comment";
|
|
44
|
+
}
|
|
45
|
+
if (l.test(t))
|
|
46
|
+
return e.eatWhile(l), "operator";
|
|
47
|
+
e.eatWhile(/[\w\$_\xa1-\uffff]/);
|
|
48
|
+
var r = e.current().toLowerCase();
|
|
49
|
+
return d.propertyIsEnumerable(r) || f.propertyIsEnumerable(r) || o.propertyIsEnumerable(r) ? "keyword" : p.propertyIsEnumerable(r) ? "atom" : "variable";
|
|
50
|
+
}
|
|
51
|
+
function c(e, n) {
|
|
52
|
+
for (var t = !1, r; r = e.next(); ) {
|
|
53
|
+
if ((r == "/" || r == ")") && t) {
|
|
54
|
+
n.tokenize = i;
|
|
55
|
+
break;
|
|
56
|
+
}
|
|
57
|
+
t = r == "*";
|
|
58
|
+
}
|
|
59
|
+
return "comment";
|
|
60
|
+
}
|
|
61
|
+
function a(e, n, t, r, u) {
|
|
62
|
+
this.indented = e, this.column = n, this.type = t, this.align = r, this.prev = u;
|
|
63
|
+
}
|
|
64
|
+
function k(e, n, t) {
|
|
65
|
+
return e.context = new a(e.indented, n, t, null, e.context);
|
|
66
|
+
}
|
|
67
|
+
function v(e) {
|
|
68
|
+
if (e.context.prev) {
|
|
69
|
+
var n = e.context.type;
|
|
70
|
+
return n == "end_block" && (e.indented = e.context.indented), e.context = e.context.prev;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
const x = {
|
|
74
|
+
name: "fcl",
|
|
75
|
+
startState: function(e) {
|
|
76
|
+
return {
|
|
77
|
+
tokenize: null,
|
|
78
|
+
context: new a(-e, 0, "top", !1),
|
|
79
|
+
indented: 0,
|
|
80
|
+
startOfLine: !0
|
|
81
|
+
};
|
|
82
|
+
},
|
|
83
|
+
token: function(e, n) {
|
|
84
|
+
var t = n.context;
|
|
85
|
+
if (e.sol() && (t.align == null && (t.align = !1), n.indented = e.indentation(), n.startOfLine = !0), e.eatSpace())
|
|
86
|
+
return null;
|
|
87
|
+
var r = (n.tokenize || i)(e, n);
|
|
88
|
+
if (r == "comment")
|
|
89
|
+
return r;
|
|
90
|
+
t.align == null && (t.align = !0);
|
|
91
|
+
var u = e.current().toLowerCase();
|
|
92
|
+
return f.propertyIsEnumerable(u) ? k(n, e.column(), "end_block") : o.propertyIsEnumerable(u) && v(n), n.startOfLine = !1, r;
|
|
93
|
+
},
|
|
94
|
+
indent: function(e, n, t) {
|
|
95
|
+
if (e.tokenize != i && e.tokenize != null)
|
|
96
|
+
return 0;
|
|
97
|
+
var r = e.context, u = o.propertyIsEnumerable(n);
|
|
98
|
+
return r.align ? r.column + (u ? 0 : 1) : r.indented + (u ? 0 : t.unit);
|
|
99
|
+
},
|
|
100
|
+
languageData: {
|
|
101
|
+
commentTokens: { line: "//", block: { open: "(*", close: "*)" } }
|
|
102
|
+
}
|
|
103
|
+
};
|
|
104
|
+
export {
|
|
105
|
+
x as fcl
|
|
106
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export interface BlockHandleProps {
|
|
2
|
+
show: boolean;
|
|
3
|
+
onAdd: () => void;
|
|
4
|
+
}
|
|
5
|
+
export declare const BlockHandleElement: import("atomico/types/dom").Atomico<BlockHandleProps | (BlockHandleProps & import("atomico/types/component").SyntheticMetaProps<any>), {
|
|
6
|
+
new (): HTMLElement;
|
|
7
|
+
prototype: HTMLElement;
|
|
8
|
+
}>;
|
|
9
|
+
//# sourceMappingURL=component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../../../../src/feature/block-edit/handle/component.ts"],"names":[],"mappings":"AA6BA,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,OAAO,CAAA;IACb,KAAK,EAAE,MAAM,IAAI,CAAA;CAClB;AAmCD,eAAO,MAAM,kBAAkB;;;EAA0B,CAAA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { PluginView } from '@milkdown/prose/state';
|
|
2
|
+
import type { Ctx } from '@milkdown/ctx';
|
|
3
|
+
import type { EditorView } from '@milkdown/prose/view';
|
|
4
|
+
export declare class BlockHandleView implements PluginView {
|
|
5
|
+
#private;
|
|
6
|
+
constructor(ctx: Ctx, view: EditorView);
|
|
7
|
+
update: (view: EditorView) => void;
|
|
8
|
+
destroy: () => void;
|
|
9
|
+
onAdd: () => void;
|
|
10
|
+
}
|
|
11
|
+
export declare function configureBlockHandle(ctx: Ctx): void;
|
|
12
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/feature/block-edit/handle/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAA;AAGvD,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,eAAe,CAAA;AACxC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AAQtD,qBAAa,eAAgB,YAAW,UAAU;;gBAKpC,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,UAAU;IAuBtC,MAAM,SAAU,UAAU,UAEzB;IAED,OAAO,aAGN;IAED,KAAK,aAsBJ;CACF;AAGD,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,GAAG,QAI5C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/feature/block-edit/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAA;AAM9C,eAAO,MAAM,aAAa,EAAE,aAQ3B,CAAA"}
|