@muze-nl/simplystore 0.3.5 → 0.4.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.
Files changed (331) hide show
  1. package/package.json +2 -2
  2. package/package.json~ +33 -0
  3. package/src/commands.mjs +1 -0
  4. package/src/server.mjs +69 -62
  5. package/src/worker-command-init.mjs +2 -1
  6. package/src/worker-command.mjs +3 -3
  7. package/www/codemirror/addon/comment/comment.js +0 -211
  8. package/www/codemirror/addon/comment/continuecomment.js +0 -114
  9. package/www/codemirror/addon/dialog/dialog.css +0 -32
  10. package/www/codemirror/addon/dialog/dialog.js +0 -163
  11. package/www/codemirror/addon/display/autorefresh.js +0 -47
  12. package/www/codemirror/addon/display/fullscreen.css +0 -6
  13. package/www/codemirror/addon/display/fullscreen.js +0 -41
  14. package/www/codemirror/addon/display/panel.js +0 -133
  15. package/www/codemirror/addon/display/placeholder.js +0 -78
  16. package/www/codemirror/addon/display/rulers.js +0 -51
  17. package/www/codemirror/addon/edit/closebrackets.js +0 -201
  18. package/www/codemirror/addon/edit/closetag.js +0 -185
  19. package/www/codemirror/addon/edit/continuelist.js +0 -101
  20. package/www/codemirror/addon/edit/matchbrackets.js +0 -160
  21. package/www/codemirror/addon/edit/matchtags.js +0 -66
  22. package/www/codemirror/addon/edit/trailingspace.js +0 -27
  23. package/www/codemirror/addon/fold/brace-fold.js +0 -119
  24. package/www/codemirror/addon/fold/comment-fold.js +0 -59
  25. package/www/codemirror/addon/fold/foldcode.js +0 -159
  26. package/www/codemirror/addon/fold/foldgutter.css +0 -20
  27. package/www/codemirror/addon/fold/foldgutter.js +0 -169
  28. package/www/codemirror/addon/fold/indent-fold.js +0 -48
  29. package/www/codemirror/addon/fold/markdown-fold.js +0 -49
  30. package/www/codemirror/addon/fold/xml-fold.js +0 -184
  31. package/www/codemirror/addon/hint/anyword-hint.js +0 -41
  32. package/www/codemirror/addon/hint/css-hint.js +0 -66
  33. package/www/codemirror/addon/hint/html-hint.js +0 -351
  34. package/www/codemirror/addon/hint/javascript-hint.js +0 -162
  35. package/www/codemirror/addon/hint/show-hint.css +0 -37
  36. package/www/codemirror/addon/hint/show-hint.js +0 -523
  37. package/www/codemirror/addon/hint/sql-hint.js +0 -304
  38. package/www/codemirror/addon/hint/xml-hint.js +0 -132
  39. package/www/codemirror/addon/lint/coffeescript-lint.js +0 -47
  40. package/www/codemirror/addon/lint/css-lint.js +0 -40
  41. package/www/codemirror/addon/lint/html-lint.js +0 -59
  42. package/www/codemirror/addon/lint/json-lint.js +0 -40
  43. package/www/codemirror/addon/lint/yaml-lint.js +0 -41
  44. package/www/codemirror/addon/merge/merge.css +0 -119
  45. package/www/codemirror/addon/merge/merge.js +0 -1018
  46. package/www/codemirror/addon/mode/loadmode.js +0 -66
  47. package/www/codemirror/addon/mode/multiplex.js +0 -136
  48. package/www/codemirror/addon/mode/multiplex_test.js +0 -49
  49. package/www/codemirror/addon/mode/overlay.js +0 -90
  50. package/www/codemirror/addon/mode/simple.js +0 -216
  51. package/www/codemirror/addon/runmode/colorize.js +0 -40
  52. package/www/codemirror/addon/runmode/runmode-standalone.js +0 -334
  53. package/www/codemirror/addon/runmode/runmode.js +0 -76
  54. package/www/codemirror/addon/runmode/runmode.node.js +0 -329
  55. package/www/codemirror/addon/scroll/annotatescrollbar.js +0 -128
  56. package/www/codemirror/addon/scroll/scrollpastend.js +0 -48
  57. package/www/codemirror/addon/scroll/simplescrollbars.css +0 -66
  58. package/www/codemirror/addon/scroll/simplescrollbars.js +0 -152
  59. package/www/codemirror/addon/search/jump-to-line.js +0 -53
  60. package/www/codemirror/addon/search/match-highlighter.js +0 -167
  61. package/www/codemirror/addon/search/matchesonscrollbar.css +0 -8
  62. package/www/codemirror/addon/search/matchesonscrollbar.js +0 -97
  63. package/www/codemirror/addon/search/search.js +0 -295
  64. package/www/codemirror/addon/search/searchcursor.js +0 -305
  65. package/www/codemirror/addon/selection/active-line.js +0 -72
  66. package/www/codemirror/addon/selection/mark-selection.js +0 -119
  67. package/www/codemirror/addon/selection/selection-pointer.js +0 -98
  68. package/www/codemirror/addon/tern/tern.css +0 -87
  69. package/www/codemirror/addon/tern/tern.js +0 -756
  70. package/www/codemirror/addon/tern/worker.js +0 -44
  71. package/www/codemirror/addon/wrap/hardwrap.js +0 -160
  72. package/www/codemirror/bin/source-highlight +0 -48
  73. package/www/codemirror/keymap/emacs.js +0 -545
  74. package/www/codemirror/keymap/sublime.js +0 -720
  75. package/www/codemirror/keymap/vim.js +0 -5978
  76. package/www/codemirror/mode/apl/apl.js +0 -174
  77. package/www/codemirror/mode/asciiarmor/asciiarmor.js +0 -74
  78. package/www/codemirror/mode/asn.1/asn.1.js +0 -204
  79. package/www/codemirror/mode/asterisk/asterisk.js +0 -220
  80. package/www/codemirror/mode/brainfuck/brainfuck.js +0 -85
  81. package/www/codemirror/mode/clike/clike.js +0 -940
  82. package/www/codemirror/mode/clojure/clojure.js +0 -292
  83. package/www/codemirror/mode/cmake/cmake.js +0 -97
  84. package/www/codemirror/mode/cobol/cobol.js +0 -255
  85. package/www/codemirror/mode/coffeescript/coffeescript.js +0 -359
  86. package/www/codemirror/mode/commonlisp/commonlisp.js +0 -125
  87. package/www/codemirror/mode/crystal/crystal.js +0 -433
  88. package/www/codemirror/mode/css/css.js +0 -862
  89. package/www/codemirror/mode/cypher/cypher.js +0 -152
  90. package/www/codemirror/mode/d/d.js +0 -223
  91. package/www/codemirror/mode/dart/dart.js +0 -166
  92. package/www/codemirror/mode/diff/diff.js +0 -47
  93. package/www/codemirror/mode/django/django.js +0 -356
  94. package/www/codemirror/mode/dockerfile/dockerfile.js +0 -211
  95. package/www/codemirror/mode/dtd/dtd.js +0 -142
  96. package/www/codemirror/mode/dylan/dylan.js +0 -352
  97. package/www/codemirror/mode/ebnf/ebnf.js +0 -195
  98. package/www/codemirror/mode/ecl/ecl.js +0 -206
  99. package/www/codemirror/mode/eiffel/eiffel.js +0 -160
  100. package/www/codemirror/mode/elm/elm.js +0 -245
  101. package/www/codemirror/mode/erlang/erlang.js +0 -619
  102. package/www/codemirror/mode/factor/factor.js +0 -85
  103. package/www/codemirror/mode/fcl/fcl.js +0 -173
  104. package/www/codemirror/mode/forth/forth.js +0 -180
  105. package/www/codemirror/mode/fortran/fortran.js +0 -188
  106. package/www/codemirror/mode/gas/gas.js +0 -353
  107. package/www/codemirror/mode/gfm/gfm.js +0 -129
  108. package/www/codemirror/mode/gherkin/gherkin.js +0 -178
  109. package/www/codemirror/mode/go/go.js +0 -187
  110. package/www/codemirror/mode/groovy/groovy.js +0 -247
  111. package/www/codemirror/mode/haml/haml.js +0 -161
  112. package/www/codemirror/mode/handlebars/handlebars.js +0 -70
  113. package/www/codemirror/mode/haskell/haskell.js +0 -268
  114. package/www/codemirror/mode/haskell-literate/haskell-literate.js +0 -43
  115. package/www/codemirror/mode/haxe/haxe.js +0 -515
  116. package/www/codemirror/mode/htmlembedded/htmlembedded.js +0 -37
  117. package/www/codemirror/mode/htmlmixed/htmlmixed.js +0 -153
  118. package/www/codemirror/mode/http/http.js +0 -113
  119. package/www/codemirror/mode/idl/idl.js +0 -290
  120. package/www/codemirror/mode/jinja2/jinja2.js +0 -193
  121. package/www/codemirror/mode/jsx/jsx.js +0 -148
  122. package/www/codemirror/mode/julia/julia.js +0 -390
  123. package/www/codemirror/mode/livescript/livescript.js +0 -280
  124. package/www/codemirror/mode/lua/lua.js +0 -160
  125. package/www/codemirror/mode/markdown/markdown.js +0 -886
  126. package/www/codemirror/mode/mathematica/mathematica.js +0 -176
  127. package/www/codemirror/mode/mbox/mbox.js +0 -129
  128. package/www/codemirror/mode/meta.js +0 -221
  129. package/www/codemirror/mode/mirc/mirc.js +0 -193
  130. package/www/codemirror/mode/mllike/mllike.js +0 -359
  131. package/www/codemirror/mode/modelica/modelica.js +0 -245
  132. package/www/codemirror/mode/mscgen/mscgen.js +0 -175
  133. package/www/codemirror/mode/mumps/mumps.js +0 -148
  134. package/www/codemirror/mode/nginx/nginx.js +0 -178
  135. package/www/codemirror/mode/nsis/nsis.js +0 -95
  136. package/www/codemirror/mode/ntriples/ntriples.js +0 -195
  137. package/www/codemirror/mode/octave/octave.js +0 -139
  138. package/www/codemirror/mode/oz/oz.js +0 -252
  139. package/www/codemirror/mode/pascal/pascal.js +0 -136
  140. package/www/codemirror/mode/pegjs/pegjs.js +0 -111
  141. package/www/codemirror/mode/perl/perl.js +0 -836
  142. package/www/codemirror/mode/php/php.js +0 -234
  143. package/www/codemirror/mode/pig/pig.js +0 -178
  144. package/www/codemirror/mode/powershell/powershell.js +0 -398
  145. package/www/codemirror/mode/properties/properties.js +0 -78
  146. package/www/codemirror/mode/protobuf/protobuf.js +0 -72
  147. package/www/codemirror/mode/pug/pug.js +0 -591
  148. package/www/codemirror/mode/puppet/puppet.js +0 -220
  149. package/www/codemirror/mode/python/python.js +0 -402
  150. package/www/codemirror/mode/q/q.js +0 -139
  151. package/www/codemirror/mode/r/r.js +0 -190
  152. package/www/codemirror/mode/rpm/changes/index.html +0 -66
  153. package/www/codemirror/mode/rpm/rpm.js +0 -109
  154. package/www/codemirror/mode/rst/rst.js +0 -557
  155. package/www/codemirror/mode/ruby/ruby.js +0 -303
  156. package/www/codemirror/mode/rust/rust.js +0 -72
  157. package/www/codemirror/mode/sas/sas.js +0 -303
  158. package/www/codemirror/mode/sass/sass.js +0 -459
  159. package/www/codemirror/mode/scheme/scheme.js +0 -284
  160. package/www/codemirror/mode/shell/shell.js +0 -168
  161. package/www/codemirror/mode/sieve/sieve.js +0 -193
  162. package/www/codemirror/mode/slim/slim.js +0 -575
  163. package/www/codemirror/mode/smalltalk/smalltalk.js +0 -168
  164. package/www/codemirror/mode/smarty/smarty.js +0 -225
  165. package/www/codemirror/mode/solr/solr.js +0 -104
  166. package/www/codemirror/mode/soy/soy.js +0 -665
  167. package/www/codemirror/mode/sparql/sparql.js +0 -184
  168. package/www/codemirror/mode/spreadsheet/spreadsheet.js +0 -112
  169. package/www/codemirror/mode/sql/sql.js +0 -525
  170. package/www/codemirror/mode/stex/stex.js +0 -264
  171. package/www/codemirror/mode/stylus/stylus.js +0 -775
  172. package/www/codemirror/mode/swift/swift.js +0 -221
  173. package/www/codemirror/mode/tcl/tcl.js +0 -140
  174. package/www/codemirror/mode/textile/textile.js +0 -469
  175. package/www/codemirror/mode/tiddlywiki/tiddlywiki.css +0 -14
  176. package/www/codemirror/mode/tiddlywiki/tiddlywiki.js +0 -308
  177. package/www/codemirror/mode/tiki/tiki.css +0 -26
  178. package/www/codemirror/mode/tiki/tiki.js +0 -312
  179. package/www/codemirror/mode/toml/toml.js +0 -88
  180. package/www/codemirror/mode/tornado/tornado.js +0 -68
  181. package/www/codemirror/mode/troff/troff.js +0 -84
  182. package/www/codemirror/mode/ttcn/ttcn.js +0 -283
  183. package/www/codemirror/mode/ttcn-cfg/ttcn-cfg.js +0 -214
  184. package/www/codemirror/mode/turtle/turtle.js +0 -162
  185. package/www/codemirror/mode/twig/twig.js +0 -141
  186. package/www/codemirror/mode/vb/vb.js +0 -275
  187. package/www/codemirror/mode/vbscript/vbscript.js +0 -350
  188. package/www/codemirror/mode/velocity/velocity.js +0 -202
  189. package/www/codemirror/mode/verilog/verilog.js +0 -781
  190. package/www/codemirror/mode/vhdl/vhdl.js +0 -189
  191. package/www/codemirror/mode/vue/vue.js +0 -77
  192. package/www/codemirror/mode/wast/wast.js +0 -132
  193. package/www/codemirror/mode/webidl/webidl.js +0 -195
  194. package/www/codemirror/mode/xml/xml.js +0 -417
  195. package/www/codemirror/mode/xquery/xquery.js +0 -448
  196. package/www/codemirror/mode/yacas/yacas.js +0 -204
  197. package/www/codemirror/mode/yaml/yaml.js +0 -120
  198. package/www/codemirror/mode/yaml-frontmatter/yaml-frontmatter.js +0 -72
  199. package/www/codemirror/mode/z80/z80.js +0 -116
  200. package/www/codemirror/rollup.config.js +0 -52
  201. package/www/codemirror/src/addon/runmode/codemirror-standalone.js +0 -24
  202. package/www/codemirror/src/addon/runmode/codemirror.node.js +0 -21
  203. package/www/codemirror/src/addon/runmode/runmode-standalone.js +0 -2
  204. package/www/codemirror/src/addon/runmode/runmode.node.js +0 -2
  205. package/www/codemirror/src/codemirror.js +0 -3
  206. package/www/codemirror/src/display/Display.js +0 -116
  207. package/www/codemirror/src/display/focus.js +0 -50
  208. package/www/codemirror/src/display/gutters.js +0 -44
  209. package/www/codemirror/src/display/highlight_worker.js +0 -55
  210. package/www/codemirror/src/display/line_numbers.js +0 -48
  211. package/www/codemirror/src/display/mode_state.js +0 -22
  212. package/www/codemirror/src/display/operations.js +0 -206
  213. package/www/codemirror/src/display/scroll_events.js +0 -132
  214. package/www/codemirror/src/display/scrollbars.js +0 -194
  215. package/www/codemirror/src/display/scrolling.js +0 -186
  216. package/www/codemirror/src/display/selection.js +0 -173
  217. package/www/codemirror/src/display/update_display.js +0 -267
  218. package/www/codemirror/src/display/update_line.js +0 -189
  219. package/www/codemirror/src/display/update_lines.js +0 -82
  220. package/www/codemirror/src/display/view_tracking.js +0 -153
  221. package/www/codemirror/src/edit/CodeMirror.js +0 -217
  222. package/www/codemirror/src/edit/commands.js +0 -178
  223. package/www/codemirror/src/edit/deleteNearSelection.js +0 -30
  224. package/www/codemirror/src/edit/drop_events.js +0 -130
  225. package/www/codemirror/src/edit/fromTextArea.js +0 -61
  226. package/www/codemirror/src/edit/global_events.js +0 -45
  227. package/www/codemirror/src/edit/key_events.js +0 -163
  228. package/www/codemirror/src/edit/legacy.js +0 -62
  229. package/www/codemirror/src/edit/main.js +0 -69
  230. package/www/codemirror/src/edit/methods.js +0 -555
  231. package/www/codemirror/src/edit/mouse_events.js +0 -417
  232. package/www/codemirror/src/edit/options.js +0 -194
  233. package/www/codemirror/src/edit/utils.js +0 -7
  234. package/www/codemirror/src/input/ContentEditableInput.js +0 -546
  235. package/www/codemirror/src/input/TextareaInput.js +0 -380
  236. package/www/codemirror/src/input/indent.js +0 -71
  237. package/www/codemirror/src/input/input.js +0 -134
  238. package/www/codemirror/src/input/keymap.js +0 -147
  239. package/www/codemirror/src/input/keynames.js +0 -17
  240. package/www/codemirror/src/input/movement.js +0 -111
  241. package/www/codemirror/src/line/highlight.js +0 -284
  242. package/www/codemirror/src/line/line_data.js +0 -349
  243. package/www/codemirror/src/line/pos.js +0 -40
  244. package/www/codemirror/src/line/saw_special_spans.js +0 -10
  245. package/www/codemirror/src/line/spans.js +0 -390
  246. package/www/codemirror/src/line/utils_line.js +0 -85
  247. package/www/codemirror/src/measurement/position_measurement.js +0 -702
  248. package/www/codemirror/src/measurement/widgets.js +0 -26
  249. package/www/codemirror/src/model/Doc.js +0 -436
  250. package/www/codemirror/src/model/change_measurement.js +0 -61
  251. package/www/codemirror/src/model/changes.js +0 -339
  252. package/www/codemirror/src/model/chunk.js +0 -167
  253. package/www/codemirror/src/model/document_data.js +0 -112
  254. package/www/codemirror/src/model/history.js +0 -228
  255. package/www/codemirror/src/model/line_widget.js +0 -78
  256. package/www/codemirror/src/model/mark_text.js +0 -293
  257. package/www/codemirror/src/model/selection.js +0 -84
  258. package/www/codemirror/src/model/selection_updates.js +0 -216
  259. package/www/codemirror/src/modes.js +0 -96
  260. package/www/codemirror/src/util/StringStream.js +0 -90
  261. package/www/codemirror/src/util/bidi.js +0 -215
  262. package/www/codemirror/src/util/browser.js +0 -34
  263. package/www/codemirror/src/util/dom.js +0 -101
  264. package/www/codemirror/src/util/event.js +0 -103
  265. package/www/codemirror/src/util/feature_detection.js +0 -84
  266. package/www/codemirror/src/util/misc.js +0 -168
  267. package/www/codemirror/src/util/operation_group.js +0 -72
  268. package/www/codemirror/theme/3024-day.css +0 -41
  269. package/www/codemirror/theme/3024-night.css +0 -39
  270. package/www/codemirror/theme/abbott.css +0 -268
  271. package/www/codemirror/theme/abcdef.css +0 -32
  272. package/www/codemirror/theme/ambiance-mobile.css +0 -5
  273. package/www/codemirror/theme/ambiance.css +0 -74
  274. package/www/codemirror/theme/ayu-dark.css +0 -44
  275. package/www/codemirror/theme/ayu-mirage.css +0 -45
  276. package/www/codemirror/theme/base16-dark.css +0 -40
  277. package/www/codemirror/theme/base16-light.css +0 -38
  278. package/www/codemirror/theme/bespin.css +0 -34
  279. package/www/codemirror/theme/blackboard.css +0 -32
  280. package/www/codemirror/theme/cobalt.css +0 -25
  281. package/www/codemirror/theme/colorforth.css +0 -33
  282. package/www/codemirror/theme/darcula.css +0 -53
  283. package/www/codemirror/theme/dracula.css +0 -40
  284. package/www/codemirror/theme/duotone-dark.css +0 -35
  285. package/www/codemirror/theme/duotone-light.css +0 -36
  286. package/www/codemirror/theme/eclipse.css +0 -23
  287. package/www/codemirror/theme/elegant.css +0 -13
  288. package/www/codemirror/theme/erlang-dark.css +0 -34
  289. package/www/codemirror/theme/gruvbox-dark.css +0 -39
  290. package/www/codemirror/theme/hopscotch.css +0 -34
  291. package/www/codemirror/theme/icecoder.css +0 -43
  292. package/www/codemirror/theme/idea.css +0 -42
  293. package/www/codemirror/theme/isotope.css +0 -34
  294. package/www/codemirror/theme/juejin.css +0 -30
  295. package/www/codemirror/theme/lesser-dark.css +0 -47
  296. package/www/codemirror/theme/liquibyte.css +0 -95
  297. package/www/codemirror/theme/lucario.css +0 -37
  298. package/www/codemirror/theme/material-darker.css +0 -135
  299. package/www/codemirror/theme/material-palenight.css +0 -141
  300. package/www/codemirror/theme/material.css +0 -141
  301. package/www/codemirror/theme/mbo.css +0 -37
  302. package/www/codemirror/theme/mdn-like.css +0 -46
  303. package/www/codemirror/theme/midnight.css +0 -39
  304. package/www/codemirror/theme/monokai.css +0 -41
  305. package/www/codemirror/theme/moxer.css +0 -143
  306. package/www/codemirror/theme/neat.css +0 -12
  307. package/www/codemirror/theme/neo.css +0 -43
  308. package/www/codemirror/theme/night.css +0 -27
  309. package/www/codemirror/theme/nord.css +0 -42
  310. package/www/codemirror/theme/oceanic-next.css +0 -46
  311. package/www/codemirror/theme/panda-syntax.css +0 -85
  312. package/www/codemirror/theme/paraiso-dark.css +0 -38
  313. package/www/codemirror/theme/paraiso-light.css +0 -38
  314. package/www/codemirror/theme/pastel-on-dark.css +0 -52
  315. package/www/codemirror/theme/railscasts.css +0 -34
  316. package/www/codemirror/theme/rubyblue.css +0 -25
  317. package/www/codemirror/theme/seti.css +0 -44
  318. package/www/codemirror/theme/shadowfox.css +0 -52
  319. package/www/codemirror/theme/solarized.css +0 -165
  320. package/www/codemirror/theme/ssms.css +0 -16
  321. package/www/codemirror/theme/the-matrix.css +0 -30
  322. package/www/codemirror/theme/tomorrow-night-bright.css +0 -35
  323. package/www/codemirror/theme/tomorrow-night-eighties.css +0 -38
  324. package/www/codemirror/theme/ttcn.css +0 -64
  325. package/www/codemirror/theme/twilight.css +0 -32
  326. package/www/codemirror/theme/vibrant-ink.css +0 -34
  327. package/www/codemirror/theme/xq-dark.css +0 -53
  328. package/www/codemirror/theme/xq-light.css +0 -43
  329. package/www/codemirror/theme/yeti.css +0 -44
  330. package/www/codemirror/theme/yonce.css +0 -59
  331. package/www/codemirror/theme/zenburn.css +0 -37
@@ -1,178 +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("nginx", function(config) {
15
-
16
- function words(str) {
17
- var obj = {}, words = str.split(" ");
18
- for (var i = 0; i < words.length; ++i) obj[words[i]] = true;
19
- return obj;
20
- }
21
-
22
- var keywords = words(
23
- /* ngxDirectiveControl */ "break return rewrite set" +
24
- /* ngxDirective */ " accept_mutex accept_mutex_delay access_log add_after_body add_before_body add_header addition_types aio alias allow ancient_browser ancient_browser_value auth_basic auth_basic_user_file auth_http auth_http_header auth_http_timeout autoindex autoindex_exact_size autoindex_localtime charset charset_types client_body_buffer_size client_body_in_file_only client_body_in_single_buffer client_body_temp_path client_body_timeout client_header_buffer_size client_header_timeout client_max_body_size connection_pool_size create_full_put_path daemon dav_access dav_methods debug_connection debug_points default_type degradation degrade deny devpoll_changes devpoll_events directio directio_alignment empty_gif env epoll_events error_log eventport_events expires fastcgi_bind fastcgi_buffer_size fastcgi_buffers fastcgi_busy_buffers_size fastcgi_cache fastcgi_cache_key fastcgi_cache_methods fastcgi_cache_min_uses fastcgi_cache_path fastcgi_cache_use_stale fastcgi_cache_valid fastcgi_catch_stderr fastcgi_connect_timeout fastcgi_hide_header fastcgi_ignore_client_abort fastcgi_ignore_headers fastcgi_index fastcgi_intercept_errors fastcgi_max_temp_file_size fastcgi_next_upstream fastcgi_param fastcgi_pass_header fastcgi_pass_request_body fastcgi_pass_request_headers fastcgi_read_timeout fastcgi_send_lowat fastcgi_send_timeout fastcgi_split_path_info fastcgi_store fastcgi_store_access fastcgi_temp_file_write_size fastcgi_temp_path fastcgi_upstream_fail_timeout fastcgi_upstream_max_fails flv geoip_city geoip_country google_perftools_profiles gzip gzip_buffers gzip_comp_level gzip_disable gzip_hash gzip_http_version gzip_min_length gzip_no_buffer gzip_proxied gzip_static gzip_types gzip_vary gzip_window if_modified_since ignore_invalid_headers image_filter image_filter_buffer image_filter_jpeg_quality image_filter_transparency imap_auth imap_capabilities imap_client_buffer index ip_hash keepalive_requests keepalive_timeout kqueue_changes kqueue_events large_client_header_buffers limit_conn limit_conn_log_level limit_rate limit_rate_after limit_req limit_req_log_level limit_req_zone limit_zone lingering_time lingering_timeout lock_file log_format log_not_found log_subrequest map_hash_bucket_size map_hash_max_size master_process memcached_bind memcached_buffer_size memcached_connect_timeout memcached_next_upstream memcached_read_timeout memcached_send_timeout memcached_upstream_fail_timeout memcached_upstream_max_fails merge_slashes min_delete_depth modern_browser modern_browser_value msie_padding msie_refresh multi_accept open_file_cache open_file_cache_errors open_file_cache_events open_file_cache_min_uses open_file_cache_valid open_log_file_cache output_buffers override_charset perl perl_modules perl_require perl_set pid pop3_auth pop3_capabilities port_in_redirect postpone_gzipping postpone_output protocol proxy proxy_bind proxy_buffer proxy_buffer_size proxy_buffering proxy_buffers proxy_busy_buffers_size proxy_cache proxy_cache_key proxy_cache_methods proxy_cache_min_uses proxy_cache_path proxy_cache_use_stale proxy_cache_valid proxy_connect_timeout proxy_headers_hash_bucket_size proxy_headers_hash_max_size proxy_hide_header proxy_ignore_client_abort proxy_ignore_headers proxy_intercept_errors proxy_max_temp_file_size proxy_method proxy_next_upstream proxy_pass_error_message proxy_pass_header proxy_pass_request_body proxy_pass_request_headers proxy_read_timeout proxy_redirect proxy_send_lowat proxy_send_timeout proxy_set_body proxy_set_header proxy_ssl_session_reuse proxy_store proxy_store_access proxy_temp_file_write_size proxy_temp_path proxy_timeout proxy_upstream_fail_timeout proxy_upstream_max_fails random_index read_ahead real_ip_header recursive_error_pages request_pool_size reset_timedout_connection resolver resolver_timeout rewrite_log rtsig_overflow_events rtsig_overflow_test rtsig_overflow_threshold rtsig_signo satisfy secure_link_secret send_lowat send_timeout sendfile sendfile_max_chunk server_name_in_redirect server_names_hash_bucket_size server_names_hash_max_size server_tokens set_real_ip_from smtp_auth smtp_capabilities smtp_client_buffer smtp_greeting_delay so_keepalive source_charset ssi ssi_ignore_recycled_buffers ssi_min_file_chunk ssi_silent_errors ssi_types ssi_value_length ssl ssl_certificate ssl_certificate_key ssl_ciphers ssl_client_certificate ssl_crl ssl_dhparam ssl_engine ssl_prefer_server_ciphers ssl_protocols ssl_session_cache ssl_session_timeout ssl_verify_client ssl_verify_depth starttls stub_status sub_filter sub_filter_once sub_filter_types tcp_nodelay tcp_nopush thread_stack_size timeout timer_resolution types_hash_bucket_size types_hash_max_size underscores_in_headers uninitialized_variable_warn use user userid userid_domain userid_expires userid_mark userid_name userid_p3p userid_path userid_service valid_referers variables_hash_bucket_size variables_hash_max_size worker_connections worker_cpu_affinity worker_priority worker_processes worker_rlimit_core worker_rlimit_nofile worker_rlimit_sigpending worker_threads working_directory xclient xml_entities xslt_stylesheet xslt_typesdrew@li229-23"
25
- );
26
-
27
- var keywords_block = words(
28
- /* ngxDirectiveBlock */ "http mail events server types location upstream charset_map limit_except if geo map"
29
- );
30
-
31
- var keywords_important = words(
32
- /* ngxDirectiveImportant */ "include root server server_name listen internal proxy_pass memcached_pass fastcgi_pass try_files"
33
- );
34
-
35
- var indentUnit = config.indentUnit, type;
36
- function ret(style, tp) {type = tp; return style;}
37
-
38
- function tokenBase(stream, state) {
39
-
40
-
41
- stream.eatWhile(/[\w\$_]/);
42
-
43
- var cur = stream.current();
44
-
45
-
46
- if (keywords.propertyIsEnumerable(cur)) {
47
- return "keyword";
48
- }
49
- else if (keywords_block.propertyIsEnumerable(cur)) {
50
- return "variable-2";
51
- }
52
- else if (keywords_important.propertyIsEnumerable(cur)) {
53
- return "string-2";
54
- }
55
- /**/
56
-
57
- var ch = stream.next();
58
- if (ch == "@") {stream.eatWhile(/[\w\\\-]/); return ret("meta", stream.current());}
59
- else if (ch == "/" && stream.eat("*")) {
60
- state.tokenize = tokenCComment;
61
- return tokenCComment(stream, state);
62
- }
63
- else if (ch == "<" && stream.eat("!")) {
64
- state.tokenize = tokenSGMLComment;
65
- return tokenSGMLComment(stream, state);
66
- }
67
- else if (ch == "=") ret(null, "compare");
68
- else if ((ch == "~" || ch == "|") && stream.eat("=")) return ret(null, "compare");
69
- else if (ch == "\"" || ch == "'") {
70
- state.tokenize = tokenString(ch);
71
- return state.tokenize(stream, state);
72
- }
73
- else if (ch == "#") {
74
- stream.skipToEnd();
75
- return ret("comment", "comment");
76
- }
77
- else if (ch == "!") {
78
- stream.match(/^\s*\w*/);
79
- return ret("keyword", "important");
80
- }
81
- else if (/\d/.test(ch)) {
82
- stream.eatWhile(/[\w.%]/);
83
- return ret("number", "unit");
84
- }
85
- else if (/[,.+>*\/]/.test(ch)) {
86
- return ret(null, "select-op");
87
- }
88
- else if (/[;{}:\[\]]/.test(ch)) {
89
- return ret(null, ch);
90
- }
91
- else {
92
- stream.eatWhile(/[\w\\\-]/);
93
- return ret("variable", "variable");
94
- }
95
- }
96
-
97
- function tokenCComment(stream, state) {
98
- var maybeEnd = false, ch;
99
- while ((ch = stream.next()) != null) {
100
- if (maybeEnd && ch == "/") {
101
- state.tokenize = tokenBase;
102
- break;
103
- }
104
- maybeEnd = (ch == "*");
105
- }
106
- return ret("comment", "comment");
107
- }
108
-
109
- function tokenSGMLComment(stream, state) {
110
- var dashes = 0, ch;
111
- while ((ch = stream.next()) != null) {
112
- if (dashes >= 2 && ch == ">") {
113
- state.tokenize = tokenBase;
114
- break;
115
- }
116
- dashes = (ch == "-") ? dashes + 1 : 0;
117
- }
118
- return ret("comment", "comment");
119
- }
120
-
121
- function tokenString(quote) {
122
- return function(stream, state) {
123
- var escaped = false, ch;
124
- while ((ch = stream.next()) != null) {
125
- if (ch == quote && !escaped)
126
- break;
127
- escaped = !escaped && ch == "\\";
128
- }
129
- if (!escaped) state.tokenize = tokenBase;
130
- return ret("string", "string");
131
- };
132
- }
133
-
134
- return {
135
- startState: function(base) {
136
- return {tokenize: tokenBase,
137
- baseIndent: base || 0,
138
- stack: []};
139
- },
140
-
141
- token: function(stream, state) {
142
- if (stream.eatSpace()) return null;
143
- type = null;
144
- var style = state.tokenize(stream, state);
145
-
146
- var context = state.stack[state.stack.length-1];
147
- if (type == "hash" && context == "rule") style = "atom";
148
- else if (style == "variable") {
149
- if (context == "rule") style = "number";
150
- else if (!context || context == "@media{") style = "tag";
151
- }
152
-
153
- if (context == "rule" && /^[\{\};]$/.test(type))
154
- state.stack.pop();
155
- if (type == "{") {
156
- if (context == "@media") state.stack[state.stack.length-1] = "@media{";
157
- else state.stack.push("{");
158
- }
159
- else if (type == "}") state.stack.pop();
160
- else if (type == "@media") state.stack.push("@media");
161
- else if (context == "{" && type != "comment") state.stack.push("rule");
162
- return style;
163
- },
164
-
165
- indent: function(state, textAfter) {
166
- var n = state.stack.length;
167
- if (/^\}/.test(textAfter))
168
- n -= state.stack[state.stack.length-1] == "rule" ? 2 : 1;
169
- return state.baseIndent + n * indentUnit;
170
- },
171
-
172
- electricChars: "}"
173
- };
174
- });
175
-
176
- CodeMirror.defineMIME("text/x-nginx-conf", "nginx");
177
-
178
- });
@@ -1,95 +0,0 @@
1
- // CodeMirror, copyright (c) by Marijn Haverbeke and others
2
- // Distributed under an MIT license: https://codemirror.net/5/LICENSE
3
-
4
- // Author: Jan T. Sott (http://github.com/idleberg)
5
-
6
- (function(mod) {
7
- if (typeof exports == "object" && typeof module == "object") // CommonJS
8
- mod(require("../../lib/codemirror"), require("../../addon/mode/simple"));
9
- else if (typeof define == "function" && define.amd) // AMD
10
- define(["../../lib/codemirror", "../../addon/mode/simple"], mod);
11
- else // Plain browser env
12
- mod(CodeMirror);
13
- })(function(CodeMirror) {
14
- "use strict";
15
-
16
- CodeMirror.defineSimpleMode("nsis",{
17
- start:[
18
- // Numbers
19
- {regex: /(?:[+-]?)(?:0x[\d,a-f]+)|(?:0o[0-7]+)|(?:0b[0,1]+)|(?:\d+.?\d*)/, token: "number"},
20
-
21
- // Strings
22
- { regex: /"(?:[^\\"]|\\.)*"?/, token: "string" },
23
- { regex: /'(?:[^\\']|\\.)*'?/, token: "string" },
24
- { regex: /`(?:[^\\`]|\\.)*`?/, token: "string" },
25
-
26
- // Compile Time Commands
27
- {regex: /^\s*(?:\!(addincludedir|addplugindir|appendfile|cd|define|delfile|echo|error|execute|finalize|getdllversion|gettlbversion|include|insertmacro|macro|macroend|makensis|packhdr|pragma|searchparse|searchreplace|system|tempfile|undef|uninstfinalize|verbose|warning))\b/i, token: "keyword"},
28
-
29
- // Conditional Compilation
30
- {regex: /^\s*(?:\!(if(?:n?def)?|ifmacron?def|macro))\b/i, token: "keyword", indent: true},
31
- {regex: /^\s*(?:\!(else|endif|macroend))\b/i, token: "keyword", dedent: true},
32
-
33
- // Runtime Commands
34
- {regex: /^\s*(?:Abort|AddBrandingImage|AddSize|AllowRootDirInstall|AllowSkipFiles|AutoCloseWindow|BGFont|BGGradient|BrandingText|BringToFront|Call|CallInstDLL|Caption|ChangeUI|CheckBitmap|ClearErrors|CompletedText|ComponentText|CopyFiles|CRCCheck|CreateDirectory|CreateFont|CreateShortCut|Delete|DeleteINISec|DeleteINIStr|DeleteRegKey|DeleteRegValue|DetailPrint|DetailsButtonText|DirText|DirVar|DirVerify|EnableWindow|EnumRegKey|EnumRegValue|Exch|Exec|ExecShell|ExecShellWait|ExecWait|ExpandEnvStrings|File|FileBufSize|FileClose|FileErrorText|FileOpen|FileRead|FileReadByte|FileReadUTF16LE|FileReadWord|FileWriteUTF16LE|FileSeek|FileWrite|FileWriteByte|FileWriteWord|FindClose|FindFirst|FindNext|FindWindow|FlushINI|GetCurInstType|GetCurrentAddress|GetDlgItem|GetDLLVersion|GetDLLVersionLocal|GetErrorLevel|GetFileTime|GetFileTimeLocal|GetFullPathName|GetFunctionAddress|GetInstDirError|GetKnownFolderPath|GetLabelAddress|GetTempFileName|GetWinVer|Goto|HideWindow|Icon|IfAbort|IfErrors|IfFileExists|IfRebootFlag|IfRtlLanguage|IfShellVarContextAll|IfSilent|InitPluginsDir|InstallButtonText|InstallColors|InstallDir|InstallDirRegKey|InstProgressFlags|InstType|InstTypeGetText|InstTypeSetText|Int64Cmp|Int64CmpU|Int64Fmt|IntCmp|IntCmpU|IntFmt|IntOp|IntPtrCmp|IntPtrCmpU|IntPtrOp|IsWindow|LangString|LicenseBkColor|LicenseData|LicenseForceSelection|LicenseLangString|LicenseText|LoadAndSetImage|LoadLanguageFile|LockWindow|LogSet|LogText|ManifestDPIAware|ManifestLongPathAware|ManifestMaxVersionTested|ManifestSupportedOS|MessageBox|MiscButtonText|Name|Nop|OutFile|Page|PageCallbacks|PEAddResource|PEDllCharacteristics|PERemoveResource|PESubsysVer|Pop|Push|Quit|ReadEnvStr|ReadINIStr|ReadRegDWORD|ReadRegStr|Reboot|RegDLL|Rename|RequestExecutionLevel|ReserveFile|Return|RMDir|SearchPath|SectionGetFlags|SectionGetInstTypes|SectionGetSize|SectionGetText|SectionIn|SectionSetFlags|SectionSetInstTypes|SectionSetSize|SectionSetText|SendMessage|SetAutoClose|SetBrandingImage|SetCompress|SetCompressor|SetCompressorDictSize|SetCtlColors|SetCurInstType|SetDatablockOptimize|SetDateSave|SetDetailsPrint|SetDetailsView|SetErrorLevel|SetErrors|SetFileAttributes|SetFont|SetOutPath|SetOverwrite|SetRebootFlag|SetRegView|SetShellVarContext|SetSilent|ShowInstDetails|ShowUninstDetails|ShowWindow|SilentInstall|SilentUnInstall|Sleep|SpaceTexts|StrCmp|StrCmpS|StrCpy|StrLen|SubCaption|Target|Unicode|UninstallButtonText|UninstallCaption|UninstallIcon|UninstallSubCaption|UninstallText|UninstPage|UnRegDLL|Var|VIAddVersionKey|VIFileVersion|VIProductVersion|WindowIcon|WriteINIStr|WriteRegBin|WriteRegDWORD|WriteRegExpandStr|WriteRegMultiStr|WriteRegNone|WriteRegStr|WriteUninstaller|XPStyle)\b/i, token: "keyword"},
35
- {regex: /^\s*(?:Function|PageEx|Section(?:Group)?)\b/i, token: "keyword", indent: true},
36
- {regex: /^\s*(?:(Function|PageEx|Section(?:Group)?)End)\b/i, token: "keyword", dedent: true},
37
-
38
- // Command Options
39
- {regex: /\b(?:ARCHIVE|FILE_ATTRIBUTE_ARCHIVE|FILE_ATTRIBUTE_HIDDEN|FILE_ATTRIBUTE_NORMAL|FILE_ATTRIBUTE_OFFLINE|FILE_ATTRIBUTE_READONLY|FILE_ATTRIBUTE_SYSTEM|FILE_ATTRIBUTE_TEMPORARY|HIDDEN|HKCC|HKCR(32|64)?|HKCU(32|64)?|HKDD|HKEY_CLASSES_ROOT|HKEY_CURRENT_CONFIG|HKEY_CURRENT_USER|HKEY_DYN_DATA|HKEY_LOCAL_MACHINE|HKEY_PERFORMANCE_DATA|HKEY_USERS|HKLM(32|64)?|HKPD|HKU|IDABORT|IDCANCEL|IDD_DIR|IDD_INST|IDD_INSTFILES|IDD_LICENSE|IDD_SELCOM|IDD_UNINST|IDD_VERIFY|IDIGNORE|IDNO|IDOK|IDRETRY|IDYES|MB_ABORTRETRYIGNORE|MB_DEFBUTTON1|MB_DEFBUTTON2|MB_DEFBUTTON3|MB_DEFBUTTON4|MB_ICONEXCLAMATION|MB_ICONINFORMATION|MB_ICONQUESTION|MB_ICONSTOP|MB_OK|MB_OKCANCEL|MB_RETRYCANCEL|MB_RIGHT|MB_RTLREADING|MB_SETFOREGROUND|MB_TOPMOST|MB_USERICON|MB_YESNO|MB_YESNOCANCEL|NORMAL|OFFLINE|READONLY|SHCTX|SHELL_CONTEXT|SW_HIDE|SW_SHOWDEFAULT|SW_SHOWMAXIMIZED|SW_SHOWMINIMIZED|SW_SHOWNORMAL|SYSTEM|TEMPORARY)\b/i, token: "atom"},
40
- {regex: /\b(?:admin|all|amd64-unicode|auto|both|bottom|bzip2|components|current|custom|directory|false|force|hide|highest|ifdiff|ifnewer|instfiles|lastused|leave|left|license|listonly|lzma|nevershow|none|normal|notset|off|on|right|show|silent|silentlog|textonly|top|true|try|un\.components|un\.custom|un\.directory|un\.instfiles|un\.license|uninstConfirm|user|Win10|Win7|Win8|WinVista|x-86-(ansi|unicode)|zlib)\b/i, token: "builtin"},
41
-
42
- // LogicLib.nsh
43
- {regex: /\$\{(?:And(?:If(?:Not)?|Unless)|Break|Case(?:2|3|4|5|Else)?|Continue|Default|Do(?:Until|While)?|Else(?:If(?:Not)?|Unless)?|End(?:If|Select|Switch)|Exit(?:Do|For|While)|For(?:Each)?|If(?:Cmd|Not(?:Then)?|Then)?|Loop(?:Until|While)?|Or(?:If(?:Not)?|Unless)|Select|Switch|Unless|While)\}/i, token: "variable-2", indent: true},
44
-
45
- // FileFunc.nsh
46
- {regex: /\$\{(?:BannerTrimPath|DirState|DriveSpace|Get(BaseName|Drives|ExeName|ExePath|FileAttributes|FileExt|FileName|FileVersion|Options|OptionsS|Parameters|Parent|Root|Size|Time)|Locate|RefreshShellIcons)\}/i, token: "variable-2", dedent: true},
47
-
48
- // Memento.nsh
49
- {regex: /\$\{(?:Memento(?:Section(?:Done|End|Restore|Save)?|UnselectedSection))\}/i, token: "variable-2", dedent: true},
50
-
51
- // TextFunc.nsh
52
- {regex: /\$\{(?:Config(?:Read|ReadS|Write|WriteS)|File(?:Join|ReadFromEnd|Recode)|Line(?:Find|Read|Sum)|Text(?:Compare|CompareS)|TrimNewLines)\}/i, token: "variable-2", dedent: true},
53
-
54
- // WinVer.nsh
55
- {regex: /\$\{(?:(?:At(?:Least|Most)|Is)(?:ServicePack|Win(?:7|8|10|95|98|200(?:0|3|8(?:R2)?)|ME|NT4|Vista|XP))|Is(?:NT|Server))\}/i, token: "variable", dedent: true},
56
-
57
- // WordFunc.nsh
58
- {regex: /\$\{(?:StrFilterS?|Version(?:Compare|Convert)|Word(?:AddS?|Find(?:(?:2|3)X)?S?|InsertS?|ReplaceS?))\}/i, token: "variable-2", dedent: true},
59
-
60
- // x64.nsh
61
- {regex: /\$\{(?:RunningX64)\}/i, token: "variable", dedent: true},
62
- {regex: /\$\{(?:Disable|Enable)X64FSRedirection\}/i, token: "variable-2", dedent: true},
63
-
64
- // Line Comment
65
- {regex: /(#|;).*/, token: "comment"},
66
-
67
- // Block Comment
68
- {regex: /\/\*/, token: "comment", next: "comment"},
69
-
70
- // Operator
71
- {regex: /[-+\/*=<>!]+/, token: "operator"},
72
-
73
- // Variable
74
- {regex: /\$\w[\w\.]*/, token: "variable"},
75
-
76
- // Constant
77
- {regex: /\${[\!\w\.:-]+}/, token: "variable-2"},
78
-
79
- // Language String
80
- {regex: /\$\([\!\w\.:-]+\)/, token: "variable-3"}
81
- ],
82
- comment: [
83
- {regex: /.*?\*\//, token: "comment", next: "start"},
84
- {regex: /.*/, token: "comment"}
85
- ],
86
- meta: {
87
- electricInput: /^\s*((Function|PageEx|Section|Section(Group)?)End|(\!(endif|macroend))|\$\{(End(If|Unless|While)|Loop(Until)|Next)\})$/i,
88
- blockCommentStart: "/*",
89
- blockCommentEnd: "*/",
90
- lineComment: ["#", ";"]
91
- }
92
- });
93
-
94
- CodeMirror.defineMIME("text/x-nsis", "nsis");
95
- });
@@ -1,195 +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
- * This script provides syntax highlighting support for
6
- * the N-Triples format.
7
- * N-Triples format specification:
8
- * https://www.w3.org/TR/n-triples/
9
- ***********************************************************/
10
-
11
- /*
12
- The following expression defines the defined ASF grammar transitions.
13
-
14
- pre_subject ->
15
- {
16
- ( writing_subject_uri | writing_bnode_uri )
17
- -> pre_predicate
18
- -> writing_predicate_uri
19
- -> pre_object
20
- -> writing_object_uri | writing_object_bnode |
21
- (
22
- writing_object_literal
23
- -> writing_literal_lang | writing_literal_type
24
- )
25
- -> post_object
26
- -> BEGIN
27
- } otherwise {
28
- -> ERROR
29
- }
30
- */
31
-
32
- (function(mod) {
33
- if (typeof exports == "object" && typeof module == "object") // CommonJS
34
- mod(require("../../lib/codemirror"));
35
- else if (typeof define == "function" && define.amd) // AMD
36
- define(["../../lib/codemirror"], mod);
37
- else // Plain browser env
38
- mod(CodeMirror);
39
- })(function(CodeMirror) {
40
- "use strict";
41
-
42
- CodeMirror.defineMode("ntriples", function() {
43
-
44
- var Location = {
45
- PRE_SUBJECT : 0,
46
- WRITING_SUB_URI : 1,
47
- WRITING_BNODE_URI : 2,
48
- PRE_PRED : 3,
49
- WRITING_PRED_URI : 4,
50
- PRE_OBJ : 5,
51
- WRITING_OBJ_URI : 6,
52
- WRITING_OBJ_BNODE : 7,
53
- WRITING_OBJ_LITERAL : 8,
54
- WRITING_LIT_LANG : 9,
55
- WRITING_LIT_TYPE : 10,
56
- POST_OBJ : 11,
57
- ERROR : 12
58
- };
59
- function transitState(currState, c) {
60
- var currLocation = currState.location;
61
- var ret;
62
-
63
- // Opening.
64
- if (currLocation == Location.PRE_SUBJECT && c == '<') ret = Location.WRITING_SUB_URI;
65
- else if(currLocation == Location.PRE_SUBJECT && c == '_') ret = Location.WRITING_BNODE_URI;
66
- else if(currLocation == Location.PRE_PRED && c == '<') ret = Location.WRITING_PRED_URI;
67
- else if(currLocation == Location.PRE_OBJ && c == '<') ret = Location.WRITING_OBJ_URI;
68
- else if(currLocation == Location.PRE_OBJ && c == '_') ret = Location.WRITING_OBJ_BNODE;
69
- else if(currLocation == Location.PRE_OBJ && c == '"') ret = Location.WRITING_OBJ_LITERAL;
70
-
71
- // Closing.
72
- else if(currLocation == Location.WRITING_SUB_URI && c == '>') ret = Location.PRE_PRED;
73
- else if(currLocation == Location.WRITING_BNODE_URI && c == ' ') ret = Location.PRE_PRED;
74
- else if(currLocation == Location.WRITING_PRED_URI && c == '>') ret = Location.PRE_OBJ;
75
- else if(currLocation == Location.WRITING_OBJ_URI && c == '>') ret = Location.POST_OBJ;
76
- else if(currLocation == Location.WRITING_OBJ_BNODE && c == ' ') ret = Location.POST_OBJ;
77
- else if(currLocation == Location.WRITING_OBJ_LITERAL && c == '"') ret = Location.POST_OBJ;
78
- else if(currLocation == Location.WRITING_LIT_LANG && c == ' ') ret = Location.POST_OBJ;
79
- else if(currLocation == Location.WRITING_LIT_TYPE && c == '>') ret = Location.POST_OBJ;
80
-
81
- // Closing typed and language literal.
82
- else if(currLocation == Location.WRITING_OBJ_LITERAL && c == '@') ret = Location.WRITING_LIT_LANG;
83
- else if(currLocation == Location.WRITING_OBJ_LITERAL && c == '^') ret = Location.WRITING_LIT_TYPE;
84
-
85
- // Spaces.
86
- else if( c == ' ' &&
87
- (
88
- currLocation == Location.PRE_SUBJECT ||
89
- currLocation == Location.PRE_PRED ||
90
- currLocation == Location.PRE_OBJ ||
91
- currLocation == Location.POST_OBJ
92
- )
93
- ) ret = currLocation;
94
-
95
- // Reset.
96
- else if(currLocation == Location.POST_OBJ && c == '.') ret = Location.PRE_SUBJECT;
97
-
98
- // Error
99
- else ret = Location.ERROR;
100
-
101
- currState.location=ret;
102
- }
103
-
104
- return {
105
- startState: function() {
106
- return {
107
- location : Location.PRE_SUBJECT,
108
- uris : [],
109
- anchors : [],
110
- bnodes : [],
111
- langs : [],
112
- types : []
113
- };
114
- },
115
- token: function(stream, state) {
116
- var ch = stream.next();
117
- if(ch == '<') {
118
- transitState(state, ch);
119
- var parsedURI = '';
120
- stream.eatWhile( function(c) { if( c != '#' && c != '>' ) { parsedURI += c; return true; } return false;} );
121
- state.uris.push(parsedURI);
122
- if( stream.match('#', false) ) return 'variable';
123
- stream.next();
124
- transitState(state, '>');
125
- return 'variable';
126
- }
127
- if(ch == '#') {
128
- var parsedAnchor = '';
129
- stream.eatWhile(function(c) { if(c != '>' && c != ' ') { parsedAnchor+= c; return true; } return false;});
130
- state.anchors.push(parsedAnchor);
131
- return 'variable-2';
132
- }
133
- if(ch == '>') {
134
- transitState(state, '>');
135
- return 'variable';
136
- }
137
- if(ch == '_') {
138
- transitState(state, ch);
139
- var parsedBNode = '';
140
- stream.eatWhile(function(c) { if( c != ' ' ) { parsedBNode += c; return true; } return false;});
141
- state.bnodes.push(parsedBNode);
142
- stream.next();
143
- transitState(state, ' ');
144
- return 'builtin';
145
- }
146
- if(ch == '"') {
147
- transitState(state, ch);
148
- stream.eatWhile( function(c) { return c != '"'; } );
149
- stream.next();
150
- if( stream.peek() != '@' && stream.peek() != '^' ) {
151
- transitState(state, '"');
152
- }
153
- return 'string';
154
- }
155
- if( ch == '@' ) {
156
- transitState(state, '@');
157
- var parsedLang = '';
158
- stream.eatWhile(function(c) { if( c != ' ' ) { parsedLang += c; return true; } return false;});
159
- state.langs.push(parsedLang);
160
- stream.next();
161
- transitState(state, ' ');
162
- return 'string-2';
163
- }
164
- if( ch == '^' ) {
165
- stream.next();
166
- transitState(state, '^');
167
- var parsedType = '';
168
- stream.eatWhile(function(c) { if( c != '>' ) { parsedType += c; return true; } return false;} );
169
- state.types.push(parsedType);
170
- stream.next();
171
- transitState(state, '>');
172
- return 'variable';
173
- }
174
- if( ch == ' ' ) {
175
- transitState(state, ch);
176
- }
177
- if( ch == '.' ) {
178
- transitState(state, ch);
179
- }
180
- }
181
- };
182
- });
183
-
184
- // define the registered Media Type for n-triples:
185
- // https://www.w3.org/TR/n-triples/#n-triples-mediatype
186
- CodeMirror.defineMIME("application/n-triples", "ntriples");
187
-
188
- // N-Quads is based on the N-Triples format (so same highlighting works)
189
- // https://www.w3.org/TR/n-quads/
190
- CodeMirror.defineMIME("application/n-quads", "ntriples");
191
-
192
- // previously used, though technically incorrect media type for n-triples
193
- CodeMirror.defineMIME("text/n-triples", "ntriples");
194
-
195
- });
@@ -1,139 +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("octave", function() {
15
- function wordRegexp(words) {
16
- return new RegExp("^((" + words.join(")|(") + "))\\b");
17
- }
18
-
19
- var singleOperators = new RegExp("^[\\+\\-\\*/&|\\^~<>!@'\\\\]");
20
- var singleDelimiters = new RegExp('^[\\(\\[\\{\\},:=;\\.]');
21
- var doubleOperators = new RegExp("^((==)|(~=)|(<=)|(>=)|(<<)|(>>)|(\\.[\\+\\-\\*/\\^\\\\]))");
22
- var doubleDelimiters = new RegExp("^((!=)|(\\+=)|(\\-=)|(\\*=)|(/=)|(&=)|(\\|=)|(\\^=))");
23
- var tripleDelimiters = new RegExp("^((>>=)|(<<=))");
24
- var expressionEnd = new RegExp("^[\\]\\)]");
25
- var identifiers = new RegExp("^[_A-Za-z\xa1-\uffff][_A-Za-z0-9\xa1-\uffff]*");
26
-
27
- var builtins = wordRegexp([
28
- 'error', 'eval', 'function', 'abs', 'acos', 'atan', 'asin', 'cos',
29
- 'cosh', 'exp', 'log', 'prod', 'sum', 'log10', 'max', 'min', 'sign', 'sin', 'sinh',
30
- 'sqrt', 'tan', 'reshape', 'break', 'zeros', 'default', 'margin', 'round', 'ones',
31
- 'rand', 'syn', 'ceil', 'floor', 'size', 'clear', 'zeros', 'eye', 'mean', 'std', 'cov',
32
- 'det', 'eig', 'inv', 'norm', 'rank', 'trace', 'expm', 'logm', 'sqrtm', 'linspace', 'plot',
33
- 'title', 'xlabel', 'ylabel', 'legend', 'text', 'grid', 'meshgrid', 'mesh', 'num2str',
34
- 'fft', 'ifft', 'arrayfun', 'cellfun', 'input', 'fliplr', 'flipud', 'ismember'
35
- ]);
36
-
37
- var keywords = wordRegexp([
38
- 'return', 'case', 'switch', 'else', 'elseif', 'end', 'endif', 'endfunction',
39
- 'if', 'otherwise', 'do', 'for', 'while', 'try', 'catch', 'classdef', 'properties', 'events',
40
- 'methods', 'global', 'persistent', 'endfor', 'endwhile', 'printf', 'sprintf', 'disp', 'until',
41
- 'continue', 'pkg'
42
- ]);
43
-
44
-
45
- // tokenizers
46
- function tokenTranspose(stream, state) {
47
- if (!stream.sol() && stream.peek() === '\'') {
48
- stream.next();
49
- state.tokenize = tokenBase;
50
- return 'operator';
51
- }
52
- state.tokenize = tokenBase;
53
- return tokenBase(stream, state);
54
- }
55
-
56
-
57
- function tokenComment(stream, state) {
58
- if (stream.match(/^.*%}/)) {
59
- state.tokenize = tokenBase;
60
- return 'comment';
61
- };
62
- stream.skipToEnd();
63
- return 'comment';
64
- }
65
-
66
- function tokenBase(stream, state) {
67
- // whitespaces
68
- if (stream.eatSpace()) return null;
69
-
70
- // Handle one line Comments
71
- if (stream.match('%{')){
72
- state.tokenize = tokenComment;
73
- stream.skipToEnd();
74
- return 'comment';
75
- }
76
-
77
- if (stream.match(/^[%#]/)){
78
- stream.skipToEnd();
79
- return 'comment';
80
- }
81
-
82
- // Handle Number Literals
83
- if (stream.match(/^[0-9\.+-]/, false)) {
84
- if (stream.match(/^[+-]?0x[0-9a-fA-F]+[ij]?/)) {
85
- stream.tokenize = tokenBase;
86
- return 'number'; };
87
- if (stream.match(/^[+-]?\d*\.\d+([EeDd][+-]?\d+)?[ij]?/)) { return 'number'; };
88
- if (stream.match(/^[+-]?\d+([EeDd][+-]?\d+)?[ij]?/)) { return 'number'; };
89
- }
90
- if (stream.match(wordRegexp(['nan','NaN','inf','Inf']))) { return 'number'; };
91
-
92
- // Handle Strings
93
- var m = stream.match(/^"(?:[^"]|"")*("|$)/) || stream.match(/^'(?:[^']|'')*('|$)/)
94
- if (m) { return m[1] ? 'string' : "string error"; }
95
-
96
- // Handle words
97
- if (stream.match(keywords)) { return 'keyword'; } ;
98
- if (stream.match(builtins)) { return 'builtin'; } ;
99
- if (stream.match(identifiers)) { return 'variable'; } ;
100
-
101
- if (stream.match(singleOperators) || stream.match(doubleOperators)) { return 'operator'; };
102
- if (stream.match(singleDelimiters) || stream.match(doubleDelimiters) || stream.match(tripleDelimiters)) { return null; };
103
-
104
- if (stream.match(expressionEnd)) {
105
- state.tokenize = tokenTranspose;
106
- return null;
107
- };
108
-
109
-
110
- // Handle non-detected items
111
- stream.next();
112
- return 'error';
113
- };
114
-
115
-
116
- return {
117
- startState: function() {
118
- return {
119
- tokenize: tokenBase
120
- };
121
- },
122
-
123
- token: function(stream, state) {
124
- var style = state.tokenize(stream, state);
125
- if (style === 'number' || style === 'variable'){
126
- state.tokenize = tokenTranspose;
127
- }
128
- return style;
129
- },
130
-
131
- lineComment: '%',
132
-
133
- fold: 'indent'
134
- };
135
- });
136
-
137
- CodeMirror.defineMIME("text/x-octave", "octave");
138
-
139
- });