@muze-nl/simplystore 0.3.6 → 0.4.1

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.
Files changed (353) hide show
  1. package/package.json +2 -2
  2. package/src/commands.mjs +2 -2
  3. package/src/server.mjs +68 -61
  4. package/src/share.mjs +22 -39
  5. package/.eslintrc.cjs +0 -15
  6. package/test/produce.mjs +0 -79
  7. package/test/share.mjs +0 -18
  8. package/test/test.jsontag +0 -20
  9. package/www/assets/css/style.css +0 -2296
  10. package/www/assets/feather-sprite.svg +0 -1
  11. package/www/assets/img/simplystore-narrow-white.svg +0 -138
  12. package/www/assets/img/simplystore-narrow.svg +0 -138
  13. package/www/assets/img/simplystore-white.svg +0 -153
  14. package/www/assets/img/simplystore.svg +0 -153
  15. package/www/codemirror/AUTHORS +0 -979
  16. package/www/codemirror/CHANGELOG.md +0 -2208
  17. package/www/codemirror/CONTRIBUTING.md +0 -92
  18. package/www/codemirror/LICENSE +0 -21
  19. package/www/codemirror/README.md +0 -47
  20. package/www/codemirror/addon/comment/comment.js +0 -211
  21. package/www/codemirror/addon/comment/continuecomment.js +0 -114
  22. package/www/codemirror/addon/dialog/dialog.css +0 -32
  23. package/www/codemirror/addon/dialog/dialog.js +0 -163
  24. package/www/codemirror/addon/display/autorefresh.js +0 -47
  25. package/www/codemirror/addon/display/fullscreen.css +0 -6
  26. package/www/codemirror/addon/display/fullscreen.js +0 -41
  27. package/www/codemirror/addon/display/panel.js +0 -133
  28. package/www/codemirror/addon/display/placeholder.js +0 -78
  29. package/www/codemirror/addon/display/rulers.js +0 -51
  30. package/www/codemirror/addon/edit/closebrackets.js +0 -201
  31. package/www/codemirror/addon/edit/closetag.js +0 -185
  32. package/www/codemirror/addon/edit/continuelist.js +0 -101
  33. package/www/codemirror/addon/edit/matchbrackets.js +0 -160
  34. package/www/codemirror/addon/edit/matchtags.js +0 -66
  35. package/www/codemirror/addon/edit/trailingspace.js +0 -27
  36. package/www/codemirror/addon/fold/brace-fold.js +0 -119
  37. package/www/codemirror/addon/fold/comment-fold.js +0 -59
  38. package/www/codemirror/addon/fold/foldcode.js +0 -159
  39. package/www/codemirror/addon/fold/foldgutter.css +0 -20
  40. package/www/codemirror/addon/fold/foldgutter.js +0 -169
  41. package/www/codemirror/addon/fold/indent-fold.js +0 -48
  42. package/www/codemirror/addon/fold/markdown-fold.js +0 -49
  43. package/www/codemirror/addon/fold/xml-fold.js +0 -184
  44. package/www/codemirror/addon/hint/anyword-hint.js +0 -41
  45. package/www/codemirror/addon/hint/css-hint.js +0 -66
  46. package/www/codemirror/addon/hint/html-hint.js +0 -351
  47. package/www/codemirror/addon/hint/javascript-hint.js +0 -162
  48. package/www/codemirror/addon/hint/show-hint.css +0 -37
  49. package/www/codemirror/addon/hint/show-hint.js +0 -523
  50. package/www/codemirror/addon/hint/sql-hint.js +0 -304
  51. package/www/codemirror/addon/hint/xml-hint.js +0 -132
  52. package/www/codemirror/addon/lint/coffeescript-lint.js +0 -47
  53. package/www/codemirror/addon/lint/css-lint.js +0 -40
  54. package/www/codemirror/addon/lint/html-lint.js +0 -59
  55. package/www/codemirror/addon/lint/javascript-lint.js +0 -65
  56. package/www/codemirror/addon/lint/json-lint.js +0 -40
  57. package/www/codemirror/addon/lint/lint.css +0 -79
  58. package/www/codemirror/addon/lint/lint.js +0 -291
  59. package/www/codemirror/addon/lint/yaml-lint.js +0 -41
  60. package/www/codemirror/addon/merge/merge.css +0 -119
  61. package/www/codemirror/addon/merge/merge.js +0 -1018
  62. package/www/codemirror/addon/mode/loadmode.js +0 -66
  63. package/www/codemirror/addon/mode/multiplex.js +0 -136
  64. package/www/codemirror/addon/mode/multiplex_test.js +0 -49
  65. package/www/codemirror/addon/mode/overlay.js +0 -90
  66. package/www/codemirror/addon/mode/simple.js +0 -216
  67. package/www/codemirror/addon/runmode/colorize.js +0 -40
  68. package/www/codemirror/addon/runmode/runmode-standalone.js +0 -334
  69. package/www/codemirror/addon/runmode/runmode.js +0 -76
  70. package/www/codemirror/addon/runmode/runmode.node.js +0 -329
  71. package/www/codemirror/addon/scroll/annotatescrollbar.js +0 -128
  72. package/www/codemirror/addon/scroll/scrollpastend.js +0 -48
  73. package/www/codemirror/addon/scroll/simplescrollbars.css +0 -66
  74. package/www/codemirror/addon/scroll/simplescrollbars.js +0 -152
  75. package/www/codemirror/addon/search/jump-to-line.js +0 -53
  76. package/www/codemirror/addon/search/match-highlighter.js +0 -167
  77. package/www/codemirror/addon/search/matchesonscrollbar.css +0 -8
  78. package/www/codemirror/addon/search/matchesonscrollbar.js +0 -97
  79. package/www/codemirror/addon/search/search.js +0 -295
  80. package/www/codemirror/addon/search/searchcursor.js +0 -305
  81. package/www/codemirror/addon/selection/active-line.js +0 -72
  82. package/www/codemirror/addon/selection/mark-selection.js +0 -119
  83. package/www/codemirror/addon/selection/selection-pointer.js +0 -98
  84. package/www/codemirror/addon/tern/tern.css +0 -87
  85. package/www/codemirror/addon/tern/tern.js +0 -756
  86. package/www/codemirror/addon/tern/worker.js +0 -44
  87. package/www/codemirror/addon/wrap/hardwrap.js +0 -160
  88. package/www/codemirror/bin/source-highlight +0 -48
  89. package/www/codemirror/keymap/emacs.js +0 -545
  90. package/www/codemirror/keymap/sublime.js +0 -720
  91. package/www/codemirror/keymap/vim.js +0 -5978
  92. package/www/codemirror/lib/codemirror.css +0 -344
  93. package/www/codemirror/lib/codemirror.js +0 -9874
  94. package/www/codemirror/mode/apl/apl.js +0 -174
  95. package/www/codemirror/mode/asciiarmor/asciiarmor.js +0 -74
  96. package/www/codemirror/mode/asn.1/asn.1.js +0 -204
  97. package/www/codemirror/mode/asterisk/asterisk.js +0 -220
  98. package/www/codemirror/mode/brainfuck/brainfuck.js +0 -85
  99. package/www/codemirror/mode/clike/clike.js +0 -940
  100. package/www/codemirror/mode/clojure/clojure.js +0 -292
  101. package/www/codemirror/mode/cmake/cmake.js +0 -97
  102. package/www/codemirror/mode/cobol/cobol.js +0 -255
  103. package/www/codemirror/mode/coffeescript/coffeescript.js +0 -359
  104. package/www/codemirror/mode/commonlisp/commonlisp.js +0 -125
  105. package/www/codemirror/mode/crystal/crystal.js +0 -433
  106. package/www/codemirror/mode/css/css.js +0 -862
  107. package/www/codemirror/mode/cypher/cypher.js +0 -152
  108. package/www/codemirror/mode/d/d.js +0 -223
  109. package/www/codemirror/mode/dart/dart.js +0 -166
  110. package/www/codemirror/mode/diff/diff.js +0 -47
  111. package/www/codemirror/mode/django/django.js +0 -356
  112. package/www/codemirror/mode/dockerfile/dockerfile.js +0 -211
  113. package/www/codemirror/mode/dtd/dtd.js +0 -142
  114. package/www/codemirror/mode/dylan/dylan.js +0 -352
  115. package/www/codemirror/mode/ebnf/ebnf.js +0 -195
  116. package/www/codemirror/mode/ecl/ecl.js +0 -206
  117. package/www/codemirror/mode/eiffel/eiffel.js +0 -160
  118. package/www/codemirror/mode/elm/elm.js +0 -245
  119. package/www/codemirror/mode/erlang/erlang.js +0 -619
  120. package/www/codemirror/mode/factor/factor.js +0 -85
  121. package/www/codemirror/mode/fcl/fcl.js +0 -173
  122. package/www/codemirror/mode/forth/forth.js +0 -180
  123. package/www/codemirror/mode/fortran/fortran.js +0 -188
  124. package/www/codemirror/mode/gas/gas.js +0 -353
  125. package/www/codemirror/mode/gfm/gfm.js +0 -129
  126. package/www/codemirror/mode/gherkin/gherkin.js +0 -178
  127. package/www/codemirror/mode/go/go.js +0 -187
  128. package/www/codemirror/mode/groovy/groovy.js +0 -247
  129. package/www/codemirror/mode/haml/haml.js +0 -161
  130. package/www/codemirror/mode/handlebars/handlebars.js +0 -70
  131. package/www/codemirror/mode/haskell/haskell.js +0 -268
  132. package/www/codemirror/mode/haskell-literate/haskell-literate.js +0 -43
  133. package/www/codemirror/mode/haxe/haxe.js +0 -515
  134. package/www/codemirror/mode/htmlembedded/htmlembedded.js +0 -37
  135. package/www/codemirror/mode/htmlmixed/htmlmixed.js +0 -153
  136. package/www/codemirror/mode/http/http.js +0 -113
  137. package/www/codemirror/mode/idl/idl.js +0 -290
  138. package/www/codemirror/mode/javascript/javascript.js +0 -960
  139. package/www/codemirror/mode/jinja2/jinja2.js +0 -193
  140. package/www/codemirror/mode/jsx/jsx.js +0 -148
  141. package/www/codemirror/mode/julia/julia.js +0 -390
  142. package/www/codemirror/mode/livescript/livescript.js +0 -280
  143. package/www/codemirror/mode/lua/lua.js +0 -160
  144. package/www/codemirror/mode/markdown/markdown.js +0 -886
  145. package/www/codemirror/mode/mathematica/mathematica.js +0 -176
  146. package/www/codemirror/mode/mbox/mbox.js +0 -129
  147. package/www/codemirror/mode/meta.js +0 -221
  148. package/www/codemirror/mode/mirc/mirc.js +0 -193
  149. package/www/codemirror/mode/mllike/mllike.js +0 -359
  150. package/www/codemirror/mode/modelica/modelica.js +0 -245
  151. package/www/codemirror/mode/mscgen/mscgen.js +0 -175
  152. package/www/codemirror/mode/mumps/mumps.js +0 -148
  153. package/www/codemirror/mode/nginx/nginx.js +0 -178
  154. package/www/codemirror/mode/nsis/nsis.js +0 -95
  155. package/www/codemirror/mode/ntriples/ntriples.js +0 -195
  156. package/www/codemirror/mode/octave/octave.js +0 -139
  157. package/www/codemirror/mode/oz/oz.js +0 -252
  158. package/www/codemirror/mode/pascal/pascal.js +0 -136
  159. package/www/codemirror/mode/pegjs/pegjs.js +0 -111
  160. package/www/codemirror/mode/perl/perl.js +0 -836
  161. package/www/codemirror/mode/php/php.js +0 -234
  162. package/www/codemirror/mode/pig/pig.js +0 -178
  163. package/www/codemirror/mode/powershell/powershell.js +0 -398
  164. package/www/codemirror/mode/properties/properties.js +0 -78
  165. package/www/codemirror/mode/protobuf/protobuf.js +0 -72
  166. package/www/codemirror/mode/pug/pug.js +0 -591
  167. package/www/codemirror/mode/puppet/puppet.js +0 -220
  168. package/www/codemirror/mode/python/python.js +0 -402
  169. package/www/codemirror/mode/q/q.js +0 -139
  170. package/www/codemirror/mode/r/r.js +0 -190
  171. package/www/codemirror/mode/rpm/changes/index.html +0 -66
  172. package/www/codemirror/mode/rpm/rpm.js +0 -109
  173. package/www/codemirror/mode/rst/rst.js +0 -557
  174. package/www/codemirror/mode/ruby/ruby.js +0 -303
  175. package/www/codemirror/mode/rust/rust.js +0 -72
  176. package/www/codemirror/mode/sas/sas.js +0 -303
  177. package/www/codemirror/mode/sass/sass.js +0 -459
  178. package/www/codemirror/mode/scheme/scheme.js +0 -284
  179. package/www/codemirror/mode/shell/shell.js +0 -168
  180. package/www/codemirror/mode/sieve/sieve.js +0 -193
  181. package/www/codemirror/mode/slim/slim.js +0 -575
  182. package/www/codemirror/mode/smalltalk/smalltalk.js +0 -168
  183. package/www/codemirror/mode/smarty/smarty.js +0 -225
  184. package/www/codemirror/mode/solr/solr.js +0 -104
  185. package/www/codemirror/mode/soy/soy.js +0 -665
  186. package/www/codemirror/mode/sparql/sparql.js +0 -184
  187. package/www/codemirror/mode/spreadsheet/spreadsheet.js +0 -112
  188. package/www/codemirror/mode/sql/sql.js +0 -525
  189. package/www/codemirror/mode/stex/stex.js +0 -264
  190. package/www/codemirror/mode/stylus/stylus.js +0 -775
  191. package/www/codemirror/mode/swift/swift.js +0 -221
  192. package/www/codemirror/mode/tcl/tcl.js +0 -140
  193. package/www/codemirror/mode/textile/textile.js +0 -469
  194. package/www/codemirror/mode/tiddlywiki/tiddlywiki.css +0 -14
  195. package/www/codemirror/mode/tiddlywiki/tiddlywiki.js +0 -308
  196. package/www/codemirror/mode/tiki/tiki.css +0 -26
  197. package/www/codemirror/mode/tiki/tiki.js +0 -312
  198. package/www/codemirror/mode/toml/toml.js +0 -88
  199. package/www/codemirror/mode/tornado/tornado.js +0 -68
  200. package/www/codemirror/mode/troff/troff.js +0 -84
  201. package/www/codemirror/mode/ttcn/ttcn.js +0 -283
  202. package/www/codemirror/mode/ttcn-cfg/ttcn-cfg.js +0 -214
  203. package/www/codemirror/mode/turtle/turtle.js +0 -162
  204. package/www/codemirror/mode/twig/twig.js +0 -141
  205. package/www/codemirror/mode/vb/vb.js +0 -275
  206. package/www/codemirror/mode/vbscript/vbscript.js +0 -350
  207. package/www/codemirror/mode/velocity/velocity.js +0 -202
  208. package/www/codemirror/mode/verilog/verilog.js +0 -781
  209. package/www/codemirror/mode/vhdl/vhdl.js +0 -189
  210. package/www/codemirror/mode/vue/vue.js +0 -77
  211. package/www/codemirror/mode/wast/wast.js +0 -132
  212. package/www/codemirror/mode/webidl/webidl.js +0 -195
  213. package/www/codemirror/mode/xml/xml.js +0 -417
  214. package/www/codemirror/mode/xquery/xquery.js +0 -448
  215. package/www/codemirror/mode/yacas/yacas.js +0 -204
  216. package/www/codemirror/mode/yaml/yaml.js +0 -120
  217. package/www/codemirror/mode/yaml-frontmatter/yaml-frontmatter.js +0 -72
  218. package/www/codemirror/mode/z80/z80.js +0 -116
  219. package/www/codemirror/package.json +0 -52
  220. package/www/codemirror/rollup.config.js +0 -52
  221. package/www/codemirror/src/addon/runmode/codemirror-standalone.js +0 -24
  222. package/www/codemirror/src/addon/runmode/codemirror.node.js +0 -21
  223. package/www/codemirror/src/addon/runmode/runmode-standalone.js +0 -2
  224. package/www/codemirror/src/addon/runmode/runmode.node.js +0 -2
  225. package/www/codemirror/src/codemirror.js +0 -3
  226. package/www/codemirror/src/display/Display.js +0 -116
  227. package/www/codemirror/src/display/focus.js +0 -50
  228. package/www/codemirror/src/display/gutters.js +0 -44
  229. package/www/codemirror/src/display/highlight_worker.js +0 -55
  230. package/www/codemirror/src/display/line_numbers.js +0 -48
  231. package/www/codemirror/src/display/mode_state.js +0 -22
  232. package/www/codemirror/src/display/operations.js +0 -206
  233. package/www/codemirror/src/display/scroll_events.js +0 -132
  234. package/www/codemirror/src/display/scrollbars.js +0 -194
  235. package/www/codemirror/src/display/scrolling.js +0 -186
  236. package/www/codemirror/src/display/selection.js +0 -173
  237. package/www/codemirror/src/display/update_display.js +0 -267
  238. package/www/codemirror/src/display/update_line.js +0 -189
  239. package/www/codemirror/src/display/update_lines.js +0 -82
  240. package/www/codemirror/src/display/view_tracking.js +0 -153
  241. package/www/codemirror/src/edit/CodeMirror.js +0 -217
  242. package/www/codemirror/src/edit/commands.js +0 -178
  243. package/www/codemirror/src/edit/deleteNearSelection.js +0 -30
  244. package/www/codemirror/src/edit/drop_events.js +0 -130
  245. package/www/codemirror/src/edit/fromTextArea.js +0 -61
  246. package/www/codemirror/src/edit/global_events.js +0 -45
  247. package/www/codemirror/src/edit/key_events.js +0 -163
  248. package/www/codemirror/src/edit/legacy.js +0 -62
  249. package/www/codemirror/src/edit/main.js +0 -69
  250. package/www/codemirror/src/edit/methods.js +0 -555
  251. package/www/codemirror/src/edit/mouse_events.js +0 -417
  252. package/www/codemirror/src/edit/options.js +0 -194
  253. package/www/codemirror/src/edit/utils.js +0 -7
  254. package/www/codemirror/src/input/ContentEditableInput.js +0 -546
  255. package/www/codemirror/src/input/TextareaInput.js +0 -380
  256. package/www/codemirror/src/input/indent.js +0 -71
  257. package/www/codemirror/src/input/input.js +0 -134
  258. package/www/codemirror/src/input/keymap.js +0 -147
  259. package/www/codemirror/src/input/keynames.js +0 -17
  260. package/www/codemirror/src/input/movement.js +0 -111
  261. package/www/codemirror/src/line/highlight.js +0 -284
  262. package/www/codemirror/src/line/line_data.js +0 -349
  263. package/www/codemirror/src/line/pos.js +0 -40
  264. package/www/codemirror/src/line/saw_special_spans.js +0 -10
  265. package/www/codemirror/src/line/spans.js +0 -390
  266. package/www/codemirror/src/line/utils_line.js +0 -85
  267. package/www/codemirror/src/measurement/position_measurement.js +0 -702
  268. package/www/codemirror/src/measurement/widgets.js +0 -26
  269. package/www/codemirror/src/model/Doc.js +0 -436
  270. package/www/codemirror/src/model/change_measurement.js +0 -61
  271. package/www/codemirror/src/model/changes.js +0 -339
  272. package/www/codemirror/src/model/chunk.js +0 -167
  273. package/www/codemirror/src/model/document_data.js +0 -112
  274. package/www/codemirror/src/model/history.js +0 -228
  275. package/www/codemirror/src/model/line_widget.js +0 -78
  276. package/www/codemirror/src/model/mark_text.js +0 -293
  277. package/www/codemirror/src/model/selection.js +0 -84
  278. package/www/codemirror/src/model/selection_updates.js +0 -216
  279. package/www/codemirror/src/modes.js +0 -96
  280. package/www/codemirror/src/util/StringStream.js +0 -90
  281. package/www/codemirror/src/util/bidi.js +0 -215
  282. package/www/codemirror/src/util/browser.js +0 -34
  283. package/www/codemirror/src/util/dom.js +0 -101
  284. package/www/codemirror/src/util/event.js +0 -103
  285. package/www/codemirror/src/util/feature_detection.js +0 -84
  286. package/www/codemirror/src/util/misc.js +0 -168
  287. package/www/codemirror/src/util/operation_group.js +0 -72
  288. package/www/codemirror/theme/3024-day.css +0 -41
  289. package/www/codemirror/theme/3024-night.css +0 -39
  290. package/www/codemirror/theme/abbott.css +0 -268
  291. package/www/codemirror/theme/abcdef.css +0 -32
  292. package/www/codemirror/theme/ambiance-mobile.css +0 -5
  293. package/www/codemirror/theme/ambiance.css +0 -74
  294. package/www/codemirror/theme/ayu-dark.css +0 -44
  295. package/www/codemirror/theme/ayu-mirage.css +0 -45
  296. package/www/codemirror/theme/base16-dark.css +0 -40
  297. package/www/codemirror/theme/base16-light.css +0 -38
  298. package/www/codemirror/theme/bespin.css +0 -34
  299. package/www/codemirror/theme/blackboard.css +0 -32
  300. package/www/codemirror/theme/cobalt.css +0 -25
  301. package/www/codemirror/theme/colorforth.css +0 -33
  302. package/www/codemirror/theme/darcula.css +0 -53
  303. package/www/codemirror/theme/dracula.css +0 -40
  304. package/www/codemirror/theme/duotone-dark.css +0 -35
  305. package/www/codemirror/theme/duotone-light.css +0 -36
  306. package/www/codemirror/theme/eclipse.css +0 -23
  307. package/www/codemirror/theme/elegant.css +0 -13
  308. package/www/codemirror/theme/erlang-dark.css +0 -34
  309. package/www/codemirror/theme/gruvbox-dark.css +0 -39
  310. package/www/codemirror/theme/hopscotch.css +0 -34
  311. package/www/codemirror/theme/icecoder.css +0 -43
  312. package/www/codemirror/theme/idea.css +0 -42
  313. package/www/codemirror/theme/isotope.css +0 -34
  314. package/www/codemirror/theme/juejin.css +0 -30
  315. package/www/codemirror/theme/lesser-dark.css +0 -47
  316. package/www/codemirror/theme/liquibyte.css +0 -95
  317. package/www/codemirror/theme/lucario.css +0 -37
  318. package/www/codemirror/theme/material-darker.css +0 -135
  319. package/www/codemirror/theme/material-ocean.css +0 -141
  320. package/www/codemirror/theme/material-palenight.css +0 -141
  321. package/www/codemirror/theme/material.css +0 -141
  322. package/www/codemirror/theme/mbo.css +0 -37
  323. package/www/codemirror/theme/mdn-like.css +0 -46
  324. package/www/codemirror/theme/midnight.css +0 -39
  325. package/www/codemirror/theme/monokai.css +0 -41
  326. package/www/codemirror/theme/moxer.css +0 -143
  327. package/www/codemirror/theme/neat.css +0 -12
  328. package/www/codemirror/theme/neo.css +0 -43
  329. package/www/codemirror/theme/night.css +0 -27
  330. package/www/codemirror/theme/nord.css +0 -42
  331. package/www/codemirror/theme/oceanic-next.css +0 -46
  332. package/www/codemirror/theme/panda-syntax.css +0 -85
  333. package/www/codemirror/theme/paraiso-dark.css +0 -38
  334. package/www/codemirror/theme/paraiso-light.css +0 -38
  335. package/www/codemirror/theme/pastel-on-dark.css +0 -52
  336. package/www/codemirror/theme/railscasts.css +0 -34
  337. package/www/codemirror/theme/rubyblue.css +0 -25
  338. package/www/codemirror/theme/seti.css +0 -44
  339. package/www/codemirror/theme/shadowfox.css +0 -52
  340. package/www/codemirror/theme/solarized.css +0 -165
  341. package/www/codemirror/theme/ssms.css +0 -16
  342. package/www/codemirror/theme/the-matrix.css +0 -30
  343. package/www/codemirror/theme/tomorrow-night-bright.css +0 -35
  344. package/www/codemirror/theme/tomorrow-night-eighties.css +0 -38
  345. package/www/codemirror/theme/ttcn.css +0 -64
  346. package/www/codemirror/theme/twilight.css +0 -32
  347. package/www/codemirror/theme/vibrant-ink.css +0 -34
  348. package/www/codemirror/theme/xq-dark.css +0 -53
  349. package/www/codemirror/theme/xq-light.css +0 -43
  350. package/www/codemirror/theme/yeti.css +0 -44
  351. package/www/codemirror/theme/yonce.css +0 -59
  352. package/www/codemirror/theme/zenburn.css +0 -37
  353. package/www/index.html +0 -359
@@ -1,292 +0,0 @@
1
- // CodeMirror, copyright (c) by Marijn Haverbeke and others
2
- // Distributed under an MIT license: https://codemirror.net/5/LICENSE
3
-
4
- (function(mod) {
5
- if (typeof exports === "object" && typeof module === "object") // CommonJS
6
- mod(require("../../lib/codemirror"));
7
- else if (typeof define === "function" && define.amd) // AMD
8
- define(["../../lib/codemirror"], mod);
9
- else // Plain browser env
10
- mod(CodeMirror);
11
- })(function(CodeMirror) {
12
- "use strict";
13
-
14
- CodeMirror.defineMode("clojure", function (options) {
15
- var atoms = ["false", "nil", "true"];
16
- var specialForms = [".", "catch", "def", "do", "if", "monitor-enter",
17
- "monitor-exit", "new", "quote", "recur", "set!", "throw", "try", "var"];
18
- var coreSymbols = ["*", "*'", "*1", "*2", "*3", "*agent*",
19
- "*allow-unresolved-vars*", "*assert*", "*clojure-version*",
20
- "*command-line-args*", "*compile-files*", "*compile-path*",
21
- "*compiler-options*", "*data-readers*", "*default-data-reader-fn*", "*e",
22
- "*err*", "*file*", "*flush-on-newline*", "*fn-loader*", "*in*",
23
- "*math-context*", "*ns*", "*out*", "*print-dup*", "*print-length*",
24
- "*print-level*", "*print-meta*", "*print-namespace-maps*",
25
- "*print-readably*", "*read-eval*", "*reader-resolver*", "*source-path*",
26
- "*suppress-read*", "*unchecked-math*", "*use-context-classloader*",
27
- "*verbose-defrecords*", "*warn-on-reflection*", "+", "+'", "-", "-'",
28
- "->", "->>", "->ArrayChunk", "->Eduction", "->Vec", "->VecNode",
29
- "->VecSeq", "-cache-protocol-fn", "-reset-methods", "..", "/", "<", "<=",
30
- "=", "==", ">", ">=", "EMPTY-NODE", "Inst", "StackTraceElement->vec",
31
- "Throwable->map", "accessor", "aclone", "add-classpath", "add-watch",
32
- "agent", "agent-error", "agent-errors", "aget", "alength", "alias",
33
- "all-ns", "alter", "alter-meta!", "alter-var-root", "amap", "ancestors",
34
- "and", "any?", "apply", "areduce", "array-map", "as->", "aset",
35
- "aset-boolean", "aset-byte", "aset-char", "aset-double", "aset-float",
36
- "aset-int", "aset-long", "aset-short", "assert", "assoc", "assoc!",
37
- "assoc-in", "associative?", "atom", "await", "await-for", "await1",
38
- "bases", "bean", "bigdec", "bigint", "biginteger", "binding", "bit-and",
39
- "bit-and-not", "bit-clear", "bit-flip", "bit-not", "bit-or", "bit-set",
40
- "bit-shift-left", "bit-shift-right", "bit-test", "bit-xor", "boolean",
41
- "boolean-array", "boolean?", "booleans", "bound-fn", "bound-fn*",
42
- "bound?", "bounded-count", "butlast", "byte", "byte-array", "bytes",
43
- "bytes?", "case", "cast", "cat", "char", "char-array",
44
- "char-escape-string", "char-name-string", "char?", "chars", "chunk",
45
- "chunk-append", "chunk-buffer", "chunk-cons", "chunk-first", "chunk-next",
46
- "chunk-rest", "chunked-seq?", "class", "class?", "clear-agent-errors",
47
- "clojure-version", "coll?", "comment", "commute", "comp", "comparator",
48
- "compare", "compare-and-set!", "compile", "complement", "completing",
49
- "concat", "cond", "cond->", "cond->>", "condp", "conj", "conj!", "cons",
50
- "constantly", "construct-proxy", "contains?", "count", "counted?",
51
- "create-ns", "create-struct", "cycle", "dec", "dec'", "decimal?",
52
- "declare", "dedupe", "default-data-readers", "definline", "definterface",
53
- "defmacro", "defmethod", "defmulti", "defn", "defn-", "defonce",
54
- "defprotocol", "defrecord", "defstruct", "deftype", "delay", "delay?",
55
- "deliver", "denominator", "deref", "derive", "descendants", "destructure",
56
- "disj", "disj!", "dissoc", "dissoc!", "distinct", "distinct?", "doall",
57
- "dorun", "doseq", "dosync", "dotimes", "doto", "double", "double-array",
58
- "double?", "doubles", "drop", "drop-last", "drop-while", "eduction",
59
- "empty", "empty?", "ensure", "ensure-reduced", "enumeration-seq",
60
- "error-handler", "error-mode", "eval", "even?", "every-pred", "every?",
61
- "ex-data", "ex-info", "extend", "extend-protocol", "extend-type",
62
- "extenders", "extends?", "false?", "ffirst", "file-seq", "filter",
63
- "filterv", "find", "find-keyword", "find-ns", "find-protocol-impl",
64
- "find-protocol-method", "find-var", "first", "flatten", "float",
65
- "float-array", "float?", "floats", "flush", "fn", "fn?", "fnext", "fnil",
66
- "for", "force", "format", "frequencies", "future", "future-call",
67
- "future-cancel", "future-cancelled?", "future-done?", "future?",
68
- "gen-class", "gen-interface", "gensym", "get", "get-in", "get-method",
69
- "get-proxy-class", "get-thread-bindings", "get-validator", "group-by",
70
- "halt-when", "hash", "hash-combine", "hash-map", "hash-ordered-coll",
71
- "hash-set", "hash-unordered-coll", "ident?", "identical?", "identity",
72
- "if-let", "if-not", "if-some", "ifn?", "import", "in-ns", "inc", "inc'",
73
- "indexed?", "init-proxy", "inst-ms", "inst-ms*", "inst?", "instance?",
74
- "int", "int-array", "int?", "integer?", "interleave", "intern",
75
- "interpose", "into", "into-array", "ints", "io!", "isa?", "iterate",
76
- "iterator-seq", "juxt", "keep", "keep-indexed", "key", "keys", "keyword",
77
- "keyword?", "last", "lazy-cat", "lazy-seq", "let", "letfn", "line-seq",
78
- "list", "list*", "list?", "load", "load-file", "load-reader",
79
- "load-string", "loaded-libs", "locking", "long", "long-array", "longs",
80
- "loop", "macroexpand", "macroexpand-1", "make-array", "make-hierarchy",
81
- "map", "map-entry?", "map-indexed", "map?", "mapcat", "mapv", "max",
82
- "max-key", "memfn", "memoize", "merge", "merge-with", "meta",
83
- "method-sig", "methods", "min", "min-key", "mix-collection-hash", "mod",
84
- "munge", "name", "namespace", "namespace-munge", "nat-int?", "neg-int?",
85
- "neg?", "newline", "next", "nfirst", "nil?", "nnext", "not", "not-any?",
86
- "not-empty", "not-every?", "not=", "ns", "ns-aliases", "ns-imports",
87
- "ns-interns", "ns-map", "ns-name", "ns-publics", "ns-refers",
88
- "ns-resolve", "ns-unalias", "ns-unmap", "nth", "nthnext", "nthrest",
89
- "num", "number?", "numerator", "object-array", "odd?", "or", "parents",
90
- "partial", "partition", "partition-all", "partition-by", "pcalls", "peek",
91
- "persistent!", "pmap", "pop", "pop!", "pop-thread-bindings", "pos-int?",
92
- "pos?", "pr", "pr-str", "prefer-method", "prefers",
93
- "primitives-classnames", "print", "print-ctor", "print-dup",
94
- "print-method", "print-simple", "print-str", "printf", "println",
95
- "println-str", "prn", "prn-str", "promise", "proxy",
96
- "proxy-call-with-super", "proxy-mappings", "proxy-name", "proxy-super",
97
- "push-thread-bindings", "pvalues", "qualified-ident?",
98
- "qualified-keyword?", "qualified-symbol?", "quot", "rand", "rand-int",
99
- "rand-nth", "random-sample", "range", "ratio?", "rational?",
100
- "rationalize", "re-find", "re-groups", "re-matcher", "re-matches",
101
- "re-pattern", "re-seq", "read", "read-line", "read-string",
102
- "reader-conditional", "reader-conditional?", "realized?", "record?",
103
- "reduce", "reduce-kv", "reduced", "reduced?", "reductions", "ref",
104
- "ref-history-count", "ref-max-history", "ref-min-history", "ref-set",
105
- "refer", "refer-clojure", "reify", "release-pending-sends", "rem",
106
- "remove", "remove-all-methods", "remove-method", "remove-ns",
107
- "remove-watch", "repeat", "repeatedly", "replace", "replicate", "require",
108
- "reset!", "reset-meta!", "reset-vals!", "resolve", "rest",
109
- "restart-agent", "resultset-seq", "reverse", "reversible?", "rseq",
110
- "rsubseq", "run!", "satisfies?", "second", "select-keys", "send",
111
- "send-off", "send-via", "seq", "seq?", "seqable?", "seque", "sequence",
112
- "sequential?", "set", "set-agent-send-executor!",
113
- "set-agent-send-off-executor!", "set-error-handler!", "set-error-mode!",
114
- "set-validator!", "set?", "short", "short-array", "shorts", "shuffle",
115
- "shutdown-agents", "simple-ident?", "simple-keyword?", "simple-symbol?",
116
- "slurp", "some", "some->", "some->>", "some-fn", "some?", "sort",
117
- "sort-by", "sorted-map", "sorted-map-by", "sorted-set", "sorted-set-by",
118
- "sorted?", "special-symbol?", "spit", "split-at", "split-with", "str",
119
- "string?", "struct", "struct-map", "subs", "subseq", "subvec", "supers",
120
- "swap!", "swap-vals!", "symbol", "symbol?", "sync", "tagged-literal",
121
- "tagged-literal?", "take", "take-last", "take-nth", "take-while", "test",
122
- "the-ns", "thread-bound?", "time", "to-array", "to-array-2d",
123
- "trampoline", "transduce", "transient", "tree-seq", "true?", "type",
124
- "unchecked-add", "unchecked-add-int", "unchecked-byte", "unchecked-char",
125
- "unchecked-dec", "unchecked-dec-int", "unchecked-divide-int",
126
- "unchecked-double", "unchecked-float", "unchecked-inc",
127
- "unchecked-inc-int", "unchecked-int", "unchecked-long",
128
- "unchecked-multiply", "unchecked-multiply-int", "unchecked-negate",
129
- "unchecked-negate-int", "unchecked-remainder-int", "unchecked-short",
130
- "unchecked-subtract", "unchecked-subtract-int", "underive", "unquote",
131
- "unquote-splicing", "unreduced", "unsigned-bit-shift-right", "update",
132
- "update-in", "update-proxy", "uri?", "use", "uuid?", "val", "vals",
133
- "var-get", "var-set", "var?", "vary-meta", "vec", "vector", "vector-of",
134
- "vector?", "volatile!", "volatile?", "vreset!", "vswap!", "when",
135
- "when-first", "when-let", "when-not", "when-some", "while",
136
- "with-bindings", "with-bindings*", "with-in-str", "with-loading-context",
137
- "with-local-vars", "with-meta", "with-open", "with-out-str",
138
- "with-precision", "with-redefs", "with-redefs-fn", "xml-seq", "zero?",
139
- "zipmap"];
140
- var haveBodyParameter = [
141
- "->", "->>", "as->", "binding", "bound-fn", "case", "catch", "comment",
142
- "cond", "cond->", "cond->>", "condp", "def", "definterface", "defmethod",
143
- "defn", "defmacro", "defprotocol", "defrecord", "defstruct", "deftype",
144
- "do", "doseq", "dotimes", "doto", "extend", "extend-protocol",
145
- "extend-type", "fn", "for", "future", "if", "if-let", "if-not", "if-some",
146
- "let", "letfn", "locking", "loop", "ns", "proxy", "reify", "struct-map",
147
- "some->", "some->>", "try", "when", "when-first", "when-let", "when-not",
148
- "when-some", "while", "with-bindings", "with-bindings*", "with-in-str",
149
- "with-loading-context", "with-local-vars", "with-meta", "with-open",
150
- "with-out-str", "with-precision", "with-redefs", "with-redefs-fn"];
151
-
152
- CodeMirror.registerHelper("hintWords", "clojure",
153
- [].concat(atoms, specialForms, coreSymbols));
154
-
155
- var atom = createLookupMap(atoms);
156
- var specialForm = createLookupMap(specialForms);
157
- var coreSymbol = createLookupMap(coreSymbols);
158
- var hasBodyParameter = createLookupMap(haveBodyParameter);
159
- var delimiter = /^(?:[\\\[\]\s"(),;@^`{}~]|$)/;
160
- var numberLiteral = /^(?:[+\-]?\d+(?:(?:N|(?:[eE][+\-]?\d+))|(?:\.?\d*(?:M|(?:[eE][+\-]?\d+))?)|\/\d+|[xX][0-9a-fA-F]+|r[0-9a-zA-Z]+)?(?=[\\\[\]\s"#'(),;@^`{}~]|$))/;
161
- var characterLiteral = /^(?:\\(?:backspace|formfeed|newline|return|space|tab|o[0-7]{3}|u[0-9A-Fa-f]{4}|x[0-9A-Fa-f]{4}|.)?(?=[\\\[\]\s"(),;@^`{}~]|$))/;
162
-
163
- // simple-namespace := /^[^\\\/\[\]\d\s"#'(),;@^`{}~.][^\\\[\]\s"(),;@^`{}~.\/]*/
164
- // simple-symbol := /^(?:\/|[^\\\/\[\]\d\s"#'(),;@^`{}~][^\\\[\]\s"(),;@^`{}~]*)/
165
- // qualified-symbol := (<simple-namespace>(<.><simple-namespace>)*</>)?<simple-symbol>
166
- var qualifiedSymbol = /^(?:(?:[^\\\/\[\]\d\s"#'(),;@^`{}~.][^\\\[\]\s"(),;@^`{}~.\/]*(?:\.[^\\\/\[\]\d\s"#'(),;@^`{}~.][^\\\[\]\s"(),;@^`{}~.\/]*)*\/)?(?:\/|[^\\\/\[\]\d\s"#'(),;@^`{}~][^\\\[\]\s"(),;@^`{}~]*)*(?=[\\\[\]\s"(),;@^`{}~]|$))/;
167
-
168
- function base(stream, state) {
169
- if (stream.eatSpace() || stream.eat(",")) return ["space", null];
170
- if (stream.match(numberLiteral)) return [null, "number"];
171
- if (stream.match(characterLiteral)) return [null, "string-2"];
172
- if (stream.eat(/^"/)) return (state.tokenize = inString)(stream, state);
173
- if (stream.eat(/^[(\[{]/)) return ["open", "bracket"];
174
- if (stream.eat(/^[)\]}]/)) return ["close", "bracket"];
175
- if (stream.eat(/^;/)) {stream.skipToEnd(); return ["space", "comment"];}
176
- if (stream.eat(/^[#'@^`~]/)) return [null, "meta"];
177
-
178
- var matches = stream.match(qualifiedSymbol);
179
- var symbol = matches && matches[0];
180
-
181
- if (!symbol) {
182
- // advance stream by at least one character so we don't get stuck.
183
- stream.next();
184
- stream.eatWhile(function (c) {return !is(c, delimiter);});
185
- return [null, "error"];
186
- }
187
-
188
- if (symbol === "comment" && state.lastToken === "(")
189
- return (state.tokenize = inComment)(stream, state);
190
- if (is(symbol, atom) || symbol.charAt(0) === ":") return ["symbol", "atom"];
191
- if (is(symbol, specialForm) || is(symbol, coreSymbol)) return ["symbol", "keyword"];
192
- if (state.lastToken === "(") return ["symbol", "builtin"]; // other operator
193
-
194
- return ["symbol", "variable"];
195
- }
196
-
197
- function inString(stream, state) {
198
- var escaped = false, next;
199
-
200
- while (next = stream.next()) {
201
- if (next === "\"" && !escaped) {state.tokenize = base; break;}
202
- escaped = !escaped && next === "\\";
203
- }
204
-
205
- return [null, "string"];
206
- }
207
-
208
- function inComment(stream, state) {
209
- var parenthesisCount = 1;
210
- var next;
211
-
212
- while (next = stream.next()) {
213
- if (next === ")") parenthesisCount--;
214
- if (next === "(") parenthesisCount++;
215
- if (parenthesisCount === 0) {
216
- stream.backUp(1);
217
- state.tokenize = base;
218
- break;
219
- }
220
- }
221
-
222
- return ["space", "comment"];
223
- }
224
-
225
- function createLookupMap(words) {
226
- var obj = {};
227
-
228
- for (var i = 0; i < words.length; ++i) obj[words[i]] = true;
229
-
230
- return obj;
231
- }
232
-
233
- function is(value, test) {
234
- if (test instanceof RegExp) return test.test(value);
235
- if (test instanceof Object) return test.propertyIsEnumerable(value);
236
- }
237
-
238
- return {
239
- startState: function () {
240
- return {
241
- ctx: {prev: null, start: 0, indentTo: 0},
242
- lastToken: null,
243
- tokenize: base
244
- };
245
- },
246
-
247
- token: function (stream, state) {
248
- if (stream.sol() && (typeof state.ctx.indentTo !== "number"))
249
- state.ctx.indentTo = state.ctx.start + 1;
250
-
251
- var typeStylePair = state.tokenize(stream, state);
252
- var type = typeStylePair[0];
253
- var style = typeStylePair[1];
254
- var current = stream.current();
255
-
256
- if (type !== "space") {
257
- if (state.lastToken === "(" && state.ctx.indentTo === null) {
258
- if (type === "symbol" && is(current, hasBodyParameter))
259
- state.ctx.indentTo = state.ctx.start + options.indentUnit;
260
- else state.ctx.indentTo = "next";
261
- } else if (state.ctx.indentTo === "next") {
262
- state.ctx.indentTo = stream.column();
263
- }
264
-
265
- state.lastToken = current;
266
- }
267
-
268
- if (type === "open")
269
- state.ctx = {prev: state.ctx, start: stream.column(), indentTo: null};
270
- else if (type === "close") state.ctx = state.ctx.prev || state.ctx;
271
-
272
- return style;
273
- },
274
-
275
- indent: function (state) {
276
- var i = state.ctx.indentTo;
277
-
278
- return (typeof i === "number") ?
279
- i :
280
- state.ctx.start + 1;
281
- },
282
-
283
- closeBrackets: {pairs: "()[]{}\"\""},
284
- lineComment: ";;"
285
- };
286
- });
287
-
288
- CodeMirror.defineMIME("text/x-clojure", "clojure");
289
- CodeMirror.defineMIME("text/x-clojurescript", "clojure");
290
- CodeMirror.defineMIME("application/edn", "clojure");
291
-
292
- });
@@ -1,97 +0,0 @@
1
- // CodeMirror, copyright (c) by Marijn Haverbeke and others
2
- // Distributed under an MIT license: https://codemirror.net/5/LICENSE
3
-
4
- (function(mod) {
5
- if (typeof exports == "object" && typeof module == "object")
6
- mod(require("../../lib/codemirror"));
7
- else if (typeof define == "function" && define.amd)
8
- define(["../../lib/codemirror"], mod);
9
- else
10
- mod(CodeMirror);
11
- })(function(CodeMirror) {
12
- "use strict";
13
-
14
- CodeMirror.defineMode("cmake", function () {
15
- var variable_regex = /({)?[a-zA-Z0-9_]+(})?/;
16
-
17
- function tokenString(stream, state) {
18
- var current, prev, found_var = false;
19
- while (!stream.eol() && (current = stream.next()) != state.pending) {
20
- if (current === '$' && prev != '\\' && state.pending == '"') {
21
- found_var = true;
22
- break;
23
- }
24
- prev = current;
25
- }
26
- if (found_var) {
27
- stream.backUp(1);
28
- }
29
- if (current == state.pending) {
30
- state.continueString = false;
31
- } else {
32
- state.continueString = true;
33
- }
34
- return "string";
35
- }
36
-
37
- function tokenize(stream, state) {
38
- var ch = stream.next();
39
-
40
- // Have we found a variable?
41
- if (ch === '$') {
42
- if (stream.match(variable_regex)) {
43
- return 'variable-2';
44
- }
45
- return 'variable';
46
- }
47
- // Should we still be looking for the end of a string?
48
- if (state.continueString) {
49
- // If so, go through the loop again
50
- stream.backUp(1);
51
- return tokenString(stream, state);
52
- }
53
- // Do we just have a function on our hands?
54
- // In 'cmake_minimum_required (VERSION 2.8.8)', 'cmake_minimum_required' is matched
55
- if (stream.match(/(\s+)?\w+\(/) || stream.match(/(\s+)?\w+\ \(/)) {
56
- stream.backUp(1);
57
- return 'def';
58
- }
59
- if (ch == "#") {
60
- stream.skipToEnd();
61
- return "comment";
62
- }
63
- // Have we found a string?
64
- if (ch == "'" || ch == '"') {
65
- // Store the type (single or double)
66
- state.pending = ch;
67
- // Perform the looping function to find the end
68
- return tokenString(stream, state);
69
- }
70
- if (ch == '(' || ch == ')') {
71
- return 'bracket';
72
- }
73
- if (ch.match(/[0-9]/)) {
74
- return 'number';
75
- }
76
- stream.eatWhile(/[\w-]/);
77
- return null;
78
- }
79
- return {
80
- startState: function () {
81
- var state = {};
82
- state.inDefinition = false;
83
- state.inInclude = false;
84
- state.continueString = false;
85
- state.pending = false;
86
- return state;
87
- },
88
- token: function (stream, state) {
89
- if (stream.eatSpace()) return null;
90
- return tokenize(stream, state);
91
- }
92
- };
93
- });
94
-
95
- CodeMirror.defineMIME("text/x-cmake", "cmake");
96
-
97
- });
@@ -1,255 +0,0 @@
1
- // CodeMirror, copyright (c) by Marijn Haverbeke and others
2
- // Distributed under an MIT license: https://codemirror.net/5/LICENSE
3
-
4
- /**
5
- * Author: Gautam Mehta
6
- * Branched from CodeMirror's Scheme mode
7
- */
8
- (function(mod) {
9
- if (typeof exports == "object" && typeof module == "object") // CommonJS
10
- mod(require("../../lib/codemirror"));
11
- else if (typeof define == "function" && define.amd) // AMD
12
- define(["../../lib/codemirror"], mod);
13
- else // Plain browser env
14
- mod(CodeMirror);
15
- })(function(CodeMirror) {
16
- "use strict";
17
-
18
- CodeMirror.defineMode("cobol", function () {
19
- var BUILTIN = "builtin", COMMENT = "comment", STRING = "string",
20
- ATOM = "atom", NUMBER = "number", KEYWORD = "keyword", MODTAG = "header",
21
- COBOLLINENUM = "def", PERIOD = "link";
22
- function makeKeywords(str) {
23
- var obj = {}, words = str.split(" ");
24
- for (var i = 0; i < words.length; ++i) obj[words[i]] = true;
25
- return obj;
26
- }
27
- var atoms = makeKeywords("TRUE FALSE ZEROES ZEROS ZERO SPACES SPACE LOW-VALUE LOW-VALUES ");
28
- var keywords = makeKeywords(
29
- "ACCEPT ACCESS ACQUIRE ADD ADDRESS " +
30
- "ADVANCING AFTER ALIAS ALL ALPHABET " +
31
- "ALPHABETIC ALPHABETIC-LOWER ALPHABETIC-UPPER ALPHANUMERIC ALPHANUMERIC-EDITED " +
32
- "ALSO ALTER ALTERNATE AND ANY " +
33
- "ARE AREA AREAS ARITHMETIC ASCENDING " +
34
- "ASSIGN AT ATTRIBUTE AUTHOR AUTO " +
35
- "AUTO-SKIP AUTOMATIC B-AND B-EXOR B-LESS " +
36
- "B-NOT B-OR BACKGROUND-COLOR BACKGROUND-COLOUR BEEP " +
37
- "BEFORE BELL BINARY BIT BITS " +
38
- "BLANK BLINK BLOCK BOOLEAN BOTTOM " +
39
- "BY CALL CANCEL CD CF " +
40
- "CH CHARACTER CHARACTERS CLASS CLOCK-UNITS " +
41
- "CLOSE COBOL CODE CODE-SET COL " +
42
- "COLLATING COLUMN COMMA COMMIT COMMITMENT " +
43
- "COMMON COMMUNICATION COMP COMP-0 COMP-1 " +
44
- "COMP-2 COMP-3 COMP-4 COMP-5 COMP-6 " +
45
- "COMP-7 COMP-8 COMP-9 COMPUTATIONAL COMPUTATIONAL-0 " +
46
- "COMPUTATIONAL-1 COMPUTATIONAL-2 COMPUTATIONAL-3 COMPUTATIONAL-4 COMPUTATIONAL-5 " +
47
- "COMPUTATIONAL-6 COMPUTATIONAL-7 COMPUTATIONAL-8 COMPUTATIONAL-9 COMPUTE " +
48
- "CONFIGURATION CONNECT CONSOLE CONTAINED CONTAINS " +
49
- "CONTENT CONTINUE CONTROL CONTROL-AREA CONTROLS " +
50
- "CONVERTING COPY CORR CORRESPONDING COUNT " +
51
- "CRT CRT-UNDER CURRENCY CURRENT CURSOR " +
52
- "DATA DATE DATE-COMPILED DATE-WRITTEN DAY " +
53
- "DAY-OF-WEEK DB DB-ACCESS-CONTROL-KEY DB-DATA-NAME DB-EXCEPTION " +
54
- "DB-FORMAT-NAME DB-RECORD-NAME DB-SET-NAME DB-STATUS DBCS " +
55
- "DBCS-EDITED DE DEBUG-CONTENTS DEBUG-ITEM DEBUG-LINE " +
56
- "DEBUG-NAME DEBUG-SUB-1 DEBUG-SUB-2 DEBUG-SUB-3 DEBUGGING " +
57
- "DECIMAL-POINT DECLARATIVES DEFAULT DELETE DELIMITED " +
58
- "DELIMITER DEPENDING DESCENDING DESCRIBED DESTINATION " +
59
- "DETAIL DISABLE DISCONNECT DISPLAY DISPLAY-1 " +
60
- "DISPLAY-2 DISPLAY-3 DISPLAY-4 DISPLAY-5 DISPLAY-6 " +
61
- "DISPLAY-7 DISPLAY-8 DISPLAY-9 DIVIDE DIVISION " +
62
- "DOWN DROP DUPLICATE DUPLICATES DYNAMIC " +
63
- "EBCDIC EGI EJECT ELSE EMI " +
64
- "EMPTY EMPTY-CHECK ENABLE END END. END-ACCEPT END-ACCEPT. " +
65
- "END-ADD END-CALL END-COMPUTE END-DELETE END-DISPLAY " +
66
- "END-DIVIDE END-EVALUATE END-IF END-INVOKE END-MULTIPLY " +
67
- "END-OF-PAGE END-PERFORM END-READ END-RECEIVE END-RETURN " +
68
- "END-REWRITE END-SEARCH END-START END-STRING END-SUBTRACT " +
69
- "END-UNSTRING END-WRITE END-XML ENTER ENTRY " +
70
- "ENVIRONMENT EOP EQUAL EQUALS ERASE " +
71
- "ERROR ESI EVALUATE EVERY EXCEEDS " +
72
- "EXCEPTION EXCLUSIVE EXIT EXTEND EXTERNAL " +
73
- "EXTERNALLY-DESCRIBED-KEY FD FETCH FILE FILE-CONTROL " +
74
- "FILE-STREAM FILES FILLER FINAL FIND " +
75
- "FINISH FIRST FOOTING FOR FOREGROUND-COLOR " +
76
- "FOREGROUND-COLOUR FORMAT FREE FROM FULL " +
77
- "FUNCTION GENERATE GET GIVING GLOBAL " +
78
- "GO GOBACK GREATER GROUP HEADING " +
79
- "HIGH-VALUE HIGH-VALUES HIGHLIGHT I-O I-O-CONTROL " +
80
- "ID IDENTIFICATION IF IN INDEX " +
81
- "INDEX-1 INDEX-2 INDEX-3 INDEX-4 INDEX-5 " +
82
- "INDEX-6 INDEX-7 INDEX-8 INDEX-9 INDEXED " +
83
- "INDIC INDICATE INDICATOR INDICATORS INITIAL " +
84
- "INITIALIZE INITIATE INPUT INPUT-OUTPUT INSPECT " +
85
- "INSTALLATION INTO INVALID INVOKE IS " +
86
- "JUST JUSTIFIED KANJI KEEP KEY " +
87
- "LABEL LAST LD LEADING LEFT " +
88
- "LEFT-JUSTIFY LENGTH LENGTH-CHECK LESS LIBRARY " +
89
- "LIKE LIMIT LIMITS LINAGE LINAGE-COUNTER " +
90
- "LINE LINE-COUNTER LINES LINKAGE LOCAL-STORAGE " +
91
- "LOCALE LOCALLY LOCK " +
92
- "MEMBER MEMORY MERGE MESSAGE METACLASS " +
93
- "MODE MODIFIED MODIFY MODULES MOVE " +
94
- "MULTIPLE MULTIPLY NATIONAL NATIVE NEGATIVE " +
95
- "NEXT NO NO-ECHO NONE NOT " +
96
- "NULL NULL-KEY-MAP NULL-MAP NULLS NUMBER " +
97
- "NUMERIC NUMERIC-EDITED OBJECT OBJECT-COMPUTER OCCURS " +
98
- "OF OFF OMITTED ON ONLY " +
99
- "OPEN OPTIONAL OR ORDER ORGANIZATION " +
100
- "OTHER OUTPUT OVERFLOW OWNER PACKED-DECIMAL " +
101
- "PADDING PAGE PAGE-COUNTER PARSE PERFORM " +
102
- "PF PH PIC PICTURE PLUS " +
103
- "POINTER POSITION POSITIVE PREFIX PRESENT " +
104
- "PRINTING PRIOR PROCEDURE PROCEDURE-POINTER PROCEDURES " +
105
- "PROCEED PROCESS PROCESSING PROGRAM PROGRAM-ID " +
106
- "PROMPT PROTECTED PURGE QUEUE QUOTE " +
107
- "QUOTES RANDOM RD READ READY " +
108
- "REALM RECEIVE RECONNECT RECORD RECORD-NAME " +
109
- "RECORDS RECURSIVE REDEFINES REEL REFERENCE " +
110
- "REFERENCE-MONITOR REFERENCES RELATION RELATIVE RELEASE " +
111
- "REMAINDER REMOVAL RENAMES REPEATED REPLACE " +
112
- "REPLACING REPORT REPORTING REPORTS REPOSITORY " +
113
- "REQUIRED RERUN RESERVE RESET RETAINING " +
114
- "RETRIEVAL RETURN RETURN-CODE RETURNING REVERSE-VIDEO " +
115
- "REVERSED REWIND REWRITE RF RH " +
116
- "RIGHT RIGHT-JUSTIFY ROLLBACK ROLLING ROUNDED " +
117
- "RUN SAME SCREEN SD SEARCH " +
118
- "SECTION SECURE SECURITY SEGMENT SEGMENT-LIMIT " +
119
- "SELECT SEND SENTENCE SEPARATE SEQUENCE " +
120
- "SEQUENTIAL SET SHARED SIGN SIZE " +
121
- "SKIP1 SKIP2 SKIP3 SORT SORT-MERGE " +
122
- "SORT-RETURN SOURCE SOURCE-COMPUTER SPACE-FILL " +
123
- "SPECIAL-NAMES STANDARD STANDARD-1 STANDARD-2 " +
124
- "START STARTING STATUS STOP STORE " +
125
- "STRING SUB-QUEUE-1 SUB-QUEUE-2 SUB-QUEUE-3 SUB-SCHEMA " +
126
- "SUBFILE SUBSTITUTE SUBTRACT SUM SUPPRESS " +
127
- "SYMBOLIC SYNC SYNCHRONIZED SYSIN SYSOUT " +
128
- "TABLE TALLYING TAPE TENANT TERMINAL " +
129
- "TERMINATE TEST TEXT THAN THEN " +
130
- "THROUGH THRU TIME TIMES TITLE " +
131
- "TO TOP TRAILING TRAILING-SIGN TRANSACTION " +
132
- "TYPE TYPEDEF UNDERLINE UNEQUAL UNIT " +
133
- "UNSTRING UNTIL UP UPDATE UPON " +
134
- "USAGE USAGE-MODE USE USING VALID " +
135
- "VALIDATE VALUE VALUES VARYING VLR " +
136
- "WAIT WHEN WHEN-COMPILED WITH WITHIN " +
137
- "WORDS WORKING-STORAGE WRITE XML XML-CODE " +
138
- "XML-EVENT XML-NTEXT XML-TEXT ZERO ZERO-FILL " );
139
-
140
- var builtins = makeKeywords("- * ** / + < <= = > >= ");
141
- var tests = {
142
- digit: /\d/,
143
- digit_or_colon: /[\d:]/,
144
- hex: /[0-9a-f]/i,
145
- sign: /[+-]/,
146
- exponent: /e/i,
147
- keyword_char: /[^\s\(\[\;\)\]]/,
148
- symbol: /[\w*+\-]/
149
- };
150
- function isNumber(ch, stream){
151
- // hex
152
- if ( ch === '0' && stream.eat(/x/i) ) {
153
- stream.eatWhile(tests.hex);
154
- return true;
155
- }
156
- // leading sign
157
- if ( ( ch == '+' || ch == '-' ) && ( tests.digit.test(stream.peek()) ) ) {
158
- stream.eat(tests.sign);
159
- ch = stream.next();
160
- }
161
- if ( tests.digit.test(ch) ) {
162
- stream.eat(ch);
163
- stream.eatWhile(tests.digit);
164
- if ( '.' == stream.peek()) {
165
- stream.eat('.');
166
- stream.eatWhile(tests.digit);
167
- }
168
- if ( stream.eat(tests.exponent) ) {
169
- stream.eat(tests.sign);
170
- stream.eatWhile(tests.digit);
171
- }
172
- return true;
173
- }
174
- return false;
175
- }
176
- return {
177
- startState: function () {
178
- return {
179
- indentStack: null,
180
- indentation: 0,
181
- mode: false
182
- };
183
- },
184
- token: function (stream, state) {
185
- if (state.indentStack == null && stream.sol()) {
186
- // update indentation, but only if indentStack is empty
187
- state.indentation = 6 ; //stream.indentation();
188
- }
189
- // skip spaces
190
- if (stream.eatSpace()) {
191
- return null;
192
- }
193
- var returnType = null;
194
- switch(state.mode){
195
- case "string": // multi-line string parsing mode
196
- var next = false;
197
- while ((next = stream.next()) != null) {
198
- if ((next == "\"" || next == "\'") && !stream.match(/['"]/, false)) {
199
- state.mode = false;
200
- break;
201
- }
202
- }
203
- returnType = STRING; // continue on in string mode
204
- break;
205
- default: // default parsing mode
206
- var ch = stream.next();
207
- var col = stream.column();
208
- if (col >= 0 && col <= 5) {
209
- returnType = COBOLLINENUM;
210
- } else if (col >= 72 && col <= 79) {
211
- stream.skipToEnd();
212
- returnType = MODTAG;
213
- } else if (ch == "*" && col == 6) { // comment
214
- stream.skipToEnd(); // rest of the line is a comment
215
- returnType = COMMENT;
216
- } else if (ch == "\"" || ch == "\'") {
217
- state.mode = "string";
218
- returnType = STRING;
219
- } else if (ch == "'" && !( tests.digit_or_colon.test(stream.peek()) )) {
220
- returnType = ATOM;
221
- } else if (ch == ".") {
222
- returnType = PERIOD;
223
- } else if (isNumber(ch,stream)){
224
- returnType = NUMBER;
225
- } else {
226
- if (stream.current().match(tests.symbol)) {
227
- while (col < 71) {
228
- if (stream.eat(tests.symbol) === undefined) {
229
- break;
230
- } else {
231
- col++;
232
- }
233
- }
234
- }
235
- if (keywords && keywords.propertyIsEnumerable(stream.current().toUpperCase())) {
236
- returnType = KEYWORD;
237
- } else if (builtins && builtins.propertyIsEnumerable(stream.current().toUpperCase())) {
238
- returnType = BUILTIN;
239
- } else if (atoms && atoms.propertyIsEnumerable(stream.current().toUpperCase())) {
240
- returnType = ATOM;
241
- } else returnType = null;
242
- }
243
- }
244
- return returnType;
245
- },
246
- indent: function (state) {
247
- if (state.indentStack == null) return state.indentation;
248
- return state.indentStack.indent;
249
- }
250
- };
251
- });
252
-
253
- CodeMirror.defineMIME("text/x-cobol", "cobol");
254
-
255
- });