@omicronenergy/oscd-ui 0.0.18 → 0.0.20

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 (724) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/custom-elements.json +12341 -8939
  3. package/dist/ace-editor/OscdAceEditor.d.ts +34 -0
  4. package/dist/ace-editor/OscdAceEditor.js +33 -0
  5. package/dist/ace-editor/OscdAceEditor.js.map +1 -0
  6. package/dist/ace-editor/OscdAceEditor.spec.d.ts +1 -0
  7. package/dist/ace-editor/OscdAceEditor.spec.js +16 -0
  8. package/dist/ace-editor/OscdAceEditor.spec.js.map +1 -0
  9. package/dist/ace-editor/OscdAceEditor.stories.d.ts +28 -0
  10. package/dist/ace-editor/OscdAceEditor.stories.js +22 -0
  11. package/dist/ace-editor/OscdAceEditor.stories.js.map +1 -0
  12. package/dist/ace-editor/ace/ace.js +22045 -0
  13. package/dist/ace-editor/ace/ext-beautify.js +343 -0
  14. package/dist/ace-editor/ace/ext-code_lens.js +204 -0
  15. package/dist/ace-editor/ace/ext-command_bar.js +469 -0
  16. package/dist/ace-editor/ace/ext-diff.js +4270 -0
  17. package/dist/ace-editor/ace/ext-elastic_tabstops_lite.js +238 -0
  18. package/dist/ace-editor/ace/ext-emmet.js +1303 -0
  19. package/dist/ace-editor/ace/ext-error_marker.js +9 -0
  20. package/dist/ace-editor/ace/ext-hardwrap.js +127 -0
  21. package/dist/ace-editor/ace/ext-inline_autocomplete.js +3547 -0
  22. package/dist/ace-editor/ace/ext-keybinding_menu.js +185 -0
  23. package/dist/ace-editor/ace/ext-language_tools.js +2724 -0
  24. package/dist/ace-editor/ace/ext-linking.js +66 -0
  25. package/dist/ace-editor/ace/ext-modelist.js +279 -0
  26. package/dist/ace-editor/ace/ext-options.js +862 -0
  27. package/dist/ace-editor/ace/ext-prompt.js +3164 -0
  28. package/dist/ace-editor/ace/ext-rtl.js +146 -0
  29. package/dist/ace-editor/ace/ext-searchbox.js +385 -0
  30. package/dist/ace-editor/ace/ext-settings_menu.js +862 -0
  31. package/dist/ace-editor/ace/ext-simple_tokenizer.js +137 -0
  32. package/dist/ace-editor/ace/ext-spellcheck.js +79 -0
  33. package/dist/ace-editor/ace/ext-split.js +203 -0
  34. package/dist/ace-editor/ace/ext-static_highlight.js +194 -0
  35. package/dist/ace-editor/ace/ext-statusbar.js +63 -0
  36. package/dist/ace-editor/ace/ext-textarea.js +400 -0
  37. package/dist/ace-editor/ace/ext-themelist.js +80 -0
  38. package/dist/ace-editor/ace/ext-whitespace.js +201 -0
  39. package/dist/ace-editor/ace/ext-whitespaces_in_selection.js +325 -0
  40. package/dist/ace-editor/ace/keybinding-emacs.js +1067 -0
  41. package/dist/ace-editor/ace/keybinding-sublime.js +409 -0
  42. package/dist/ace-editor/ace/keybinding-vim.js +7101 -0
  43. package/dist/ace-editor/ace/keybinding-vscode.js +255 -0
  44. package/dist/ace-editor/ace/mode-abap.js +200 -0
  45. package/dist/ace-editor/ace/mode-abc.js +243 -0
  46. package/dist/ace-editor/ace/mode-actionscript.js +234 -0
  47. package/dist/ace-editor/ace/mode-ada.js +108 -0
  48. package/dist/ace-editor/ace/mode-alda.js +279 -0
  49. package/dist/ace-editor/ace/mode-apache_conf.js +318 -0
  50. package/dist/ace-editor/ace/mode-apex.js +402 -0
  51. package/dist/ace-editor/ace/mode-applescript.js +232 -0
  52. package/dist/ace-editor/ace/mode-aql.js +92 -0
  53. package/dist/ace-editor/ace/mode-asciidoc.js +311 -0
  54. package/dist/ace-editor/ace/mode-asl.js +357 -0
  55. package/dist/ace-editor/ace/mode-assembly_arm32.js +185 -0
  56. package/dist/ace-editor/ace/mode-assembly_x86.js +170 -0
  57. package/dist/ace-editor/ace/mode-astro.js +2475 -0
  58. package/dist/ace-editor/ace/mode-autohotkey.js +208 -0
  59. package/dist/ace-editor/ace/mode-basic.js +201 -0
  60. package/dist/ace-editor/ace/mode-batchfile.js +199 -0
  61. package/dist/ace-editor/ace/mode-bibtex.js +318 -0
  62. package/dist/ace-editor/ace/mode-c9search.js +250 -0
  63. package/dist/ace-editor/ace/mode-c_cpp.js +417 -0
  64. package/dist/ace-editor/ace/mode-cedar.js +289 -0
  65. package/dist/ace-editor/ace/mode-cedarschema.js +275 -0
  66. package/dist/ace-editor/ace/mode-cirru.js +192 -0
  67. package/dist/ace-editor/ace/mode-clojure.js +322 -0
  68. package/dist/ace-editor/ace/mode-clue.js +361 -0
  69. package/dist/ace-editor/ace/mode-cobol.js +82 -0
  70. package/dist/ace-editor/ace/mode-coffee.js +335 -0
  71. package/dist/ace-editor/ace/mode-coldfusion.js +2410 -0
  72. package/dist/ace-editor/ace/mode-crystal.js +586 -0
  73. package/dist/ace-editor/ace/mode-csharp.js +413 -0
  74. package/dist/ace-editor/ace/mode-csound_document.js +4073 -0
  75. package/dist/ace-editor/ace/mode-csound_orchestra.js +2923 -0
  76. package/dist/ace-editor/ace/mode-csound_score.js +409 -0
  77. package/dist/ace-editor/ace/mode-csp.js +59 -0
  78. package/dist/ace-editor/ace/mode-css.js +632 -0
  79. package/dist/ace-editor/ace/mode-csv.js +97 -0
  80. package/dist/ace-editor/ace/mode-curly.js +2382 -0
  81. package/dist/ace-editor/ace/mode-cuttlefish.js +56 -0
  82. package/dist/ace-editor/ace/mode-d.js +450 -0
  83. package/dist/ace-editor/ace/mode-dart.js +618 -0
  84. package/dist/ace-editor/ace/mode-diff.js +129 -0
  85. package/dist/ace-editor/ace/mode-django.js +2423 -0
  86. package/dist/ace-editor/ace/mode-dockerfile.js +427 -0
  87. package/dist/ace-editor/ace/mode-dot.js +348 -0
  88. package/dist/ace-editor/ace/mode-drools.js +607 -0
  89. package/dist/ace-editor/ace/mode-edifact.js +130 -0
  90. package/dist/ace-editor/ace/mode-eiffel.js +120 -0
  91. package/dist/ace-editor/ace/mode-ejs.js +3278 -0
  92. package/dist/ace-editor/ace/mode-elixir.js +443 -0
  93. package/dist/ace-editor/ace/mode-elm.js +274 -0
  94. package/dist/ace-editor/ace/mode-erlang.js +836 -0
  95. package/dist/ace-editor/ace/mode-flix.js +163 -0
  96. package/dist/ace-editor/ace/mode-forth.js +253 -0
  97. package/dist/ace-editor/ace/mode-fortran.js +361 -0
  98. package/dist/ace-editor/ace/mode-fsharp.js +277 -0
  99. package/dist/ace-editor/ace/mode-fsl.js +226 -0
  100. package/dist/ace-editor/ace/mode-ftl.js +1256 -0
  101. package/dist/ace-editor/ace/mode-gcode.js +74 -0
  102. package/dist/ace-editor/ace/mode-gherkin.js +154 -0
  103. package/dist/ace-editor/ace/mode-gitignore.js +49 -0
  104. package/dist/ace-editor/ace/mode-glsl.js +475 -0
  105. package/dist/ace-editor/ace/mode-gobstones.js +1460 -0
  106. package/dist/ace-editor/ace/mode-golang.js +341 -0
  107. package/dist/ace-editor/ace/mode-graphqlschema.js +174 -0
  108. package/dist/ace-editor/ace/mode-groovy.js +1402 -0
  109. package/dist/ace-editor/ace/mode-groq.js +288 -0
  110. package/dist/ace-editor/ace/mode-haml.js +1907 -0
  111. package/dist/ace-editor/ace/mode-handlebars.js +2439 -0
  112. package/dist/ace-editor/ace/mode-haskell.js +324 -0
  113. package/dist/ace-editor/ace/mode-haskell_cabal.js +135 -0
  114. package/dist/ace-editor/ace/mode-haxe.js +313 -0
  115. package/dist/ace-editor/ace/mode-hjson.js +318 -0
  116. package/dist/ace-editor/ace/mode-html.js +2340 -0
  117. package/dist/ace-editor/ace/mode-html_elixir.js +2846 -0
  118. package/dist/ace-editor/ace/mode-html_ruby.js +3295 -0
  119. package/dist/ace-editor/ace/mode-ini.js +138 -0
  120. package/dist/ace-editor/ace/mode-io.js +210 -0
  121. package/dist/ace-editor/ace/mode-ion.js +477 -0
  122. package/dist/ace-editor/ace/mode-jack.js +293 -0
  123. package/dist/ace-editor/ace/mode-jade.js +2018 -0
  124. package/dist/ace-editor/ace/mode-java.js +1566 -0
  125. package/dist/ace-editor/ace/mode-javascript.js +1192 -0
  126. package/dist/ace-editor/ace/mode-jexl.js +270 -0
  127. package/dist/ace-editor/ace/mode-json.js +275 -0
  128. package/dist/ace-editor/ace/mode-json5.js +308 -0
  129. package/dist/ace-editor/ace/mode-jsoniq.js +2577 -0
  130. package/dist/ace-editor/ace/mode-jsp.js +1619 -0
  131. package/dist/ace-editor/ace/mode-jssm.js +293 -0
  132. package/dist/ace-editor/ace/mode-jsx.js +1210 -0
  133. package/dist/ace-editor/ace/mode-julia.js +254 -0
  134. package/dist/ace-editor/ace/mode-kotlin.js +445 -0
  135. package/dist/ace-editor/ace/mode-latex.js +252 -0
  136. package/dist/ace-editor/ace/mode-latte.js +2523 -0
  137. package/dist/ace-editor/ace/mode-less.js +742 -0
  138. package/dist/ace-editor/ace/mode-liquid.js +2742 -0
  139. package/dist/ace-editor/ace/mode-lisp.js +104 -0
  140. package/dist/ace-editor/ace/mode-livescript.js +272 -0
  141. package/dist/ace-editor/ace/mode-logiql.js +272 -0
  142. package/dist/ace-editor/ace/mode-logtalk.js +309 -0
  143. package/dist/ace-editor/ace/mode-lsl.js +287 -0
  144. package/dist/ace-editor/ace/mode-lua.js +393 -0
  145. package/dist/ace-editor/ace/mode-luapage.js +2786 -0
  146. package/dist/ace-editor/ace/mode-lucene.js +145 -0
  147. package/dist/ace-editor/ace/mode-makefile.js +374 -0
  148. package/dist/ace-editor/ace/mode-mariadb.js +149 -0
  149. package/dist/ace-editor/ace/mode-markdown.js +2936 -0
  150. package/dist/ace-editor/ace/mode-mask.js +1758 -0
  151. package/dist/ace-editor/ace/mode-matlab.js +239 -0
  152. package/dist/ace-editor/ace/mode-maze.js +256 -0
  153. package/dist/ace-editor/ace/mode-mediawiki.js +580 -0
  154. package/dist/ace-editor/ace/mode-mel.js +213 -0
  155. package/dist/ace-editor/ace/mode-mips.js +231 -0
  156. package/dist/ace-editor/ace/mode-mixal.js +110 -0
  157. package/dist/ace-editor/ace/mode-mushcode.js +642 -0
  158. package/dist/ace-editor/ace/mode-mysql.js +150 -0
  159. package/dist/ace-editor/ace/mode-nasal.js +513 -0
  160. package/dist/ace-editor/ace/mode-nginx.js +262 -0
  161. package/dist/ace-editor/ace/mode-nim.js +325 -0
  162. package/dist/ace-editor/ace/mode-nix.js +555 -0
  163. package/dist/ace-editor/ace/mode-nsis.js +279 -0
  164. package/dist/ace-editor/ace/mode-nunjucks.js +2678 -0
  165. package/dist/ace-editor/ace/mode-objectivec.js +626 -0
  166. package/dist/ace-editor/ace/mode-ocaml.js +378 -0
  167. package/dist/ace-editor/ace/mode-odin.js +449 -0
  168. package/dist/ace-editor/ace/mode-partiql.js +750 -0
  169. package/dist/ace-editor/ace/mode-pascal.js +204 -0
  170. package/dist/ace-editor/ace/mode-perl.js +318 -0
  171. package/dist/ace-editor/ace/mode-pgsql.js +1861 -0
  172. package/dist/ace-editor/ace/mode-php.js +14079 -0
  173. package/dist/ace-editor/ace/mode-php_laravel_blade.js +14267 -0
  174. package/dist/ace-editor/ace/mode-pig.js +278 -0
  175. package/dist/ace-editor/ace/mode-plain_text.js +27 -0
  176. package/dist/ace-editor/ace/mode-plsql.js +268 -0
  177. package/dist/ace-editor/ace/mode-powershell.js +567 -0
  178. package/dist/ace-editor/ace/mode-praat.js +412 -0
  179. package/dist/ace-editor/ace/mode-prisma.js +457 -0
  180. package/dist/ace-editor/ace/mode-prolog.js +305 -0
  181. package/dist/ace-editor/ace/mode-properties.js +69 -0
  182. package/dist/ace-editor/ace/mode-protobuf.js +498 -0
  183. package/dist/ace-editor/ace/mode-prql.js +323 -0
  184. package/dist/ace-editor/ace/mode-puppet.js +316 -0
  185. package/dist/ace-editor/ace/mode-python.js +476 -0
  186. package/dist/ace-editor/ace/mode-qml.js +346 -0
  187. package/dist/ace-editor/ace/mode-r.js +387 -0
  188. package/dist/ace-editor/ace/mode-raku.js +516 -0
  189. package/dist/ace-editor/ace/mode-razor.js +2698 -0
  190. package/dist/ace-editor/ace/mode-rdoc.js +286 -0
  191. package/dist/ace-editor/ace/mode-red.js +388 -0
  192. package/dist/ace-editor/ace/mode-redshift.js +321 -0
  193. package/dist/ace-editor/ace/mode-rhtml.js +2751 -0
  194. package/dist/ace-editor/ace/mode-robot.js +168 -0
  195. package/dist/ace-editor/ace/mode-rst.js +245 -0
  196. package/dist/ace-editor/ace/mode-ruby.js +921 -0
  197. package/dist/ace-editor/ace/mode-rust.js +393 -0
  198. package/dist/ace-editor/ace/mode-sac.js +349 -0
  199. package/dist/ace-editor/ace/mode-sass.js +480 -0
  200. package/dist/ace-editor/ace/mode-scad.js +350 -0
  201. package/dist/ace-editor/ace/mode-scala.js +1396 -0
  202. package/dist/ace-editor/ace/mode-scheme.js +210 -0
  203. package/dist/ace-editor/ace/mode-scrypt.js +317 -0
  204. package/dist/ace-editor/ace/mode-scss.js +768 -0
  205. package/dist/ace-editor/ace/mode-sh.js +387 -0
  206. package/dist/ace-editor/ace/mode-sjs.js +1394 -0
  207. package/dist/ace-editor/ace/mode-slim.js +4771 -0
  208. package/dist/ace-editor/ace/mode-smarty.js +2437 -0
  209. package/dist/ace-editor/ace/mode-smithy.js +456 -0
  210. package/dist/ace-editor/ace/mode-snippets.js +183 -0
  211. package/dist/ace-editor/ace/mode-soy_template.js +2612 -0
  212. package/dist/ace-editor/ace/mode-space.js +151 -0
  213. package/dist/ace-editor/ace/mode-sparql.js +288 -0
  214. package/dist/ace-editor/ace/mode-sql.js +221 -0
  215. package/dist/ace-editor/ace/mode-sqlserver.js +391 -0
  216. package/dist/ace-editor/ace/mode-stylus.js +443 -0
  217. package/dist/ace-editor/ace/mode-svg.js +1488 -0
  218. package/dist/ace-editor/ace/mode-swift.js +342 -0
  219. package/dist/ace-editor/ace/mode-tcl.js +338 -0
  220. package/dist/ace-editor/ace/mode-terraform.js +346 -0
  221. package/dist/ace-editor/ace/mode-tex.js +212 -0
  222. package/dist/ace-editor/ace/mode-text.js +9 -0
  223. package/dist/ace-editor/ace/mode-textile.js +125 -0
  224. package/dist/ace-editor/ace/mode-toml.js +129 -0
  225. package/dist/ace-editor/ace/mode-tsv.js +124 -0
  226. package/dist/ace-editor/ace/mode-tsx.js +1277 -0
  227. package/dist/ace-editor/ace/mode-turtle.js +264 -0
  228. package/dist/ace-editor/ace/mode-twig.js +2503 -0
  229. package/dist/ace-editor/ace/mode-typescript.js +1255 -0
  230. package/dist/ace-editor/ace/mode-vala.js +554 -0
  231. package/dist/ace-editor/ace/mode-vbscript.js +731 -0
  232. package/dist/ace-editor/ace/mode-velocity.js +2581 -0
  233. package/dist/ace-editor/ace/mode-verilog.js +98 -0
  234. package/dist/ace-editor/ace/mode-vhdl.js +94 -0
  235. package/dist/ace-editor/ace/mode-visualforce.js +2455 -0
  236. package/dist/ace-editor/ace/mode-vue.js +3835 -0
  237. package/dist/ace-editor/ace/mode-wollok.js +1330 -0
  238. package/dist/ace-editor/ace/mode-xml.js +477 -0
  239. package/dist/ace-editor/ace/mode-xquery.js +2589 -0
  240. package/dist/ace-editor/ace/mode-yaml.js +395 -0
  241. package/dist/ace-editor/ace/mode-zeek.js +502 -0
  242. package/dist/ace-editor/ace/mode-zig.js +585 -0
  243. package/dist/ace-editor/ace/snippets/abap.js +9 -0
  244. package/dist/ace-editor/ace/snippets/abc.js +16 -0
  245. package/dist/ace-editor/ace/snippets/actionscript.js +16 -0
  246. package/dist/ace-editor/ace/snippets/ada.js +9 -0
  247. package/dist/ace-editor/ace/snippets/alda.js +9 -0
  248. package/dist/ace-editor/ace/snippets/apache_conf.js +9 -0
  249. package/dist/ace-editor/ace/snippets/apex.js +9 -0
  250. package/dist/ace-editor/ace/snippets/applescript.js +9 -0
  251. package/dist/ace-editor/ace/snippets/aql.js +9 -0
  252. package/dist/ace-editor/ace/snippets/asciidoc.js +9 -0
  253. package/dist/ace-editor/ace/snippets/asl.js +9 -0
  254. package/dist/ace-editor/ace/snippets/assembly_arm32.js +9 -0
  255. package/dist/ace-editor/ace/snippets/assembly_x86.js +9 -0
  256. package/dist/ace-editor/ace/snippets/astro.js +9 -0
  257. package/dist/ace-editor/ace/snippets/autohotkey.js +9 -0
  258. package/dist/ace-editor/ace/snippets/basic.js +9 -0
  259. package/dist/ace-editor/ace/snippets/batchfile.js +9 -0
  260. package/dist/ace-editor/ace/snippets/bibtex.js +9 -0
  261. package/dist/ace-editor/ace/snippets/c9search.js +9 -0
  262. package/dist/ace-editor/ace/snippets/c_cpp.js +16 -0
  263. package/dist/ace-editor/ace/snippets/cedar.js +16 -0
  264. package/dist/ace-editor/ace/snippets/cedarschema.js +16 -0
  265. package/dist/ace-editor/ace/snippets/cirru.js +9 -0
  266. package/dist/ace-editor/ace/snippets/clojure.js +16 -0
  267. package/dist/ace-editor/ace/snippets/clue.js +9 -0
  268. package/dist/ace-editor/ace/snippets/cobol.js +9 -0
  269. package/dist/ace-editor/ace/snippets/coffee.js +16 -0
  270. package/dist/ace-editor/ace/snippets/coldfusion.js +9 -0
  271. package/dist/ace-editor/ace/snippets/crystal.js +9 -0
  272. package/dist/ace-editor/ace/snippets/csharp.js +9 -0
  273. package/dist/ace-editor/ace/snippets/csound_document.js +16 -0
  274. package/dist/ace-editor/ace/snippets/csound_orchestra.js +16 -0
  275. package/dist/ace-editor/ace/snippets/csound_score.js +9 -0
  276. package/dist/ace-editor/ace/snippets/csp.js +9 -0
  277. package/dist/ace-editor/ace/snippets/css.js +16 -0
  278. package/dist/ace-editor/ace/snippets/csv.js +9 -0
  279. package/dist/ace-editor/ace/snippets/curly.js +9 -0
  280. package/dist/ace-editor/ace/snippets/cuttlefish.js +9 -0
  281. package/dist/ace-editor/ace/snippets/d.js +9 -0
  282. package/dist/ace-editor/ace/snippets/dart.js +16 -0
  283. package/dist/ace-editor/ace/snippets/diff.js +16 -0
  284. package/dist/ace-editor/ace/snippets/django.js +16 -0
  285. package/dist/ace-editor/ace/snippets/dockerfile.js +9 -0
  286. package/dist/ace-editor/ace/snippets/dot.js +9 -0
  287. package/dist/ace-editor/ace/snippets/drools.js +16 -0
  288. package/dist/ace-editor/ace/snippets/edifact.js +16 -0
  289. package/dist/ace-editor/ace/snippets/eiffel.js +9 -0
  290. package/dist/ace-editor/ace/snippets/ejs.js +9 -0
  291. package/dist/ace-editor/ace/snippets/elixir.js +9 -0
  292. package/dist/ace-editor/ace/snippets/elm.js +9 -0
  293. package/dist/ace-editor/ace/snippets/erlang.js +16 -0
  294. package/dist/ace-editor/ace/snippets/flix.js +9 -0
  295. package/dist/ace-editor/ace/snippets/forth.js +9 -0
  296. package/dist/ace-editor/ace/snippets/fortran.js +9 -0
  297. package/dist/ace-editor/ace/snippets/fsharp.js +9 -0
  298. package/dist/ace-editor/ace/snippets/fsl.js +16 -0
  299. package/dist/ace-editor/ace/snippets/ftl.js +9 -0
  300. package/dist/ace-editor/ace/snippets/gcode.js +9 -0
  301. package/dist/ace-editor/ace/snippets/gherkin.js +9 -0
  302. package/dist/ace-editor/ace/snippets/gitignore.js +9 -0
  303. package/dist/ace-editor/ace/snippets/glsl.js +9 -0
  304. package/dist/ace-editor/ace/snippets/gobstones.js +16 -0
  305. package/dist/ace-editor/ace/snippets/golang.js +9 -0
  306. package/dist/ace-editor/ace/snippets/graphqlschema.js +16 -0
  307. package/dist/ace-editor/ace/snippets/groovy.js +9 -0
  308. package/dist/ace-editor/ace/snippets/groq.js +9 -0
  309. package/dist/ace-editor/ace/snippets/haml.js +16 -0
  310. package/dist/ace-editor/ace/snippets/handlebars.js +9 -0
  311. package/dist/ace-editor/ace/snippets/haskell.js +16 -0
  312. package/dist/ace-editor/ace/snippets/haskell_cabal.js +9 -0
  313. package/dist/ace-editor/ace/snippets/haxe.js +9 -0
  314. package/dist/ace-editor/ace/snippets/hjson.js +9 -0
  315. package/dist/ace-editor/ace/snippets/html.js +16 -0
  316. package/dist/ace-editor/ace/snippets/html_elixir.js +9 -0
  317. package/dist/ace-editor/ace/snippets/html_ruby.js +9 -0
  318. package/dist/ace-editor/ace/snippets/ini.js +9 -0
  319. package/dist/ace-editor/ace/snippets/io.js +74 -0
  320. package/dist/ace-editor/ace/snippets/ion.js +9 -0
  321. package/dist/ace-editor/ace/snippets/jack.js +9 -0
  322. package/dist/ace-editor/ace/snippets/jade.js +9 -0
  323. package/dist/ace-editor/ace/snippets/java.js +16 -0
  324. package/dist/ace-editor/ace/snippets/javascript.js +16 -0
  325. package/dist/ace-editor/ace/snippets/jexl.js +9 -0
  326. package/dist/ace-editor/ace/snippets/json.js +9 -0
  327. package/dist/ace-editor/ace/snippets/json5.js +9 -0
  328. package/dist/ace-editor/ace/snippets/jsoniq.js +78 -0
  329. package/dist/ace-editor/ace/snippets/jsp.js +16 -0
  330. package/dist/ace-editor/ace/snippets/jssm.js +9 -0
  331. package/dist/ace-editor/ace/snippets/jsx.js +9 -0
  332. package/dist/ace-editor/ace/snippets/julia.js +9 -0
  333. package/dist/ace-editor/ace/snippets/kotlin.js +9 -0
  334. package/dist/ace-editor/ace/snippets/latex.js +9 -0
  335. package/dist/ace-editor/ace/snippets/latte.js +9 -0
  336. package/dist/ace-editor/ace/snippets/less.js +9 -0
  337. package/dist/ace-editor/ace/snippets/liquid.js +16 -0
  338. package/dist/ace-editor/ace/snippets/lisp.js +9 -0
  339. package/dist/ace-editor/ace/snippets/livescript.js +9 -0
  340. package/dist/ace-editor/ace/snippets/logiql.js +9 -0
  341. package/dist/ace-editor/ace/snippets/logtalk.js +9 -0
  342. package/dist/ace-editor/ace/snippets/lsl.js +16 -0
  343. package/dist/ace-editor/ace/snippets/lua.js +16 -0
  344. package/dist/ace-editor/ace/snippets/luapage.js +9 -0
  345. package/dist/ace-editor/ace/snippets/lucene.js +9 -0
  346. package/dist/ace-editor/ace/snippets/makefile.js +16 -0
  347. package/dist/ace-editor/ace/snippets/mariadb.js +9 -0
  348. package/dist/ace-editor/ace/snippets/markdown.js +16 -0
  349. package/dist/ace-editor/ace/snippets/mask.js +9 -0
  350. package/dist/ace-editor/ace/snippets/matlab.js +9 -0
  351. package/dist/ace-editor/ace/snippets/maze.js +16 -0
  352. package/dist/ace-editor/ace/snippets/mediawiki.js +9 -0
  353. package/dist/ace-editor/ace/snippets/mel.js +9 -0
  354. package/dist/ace-editor/ace/snippets/mips.js +9 -0
  355. package/dist/ace-editor/ace/snippets/mixal.js +9 -0
  356. package/dist/ace-editor/ace/snippets/mushcode.js +9 -0
  357. package/dist/ace-editor/ace/snippets/mysql.js +9 -0
  358. package/dist/ace-editor/ace/snippets/nasal.js +9 -0
  359. package/dist/ace-editor/ace/snippets/nginx.js +9 -0
  360. package/dist/ace-editor/ace/snippets/nim.js +9 -0
  361. package/dist/ace-editor/ace/snippets/nix.js +9 -0
  362. package/dist/ace-editor/ace/snippets/nsis.js +9 -0
  363. package/dist/ace-editor/ace/snippets/nunjucks.js +9 -0
  364. package/dist/ace-editor/ace/snippets/objectivec.js +9 -0
  365. package/dist/ace-editor/ace/snippets/ocaml.js +9 -0
  366. package/dist/ace-editor/ace/snippets/odin.js +9 -0
  367. package/dist/ace-editor/ace/snippets/partiql.js +9 -0
  368. package/dist/ace-editor/ace/snippets/pascal.js +9 -0
  369. package/dist/ace-editor/ace/snippets/perl.js +16 -0
  370. package/dist/ace-editor/ace/snippets/pgsql.js +9 -0
  371. package/dist/ace-editor/ace/snippets/php.js +16 -0
  372. package/dist/ace-editor/ace/snippets/php_laravel_blade.js +9 -0
  373. package/dist/ace-editor/ace/snippets/pig.js +9 -0
  374. package/dist/ace-editor/ace/snippets/plain_text.js +9 -0
  375. package/dist/ace-editor/ace/snippets/plsql.js +9 -0
  376. package/dist/ace-editor/ace/snippets/powershell.js +9 -0
  377. package/dist/ace-editor/ace/snippets/praat.js +9 -0
  378. package/dist/ace-editor/ace/snippets/prisma.js +9 -0
  379. package/dist/ace-editor/ace/snippets/prolog.js +9 -0
  380. package/dist/ace-editor/ace/snippets/properties.js +9 -0
  381. package/dist/ace-editor/ace/snippets/protobuf.js +9 -0
  382. package/dist/ace-editor/ace/snippets/prql.js +9 -0
  383. package/dist/ace-editor/ace/snippets/puppet.js +9 -0
  384. package/dist/ace-editor/ace/snippets/python.js +16 -0
  385. package/dist/ace-editor/ace/snippets/qml.js +9 -0
  386. package/dist/ace-editor/ace/snippets/r.js +16 -0
  387. package/dist/ace-editor/ace/snippets/raku.js +9 -0
  388. package/dist/ace-editor/ace/snippets/razor.js +16 -0
  389. package/dist/ace-editor/ace/snippets/rdoc.js +9 -0
  390. package/dist/ace-editor/ace/snippets/red.js +9 -0
  391. package/dist/ace-editor/ace/snippets/redshift.js +9 -0
  392. package/dist/ace-editor/ace/snippets/rhtml.js +9 -0
  393. package/dist/ace-editor/ace/snippets/robot.js +16 -0
  394. package/dist/ace-editor/ace/snippets/rst.js +16 -0
  395. package/dist/ace-editor/ace/snippets/ruby.js +16 -0
  396. package/dist/ace-editor/ace/snippets/rust.js +9 -0
  397. package/dist/ace-editor/ace/snippets/sac.js +9 -0
  398. package/dist/ace-editor/ace/snippets/sass.js +9 -0
  399. package/dist/ace-editor/ace/snippets/scad.js +9 -0
  400. package/dist/ace-editor/ace/snippets/scala.js +9 -0
  401. package/dist/ace-editor/ace/snippets/scheme.js +9 -0
  402. package/dist/ace-editor/ace/snippets/scrypt.js +9 -0
  403. package/dist/ace-editor/ace/snippets/scss.js +9 -0
  404. package/dist/ace-editor/ace/snippets/sh.js +16 -0
  405. package/dist/ace-editor/ace/snippets/sjs.js +9 -0
  406. package/dist/ace-editor/ace/snippets/slim.js +9 -0
  407. package/dist/ace-editor/ace/snippets/smarty.js +9 -0
  408. package/dist/ace-editor/ace/snippets/smithy.js +9 -0
  409. package/dist/ace-editor/ace/snippets/snippets.js +16 -0
  410. package/dist/ace-editor/ace/snippets/soy_template.js +9 -0
  411. package/dist/ace-editor/ace/snippets/space.js +9 -0
  412. package/dist/ace-editor/ace/snippets/sparql.js +9 -0
  413. package/dist/ace-editor/ace/snippets/sql.js +16 -0
  414. package/dist/ace-editor/ace/snippets/sqlserver.js +16 -0
  415. package/dist/ace-editor/ace/snippets/stylus.js +9 -0
  416. package/dist/ace-editor/ace/snippets/svg.js +9 -0
  417. package/dist/ace-editor/ace/snippets/swift.js +9 -0
  418. package/dist/ace-editor/ace/snippets/tcl.js +16 -0
  419. package/dist/ace-editor/ace/snippets/terraform.js +9 -0
  420. package/dist/ace-editor/ace/snippets/tex.js +16 -0
  421. package/dist/ace-editor/ace/snippets/text.js +9 -0
  422. package/dist/ace-editor/ace/snippets/textile.js +16 -0
  423. package/dist/ace-editor/ace/snippets/toml.js +9 -0
  424. package/dist/ace-editor/ace/snippets/tsv.js +9 -0
  425. package/dist/ace-editor/ace/snippets/tsx.js +9 -0
  426. package/dist/ace-editor/ace/snippets/turtle.js +9 -0
  427. package/dist/ace-editor/ace/snippets/twig.js +9 -0
  428. package/dist/ace-editor/ace/snippets/typescript.js +9 -0
  429. package/dist/ace-editor/ace/snippets/vala.js +199 -0
  430. package/dist/ace-editor/ace/snippets/vbscript.js +9 -0
  431. package/dist/ace-editor/ace/snippets/velocity.js +17 -0
  432. package/dist/ace-editor/ace/snippets/verilog.js +9 -0
  433. package/dist/ace-editor/ace/snippets/vhdl.js +9 -0
  434. package/dist/ace-editor/ace/snippets/visualforce.js +9 -0
  435. package/dist/ace-editor/ace/snippets/vue.js +9 -0
  436. package/dist/ace-editor/ace/snippets/wollok.js +16 -0
  437. package/dist/ace-editor/ace/snippets/xml.js +9 -0
  438. package/dist/ace-editor/ace/snippets/xquery.js +78 -0
  439. package/dist/ace-editor/ace/snippets/yaml.js +9 -0
  440. package/dist/ace-editor/ace/snippets/zeek.js +9 -0
  441. package/dist/ace-editor/ace/snippets/zig.js +9 -0
  442. package/dist/ace-editor/ace/theme-ambiance.js +18 -0
  443. package/dist/ace-editor/ace/theme-chaos.js +18 -0
  444. package/dist/ace-editor/ace/theme-chrome.js +18 -0
  445. package/dist/ace-editor/ace/theme-cloud9_day.js +19 -0
  446. package/dist/ace-editor/ace/theme-cloud9_night.js +18 -0
  447. package/dist/ace-editor/ace/theme-cloud9_night_low_color.js +18 -0
  448. package/dist/ace-editor/ace/theme-cloud_editor.js +19 -0
  449. package/dist/ace-editor/ace/theme-cloud_editor_dark.js +19 -0
  450. package/dist/ace-editor/ace/theme-clouds.js +18 -0
  451. package/dist/ace-editor/ace/theme-clouds_midnight.js +18 -0
  452. package/dist/ace-editor/ace/theme-cobalt.js +18 -0
  453. package/dist/ace-editor/ace/theme-crimson_editor.js +18 -0
  454. package/dist/ace-editor/ace/theme-dawn.js +18 -0
  455. package/dist/ace-editor/ace/theme-dracula.js +19 -0
  456. package/dist/ace-editor/ace/theme-dreamweaver.js +18 -0
  457. package/dist/ace-editor/ace/theme-eclipse.js +19 -0
  458. package/dist/ace-editor/ace/theme-github.js +18 -0
  459. package/dist/ace-editor/ace/theme-github_dark.js +18 -0
  460. package/dist/ace-editor/ace/theme-github_light_default.js +18 -0
  461. package/dist/ace-editor/ace/theme-gob.js +18 -0
  462. package/dist/ace-editor/ace/theme-gruvbox.js +18 -0
  463. package/dist/ace-editor/ace/theme-gruvbox_dark_hard.js +18 -0
  464. package/dist/ace-editor/ace/theme-gruvbox_light_hard.js +18 -0
  465. package/dist/ace-editor/ace/theme-idle_fingers.js +18 -0
  466. package/dist/ace-editor/ace/theme-iplastic.js +18 -0
  467. package/dist/ace-editor/ace/theme-katzenmilch.js +18 -0
  468. package/dist/ace-editor/ace/theme-kr_theme.js +18 -0
  469. package/dist/ace-editor/ace/theme-kuroir.js +18 -0
  470. package/dist/ace-editor/ace/theme-merbivore.js +18 -0
  471. package/dist/ace-editor/ace/theme-merbivore_soft.js +18 -0
  472. package/dist/ace-editor/ace/theme-mono_industrial.js +18 -0
  473. package/dist/ace-editor/ace/theme-monokai.js +18 -0
  474. package/dist/ace-editor/ace/theme-nord_dark.js +19 -0
  475. package/dist/ace-editor/ace/theme-one_dark.js +18 -0
  476. package/dist/ace-editor/ace/theme-pastel_on_dark.js +18 -0
  477. package/dist/ace-editor/ace/theme-solarized_dark.js +18 -0
  478. package/dist/ace-editor/ace/theme-solarized_light.js +18 -0
  479. package/dist/ace-editor/ace/theme-sqlserver.js +18 -0
  480. package/dist/ace-editor/ace/theme-terminal.js +18 -0
  481. package/dist/ace-editor/ace/theme-textmate.js +16 -0
  482. package/dist/ace-editor/ace/theme-tomorrow.js +18 -0
  483. package/dist/ace-editor/ace/theme-tomorrow_night.js +18 -0
  484. package/dist/ace-editor/ace/theme-tomorrow_night_blue.js +18 -0
  485. package/dist/ace-editor/ace/theme-tomorrow_night_bright.js +18 -0
  486. package/dist/ace-editor/ace/theme-tomorrow_night_eighties.js +18 -0
  487. package/dist/ace-editor/ace/theme-twilight.js +18 -0
  488. package/dist/ace-editor/ace/theme-vibrant_ink.js +18 -0
  489. package/dist/ace-editor/ace/theme-xcode.js +18 -0
  490. package/dist/ace-editor/ace/worker-base.js +1337 -0
  491. package/dist/ace-editor/ace/worker-coffee.js +1386 -0
  492. package/dist/ace-editor/ace/worker-css.js +8918 -0
  493. package/dist/ace-editor/ace/worker-html.js +10848 -0
  494. package/dist/ace-editor/ace/worker-javascript.js +15358 -0
  495. package/dist/ace-editor/ace/worker-json.js +1631 -0
  496. package/dist/ace-editor/ace/worker-lua.js +3524 -0
  497. package/dist/ace-editor/ace/worker-php.js +3793 -0
  498. package/dist/ace-editor/ace/worker-xml.js +3127 -0
  499. package/dist/ace-editor/ace/worker-xquery.js +57584 -0
  500. package/dist/ace-editor/ace/worker-yaml.js +5824 -0
  501. package/dist/ace-editor/internal/AceEditor.d.ts +22 -0
  502. package/dist/ace-editor/internal/AceEditor.js +113 -0
  503. package/dist/ace-editor/internal/AceEditor.js.map +1 -0
  504. package/dist/ace-editor/internal/ace-editor-base/AceEditorBase.d.ts +55 -0
  505. package/dist/ace-editor/internal/ace-editor-base/AceEditorBase.js +205 -0
  506. package/dist/ace-editor/internal/ace-editor-base/AceEditorBase.js.map +1 -0
  507. package/dist/ace-editor/internal/ace-editor-base/debounce.d.ts +24 -0
  508. package/dist/ace-editor/internal/ace-editor-base/debounce.js +41 -0
  509. package/dist/ace-editor/internal/ace-editor-base/debounce.js.map +1 -0
  510. package/dist/ace-editor/internal/ace-editor-base/property-decorators.d.ts +66 -0
  511. package/dist/ace-editor/internal/ace-editor-base/property-decorators.js +171 -0
  512. package/dist/ace-editor/internal/ace-editor-base/property-decorators.js.map +1 -0
  513. package/dist/ace-editor/internal/ace-theme-oscd.d.ts +1 -0
  514. package/dist/ace-editor/internal/ace-theme-oscd.js +247 -0
  515. package/dist/ace-editor/internal/ace-theme-oscd.js.map +1 -0
  516. package/dist/ace-editor/internal/ace.config.d.ts +54 -0
  517. package/dist/ace-editor/internal/ace.config.js +61 -0
  518. package/dist/ace-editor/internal/ace.config.js.map +1 -0
  519. package/dist/ace-editor/oscd-ace-editor.d.ts +2 -0
  520. package/dist/ace-editor/oscd-ace-editor.js +4 -0
  521. package/dist/ace-editor/oscd-ace-editor.js.map +1 -0
  522. package/dist/action-icon/OscdActionIcon.js +1 -3
  523. package/dist/action-icon/OscdActionIcon.js.map +1 -1
  524. package/dist/action-list/OscdActionList.js +8 -8
  525. package/dist/action-list/OscdActionList.js.map +1 -1
  526. package/dist/action-pane/OscdActionPane.js +1 -3
  527. package/dist/action-pane/OscdActionPane.js.map +1 -1
  528. package/dist/action-tree/OscdActionTree.d.ts +2 -0
  529. package/dist/action-tree/OscdActionTree.js +32 -62
  530. package/dist/action-tree/OscdActionTree.js.map +1 -1
  531. package/dist/action-tree/oscd-action-tree.spec.js +2 -2
  532. package/dist/action-tree/oscd-action-tree.spec.js.map +1 -1
  533. package/dist/app-bar/OscdAppBar.d.ts +1 -1
  534. package/dist/app-bar/OscdAppBar.js +1 -1
  535. package/dist/app-bar/OscdAppBar.js.map +1 -1
  536. package/dist/app-bar/oscd-app-bar.d.ts +1 -1
  537. package/dist/app-bar/oscd-app-bar.js +1 -1
  538. package/dist/app-bar/oscd-app-bar.js.map +1 -1
  539. package/dist/button/OscdElevatedButton.d.ts +1 -1
  540. package/dist/button/OscdElevatedButton.js +1 -1
  541. package/dist/button/OscdElevatedButton.js.map +1 -1
  542. package/dist/button/OscdFilledButton.d.ts +1 -1
  543. package/dist/button/OscdFilledButton.js +1 -1
  544. package/dist/button/OscdFilledButton.js.map +1 -1
  545. package/dist/button/OscdFilledTonalButton.d.ts +1 -1
  546. package/dist/button/OscdFilledTonalButton.js +1 -1
  547. package/dist/button/OscdFilledTonalButton.js.map +1 -1
  548. package/dist/button/OscdOutlinedButton.d.ts +1 -1
  549. package/dist/button/OscdOutlinedButton.js +1 -1
  550. package/dist/button/OscdOutlinedButton.js.map +1 -1
  551. package/dist/button/OscdTextButton.d.ts +1 -1
  552. package/dist/button/OscdTextButton.js +1 -1
  553. package/dist/button/OscdTextButton.js.map +1 -1
  554. package/dist/checkbox/OscdCheckbox.d.ts +1 -1
  555. package/dist/checkbox/OscdCheckbox.js +1 -1
  556. package/dist/checkbox/OscdCheckbox.js.map +1 -1
  557. package/dist/chips/OscdAssistChip.d.ts +1 -1
  558. package/dist/chips/OscdAssistChip.js +1 -1
  559. package/dist/chips/OscdAssistChip.js.map +1 -1
  560. package/dist/chips/OscdChipSet.d.ts +1 -1
  561. package/dist/chips/OscdChipSet.js.map +1 -1
  562. package/dist/chips/OscdFilterChip.d.ts +1 -1
  563. package/dist/chips/OscdFilterChip.js +1 -1
  564. package/dist/chips/OscdFilterChip.js.map +1 -1
  565. package/dist/chips/OscdInputChip.d.ts +1 -1
  566. package/dist/chips/OscdInputChip.js +1 -1
  567. package/dist/chips/OscdInputChip.js.map +1 -1
  568. package/dist/chips/OscdSuggestionChip.d.ts +1 -1
  569. package/dist/chips/OscdSuggestionChip.js +1 -1
  570. package/dist/chips/OscdSuggestionChip.js.map +1 -1
  571. package/dist/decorators/localstorage.js.map +1 -1
  572. package/dist/dialog/OscdDialog.d.ts +1 -1
  573. package/dist/dialog/OscdDialog.js +1 -1
  574. package/dist/dialog/OscdDialog.js.map +1 -1
  575. package/dist/dialog/warning/OscdWarnDialog.d.ts +31 -0
  576. package/dist/dialog/warning/OscdWarnDialog.js +74 -0
  577. package/dist/dialog/warning/OscdWarnDialog.js.map +1 -0
  578. package/dist/dialog/warning/oscd-warn-dialog.d.ts +2 -0
  579. package/dist/dialog/warning/oscd-warn-dialog.js +4 -0
  580. package/dist/dialog/warning/oscd-warn-dialog.js.map +1 -0
  581. package/dist/divider/OscdDivider.d.ts +1 -1
  582. package/dist/divider/OscdDivider.js.map +1 -1
  583. package/dist/elevation/OscdElevation.d.ts +1 -1
  584. package/dist/elevation/OscdElevation.js.map +1 -1
  585. package/dist/fab/OscdBrandedFab.d.ts +1 -1
  586. package/dist/fab/OscdBrandedFab.js +1 -1
  587. package/dist/fab/OscdBrandedFab.js.map +1 -1
  588. package/dist/fab/OscdFab.d.ts +1 -1
  589. package/dist/fab/OscdFab.js +1 -1
  590. package/dist/fab/OscdFab.js.map +1 -1
  591. package/dist/field/OscdFilledField.d.ts +1 -1
  592. package/dist/field/OscdFilledField.js.map +1 -1
  593. package/dist/field/OscdOutlinedField.d.ts +1 -1
  594. package/dist/field/OscdOutlinedField.js.map +1 -1
  595. package/dist/filter-button/OscdFilterButton.js.map +1 -1
  596. package/dist/focus/OscdFocusRing.d.ts +1 -1
  597. package/dist/focus/OscdFocusRing.js.map +1 -1
  598. package/dist/icon/OscdIcon.d.ts +1 -1
  599. package/dist/icon/OscdIcon.js +1 -1
  600. package/dist/icon/OscdIcon.js.map +1 -1
  601. package/dist/icon/internal/icon.d.ts +1 -1
  602. package/dist/icon/internal/icon.js +1 -1
  603. package/dist/icon/internal/icon.js.map +1 -1
  604. package/dist/iconbutton/OscdFilledIconButton.d.ts +1 -1
  605. package/dist/iconbutton/OscdFilledIconButton.js +1 -1
  606. package/dist/iconbutton/OscdFilledIconButton.js.map +1 -1
  607. package/dist/iconbutton/OscdFilledTonalIconButton.d.ts +1 -1
  608. package/dist/iconbutton/OscdFilledTonalIconButton.js +1 -1
  609. package/dist/iconbutton/OscdFilledTonalIconButton.js.map +1 -1
  610. package/dist/iconbutton/OscdIconButton.d.ts +1 -1
  611. package/dist/iconbutton/OscdIconButton.js +1 -1
  612. package/dist/iconbutton/OscdIconButton.js.map +1 -1
  613. package/dist/iconbutton/OscdOutlinedIconButton.d.ts +1 -1
  614. package/dist/iconbutton/OscdOutlinedIconButton.js +1 -1
  615. package/dist/iconbutton/OscdOutlinedIconButton.js.map +1 -1
  616. package/dist/labs/badge/OscdBadge.d.ts +1 -1
  617. package/dist/labs/badge/OscdBadge.js.map +1 -1
  618. package/dist/labs/card/OscdElevatedCard.d.ts +1 -1
  619. package/dist/labs/card/OscdElevatedCard.js +1 -1
  620. package/dist/labs/card/OscdElevatedCard.js.map +1 -1
  621. package/dist/labs/card/OscdFilledCard.d.ts +1 -1
  622. package/dist/labs/card/OscdFilledCard.js +1 -1
  623. package/dist/labs/card/OscdFilledCard.js.map +1 -1
  624. package/dist/labs/card/OscdOutlinedCard.d.ts +1 -1
  625. package/dist/labs/card/OscdOutlinedCard.js +1 -1
  626. package/dist/labs/card/OscdOutlinedCard.js.map +1 -1
  627. package/dist/labs/item/OscdItem.d.ts +1 -1
  628. package/dist/labs/item/OscdItem.js.map +1 -1
  629. package/dist/labs/navigationbar/OscdNavigationBar.d.ts +1 -1
  630. package/dist/labs/navigationbar/OscdNavigationBar.js +1 -1
  631. package/dist/labs/navigationbar/OscdNavigationBar.js.map +1 -1
  632. package/dist/labs/navigationtab/OscdNavigationTab.d.ts +1 -1
  633. package/dist/labs/navigationtab/OscdNavigationTab.js +1 -1
  634. package/dist/labs/navigationtab/OscdNavigationTab.js.map +1 -1
  635. package/dist/labs/segmentedbutton/OscdOutlinedSegmentedButton.d.ts +1 -1
  636. package/dist/labs/segmentedbutton/OscdOutlinedSegmentedButton.js +1 -1
  637. package/dist/labs/segmentedbutton/OscdOutlinedSegmentedButton.js.map +1 -1
  638. package/dist/labs/segmentedbuttonset/OscdOutlinedSegmentedButtonSet.d.ts +1 -1
  639. package/dist/labs/segmentedbuttonset/OscdOutlinedSegmentedButtonSet.js.map +1 -1
  640. package/dist/list/OscdList.d.ts +1 -1
  641. package/dist/list/OscdList.js.map +1 -1
  642. package/dist/list/OscdListItem.d.ts +1 -1
  643. package/dist/list/OscdListItem.js +1 -1
  644. package/dist/list/OscdListItem.js.map +1 -1
  645. package/dist/menu/OscdMenu.d.ts +1 -1
  646. package/dist/menu/OscdMenu.js +1 -1
  647. package/dist/menu/OscdMenu.js.map +1 -1
  648. package/dist/menu/OscdMenuItem.d.ts +1 -1
  649. package/dist/menu/OscdMenuItem.js +1 -1
  650. package/dist/menu/OscdMenuItem.js.map +1 -1
  651. package/dist/menu/OscdSubMenu.d.ts +1 -1
  652. package/dist/menu/OscdSubMenu.js.map +1 -1
  653. package/dist/navigation-drawer/OscdNavigationDrawer.d.ts +1 -1
  654. package/dist/navigation-drawer/OscdNavigationDrawer.js +1 -1
  655. package/dist/navigation-drawer/OscdNavigationDrawer.js.map +1 -1
  656. package/dist/navigation-drawer/OscdNavigationDrawerHeader.d.ts +1 -1
  657. package/dist/navigation-drawer/OscdNavigationDrawerHeader.js +1 -1
  658. package/dist/navigation-drawer/OscdNavigationDrawerHeader.js.map +1 -1
  659. package/dist/progress/OscdCircularProgress.d.ts +1 -1
  660. package/dist/progress/OscdCircularProgress.js.map +1 -1
  661. package/dist/progress/OscdLinearProgress.d.ts +1 -1
  662. package/dist/progress/OscdLinearProgress.js.map +1 -1
  663. package/dist/radio/OscdRadio.d.ts +1 -1
  664. package/dist/radio/OscdRadio.js +1 -1
  665. package/dist/radio/OscdRadio.js.map +1 -1
  666. package/dist/ripple/OscdRipple.d.ts +1 -1
  667. package/dist/ripple/OscdRipple.js.map +1 -1
  668. package/dist/scl-checkbox/OscdSclCheckbox.js +1 -3
  669. package/dist/scl-checkbox/OscdSclCheckbox.js.map +1 -1
  670. package/dist/scl-icon/OscdSclIcon.d.ts +1 -1
  671. package/dist/scl-icon/OscdSclIcon.js +1 -1
  672. package/dist/scl-icon/OscdSclIcon.js.map +1 -1
  673. package/dist/search-field/internal/OutlinedSearchField.js.map +1 -1
  674. package/dist/search-field/oscd-outlined-search-field.spec.js +5 -6
  675. package/dist/search-field/oscd-outlined-search-field.spec.js.map +1 -1
  676. package/dist/select/OscdFilledSelect.d.ts +1 -1
  677. package/dist/select/OscdFilledSelect.js +1 -1
  678. package/dist/select/OscdFilledSelect.js.map +1 -1
  679. package/dist/select/OscdOutlinedSelect.d.ts +1 -1
  680. package/dist/select/OscdOutlinedSelect.js +1 -1
  681. package/dist/select/OscdOutlinedSelect.js.map +1 -1
  682. package/dist/select/OscdSelectOption.d.ts +1 -1
  683. package/dist/select/OscdSelectOption.js +1 -1
  684. package/dist/select/OscdSelectOption.js.map +1 -1
  685. package/dist/selection-list/OscdSelectionList.js.map +1 -1
  686. package/dist/slider/OscdSlider.d.ts +1 -1
  687. package/dist/slider/OscdSlider.js +1 -1
  688. package/dist/slider/OscdSlider.js.map +1 -1
  689. package/dist/switch/OscdSwitch.d.ts +1 -1
  690. package/dist/switch/OscdSwitch.js +1 -1
  691. package/dist/switch/OscdSwitch.js.map +1 -1
  692. package/dist/tabs/OscdPrimaryTab.d.ts +1 -1
  693. package/dist/tabs/OscdPrimaryTab.js +1 -1
  694. package/dist/tabs/OscdPrimaryTab.js.map +1 -1
  695. package/dist/tabs/OscdPrimaryTab.stories.js +1 -3
  696. package/dist/tabs/OscdPrimaryTab.stories.js.map +1 -1
  697. package/dist/tabs/OscdSecondaryTab.d.ts +1 -1
  698. package/dist/tabs/OscdSecondaryTab.js +1 -1
  699. package/dist/tabs/OscdSecondaryTab.js.map +1 -1
  700. package/dist/tabs/OscdSecondaryTab.stories.js +1 -3
  701. package/dist/tabs/OscdSecondaryTab.stories.js.map +1 -1
  702. package/dist/tabs/OscdTabs.d.ts +1 -1
  703. package/dist/tabs/OscdTabs.js +1 -1
  704. package/dist/tabs/OscdTabs.js.map +1 -1
  705. package/dist/textfield/OscdFilledTextField.d.ts +1 -1
  706. package/dist/textfield/OscdFilledTextField.js +1 -1
  707. package/dist/textfield/OscdFilledTextField.js.map +1 -1
  708. package/dist/textfield/OscdOutlinedTextField.d.ts +1 -1
  709. package/dist/textfield/OscdOutlinedTextField.js +1 -1
  710. package/dist/textfield/OscdOutlinedTextField.js.map +1 -1
  711. package/dist/tree/OscdTree.stories.js +22 -4
  712. package/dist/tree/OscdTree.stories.js.map +1 -1
  713. package/dist/tree/internal/Tree.js +30 -6
  714. package/dist/tree/internal/Tree.js.map +1 -1
  715. package/dist/tree/internal/TreeItem.js +22 -8
  716. package/dist/tree/internal/TreeItem.js.map +1 -1
  717. package/dist/tree-grid/OscdTreeGrid.js +1 -4
  718. package/dist/tree-grid/OscdTreeGrid.js.map +1 -1
  719. package/dist/utils/storybook/getStorybookHelpers.js +2 -2
  720. package/dist/utils/storybook/getStorybookHelpers.js.map +1 -1
  721. package/dist/utils/storybook/getStorybookMeta.d.ts +5 -0
  722. package/dist/utils/storybook/getStorybookMeta.js +2 -1
  723. package/dist/utils/storybook/getStorybookMeta.js.map +1 -1
  724. package/package.json +39 -71
@@ -0,0 +1,2846 @@
1
+ ace.define("ace/mode/css_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text_highlight_rules"], function(require, exports, module){"use strict";
2
+ var oop = require("../lib/oop");
3
+ var lang = require("../lib/lang");
4
+ var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
5
+ var supportType = exports.supportType = "align-content|align-items|align-self|all|animation|animation-delay|animation-direction|animation-duration|animation-fill-mode|animation-iteration-count|animation-name|animation-play-state|animation-timing-function|backface-visibility|background|background-attachment|background-blend-mode|background-clip|background-color|background-image|background-origin|background-position|background-repeat|background-size|border|border-bottom|border-bottom-color|border-bottom-left-radius|border-bottom-right-radius|border-bottom-style|border-bottom-width|border-collapse|border-color|border-image|border-image-outset|border-image-repeat|border-image-slice|border-image-source|border-image-width|border-left|border-left-color|border-left-style|border-left-width|border-radius|border-right|border-right-color|border-right-style|border-right-width|border-spacing|border-style|border-top|border-top-color|border-top-left-radius|border-top-right-radius|border-top-style|border-top-width|border-width|bottom|box-shadow|box-sizing|caption-side|clear|clip|color|column-count|column-fill|column-gap|column-rule|column-rule-color|column-rule-style|column-rule-width|column-span|column-width|columns|content|counter-increment|counter-reset|cursor|direction|display|empty-cells|filter|flex|flex-basis|flex-direction|flex-flow|flex-grow|flex-shrink|flex-wrap|float|font|font-family|font-size|font-size-adjust|font-stretch|font-style|font-variant|font-weight|hanging-punctuation|height|justify-content|left|letter-spacing|line-height|list-style|list-style-image|list-style-position|list-style-type|margin|margin-bottom|margin-left|margin-right|margin-top|max-height|max-width|max-zoom|min-height|min-width|min-zoom|nav-down|nav-index|nav-left|nav-right|nav-up|opacity|order|outline|outline-color|outline-offset|outline-style|outline-width|overflow|overflow-x|overflow-y|padding|padding-bottom|padding-left|padding-right|padding-top|page-break-after|page-break-before|page-break-inside|perspective|perspective-origin|position|quotes|resize|right|tab-size|table-layout|text-align|text-align-last|text-decoration|text-decoration-color|text-decoration-line|text-decoration-style|text-indent|text-justify|text-overflow|text-shadow|text-transform|top|transform|transform-origin|transform-style|transition|transition-delay|transition-duration|transition-property|transition-timing-function|unicode-bidi|user-select|user-zoom|vertical-align|visibility|white-space|width|word-break|word-spacing|word-wrap|z-index";
6
+ var supportFunction = exports.supportFunction = "rgb|rgba|url|attr|counter|counters";
7
+ var supportConstant = exports.supportConstant = "absolute|after-edge|after|all-scroll|all|alphabetic|always|antialiased|armenian|auto|avoid-column|avoid-page|avoid|balance|baseline|before-edge|before|below|bidi-override|block-line-height|block|bold|bolder|border-box|both|bottom|box|break-all|break-word|capitalize|caps-height|caption|center|central|char|circle|cjk-ideographic|clone|close-quote|col-resize|collapse|column|consider-shifts|contain|content-box|cover|crosshair|cubic-bezier|dashed|decimal-leading-zero|decimal|default|disabled|disc|disregard-shifts|distribute-all-lines|distribute-letter|distribute-space|distribute|dotted|double|e-resize|ease-in|ease-in-out|ease-out|ease|ellipsis|end|exclude-ruby|flex-end|flex-start|fill|fixed|georgian|glyphs|grid-height|groove|hand|hanging|hebrew|help|hidden|hiragana-iroha|hiragana|horizontal|icon|ideograph-alpha|ideograph-numeric|ideograph-parenthesis|ideograph-space|ideographic|inactive|include-ruby|inherit|initial|inline-block|inline-box|inline-line-height|inline-table|inline|inset|inside|inter-ideograph|inter-word|invert|italic|justify|katakana-iroha|katakana|keep-all|last|left|lighter|line-edge|line-through|line|linear|list-item|local|loose|lower-alpha|lower-greek|lower-latin|lower-roman|lowercase|lr-tb|ltr|mathematical|max-height|max-size|medium|menu|message-box|middle|move|n-resize|ne-resize|newspaper|no-change|no-close-quote|no-drop|no-open-quote|no-repeat|none|normal|not-allowed|nowrap|nw-resize|oblique|open-quote|outset|outside|overline|padding-box|page|pointer|pre-line|pre-wrap|pre|preserve-3d|progress|relative|repeat-x|repeat-y|repeat|replaced|reset-size|ridge|right|round|row-resize|rtl|s-resize|scroll|se-resize|separate|slice|small-caps|small-caption|solid|space|square|start|static|status-bar|step-end|step-start|steps|stretch|strict|sub|super|sw-resize|table-caption|table-cell|table-column-group|table-column|table-footer-group|table-header-group|table-row-group|table-row|table|tb-rl|text-after-edge|text-before-edge|text-bottom|text-size|text-top|text|thick|thin|transparent|underline|upper-alpha|upper-latin|upper-roman|uppercase|use-script|vertical-ideographic|vertical-text|visible|w-resize|wait|whitespace|z-index|zero|zoom";
8
+ var supportConstantColor = exports.supportConstantColor = "aliceblue|antiquewhite|aqua|aquamarine|azure|beige|bisque|black|blanchedalmond|blue|blueviolet|brown|burlywood|cadetblue|chartreuse|chocolate|coral|cornflowerblue|cornsilk|crimson|cyan|darkblue|darkcyan|darkgoldenrod|darkgray|darkgreen|darkgrey|darkkhaki|darkmagenta|darkolivegreen|darkorange|darkorchid|darkred|darksalmon|darkseagreen|darkslateblue|darkslategray|darkslategrey|darkturquoise|darkviolet|deeppink|deepskyblue|dimgray|dimgrey|dodgerblue|firebrick|floralwhite|forestgreen|fuchsia|gainsboro|ghostwhite|gold|goldenrod|gray|green|greenyellow|grey|honeydew|hotpink|indianred|indigo|ivory|khaki|lavender|lavenderblush|lawngreen|lemonchiffon|lightblue|lightcoral|lightcyan|lightgoldenrodyellow|lightgray|lightgreen|lightgrey|lightpink|lightsalmon|lightseagreen|lightskyblue|lightslategray|lightslategrey|lightsteelblue|lightyellow|lime|limegreen|linen|magenta|maroon|mediumaquamarine|mediumblue|mediumorchid|mediumpurple|mediumseagreen|mediumslateblue|mediumspringgreen|mediumturquoise|mediumvioletred|midnightblue|mintcream|mistyrose|moccasin|navajowhite|navy|oldlace|olive|olivedrab|orange|orangered|orchid|palegoldenrod|palegreen|paleturquoise|palevioletred|papayawhip|peachpuff|peru|pink|plum|powderblue|purple|rebeccapurple|red|rosybrown|royalblue|saddlebrown|salmon|sandybrown|seagreen|seashell|sienna|silver|skyblue|slateblue|slategray|slategrey|snow|springgreen|steelblue|tan|teal|thistle|tomato|turquoise|violet|wheat|white|whitesmoke|yellow|yellowgreen";
9
+ var supportConstantFonts = exports.supportConstantFonts = "arial|century|comic|courier|cursive|fantasy|garamond|georgia|helvetica|impact|lucida|symbol|system|tahoma|times|trebuchet|utopia|verdana|webdings|sans-serif|serif|monospace";
10
+ var numRe = exports.numRe = "\\-?(?:(?:[0-9]+(?:\\.[0-9]+)?)|(?:\\.[0-9]+))";
11
+ var pseudoElements = exports.pseudoElements = "(\\:+)\\b(after|before|first-letter|first-line|moz-selection|selection)\\b";
12
+ var pseudoClasses = exports.pseudoClasses = "(:)\\b(active|checked|disabled|empty|enabled|first-child|first-of-type|focus|hover|indeterminate|invalid|last-child|last-of-type|link|not|nth-child|nth-last-child|nth-last-of-type|nth-of-type|only-child|only-of-type|required|root|target|valid|visited)\\b";
13
+ var CssHighlightRules = function () {
14
+ var keywordMapper = this.createKeywordMapper({
15
+ "support.function": supportFunction,
16
+ "support.constant": supportConstant,
17
+ "support.type": supportType,
18
+ "support.constant.color": supportConstantColor,
19
+ "support.constant.fonts": supportConstantFonts
20
+ }, "text", true);
21
+ this.$rules = {
22
+ "start": [{
23
+ include: ["strings", "url", "comments"]
24
+ }, {
25
+ token: "paren.lparen",
26
+ regex: "\\{",
27
+ next: "ruleset"
28
+ }, {
29
+ token: "paren.rparen",
30
+ regex: "\\}"
31
+ }, {
32
+ token: "string",
33
+ regex: "@(?!viewport)",
34
+ next: "media"
35
+ }, {
36
+ token: "keyword",
37
+ regex: "#[a-z0-9-_]+"
38
+ }, {
39
+ token: "keyword",
40
+ regex: "%"
41
+ }, {
42
+ token: "variable",
43
+ regex: "\\.[a-z0-9-_]+"
44
+ }, {
45
+ token: "string",
46
+ regex: ":[a-z0-9-_]+"
47
+ }, {
48
+ token: "constant.numeric",
49
+ regex: numRe
50
+ }, {
51
+ token: "constant",
52
+ regex: "[a-z0-9-_]+"
53
+ }, {
54
+ caseInsensitive: true
55
+ }],
56
+ "media": [{
57
+ include: ["strings", "url", "comments"]
58
+ }, {
59
+ token: "paren.lparen",
60
+ regex: "\\{",
61
+ next: "start"
62
+ }, {
63
+ token: "paren.rparen",
64
+ regex: "\\}",
65
+ next: "start"
66
+ }, {
67
+ token: "string",
68
+ regex: ";",
69
+ next: "start"
70
+ }, {
71
+ token: "keyword",
72
+ regex: "(?:media|supports|document|charset|import|namespace|media|supports|document"
73
+ + "|page|font|keyframes|viewport|counter-style|font-feature-values"
74
+ + "|swash|ornaments|annotation|stylistic|styleset|character-variant)"
75
+ }],
76
+ "comments": [{
77
+ token: "comment", // multi line comment
78
+ regex: "\\/\\*",
79
+ push: [{
80
+ token: "comment",
81
+ regex: "\\*\\/",
82
+ next: "pop"
83
+ }, {
84
+ defaultToken: "comment"
85
+ }]
86
+ }],
87
+ "ruleset": [{
88
+ regex: "-(webkit|ms|moz|o)-",
89
+ token: "text"
90
+ }, {
91
+ token: "punctuation.operator",
92
+ regex: "[:;]"
93
+ }, {
94
+ token: "paren.rparen",
95
+ regex: "\\}",
96
+ next: "start"
97
+ }, {
98
+ include: ["strings", "url", "comments"]
99
+ }, {
100
+ token: ["constant.numeric", "keyword"],
101
+ regex: "(" + numRe + ")(ch|cm|deg|em|ex|fr|gd|grad|Hz|in|kHz|mm|ms|pc|pt|px|rad|rem|s|turn|vh|vmax|vmin|vm|vw|%)"
102
+ }, {
103
+ token: "constant.numeric",
104
+ regex: numRe
105
+ }, {
106
+ token: "constant.numeric", // hex6 color
107
+ regex: "#[a-f0-9]{6}"
108
+ }, {
109
+ token: "constant.numeric", // hex3 color
110
+ regex: "#[a-f0-9]{3}"
111
+ }, {
112
+ token: ["punctuation", "entity.other.attribute-name.pseudo-element.css"],
113
+ regex: pseudoElements
114
+ }, {
115
+ token: ["punctuation", "entity.other.attribute-name.pseudo-class.css"],
116
+ regex: pseudoClasses
117
+ }, {
118
+ include: "url"
119
+ }, {
120
+ token: keywordMapper,
121
+ regex: "\\-?[a-zA-Z_][a-zA-Z0-9_\\-]*"
122
+ }, {
123
+ token: "paren.lparen",
124
+ regex: "\\{"
125
+ }, {
126
+ caseInsensitive: true
127
+ }],
128
+ url: [{
129
+ token: "support.function",
130
+ regex: "(?:url(:?-prefix)?|domain|regexp)\\(",
131
+ push: [{
132
+ token: "support.function",
133
+ regex: "\\)",
134
+ next: "pop"
135
+ }, {
136
+ defaultToken: "string"
137
+ }]
138
+ }],
139
+ strings: [{
140
+ token: "string.start",
141
+ regex: "'",
142
+ push: [{
143
+ token: "string.end",
144
+ regex: "'|$",
145
+ next: "pop"
146
+ }, {
147
+ include: "escapes"
148
+ }, {
149
+ token: "constant.language.escape",
150
+ regex: /\\$/,
151
+ consumeLineEnd: true
152
+ }, {
153
+ defaultToken: "string"
154
+ }]
155
+ }, {
156
+ token: "string.start",
157
+ regex: '"',
158
+ push: [{
159
+ token: "string.end",
160
+ regex: '"|$',
161
+ next: "pop"
162
+ }, {
163
+ include: "escapes"
164
+ }, {
165
+ token: "constant.language.escape",
166
+ regex: /\\$/,
167
+ consumeLineEnd: true
168
+ }, {
169
+ defaultToken: "string"
170
+ }]
171
+ }],
172
+ escapes: [{
173
+ token: "constant.language.escape",
174
+ regex: /\\([a-fA-F\d]{1,6}|[^a-fA-F\d])/
175
+ }]
176
+ };
177
+ this.normalizeRules();
178
+ };
179
+ oop.inherits(CssHighlightRules, TextHighlightRules);
180
+ exports.CssHighlightRules = CssHighlightRules;
181
+
182
+ });
183
+
184
+ ace.define("ace/mode/jsdoc_comment_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"], function(require, exports, module){"use strict";
185
+ var oop = require("../lib/oop");
186
+ var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
187
+ var JsDocCommentHighlightRules = function () {
188
+ this.$rules = {
189
+ "start": [
190
+ {
191
+ token: ["comment.doc.tag", "comment.doc.text", "lparen.doc"],
192
+ regex: "(@(?:param|member|typedef|property|namespace|var|const|callback))(\\s*)({)",
193
+ push: [
194
+ {
195
+ token: "lparen.doc",
196
+ regex: "{",
197
+ push: [
198
+ {
199
+ include: "doc-syntax"
200
+ }, {
201
+ token: "rparen.doc",
202
+ regex: "}|(?=$)",
203
+ next: "pop"
204
+ }
205
+ ]
206
+ }, {
207
+ token: ["rparen.doc", "text.doc", "variable.parameter.doc", "lparen.doc", "variable.parameter.doc", "rparen.doc"],
208
+ regex: /(})(\s*)(?:([\w=:\/\.]+)|(?:(\[)([\w=:\/\.\-\'\" ]+)(\])))/,
209
+ next: "pop"
210
+ }, {
211
+ token: "rparen.doc",
212
+ regex: "}|(?=$)",
213
+ next: "pop"
214
+ }, {
215
+ include: "doc-syntax"
216
+ }, {
217
+ defaultToken: "text.doc"
218
+ }
219
+ ]
220
+ }, {
221
+ token: ["comment.doc.tag", "text.doc", "lparen.doc"],
222
+ regex: "(@(?:returns?|yields|type|this|suppress|public|protected|private|package|modifies|"
223
+ + "implements|external|exception|throws|enum|define|extends))(\\s*)({)",
224
+ push: [
225
+ {
226
+ token: "lparen.doc",
227
+ regex: "{",
228
+ push: [
229
+ {
230
+ include: "doc-syntax"
231
+ }, {
232
+ token: "rparen.doc",
233
+ regex: "}|(?=$)",
234
+ next: "pop"
235
+ }
236
+ ]
237
+ }, {
238
+ token: "rparen.doc",
239
+ regex: "}|(?=$)",
240
+ next: "pop"
241
+ }, {
242
+ include: "doc-syntax"
243
+ }, {
244
+ defaultToken: "text.doc"
245
+ }
246
+ ]
247
+ }, {
248
+ token: ["comment.doc.tag", "text.doc", "variable.parameter.doc"],
249
+ regex: "(@(?:alias|memberof|instance|module|name|lends|namespace|external|this|template|"
250
+ + "requires|param|implements|function|extends|typedef|mixes|constructor|var|"
251
+ + "memberof\\!|event|listens|exports|class|constructs|interface|emits|fires|"
252
+ + "throws|const|callback|borrows|augments))(\\s+)(\\w[\\w#\.:\/~\"\\-]*)?"
253
+ }, {
254
+ token: ["comment.doc.tag", "text.doc", "variable.parameter.doc"],
255
+ regex: "(@method)(\\s+)(\\w[\\w\.\\(\\)]*)"
256
+ }, {
257
+ token: "comment.doc.tag",
258
+ regex: "@access\\s+(?:private|public|protected)"
259
+ }, {
260
+ token: "comment.doc.tag",
261
+ regex: "@kind\\s+(?:class|constant|event|external|file|function|member|mixin|module|namespace|typedef)"
262
+ }, {
263
+ token: "comment.doc.tag",
264
+ regex: "@\\w+(?=\\s|$)"
265
+ },
266
+ JsDocCommentHighlightRules.getTagRule(),
267
+ {
268
+ defaultToken: "comment.doc.body",
269
+ caseInsensitive: true
270
+ }
271
+ ],
272
+ "doc-syntax": [{
273
+ token: "operator.doc",
274
+ regex: /[|:]/
275
+ }, {
276
+ token: "paren.doc",
277
+ regex: /[\[\]]/
278
+ }]
279
+ };
280
+ this.normalizeRules();
281
+ };
282
+ oop.inherits(JsDocCommentHighlightRules, TextHighlightRules);
283
+ JsDocCommentHighlightRules.getTagRule = function (start) {
284
+ return {
285
+ token: "comment.doc.tag.storage.type",
286
+ regex: "\\b(?:TODO|FIXME|XXX|HACK)\\b"
287
+ };
288
+ };
289
+ JsDocCommentHighlightRules.getStartRule = function (start) {
290
+ return {
291
+ token: "comment.doc", // doc comment
292
+ regex: /\/\*\*(?!\/)/,
293
+ next: start
294
+ };
295
+ };
296
+ JsDocCommentHighlightRules.getEndRule = function (start) {
297
+ return {
298
+ token: "comment.doc", // closing comment
299
+ regex: "\\*\\/",
300
+ next: start
301
+ };
302
+ };
303
+ exports.JsDocCommentHighlightRules = JsDocCommentHighlightRules;
304
+
305
+ });
306
+
307
+ ace.define("ace/mode/javascript_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/jsdoc_comment_highlight_rules","ace/mode/text_highlight_rules"], function(require, exports, module){"use strict";
308
+ var oop = require("../lib/oop");
309
+ var DocCommentHighlightRules = require("./jsdoc_comment_highlight_rules").JsDocCommentHighlightRules;
310
+ var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
311
+ var identifierRe = "[a-zA-Z\\$_\u00a1-\uffff][a-zA-Z\\d\\$_\u00a1-\uffff]*";
312
+ var JavaScriptHighlightRules = function (options) {
313
+ var keywords = {
314
+ "variable.language": "Array|Boolean|Date|Function|Iterator|Number|Object|RegExp|String|Proxy|Symbol|" + // Constructors
315
+ "Namespace|QName|XML|XMLList|" + // E4X
316
+ "ArrayBuffer|Float32Array|Float64Array|Int16Array|Int32Array|Int8Array|" +
317
+ "Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray|" +
318
+ "Error|EvalError|InternalError|RangeError|ReferenceError|StopIteration|" + // Errors
319
+ "SyntaxError|TypeError|URIError|" +
320
+ "decodeURI|decodeURIComponent|encodeURI|encodeURIComponent|eval|isFinite|" + // Non-constructor functions
321
+ "isNaN|parseFloat|parseInt|" +
322
+ "JSON|Math|" + // Other
323
+ "this|arguments|prototype|window|document", // Pseudo
324
+ "keyword": "const|yield|import|get|set|async|await|" +
325
+ "break|case|catch|continue|default|delete|do|else|finally|for|" +
326
+ "if|in|of|instanceof|new|return|switch|throw|try|typeof|let|var|while|with|debugger|" +
327
+ "__parent__|__count__|escape|unescape|with|__proto__|" +
328
+ "class|enum|extends|super|export|implements|private|public|interface|package|protected|static|constructor",
329
+ "storage.type": "const|let|var|function",
330
+ "constant.language": "null|Infinity|NaN|undefined",
331
+ "support.function": "alert",
332
+ "constant.language.boolean": "true|false"
333
+ };
334
+ var keywordMapper = this.createKeywordMapper(keywords, "identifier");
335
+ var kwBeforeRe = "case|do|else|finally|in|instanceof|return|throw|try|typeof|yield|void";
336
+ var escapedRe = "\\\\(?:x[0-9a-fA-F]{2}|" + // hex
337
+ "u[0-9a-fA-F]{4}|" + // unicode
338
+ "u{[0-9a-fA-F]{1,6}}|" + // es6 unicode
339
+ "[0-2][0-7]{0,2}|" + // oct
340
+ "3[0-7][0-7]?|" + // oct
341
+ "[4-7][0-7]?|" + //oct
342
+ ".)";
343
+ var anonymousFunctionRe = "(function)(\\s*)(\\*?)";
344
+ var functionCallStartRule = {
345
+ token: ["identifier", "text", "paren.lparen"],
346
+ regex: "(\\b(?!" + Object.values(keywords).join("|") + "\\b)" + identifierRe + ")(\\s*)(\\()"
347
+ };
348
+ this.$rules = {
349
+ "no_regex": [
350
+ DocCommentHighlightRules.getStartRule("doc-start"),
351
+ comments("no_regex"),
352
+ functionCallStartRule,
353
+ {
354
+ token: "string",
355
+ regex: "'(?=.)",
356
+ next: "qstring"
357
+ }, {
358
+ token: "string",
359
+ regex: '"(?=.)',
360
+ next: "qqstring"
361
+ }, {
362
+ include: "numeric_constants"
363
+ }, {
364
+ token: [
365
+ "entity.name.function", "text", "keyword.operator", "text", "storage.type",
366
+ "text", "storage.type", "text", "paren.lparen"
367
+ ],
368
+ regex: "(" + identifierRe + ")(\\s*)(=)(\\s*)" + anonymousFunctionRe + "(\\s*)(\\()",
369
+ next: "function_arguments"
370
+ }, {
371
+ token: [
372
+ "storage.type", "text", "storage.type", "text", "text", "entity.name.function", "text", "paren.lparen"
373
+ ],
374
+ regex: "(function)(?:(?:(\\s*)(\\*)(\\s*))|(\\s+))(" + identifierRe + ")(\\s*)(\\()",
375
+ next: "function_arguments"
376
+ }, {
377
+ token: [
378
+ "entity.name.function", "text", "punctuation.operator",
379
+ "text", "storage.type", "text", "storage.type", "text", "paren.lparen"
380
+ ],
381
+ regex: "(" + identifierRe + ")(\\s*)(:)(\\s*)" + anonymousFunctionRe + "(\\s*)(\\()",
382
+ next: "function_arguments"
383
+ }, {
384
+ token: [
385
+ "text", "text", "storage.type", "text", "storage.type", "text", "paren.lparen"
386
+ ],
387
+ regex: "(:)(\\s*)" + anonymousFunctionRe + "(\\s*)(\\()",
388
+ next: "function_arguments"
389
+ }, {
390
+ token: "keyword",
391
+ regex: "from(?=\\s*('|\"))"
392
+ }, {
393
+ token: "keyword",
394
+ regex: "(?:" + kwBeforeRe + ")\\b",
395
+ next: "start"
396
+ }, {
397
+ token: "support.constant",
398
+ regex: /that\b/
399
+ }, {
400
+ token: ["storage.type", "punctuation.operator", "support.function.firebug"],
401
+ regex: /(console)(\.)(warn|info|log|error|debug|time|trace|timeEnd|assert)\b/
402
+ }, {
403
+ token: keywordMapper,
404
+ regex: identifierRe
405
+ }, {
406
+ token: "punctuation.operator",
407
+ regex: /[.](?![.])/,
408
+ next: "property"
409
+ }, {
410
+ token: "storage.type",
411
+ regex: /=>/,
412
+ next: "start"
413
+ }, {
414
+ token: "keyword.operator",
415
+ regex: /--|\+\+|\.{3}|===|==|=|!=|!==|<+=?|>+=?|!|&&|\|\||\?:|[!$%&*+\-~\/^]=?/,
416
+ next: "start"
417
+ }, {
418
+ token: "punctuation.operator",
419
+ regex: /[?:,;.]/,
420
+ next: "start"
421
+ }, {
422
+ token: "paren.lparen",
423
+ regex: /[\[({]/,
424
+ next: "start"
425
+ }, {
426
+ token: "paren.rparen",
427
+ regex: /[\])}]/
428
+ }, {
429
+ token: "comment",
430
+ regex: /^#!.*$/
431
+ }
432
+ ],
433
+ property: [{
434
+ token: "text",
435
+ regex: "\\s+"
436
+ }, {
437
+ token: "keyword.operator",
438
+ regex: /=/
439
+ }, {
440
+ token: [
441
+ "storage.type", "text", "storage.type", "text", "paren.lparen"
442
+ ],
443
+ regex: anonymousFunctionRe + "(\\s*)(\\()",
444
+ next: "function_arguments"
445
+ }, {
446
+ token: [
447
+ "storage.type", "text", "storage.type", "text", "text", "entity.name.function", "text", "paren.lparen"
448
+ ],
449
+ regex: "(function)(?:(?:(\\s*)(\\*)(\\s*))|(\\s+))(\\w+)(\\s*)(\\()",
450
+ next: "function_arguments"
451
+ }, {
452
+ token: "punctuation.operator",
453
+ regex: /[.](?![.])/
454
+ }, {
455
+ token: "support.function",
456
+ regex: "prototype"
457
+ }, {
458
+ token: "support.function",
459
+ regex: /(s(?:h(?:ift|ow(?:Mod(?:elessDialog|alDialog)|Help))|croll(?:X|By(?:Pages|Lines)?|Y|To)?|t(?:op|rike)|i(?:n|zeToContent|debar|gnText)|ort|u(?:p|b(?:str(?:ing)?)?)|pli(?:ce|t)|e(?:nd|t(?:Re(?:sizable|questHeader)|M(?:i(?:nutes|lliseconds)|onth)|Seconds|Ho(?:tKeys|urs)|Year|Cursor|Time(?:out)?|Interval|ZOptions|Date|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Date|FullYear)|FullYear|Active)|arch)|qrt|lice|avePreferences|mall)|h(?:ome|andleEvent)|navigate|c(?:har(?:CodeAt|At)|o(?:s|n(?:cat|textual|firm)|mpile)|eil|lear(?:Timeout|Interval)?|a(?:ptureEvents|ll)|reate(?:StyleSheet|Popup|EventObject))|t(?:o(?:GMTString|S(?:tring|ource)|U(?:TCString|pperCase)|Lo(?:caleString|werCase))|est|a(?:n|int(?:Enabled)?))|i(?:s(?:NaN|Finite)|ndexOf|talics)|d(?:isableExternalCapture|ump|etachEvent)|u(?:n(?:shift|taint|escape|watch)|pdateCommands)|j(?:oin|avaEnabled)|p(?:o(?:p|w)|ush|lugins.refresh|a(?:ddings|rse(?:Int|Float)?)|r(?:int|ompt|eference))|e(?:scape|nableExternalCapture|val|lementFromPoint|x(?:p|ec(?:Script|Command)?))|valueOf|UTC|queryCommand(?:State|Indeterm|Enabled|Value)|f(?:i(?:nd|lter|le(?:ModifiedDate|Size|CreatedDate|UpdatedDate)|xed)|o(?:nt(?:size|color)|rward|rEach)|loor|romCharCode)|watch|l(?:ink|o(?:ad|g)|astIndexOf)|a(?:sin|nchor|cos|t(?:tachEvent|ob|an(?:2)?)|pply|lert|b(?:s|ort))|r(?:ou(?:nd|teEvents)|e(?:size(?:By|To)|calc|turnValue|place|verse|l(?:oad|ease(?:Capture|Events)))|andom)|g(?:o|et(?:ResponseHeader|M(?:i(?:nutes|lliseconds)|onth)|Se(?:conds|lection)|Hours|Year|Time(?:zoneOffset)?|Da(?:y|te)|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Da(?:y|te)|FullYear)|FullYear|A(?:ttention|llResponseHeaders)))|m(?:in|ove(?:B(?:y|elow)|To(?:Absolute)?|Above)|ergeAttributes|a(?:tch|rgins|x))|b(?:toa|ig|o(?:ld|rderWidths)|link|ack))\b(?=\()/
460
+ }, {
461
+ token: "support.function.dom",
462
+ regex: /(s(?:ub(?:stringData|mit)|plitText|e(?:t(?:NamedItem|Attribute(?:Node)?)|lect))|has(?:ChildNodes|Feature)|namedItem|c(?:l(?:ick|o(?:se|neNode))|reate(?:C(?:omment|DATASection|aption)|T(?:Head|extNode|Foot)|DocumentFragment|ProcessingInstruction|E(?:ntityReference|lement)|Attribute))|tabIndex|i(?:nsert(?:Row|Before|Cell|Data)|tem)|open|delete(?:Row|C(?:ell|aption)|T(?:Head|Foot)|Data)|focus|write(?:ln)?|a(?:dd|ppend(?:Child|Data))|re(?:set|place(?:Child|Data)|move(?:NamedItem|Child|Attribute(?:Node)?)?)|get(?:NamedItem|Element(?:sBy(?:Name|TagName|ClassName)|ById)|Attribute(?:Node)?)|blur)\b(?=\()/
463
+ }, {
464
+ token: "support.constant",
465
+ regex: /(s(?:ystemLanguage|cr(?:ipts|ollbars|een(?:X|Y|Top|Left))|t(?:yle(?:Sheets)?|atus(?:Text|bar)?)|ibling(?:Below|Above)|ource|uffixes|e(?:curity(?:Policy)?|l(?:ection|f)))|h(?:istory|ost(?:name)?|as(?:h|Focus))|y|X(?:MLDocument|SLDocument)|n(?:ext|ame(?:space(?:s|URI)|Prop))|M(?:IN_VALUE|AX_VALUE)|c(?:haracterSet|o(?:n(?:structor|trollers)|okieEnabled|lorDepth|mp(?:onents|lete))|urrent|puClass|l(?:i(?:p(?:boardData)?|entInformation)|osed|asses)|alle(?:e|r)|rypto)|t(?:o(?:olbar|p)|ext(?:Transform|Indent|Decoration|Align)|ags)|SQRT(?:1_2|2)|i(?:n(?:ner(?:Height|Width)|put)|ds|gnoreCase)|zIndex|o(?:scpu|n(?:readystatechange|Line)|uter(?:Height|Width)|p(?:sProfile|ener)|ffscreenBuffering)|NEGATIVE_INFINITY|d(?:i(?:splay|alog(?:Height|Top|Width|Left|Arguments)|rectories)|e(?:scription|fault(?:Status|Ch(?:ecked|arset)|View)))|u(?:ser(?:Profile|Language|Agent)|n(?:iqueID|defined)|pdateInterval)|_content|p(?:ixelDepth|ort|ersonalbar|kcs11|l(?:ugins|atform)|a(?:thname|dding(?:Right|Bottom|Top|Left)|rent(?:Window|Layer)?|ge(?:X(?:Offset)?|Y(?:Offset)?))|r(?:o(?:to(?:col|type)|duct(?:Sub)?|mpter)|e(?:vious|fix)))|e(?:n(?:coding|abledPlugin)|x(?:ternal|pando)|mbeds)|v(?:isibility|endor(?:Sub)?|Linkcolor)|URLUnencoded|P(?:I|OSITIVE_INFINITY)|f(?:ilename|o(?:nt(?:Size|Family|Weight)|rmName)|rame(?:s|Element)|gColor)|E|whiteSpace|l(?:i(?:stStyleType|n(?:eHeight|kColor))|o(?:ca(?:tion(?:bar)?|lName)|wsrc)|e(?:ngth|ft(?:Context)?)|a(?:st(?:M(?:odified|atch)|Index|Paren)|yer(?:s|X)|nguage))|a(?:pp(?:MinorVersion|Name|Co(?:deName|re)|Version)|vail(?:Height|Top|Width|Left)|ll|r(?:ity|guments)|Linkcolor|bove)|r(?:ight(?:Context)?|e(?:sponse(?:XML|Text)|adyState))|global|x|m(?:imeTypes|ultiline|enubar|argin(?:Right|Bottom|Top|Left))|L(?:N(?:10|2)|OG(?:10E|2E))|b(?:o(?:ttom|rder(?:Width|RightWidth|BottomWidth|Style|Color|TopWidth|LeftWidth))|ufferDepth|elow|ackground(?:Color|Image)))\b/
466
+ }, {
467
+ token: "identifier",
468
+ regex: identifierRe
469
+ }, {
470
+ regex: "",
471
+ token: "empty",
472
+ next: "no_regex"
473
+ }
474
+ ],
475
+ "start": [
476
+ DocCommentHighlightRules.getStartRule("doc-start"),
477
+ comments("start"),
478
+ {
479
+ token: "string.regexp",
480
+ regex: "\\/",
481
+ next: "regex"
482
+ }, {
483
+ token: "text",
484
+ regex: "\\s+|^$",
485
+ next: "start"
486
+ }, {
487
+ token: "empty",
488
+ regex: "",
489
+ next: "no_regex"
490
+ }
491
+ ],
492
+ "regex": [
493
+ {
494
+ token: "regexp.keyword.operator",
495
+ regex: "\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"
496
+ }, {
497
+ token: "string.regexp",
498
+ regex: "/[sxngimy]*",
499
+ next: "no_regex"
500
+ }, {
501
+ token: "invalid",
502
+ regex: /\{\d+\b,?\d*\}[+*]|[+*$^?][+*]|[$^][?]|\?{3,}/
503
+ }, {
504
+ token: "constant.language.escape",
505
+ regex: /\(\?[:=!]|\)|\{\d+\b,?\d*\}|[+*]\?|[()$^+*?.]/
506
+ }, {
507
+ token: "constant.language.delimiter",
508
+ regex: /\|/
509
+ }, {
510
+ token: "constant.language.escape",
511
+ regex: /\[\^?/,
512
+ next: "regex_character_class"
513
+ }, {
514
+ token: "empty",
515
+ regex: "$",
516
+ next: "no_regex"
517
+ }, {
518
+ defaultToken: "string.regexp"
519
+ }
520
+ ],
521
+ "regex_character_class": [
522
+ {
523
+ token: "regexp.charclass.keyword.operator",
524
+ regex: "\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"
525
+ }, {
526
+ token: "constant.language.escape",
527
+ regex: "]",
528
+ next: "regex"
529
+ }, {
530
+ token: "constant.language.escape",
531
+ regex: "-"
532
+ }, {
533
+ token: "empty",
534
+ regex: "$",
535
+ next: "no_regex"
536
+ }, {
537
+ defaultToken: "string.regexp.charachterclass"
538
+ }
539
+ ],
540
+ "default_parameter": [
541
+ {
542
+ token: "string",
543
+ regex: "'(?=.)",
544
+ push: [
545
+ {
546
+ token: "string",
547
+ regex: "'|$",
548
+ next: "pop"
549
+ }, {
550
+ include: "qstring"
551
+ }
552
+ ]
553
+ }, {
554
+ token: "string",
555
+ regex: '"(?=.)',
556
+ push: [
557
+ {
558
+ token: "string",
559
+ regex: '"|$',
560
+ next: "pop"
561
+ }, {
562
+ include: "qqstring"
563
+ }
564
+ ]
565
+ }, {
566
+ token: "constant.language",
567
+ regex: "null|Infinity|NaN|undefined"
568
+ }, {
569
+ include: "numeric_constants"
570
+ }, {
571
+ token: "punctuation.operator",
572
+ regex: ",",
573
+ next: "function_arguments"
574
+ }, {
575
+ token: "text",
576
+ regex: "\\s+"
577
+ }, {
578
+ token: "punctuation.operator",
579
+ regex: "$"
580
+ }, {
581
+ token: "empty",
582
+ regex: "",
583
+ next: "no_regex"
584
+ }
585
+ ],
586
+ "function_arguments": [
587
+ comments("function_arguments"),
588
+ {
589
+ token: "variable.parameter",
590
+ regex: identifierRe
591
+ }, {
592
+ token: "punctuation.operator",
593
+ regex: ","
594
+ }, {
595
+ token: "text",
596
+ regex: "\\s+"
597
+ }, {
598
+ token: "punctuation.operator",
599
+ regex: "$"
600
+ }, {
601
+ token: "empty",
602
+ regex: "",
603
+ next: "no_regex"
604
+ }
605
+ ],
606
+ "qqstring": [
607
+ {
608
+ token: "constant.language.escape",
609
+ regex: escapedRe
610
+ }, {
611
+ token: "string",
612
+ regex: "\\\\$",
613
+ consumeLineEnd: true
614
+ }, {
615
+ token: "string",
616
+ regex: '"|$',
617
+ next: "no_regex"
618
+ }, {
619
+ defaultToken: "string"
620
+ }
621
+ ],
622
+ "qstring": [
623
+ {
624
+ token: "constant.language.escape",
625
+ regex: escapedRe
626
+ }, {
627
+ token: "string",
628
+ regex: "\\\\$",
629
+ consumeLineEnd: true
630
+ }, {
631
+ token: "string",
632
+ regex: "'|$",
633
+ next: "no_regex"
634
+ }, {
635
+ defaultToken: "string"
636
+ }
637
+ ],
638
+ "numeric_constants": [
639
+ {
640
+ token: "constant.numeric", // hexadecimal, octal and binary
641
+ regex: /0(?:[xX][0-9a-fA-F_]+|[oO][0-7_]+|[bB][01_]+)\b/
642
+ }, {
643
+ token: "constant.numeric", // decimal integers and floats
644
+ regex: /(?:\d[\d_]*(?:\.[\d_]*)?|\.\d[\d_]*)(?:[eE][+-]?\d+\b)?/
645
+ },
646
+ ]
647
+ };
648
+ if (!options || !options.noES6) {
649
+ this.$rules.no_regex.unshift({
650
+ regex: "[{}]", onMatch: function (val, state, stack) {
651
+ this.next = val == "{" ? this.nextState : "";
652
+ if (val == "{" && stack.length) {
653
+ stack.unshift("start", state);
654
+ }
655
+ else if (val == "}" && stack.length) {
656
+ stack.shift();
657
+ this.next = stack.shift();
658
+ if (this.next.indexOf("string") != -1 || this.next.indexOf("jsx") != -1)
659
+ return "paren.quasi.end";
660
+ }
661
+ return val == "{" ? "paren.lparen" : "paren.rparen";
662
+ },
663
+ nextState: "start"
664
+ }, {
665
+ token: "string.quasi.start",
666
+ regex: /`/,
667
+ push: [{
668
+ token: "constant.language.escape",
669
+ regex: escapedRe
670
+ }, {
671
+ token: "paren.quasi.start",
672
+ regex: /\${/,
673
+ push: "start"
674
+ }, {
675
+ token: "string.quasi.end",
676
+ regex: /`/,
677
+ next: "pop"
678
+ }, {
679
+ defaultToken: "string.quasi"
680
+ }]
681
+ }, {
682
+ token: ["variable.parameter", "text"],
683
+ regex: "(" + identifierRe + ")(\\s*)(?=\\=>)"
684
+ }, {
685
+ token: "paren.lparen",
686
+ regex: "(\\()(?=[^\\(]+\\s*=>)",
687
+ next: "function_arguments"
688
+ }, {
689
+ token: "variable.language",
690
+ regex: "(?:(?:(?:Weak)?(?:Set|Map))|Promise)\\b"
691
+ });
692
+ this.$rules["function_arguments"].unshift({
693
+ token: "keyword.operator",
694
+ regex: "=",
695
+ next: "default_parameter"
696
+ }, {
697
+ token: "keyword.operator",
698
+ regex: "\\.{3}"
699
+ });
700
+ this.$rules["property"].unshift({
701
+ token: "support.function",
702
+ regex: "(findIndex|repeat|startsWith|endsWith|includes|isSafeInteger|trunc|cbrt|log2|log10|sign|then|catch|"
703
+ + "finally|resolve|reject|race|any|all|allSettled|keys|entries|isInteger)\\b(?=\\()"
704
+ }, {
705
+ token: "constant.language",
706
+ regex: "(?:MAX_SAFE_INTEGER|MIN_SAFE_INTEGER|EPSILON)\\b"
707
+ });
708
+ if (!options || options.jsx != false)
709
+ JSX.call(this);
710
+ }
711
+ this.embedRules(DocCommentHighlightRules, "doc-", [DocCommentHighlightRules.getEndRule("no_regex")]);
712
+ this.normalizeRules();
713
+ };
714
+ oop.inherits(JavaScriptHighlightRules, TextHighlightRules);
715
+ function JSX() {
716
+ var tagRegex = identifierRe.replace("\\d", "\\d\\-");
717
+ var jsxTag = {
718
+ onMatch: function (val, state, stack) {
719
+ var offset = val.charAt(1) == "/" ? 2 : 1;
720
+ if (offset == 1) {
721
+ if (state != this.nextState)
722
+ stack.unshift(this.next, this.nextState, 0);
723
+ else
724
+ stack.unshift(this.next);
725
+ stack[2]++;
726
+ }
727
+ else if (offset == 2) {
728
+ if (state == this.nextState) {
729
+ stack[1]--;
730
+ if (!stack[1] || stack[1] < 0) {
731
+ stack.shift();
732
+ stack.shift();
733
+ }
734
+ }
735
+ }
736
+ return [{
737
+ type: "meta.tag.punctuation." + (offset == 1 ? "" : "end-") + "tag-open.xml",
738
+ value: val.slice(0, offset)
739
+ }, {
740
+ type: "meta.tag.tag-name.xml",
741
+ value: val.substr(offset)
742
+ }];
743
+ },
744
+ regex: "</?(?:" + tagRegex + "|(?=>))",
745
+ next: "jsxAttributes",
746
+ nextState: "jsx"
747
+ };
748
+ this.$rules.start.unshift(jsxTag);
749
+ var jsxJsRule = {
750
+ regex: "{",
751
+ token: "paren.quasi.start",
752
+ push: "start"
753
+ };
754
+ this.$rules.jsx = [
755
+ jsxJsRule,
756
+ jsxTag,
757
+ { include: "reference" }, { defaultToken: "string.xml" }
758
+ ];
759
+ this.$rules.jsxAttributes = [{
760
+ token: "meta.tag.punctuation.tag-close.xml",
761
+ regex: "/?>",
762
+ onMatch: function (value, currentState, stack) {
763
+ if (currentState == stack[0])
764
+ stack.shift();
765
+ if (value.length == 2) {
766
+ if (stack[0] == this.nextState)
767
+ stack[1]--;
768
+ if (!stack[1] || stack[1] < 0) {
769
+ stack.splice(0, 2);
770
+ }
771
+ }
772
+ this.next = stack[0] || "start";
773
+ return [{ type: this.token, value: value }];
774
+ },
775
+ nextState: "jsx"
776
+ },
777
+ jsxJsRule,
778
+ comments("jsxAttributes"),
779
+ {
780
+ token: "entity.other.attribute-name.xml",
781
+ regex: tagRegex
782
+ }, {
783
+ token: "keyword.operator.attribute-equals.xml",
784
+ regex: "="
785
+ }, {
786
+ token: "text.tag-whitespace.xml",
787
+ regex: "\\s+"
788
+ }, {
789
+ token: "string.attribute-value.xml",
790
+ regex: "'",
791
+ stateName: "jsx_attr_q",
792
+ push: [
793
+ { token: "string.attribute-value.xml", regex: "'", next: "pop" },
794
+ { include: "reference" },
795
+ { defaultToken: "string.attribute-value.xml" }
796
+ ]
797
+ }, {
798
+ token: "string.attribute-value.xml",
799
+ regex: '"',
800
+ stateName: "jsx_attr_qq",
801
+ push: [
802
+ { token: "string.attribute-value.xml", regex: '"', next: "pop" },
803
+ { include: "reference" },
804
+ { defaultToken: "string.attribute-value.xml" }
805
+ ]
806
+ },
807
+ jsxTag
808
+ ];
809
+ this.$rules.reference = [{
810
+ token: "constant.language.escape.reference.xml",
811
+ regex: "(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"
812
+ }];
813
+ }
814
+ function comments(next) {
815
+ return [
816
+ {
817
+ token: "comment", // multi line comment
818
+ regex: /\/\*/,
819
+ next: [
820
+ DocCommentHighlightRules.getTagRule(),
821
+ { token: "comment", regex: "\\*\\/", next: next || "pop" },
822
+ { defaultToken: "comment", caseInsensitive: true }
823
+ ]
824
+ }, {
825
+ token: "comment",
826
+ regex: "\\/\\/",
827
+ next: [
828
+ DocCommentHighlightRules.getTagRule(),
829
+ { token: "comment", regex: "$|^", next: next || "pop" },
830
+ { defaultToken: "comment", caseInsensitive: true }
831
+ ]
832
+ }
833
+ ];
834
+ }
835
+ exports.JavaScriptHighlightRules = JavaScriptHighlightRules;
836
+
837
+ });
838
+
839
+ ace.define("ace/mode/xml_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"], function(require, exports, module){"use strict";
840
+ var oop = require("../lib/oop");
841
+ var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
842
+ var XmlHighlightRules = function (normalize) {
843
+ var tagRegex = "[_:a-zA-Z\xc0-\uffff][-_:.a-zA-Z0-9\xc0-\uffff]*";
844
+ this.$rules = {
845
+ start: [
846
+ { token: "string.cdata.xml", regex: "<\\!\\[CDATA\\[", next: "cdata" },
847
+ {
848
+ token: ["punctuation.instruction.xml", "keyword.instruction.xml"],
849
+ regex: "(<\\?)(" + tagRegex + ")", next: "processing_instruction"
850
+ },
851
+ { token: "comment.start.xml", regex: "<\\!--", next: "comment" },
852
+ {
853
+ token: ["xml-pe.doctype.xml", "xml-pe.doctype.xml"],
854
+ regex: "(<\\!)(DOCTYPE)(?=[\\s])", next: "doctype", caseInsensitive: true
855
+ },
856
+ { include: "tag" },
857
+ { token: "text.end-tag-open.xml", regex: "</" },
858
+ { token: "text.tag-open.xml", regex: "<" },
859
+ { include: "reference" },
860
+ { defaultToken: "text.xml" }
861
+ ],
862
+ processing_instruction: [{
863
+ token: "entity.other.attribute-name.decl-attribute-name.xml",
864
+ regex: tagRegex
865
+ }, {
866
+ token: "keyword.operator.decl-attribute-equals.xml",
867
+ regex: "="
868
+ }, {
869
+ include: "whitespace"
870
+ }, {
871
+ include: "string"
872
+ }, {
873
+ token: "punctuation.xml-decl.xml",
874
+ regex: "\\?>",
875
+ next: "start"
876
+ }],
877
+ doctype: [
878
+ { include: "whitespace" },
879
+ { include: "string" },
880
+ { token: "xml-pe.doctype.xml", regex: ">", next: "start" },
881
+ { token: "xml-pe.xml", regex: "[-_a-zA-Z0-9:]+" },
882
+ { token: "punctuation.int-subset", regex: "\\[", push: "int_subset" }
883
+ ],
884
+ int_subset: [{
885
+ token: "text.xml",
886
+ regex: "\\s+"
887
+ }, {
888
+ token: "punctuation.int-subset.xml",
889
+ regex: "]",
890
+ next: "pop"
891
+ }, {
892
+ token: ["punctuation.markup-decl.xml", "keyword.markup-decl.xml"],
893
+ regex: "(<\\!)(" + tagRegex + ")",
894
+ push: [{
895
+ token: "text",
896
+ regex: "\\s+"
897
+ },
898
+ {
899
+ token: "punctuation.markup-decl.xml",
900
+ regex: ">",
901
+ next: "pop"
902
+ },
903
+ { include: "string" }]
904
+ }],
905
+ cdata: [
906
+ { token: "string.cdata.xml", regex: "\\]\\]>", next: "start" },
907
+ { token: "text.xml", regex: "\\s+" },
908
+ { token: "text.xml", regex: "(?:[^\\]]|\\](?!\\]>))+" }
909
+ ],
910
+ comment: [
911
+ { token: "comment.end.xml", regex: "-->", next: "start" },
912
+ { defaultToken: "comment.xml" }
913
+ ],
914
+ reference: [{
915
+ token: "constant.language.escape.reference.xml",
916
+ regex: "(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"
917
+ }],
918
+ attr_reference: [{
919
+ token: "constant.language.escape.reference.attribute-value.xml",
920
+ regex: "(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"
921
+ }],
922
+ tag: [{
923
+ token: ["meta.tag.punctuation.tag-open.xml", "meta.tag.punctuation.end-tag-open.xml", "meta.tag.tag-name.xml"],
924
+ regex: "(?:(<)|(</))((?:" + tagRegex + ":)?" + tagRegex + ")",
925
+ next: [
926
+ { include: "attributes" },
927
+ { token: "meta.tag.punctuation.tag-close.xml", regex: "/?>", next: "start" }
928
+ ]
929
+ }],
930
+ tag_whitespace: [
931
+ { token: "text.tag-whitespace.xml", regex: "\\s+" }
932
+ ],
933
+ whitespace: [
934
+ { token: "text.whitespace.xml", regex: "\\s+" }
935
+ ],
936
+ string: [{
937
+ token: "string.xml",
938
+ regex: "'",
939
+ push: [
940
+ { token: "string.xml", regex: "'", next: "pop" },
941
+ { defaultToken: "string.xml" }
942
+ ]
943
+ }, {
944
+ token: "string.xml",
945
+ regex: '"',
946
+ push: [
947
+ { token: "string.xml", regex: '"', next: "pop" },
948
+ { defaultToken: "string.xml" }
949
+ ]
950
+ }],
951
+ attributes: [{
952
+ token: "entity.other.attribute-name.xml",
953
+ regex: tagRegex
954
+ }, {
955
+ token: "keyword.operator.attribute-equals.xml",
956
+ regex: "="
957
+ }, {
958
+ include: "tag_whitespace"
959
+ }, {
960
+ include: "attribute_value"
961
+ }],
962
+ attribute_value: [{
963
+ token: "string.attribute-value.xml",
964
+ regex: "'",
965
+ push: [
966
+ { token: "string.attribute-value.xml", regex: "'", next: "pop" },
967
+ { include: "attr_reference" },
968
+ { defaultToken: "string.attribute-value.xml" }
969
+ ]
970
+ }, {
971
+ token: "string.attribute-value.xml",
972
+ regex: '"',
973
+ push: [
974
+ { token: "string.attribute-value.xml", regex: '"', next: "pop" },
975
+ { include: "attr_reference" },
976
+ { defaultToken: "string.attribute-value.xml" }
977
+ ]
978
+ }]
979
+ };
980
+ if (this.constructor === XmlHighlightRules)
981
+ this.normalizeRules();
982
+ };
983
+ (function () {
984
+ this.embedTagRules = function (HighlightRules, prefix, tag) {
985
+ this.$rules.tag.unshift({
986
+ token: ["meta.tag.punctuation.tag-open.xml", "meta.tag." + tag + ".tag-name.xml"],
987
+ regex: "(<)(" + tag + "(?=\\s|>|$))",
988
+ next: [
989
+ { include: "attributes" },
990
+ { token: "meta.tag.punctuation.tag-close.xml", regex: "/?>", next: prefix + "start" }
991
+ ]
992
+ });
993
+ this.$rules[tag + "-end"] = [
994
+ { include: "attributes" },
995
+ { token: "meta.tag.punctuation.tag-close.xml", regex: "/?>", next: "start",
996
+ onMatch: function (value, currentState, stack) {
997
+ stack.splice(0);
998
+ return this.token;
999
+ } }
1000
+ ];
1001
+ this.embedRules(HighlightRules, prefix, [{
1002
+ token: ["meta.tag.punctuation.end-tag-open.xml", "meta.tag." + tag + ".tag-name.xml"],
1003
+ regex: "(</)(" + tag + "(?=\\s|>|$))",
1004
+ next: tag + "-end"
1005
+ }, {
1006
+ token: "string.cdata.xml",
1007
+ regex: "<\\!\\[CDATA\\["
1008
+ }, {
1009
+ token: "string.cdata.xml",
1010
+ regex: "\\]\\]>"
1011
+ }]);
1012
+ };
1013
+ }).call(TextHighlightRules.prototype);
1014
+ oop.inherits(XmlHighlightRules, TextHighlightRules);
1015
+ exports.XmlHighlightRules = XmlHighlightRules;
1016
+
1017
+ });
1018
+
1019
+ ace.define("ace/mode/html_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/css_highlight_rules","ace/mode/javascript_highlight_rules","ace/mode/xml_highlight_rules"], function(require, exports, module){"use strict";
1020
+ var oop = require("../lib/oop");
1021
+ var lang = require("../lib/lang");
1022
+ var CssHighlightRules = require("./css_highlight_rules").CssHighlightRules;
1023
+ var JavaScriptHighlightRules = require("./javascript_highlight_rules").JavaScriptHighlightRules;
1024
+ var XmlHighlightRules = require("./xml_highlight_rules").XmlHighlightRules;
1025
+ var tagMap = lang.createMap({
1026
+ a: 'anchor',
1027
+ button: 'form',
1028
+ form: 'form',
1029
+ img: 'image',
1030
+ input: 'form',
1031
+ label: 'form',
1032
+ option: 'form',
1033
+ script: 'script',
1034
+ select: 'form',
1035
+ textarea: 'form',
1036
+ style: 'style',
1037
+ table: 'table',
1038
+ tbody: 'table',
1039
+ td: 'table',
1040
+ tfoot: 'table',
1041
+ th: 'table',
1042
+ tr: 'table'
1043
+ });
1044
+ var HtmlHighlightRules = function () {
1045
+ XmlHighlightRules.call(this);
1046
+ this.addRules({
1047
+ attributes: [{
1048
+ include: "tag_whitespace"
1049
+ }, {
1050
+ token: "entity.other.attribute-name.xml",
1051
+ regex: "[-_a-zA-Z0-9:.]+"
1052
+ }, {
1053
+ token: "keyword.operator.attribute-equals.xml",
1054
+ regex: "=",
1055
+ push: [{
1056
+ include: "tag_whitespace"
1057
+ }, {
1058
+ token: "string.unquoted.attribute-value.html",
1059
+ regex: "[^<>='\"`\\s]+",
1060
+ next: "pop"
1061
+ }, {
1062
+ token: "empty",
1063
+ regex: "",
1064
+ next: "pop"
1065
+ }]
1066
+ }, {
1067
+ include: "attribute_value"
1068
+ }],
1069
+ tag: [{
1070
+ token: function (start, tag) {
1071
+ var group = tagMap[tag];
1072
+ return ["meta.tag.punctuation." + (start == "<" ? "" : "end-") + "tag-open.xml",
1073
+ "meta.tag" + (group ? "." + group : "") + ".tag-name.xml"];
1074
+ },
1075
+ regex: "(</?)([-_a-zA-Z0-9:.]+)",
1076
+ next: "tag_stuff"
1077
+ }],
1078
+ tag_stuff: [
1079
+ { include: "attributes" },
1080
+ { token: "meta.tag.punctuation.tag-close.xml", regex: "/?>", next: "start" }
1081
+ ]
1082
+ });
1083
+ this.embedTagRules(CssHighlightRules, "css-", "style");
1084
+ this.embedTagRules(new JavaScriptHighlightRules({ jsx: false }).getRules(), "js-", "script");
1085
+ if (this.constructor === HtmlHighlightRules)
1086
+ this.normalizeRules();
1087
+ };
1088
+ oop.inherits(HtmlHighlightRules, XmlHighlightRules);
1089
+ exports.HtmlHighlightRules = HtmlHighlightRules;
1090
+
1091
+ });
1092
+
1093
+ ace.define("ace/mode/elixir_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"], function(require, exports, module){/* This file was autogenerated from https://raw.githubusercontent.com/elixir-lang/elixir-tmbundle/master/Syntaxes/Elixir.tmLanguage (uuid: ) */
1094
+ "use strict";
1095
+ var oop = require("../lib/oop");
1096
+ var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
1097
+ var ElixirHighlightRules = function () {
1098
+ this.$rules = { start: [{ token: ['meta.module.elixir',
1099
+ 'keyword.control.module.elixir',
1100
+ 'meta.module.elixir',
1101
+ 'entity.name.type.module.elixir'],
1102
+ regex: '^(\\s*)(defmodule)(\\s+)((?:[A-Z]\\w*\\s*\\.\\s*)*[A-Z]\\w*)' },
1103
+ { token: 'comment.documentation.heredoc',
1104
+ regex: '@(?:module|type)?doc (?:~[a-z])?"""',
1105
+ push: [{ token: 'comment.documentation.heredoc',
1106
+ regex: '\\s*"""',
1107
+ next: 'pop' },
1108
+ { include: '#interpolated_elixir' },
1109
+ { include: '#escaped_char' },
1110
+ { defaultToken: 'comment.documentation.heredoc' }],
1111
+ comment: '@doc with heredocs is treated as documentation' },
1112
+ { token: 'comment.documentation.heredoc',
1113
+ regex: '@(?:module|type)?doc ~[A-Z]"""',
1114
+ push: [{ token: 'comment.documentation.heredoc',
1115
+ regex: '\\s*"""',
1116
+ next: 'pop' },
1117
+ { defaultToken: 'comment.documentation.heredoc' }],
1118
+ comment: '@doc with heredocs is treated as documentation' },
1119
+ { token: 'comment.documentation.heredoc',
1120
+ regex: '@(?:module|type)?doc (?:~[a-z])?\'\'\'',
1121
+ push: [{ token: 'comment.documentation.heredoc',
1122
+ regex: '\\s*\'\'\'',
1123
+ next: 'pop' },
1124
+ { include: '#interpolated_elixir' },
1125
+ { include: '#escaped_char' },
1126
+ { defaultToken: 'comment.documentation.heredoc' }],
1127
+ comment: '@doc with heredocs is treated as documentation' },
1128
+ { token: 'comment.documentation.heredoc',
1129
+ regex: '@(?:module|type)?doc ~[A-Z]\'\'\'',
1130
+ push: [{ token: 'comment.documentation.heredoc',
1131
+ regex: '\\s*\'\'\'',
1132
+ next: 'pop' },
1133
+ { defaultToken: 'comment.documentation.heredoc' }],
1134
+ comment: '@doc with heredocs is treated as documentation' },
1135
+ { token: 'comment.documentation.false',
1136
+ regex: '@(?:module|type)?doc false',
1137
+ comment: '@doc false is treated as documentation' },
1138
+ { token: 'comment.documentation.string',
1139
+ regex: '@(?:module|type)?doc "',
1140
+ push: [{ token: 'comment.documentation.string',
1141
+ regex: '"',
1142
+ next: 'pop' },
1143
+ { include: '#interpolated_elixir' },
1144
+ { include: '#escaped_char' },
1145
+ { defaultToken: 'comment.documentation.string' }],
1146
+ comment: '@doc with string is treated as documentation' },
1147
+ { token: 'keyword.control.elixir',
1148
+ regex: '\\b(?:do|end|case|bc|lc|for|if|cond|unless|try|receive|fn|defmodule|defp?|defprotocol|defimpl|defrecord|defstruct|defmacrop?|defdelegate|defcallback|defmacrocallback|defexception|defoverridable|exit|after|rescue|catch|else|raise|throw|import|require|alias|use|quote|unquote|super)\\b(?![?!])',
1149
+ TODO: 'FIXME: regexp doesn\'t have js equivalent',
1150
+ originalRegex: '(?<!\\.)\\b(do|end|case|bc|lc|for|if|cond|unless|try|receive|fn|defmodule|defp?|defprotocol|defimpl|defrecord|defstruct|defmacrop?|defdelegate|defcallback|defmacrocallback|defexception|defoverridable|exit|after|rescue|catch|else|raise|throw|import|require|alias|use|quote|unquote|super)\\b(?![?!])' },
1151
+ { token: 'keyword.operator.elixir',
1152
+ regex: '\\b(?:and|not|or|when|xor|in|inlist|inbits)\\b',
1153
+ TODO: 'FIXME: regexp doesn\'t have js equivalent',
1154
+ originalRegex: '(?<!\\.)\\b(and|not|or|when|xor|in|inlist|inbits)\\b',
1155
+ comment: ' as above, just doesn\'t need a \'end\' and does a logic operation' },
1156
+ { token: 'constant.language.elixir',
1157
+ regex: '\\b(?:nil|true|false)\\b(?![?!])' },
1158
+ { token: 'variable.language.elixir',
1159
+ regex: '\\b__(?:CALLER|ENV|MODULE|DIR)__\\b(?![?!])' },
1160
+ { token: ['punctuation.definition.variable.elixir',
1161
+ 'variable.other.readwrite.module.elixir'],
1162
+ regex: '(@)([a-zA-Z_]\\w*)' },
1163
+ { token: ['punctuation.definition.variable.elixir',
1164
+ 'variable.other.anonymous.elixir'],
1165
+ regex: '(&)(\\d*)' },
1166
+ { token: 'variable.other.constant.elixir',
1167
+ regex: '\\b[A-Z]\\w*\\b' },
1168
+ { token: 'constant.numeric.elixir',
1169
+ regex: '\\b(?:0x[\\da-fA-F](?:_?[\\da-fA-F])*|\\d(?:_?\\d)*(?:\\.(?![^[:space:][:digit:]])(?:_?\\d)*)?(?:[eE][-+]?\\d(?:_?\\d)*)?|0b[01]+|0o[0-7]+)\\b',
1170
+ TODO: 'FIXME: regexp doesn\'t have js equivalent',
1171
+ originalRegex: '\\b(0x\\h(?>_?\\h)*|\\d(?>_?\\d)*(\\.(?![^[:space:][:digit:]])(?>_?\\d)*)?([eE][-+]?\\d(?>_?\\d)*)?|0b[01]+|0o[0-7]+)\\b' },
1172
+ { token: 'punctuation.definition.constant.elixir',
1173
+ regex: ':\'',
1174
+ push: [{ token: 'punctuation.definition.constant.elixir',
1175
+ regex: '\'',
1176
+ next: 'pop' },
1177
+ { include: '#interpolated_elixir' },
1178
+ { include: '#escaped_char' },
1179
+ { defaultToken: 'constant.other.symbol.single-quoted.elixir' }] },
1180
+ { token: 'punctuation.definition.constant.elixir',
1181
+ regex: ':"',
1182
+ push: [{ token: 'punctuation.definition.constant.elixir',
1183
+ regex: '"',
1184
+ next: 'pop' },
1185
+ { include: '#interpolated_elixir' },
1186
+ { include: '#escaped_char' },
1187
+ { defaultToken: 'constant.other.symbol.double-quoted.elixir' }] },
1188
+ { token: 'punctuation.definition.string.begin.elixir',
1189
+ regex: '(?:\'\'\')',
1190
+ TODO: 'FIXME: regexp doesn\'t have js equivalent',
1191
+ originalRegex: '(?>\'\'\')',
1192
+ push: [{ token: 'punctuation.definition.string.end.elixir',
1193
+ regex: '^\\s*\'\'\'',
1194
+ next: 'pop' },
1195
+ { include: '#interpolated_elixir' },
1196
+ { include: '#escaped_char' },
1197
+ { defaultToken: 'support.function.variable.quoted.single.heredoc.elixir' }],
1198
+ comment: 'Single-quoted heredocs' },
1199
+ { token: 'punctuation.definition.string.begin.elixir',
1200
+ regex: '\'',
1201
+ push: [{ token: 'punctuation.definition.string.end.elixir',
1202
+ regex: '\'',
1203
+ next: 'pop' },
1204
+ { include: '#interpolated_elixir' },
1205
+ { include: '#escaped_char' },
1206
+ { defaultToken: 'support.function.variable.quoted.single.elixir' }],
1207
+ comment: 'single quoted string (allows for interpolation)' },
1208
+ { token: 'punctuation.definition.string.begin.elixir',
1209
+ regex: '(?:""")',
1210
+ TODO: 'FIXME: regexp doesn\'t have js equivalent',
1211
+ originalRegex: '(?>""")',
1212
+ push: [{ token: 'punctuation.definition.string.end.elixir',
1213
+ regex: '^\\s*"""',
1214
+ next: 'pop' },
1215
+ { include: '#interpolated_elixir' },
1216
+ { include: '#escaped_char' },
1217
+ { defaultToken: 'string.quoted.double.heredoc.elixir' }],
1218
+ comment: 'Double-quoted heredocs' },
1219
+ { token: 'punctuation.definition.string.begin.elixir',
1220
+ regex: '"',
1221
+ push: [{ token: 'punctuation.definition.string.end.elixir',
1222
+ regex: '"',
1223
+ next: 'pop' },
1224
+ { include: '#interpolated_elixir' },
1225
+ { include: '#escaped_char' },
1226
+ { defaultToken: 'string.quoted.double.elixir' }],
1227
+ comment: 'double quoted string (allows for interpolation)' },
1228
+ { token: 'punctuation.definition.string.begin.elixir',
1229
+ regex: '~[a-z](?:""")',
1230
+ TODO: 'FIXME: regexp doesn\'t have js equivalent',
1231
+ originalRegex: '~[a-z](?>""")',
1232
+ push: [{ token: 'punctuation.definition.string.end.elixir',
1233
+ regex: '^\\s*"""',
1234
+ next: 'pop' },
1235
+ { include: '#interpolated_elixir' },
1236
+ { include: '#escaped_char' },
1237
+ { defaultToken: 'string.quoted.double.heredoc.elixir' }],
1238
+ comment: 'Double-quoted heredocs sigils' },
1239
+ { token: 'punctuation.definition.string.begin.elixir',
1240
+ regex: '~[a-z]\\{',
1241
+ push: [{ token: 'punctuation.definition.string.end.elixir',
1242
+ regex: '\\}[a-z]*',
1243
+ next: 'pop' },
1244
+ { include: '#interpolated_elixir' },
1245
+ { include: '#escaped_char' },
1246
+ { defaultToken: 'string.interpolated.elixir' }],
1247
+ comment: 'sigil (allow for interpolation)' },
1248
+ { token: 'punctuation.definition.string.begin.elixir',
1249
+ regex: '~[a-z]\\[',
1250
+ push: [{ token: 'punctuation.definition.string.end.elixir',
1251
+ regex: '\\][a-z]*',
1252
+ next: 'pop' },
1253
+ { include: '#interpolated_elixir' },
1254
+ { include: '#escaped_char' },
1255
+ { defaultToken: 'string.interpolated.elixir' }],
1256
+ comment: 'sigil (allow for interpolation)' },
1257
+ { token: 'punctuation.definition.string.begin.elixir',
1258
+ regex: '~[a-z]\\<',
1259
+ push: [{ token: 'punctuation.definition.string.end.elixir',
1260
+ regex: '\\>[a-z]*',
1261
+ next: 'pop' },
1262
+ { include: '#interpolated_elixir' },
1263
+ { include: '#escaped_char' },
1264
+ { defaultToken: 'string.interpolated.elixir' }],
1265
+ comment: 'sigil (allow for interpolation)' },
1266
+ { token: 'punctuation.definition.string.begin.elixir',
1267
+ regex: '~[a-z]\\(',
1268
+ push: [{ token: 'punctuation.definition.string.end.elixir',
1269
+ regex: '\\)[a-z]*',
1270
+ next: 'pop' },
1271
+ { include: '#interpolated_elixir' },
1272
+ { include: '#escaped_char' },
1273
+ { defaultToken: 'string.interpolated.elixir' }],
1274
+ comment: 'sigil (allow for interpolation)' },
1275
+ { token: 'punctuation.definition.string.begin.elixir',
1276
+ regex: '~[a-z][^\\w]',
1277
+ push: [{ token: 'punctuation.definition.string.end.elixir',
1278
+ regex: '[^\\w][a-z]*',
1279
+ next: 'pop' },
1280
+ { include: '#interpolated_elixir' },
1281
+ { include: '#escaped_char' },
1282
+ { include: '#escaped_char' },
1283
+ { defaultToken: 'string.interpolated.elixir' }],
1284
+ comment: 'sigil (allow for interpolation)' },
1285
+ { token: 'punctuation.definition.string.begin.elixir',
1286
+ regex: '~[A-Z](?:""")',
1287
+ TODO: 'FIXME: regexp doesn\'t have js equivalent',
1288
+ originalRegex: '~[A-Z](?>""")',
1289
+ push: [{ token: 'punctuation.definition.string.end.elixir',
1290
+ regex: '^\\s*"""',
1291
+ next: 'pop' },
1292
+ { defaultToken: 'string.quoted.other.literal.upper.elixir' }],
1293
+ comment: 'Double-quoted heredocs sigils' },
1294
+ { token: 'punctuation.definition.string.begin.elixir',
1295
+ regex: '~[A-Z]\\{',
1296
+ push: [{ token: 'punctuation.definition.string.end.elixir',
1297
+ regex: '\\}[a-z]*',
1298
+ next: 'pop' },
1299
+ { defaultToken: 'string.quoted.other.literal.upper.elixir' }],
1300
+ comment: 'sigil (without interpolation)' },
1301
+ { token: 'punctuation.definition.string.begin.elixir',
1302
+ regex: '~[A-Z]\\[',
1303
+ push: [{ token: 'punctuation.definition.string.end.elixir',
1304
+ regex: '\\][a-z]*',
1305
+ next: 'pop' },
1306
+ { defaultToken: 'string.quoted.other.literal.upper.elixir' }],
1307
+ comment: 'sigil (without interpolation)' },
1308
+ { token: 'punctuation.definition.string.begin.elixir',
1309
+ regex: '~[A-Z]\\<',
1310
+ push: [{ token: 'punctuation.definition.string.end.elixir',
1311
+ regex: '\\>[a-z]*',
1312
+ next: 'pop' },
1313
+ { defaultToken: 'string.quoted.other.literal.upper.elixir' }],
1314
+ comment: 'sigil (without interpolation)' },
1315
+ { token: 'punctuation.definition.string.begin.elixir',
1316
+ regex: '~[A-Z]\\(',
1317
+ push: [{ token: 'punctuation.definition.string.end.elixir',
1318
+ regex: '\\)[a-z]*',
1319
+ next: 'pop' },
1320
+ { defaultToken: 'string.quoted.other.literal.upper.elixir' }],
1321
+ comment: 'sigil (without interpolation)' },
1322
+ { token: 'punctuation.definition.string.begin.elixir',
1323
+ regex: '~[A-Z][^\\w]',
1324
+ push: [{ token: 'punctuation.definition.string.end.elixir',
1325
+ regex: '[^\\w][a-z]*',
1326
+ next: 'pop' },
1327
+ { defaultToken: 'string.quoted.other.literal.upper.elixir' }],
1328
+ comment: 'sigil (without interpolation)' },
1329
+ { token: ['punctuation.definition.constant.elixir', 'constant.other.symbol.elixir'],
1330
+ regex: '(:)([a-zA-Z_][\\w@]*(?:[?!]|=(?![>=]))?|\\<\\>|===?|!==?|<<>>|<<<|>>>|~~~|::|<\\-|\\|>|=>|~|~=|=|/|\\\\\\\\|\\*\\*?|\\.\\.?\\.?|>=?|<=?|&&?&?|\\+\\+?|\\-\\-?|\\|\\|?\\|?|\\!|@|\\%?\\{\\}|%|\\[\\]|\\^(?:\\^\\^)?)',
1331
+ TODO: 'FIXME: regexp doesn\'t have js equivalent',
1332
+ originalRegex: '(?<!:)(:)(?>[a-zA-Z_][\\w@]*(?>[?!]|=(?![>=]))?|\\<\\>|===?|!==?|<<>>|<<<|>>>|~~~|::|<\\-|\\|>|=>|~|~=|=|/|\\\\\\\\|\\*\\*?|\\.\\.?\\.?|>=?|<=?|&&?&?|\\+\\+?|\\-\\-?|\\|\\|?\\|?|\\!|@|\\%?\\{\\}|%|\\[\\]|\\^(\\^\\^)?)',
1333
+ comment: 'symbols' },
1334
+ { token: 'punctuation.definition.constant.elixir',
1335
+ regex: '(?:[a-zA-Z_][\\w@]*(?:[?!])?):(?!:)',
1336
+ TODO: 'FIXME: regexp doesn\'t have js equivalent',
1337
+ originalRegex: '(?>[a-zA-Z_][\\w@]*(?>[?!])?)(:)(?!:)',
1338
+ comment: 'symbols' },
1339
+ { token: ['punctuation.definition.comment.elixir',
1340
+ 'comment.line.number-sign.elixir'],
1341
+ regex: '(#)(.*)' },
1342
+ { token: 'constant.numeric.elixir',
1343
+ regex: '\\?(?:\\\\(?:x[\\da-fA-F]{1,2}(?![\\da-fA-F])\\b|[^xMC])|[^\\s\\\\])',
1344
+ TODO: 'FIXME: regexp doesn\'t have js equivalent',
1345
+ originalRegex: '(?<!\\w)\\?(\\\\(x\\h{1,2}(?!\\h)\\b|[^xMC])|[^\\s\\\\])',
1346
+ comment: '\n\t\t\tmatches questionmark-letters.\n\n\t\t\texamples (1st alternation = hex):\n\t\t\t?\\x1 ?\\x61\n\n\t\t\texamples (2rd alternation = escaped):\n\t\t\t?\\n ?\\b\n\n\t\t\texamples (3rd alternation = normal):\n\t\t\t?a ?A ?0 \n\t\t\t?* ?" ?( \n\t\t\t?. ?#\n\t\t\t\n\t\t\tthe negative lookbehind prevents against matching\n\t\t\tp(42.tainted?)\n\t\t\t' },
1347
+ { token: 'keyword.operator.assignment.augmented.elixir',
1348
+ regex: '\\+=|\\-=|\\|\\|=|~=|&&=' },
1349
+ { token: 'keyword.operator.comparison.elixir',
1350
+ regex: '===?|!==?|<=?|>=?' },
1351
+ { token: 'keyword.operator.bitwise.elixir',
1352
+ regex: '\\|{3}|&{3}|\\^{3}|<{3}|>{3}|~{3}' },
1353
+ { token: 'keyword.operator.logical.elixir',
1354
+ regex: '!+|\\bnot\\b|&&|\\band\\b|\\|\\||\\bor\\b|\\bxor\\b',
1355
+ originalRegex: '(?<=[ \\t])!+|\\bnot\\b|&&|\\band\\b|\\|\\||\\bor\\b|\\bxor\\b' },
1356
+ { token: 'keyword.operator.arithmetic.elixir',
1357
+ regex: '\\*|\\+|\\-|/' },
1358
+ { token: 'keyword.operator.other.elixir',
1359
+ regex: '\\||\\+\\+|\\-\\-|\\*\\*|\\\\\\\\|\\<\\-|\\<\\>|\\<\\<|\\>\\>|\\:\\:|\\.\\.|\\|>|~|=>' },
1360
+ { token: 'keyword.operator.assignment.elixir', regex: '=' },
1361
+ { token: 'punctuation.separator.other.elixir', regex: ':' },
1362
+ { token: 'punctuation.separator.statement.elixir',
1363
+ regex: '\\;' },
1364
+ { token: 'punctuation.separator.object.elixir', regex: ',' },
1365
+ { token: 'punctuation.separator.method.elixir', regex: '\\.' },
1366
+ { token: 'punctuation.section.scope.elixir', regex: '\\{|\\}' },
1367
+ { token: 'punctuation.section.array.elixir', regex: '\\[|\\]' },
1368
+ { token: 'punctuation.section.function.elixir',
1369
+ regex: '\\(|\\)' }],
1370
+ '#escaped_char': [{ token: 'constant.character.escape.elixir',
1371
+ regex: '\\\\(?:x[\\da-fA-F]{1,2}|.)' }],
1372
+ '#interpolated_elixir': [{ token: ['source.elixir.embedded.source',
1373
+ 'source.elixir.embedded.source.empty'],
1374
+ regex: '(#\\{)(\\})' },
1375
+ { todo: { token: 'punctuation.section.embedded.elixir',
1376
+ regex: '#\\{',
1377
+ push: [{ token: 'punctuation.section.embedded.elixir',
1378
+ regex: '\\}',
1379
+ next: 'pop' },
1380
+ { include: '#nest_curly_and_self' },
1381
+ { include: '$self' },
1382
+ { defaultToken: 'source.elixir.embedded.source' }] } }],
1383
+ '#nest_curly_and_self': [{ token: 'punctuation.section.scope.elixir',
1384
+ regex: '\\{',
1385
+ push: [{ token: 'punctuation.section.scope.elixir',
1386
+ regex: '\\}',
1387
+ next: 'pop' },
1388
+ { include: '#nest_curly_and_self' }] },
1389
+ { include: '$self' }],
1390
+ '#regex_sub': [{ include: '#interpolated_elixir' },
1391
+ { include: '#escaped_char' },
1392
+ { token: ['punctuation.definition.arbitrary-repitition.elixir',
1393
+ 'string.regexp.arbitrary-repitition.elixir',
1394
+ 'string.regexp.arbitrary-repitition.elixir',
1395
+ 'punctuation.definition.arbitrary-repitition.elixir'],
1396
+ regex: '(\\{)(\\d+)((?:,\\d+)?)(\\})' },
1397
+ { token: 'punctuation.definition.character-class.elixir',
1398
+ regex: '\\[(?:\\^?\\])?',
1399
+ push: [{ token: 'punctuation.definition.character-class.elixir',
1400
+ regex: '\\]',
1401
+ next: 'pop' },
1402
+ { include: '#escaped_char' },
1403
+ { defaultToken: 'string.regexp.character-class.elixir' }] },
1404
+ { token: 'punctuation.definition.group.elixir',
1405
+ regex: '\\(',
1406
+ push: [{ token: 'punctuation.definition.group.elixir',
1407
+ regex: '\\)',
1408
+ next: 'pop' },
1409
+ { include: '#regex_sub' },
1410
+ { defaultToken: 'string.regexp.group.elixir' }] },
1411
+ { token: ['punctuation.definition.comment.elixir',
1412
+ 'comment.line.number-sign.elixir'],
1413
+ regex: '(?:^|\\s)(#)(\\s[[a-zA-Z0-9,. \\t?!-][^\\x00-\\x7F]]*$)',
1414
+ originalRegex: '(?<=^|\\s)(#)\\s[[a-zA-Z0-9,. \\t?!-][^\\x{00}-\\x{7F}]]*$',
1415
+ comment: 'We are restrictive in what we allow to go after the comment character to avoid false positives, since the availability of comments depend on regexp flags.' }] };
1416
+ this.normalizeRules();
1417
+ };
1418
+ ElixirHighlightRules.metaData = { comment: 'Textmate bundle for Elixir Programming Language.',
1419
+ fileTypes: ['ex', 'exs'],
1420
+ firstLineMatch: '^#!/.*\\belixir',
1421
+ foldingStartMarker: '(after|else|catch|rescue|\\-\\>|\\{|\\[|do)\\s*$',
1422
+ foldingStopMarker: '^\\s*((\\}|\\]|after|else|catch|rescue)\\s*$|end\\b)',
1423
+ keyEquivalent: '^~E',
1424
+ name: 'Elixir',
1425
+ scopeName: 'source.elixir' };
1426
+ oop.inherits(ElixirHighlightRules, TextHighlightRules);
1427
+ exports.ElixirHighlightRules = ElixirHighlightRules;
1428
+
1429
+ });
1430
+
1431
+ ace.define("ace/mode/html_elixir_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/html_highlight_rules","ace/mode/elixir_highlight_rules"], function(require, exports, module){"use strict";
1432
+ var oop = require("../lib/oop");
1433
+ var HtmlHighlightRules = require("./html_highlight_rules").HtmlHighlightRules;
1434
+ var ElixirHighlightRules = require("./elixir_highlight_rules").ElixirHighlightRules;
1435
+ var HtmlElixirHighlightRules = function () {
1436
+ HtmlHighlightRules.call(this);
1437
+ var startRules = [
1438
+ {
1439
+ regex: "<%%|%%>",
1440
+ token: "constant.language.escape"
1441
+ }, {
1442
+ token: "comment.start.eex",
1443
+ regex: "<%#",
1444
+ push: [{
1445
+ token: "comment.end.eex",
1446
+ regex: "%>",
1447
+ next: "pop",
1448
+ defaultToken: "comment"
1449
+ }]
1450
+ }, {
1451
+ token: "support.elixir_tag",
1452
+ regex: "<%+(?!>)[-=]?",
1453
+ push: "elixir-start"
1454
+ }
1455
+ ];
1456
+ var endRules = [
1457
+ {
1458
+ token: "support.elixir_tag",
1459
+ regex: "%>",
1460
+ next: "pop"
1461
+ }, {
1462
+ token: "comment",
1463
+ regex: "#(?:[^%]|%[^>])*"
1464
+ }
1465
+ ];
1466
+ for (var key in this.$rules)
1467
+ this.$rules[key].unshift.apply(this.$rules[key], startRules);
1468
+ this.embedRules(ElixirHighlightRules, "elixir-", endRules, ["start"]);
1469
+ this.normalizeRules();
1470
+ };
1471
+ oop.inherits(HtmlElixirHighlightRules, HtmlHighlightRules);
1472
+ exports.HtmlElixirHighlightRules = HtmlElixirHighlightRules;
1473
+
1474
+ });
1475
+
1476
+ ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"], function(require, exports, module){"use strict";
1477
+ var Range = require("../range").Range;
1478
+ var MatchingBraceOutdent = function () { };
1479
+ (function () {
1480
+ this.checkOutdent = function (line, input) {
1481
+ if (!/^\s+$/.test(line))
1482
+ return false;
1483
+ return /^\s*\}/.test(input);
1484
+ };
1485
+ this.autoOutdent = function (doc, row) {
1486
+ var line = doc.getLine(row);
1487
+ var match = line.match(/^(\s*\})/);
1488
+ if (!match)
1489
+ return 0;
1490
+ var column = match[1].length;
1491
+ var openBracePos = doc.findMatchingBracket({ row: row, column: column });
1492
+ if (!openBracePos || openBracePos.row == row)
1493
+ return 0;
1494
+ var indent = this.$getIndent(doc.getLine(openBracePos.row));
1495
+ doc.replace(new Range(row, 0, row, column - 1), indent);
1496
+ };
1497
+ this.$getIndent = function (line) {
1498
+ return line.match(/^\s*/)[0];
1499
+ };
1500
+ }).call(MatchingBraceOutdent.prototype);
1501
+ exports.MatchingBraceOutdent = MatchingBraceOutdent;
1502
+
1503
+ });
1504
+
1505
+ ace.define("ace/mode/behaviour/xml",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator"], function(require, exports, module){"use strict";
1506
+ var oop = require("../../lib/oop");
1507
+ var Behaviour = require("../behaviour").Behaviour;
1508
+ var TokenIterator = require("../../token_iterator").TokenIterator;
1509
+ function is(token, type) {
1510
+ return token && token.type.lastIndexOf(type + ".xml") > -1;
1511
+ }
1512
+ var XmlBehaviour = function () {
1513
+ this.add("string_dquotes", "insertion", function (state, action, editor, session, text) {
1514
+ if (text == '"' || text == "'") {
1515
+ var quote = text;
1516
+ var selected = session.doc.getTextRange(editor.getSelectionRange());
1517
+ if (selected !== "" && selected !== "'" && selected != '"' && editor.getWrapBehavioursEnabled()) {
1518
+ return {
1519
+ text: quote + selected + quote,
1520
+ selection: false
1521
+ };
1522
+ }
1523
+ var cursor = editor.getCursorPosition();
1524
+ var line = session.doc.getLine(cursor.row);
1525
+ var rightChar = line.substring(cursor.column, cursor.column + 1);
1526
+ var iterator = new TokenIterator(session, cursor.row, cursor.column);
1527
+ var token = iterator.getCurrentToken();
1528
+ if (rightChar == quote && (is(token, "attribute-value") || is(token, "string"))) {
1529
+ return {
1530
+ text: "",
1531
+ selection: [1, 1]
1532
+ };
1533
+ }
1534
+ if (!token)
1535
+ token = iterator.stepBackward();
1536
+ if (!token)
1537
+ return;
1538
+ while (is(token, "tag-whitespace") || is(token, "whitespace")) {
1539
+ token = iterator.stepBackward();
1540
+ }
1541
+ var rightSpace = !rightChar || rightChar.match(/\s/);
1542
+ if (is(token, "attribute-equals") && (rightSpace || rightChar == '>') || (is(token, "decl-attribute-equals") && (rightSpace || rightChar == '?'))) {
1543
+ return {
1544
+ text: quote + quote,
1545
+ selection: [1, 1]
1546
+ };
1547
+ }
1548
+ }
1549
+ });
1550
+ this.add("string_dquotes", "deletion", function (state, action, editor, session, range) {
1551
+ var selected = session.doc.getTextRange(range);
1552
+ if (!range.isMultiLine() && (selected == '"' || selected == "'")) {
1553
+ var line = session.doc.getLine(range.start.row);
1554
+ var rightChar = line.substring(range.start.column + 1, range.start.column + 2);
1555
+ if (rightChar == selected) {
1556
+ range.end.column++;
1557
+ return range;
1558
+ }
1559
+ }
1560
+ });
1561
+ this.add("autoclosing", "insertion", function (state, action, editor, session, text) {
1562
+ if (text == '>') {
1563
+ var position = editor.getSelectionRange().start;
1564
+ var iterator = new TokenIterator(session, position.row, position.column);
1565
+ var token = iterator.getCurrentToken() || iterator.stepBackward();
1566
+ if (!token || !(is(token, "tag-name") || is(token, "tag-whitespace") || is(token, "attribute-name") || is(token, "attribute-equals") || is(token, "attribute-value")))
1567
+ return;
1568
+ if (is(token, "reference.attribute-value"))
1569
+ return;
1570
+ if (is(token, "attribute-value")) {
1571
+ var tokenEndColumn = iterator.getCurrentTokenColumn() + token.value.length;
1572
+ if (position.column < tokenEndColumn)
1573
+ return;
1574
+ if (position.column == tokenEndColumn) {
1575
+ var nextToken = iterator.stepForward();
1576
+ if (nextToken && is(nextToken, "attribute-value"))
1577
+ return;
1578
+ iterator.stepBackward();
1579
+ }
1580
+ }
1581
+ if (/^\s*>/.test(session.getLine(position.row).slice(position.column)))
1582
+ return;
1583
+ while (!is(token, "tag-name")) {
1584
+ token = iterator.stepBackward();
1585
+ if (token.value == "<") {
1586
+ token = iterator.stepForward();
1587
+ break;
1588
+ }
1589
+ }
1590
+ var tokenRow = iterator.getCurrentTokenRow();
1591
+ var tokenColumn = iterator.getCurrentTokenColumn();
1592
+ if (is(iterator.stepBackward(), "end-tag-open"))
1593
+ return;
1594
+ var element = token.value;
1595
+ if (tokenRow == position.row)
1596
+ element = element.substring(0, position.column - tokenColumn);
1597
+ if (this.voidElements && this.voidElements.hasOwnProperty(element.toLowerCase()))
1598
+ return;
1599
+ return {
1600
+ text: ">" + "</" + element + ">",
1601
+ selection: [1, 1]
1602
+ };
1603
+ }
1604
+ });
1605
+ this.add("autoindent", "insertion", function (state, action, editor, session, text) {
1606
+ if (text == "\n") {
1607
+ var cursor = editor.getCursorPosition();
1608
+ var line = session.getLine(cursor.row);
1609
+ var iterator = new TokenIterator(session, cursor.row, cursor.column);
1610
+ var token = iterator.getCurrentToken();
1611
+ if (is(token, "") && token.type.indexOf("tag-close") !== -1) {
1612
+ if (token.value == "/>")
1613
+ return;
1614
+ while (token && token.type.indexOf("tag-name") === -1) {
1615
+ token = iterator.stepBackward();
1616
+ }
1617
+ if (!token) {
1618
+ return;
1619
+ }
1620
+ var tag = token.value;
1621
+ var row = iterator.getCurrentTokenRow();
1622
+ token = iterator.stepBackward();
1623
+ if (!token || token.type.indexOf("end-tag") !== -1) {
1624
+ return;
1625
+ }
1626
+ if (this.voidElements && !this.voidElements[tag] || !this.voidElements) {
1627
+ var nextToken = session.getTokenAt(cursor.row, cursor.column + 1);
1628
+ var line = session.getLine(row);
1629
+ var nextIndent = this.$getIndent(line);
1630
+ var indent = nextIndent + session.getTabString();
1631
+ if (nextToken && nextToken.value === "</") {
1632
+ return {
1633
+ text: "\n" + indent + "\n" + nextIndent,
1634
+ selection: [1, indent.length, 1, indent.length]
1635
+ };
1636
+ }
1637
+ else {
1638
+ return {
1639
+ text: "\n" + indent
1640
+ };
1641
+ }
1642
+ }
1643
+ }
1644
+ }
1645
+ });
1646
+ };
1647
+ oop.inherits(XmlBehaviour, Behaviour);
1648
+ exports.XmlBehaviour = XmlBehaviour;
1649
+
1650
+ });
1651
+
1652
+ ace.define("ace/mode/behaviour/javascript",["require","exports","module","ace/lib/oop","ace/token_iterator","ace/mode/behaviour/cstyle","ace/mode/behaviour/xml"], function(require, exports, module){"use strict";
1653
+ var oop = require("../../lib/oop");
1654
+ var TokenIterator = require("../../token_iterator").TokenIterator;
1655
+ var CstyleBehaviour = require("../behaviour/cstyle").CstyleBehaviour;
1656
+ var XmlBehaviour = require("../behaviour/xml").XmlBehaviour;
1657
+ var JavaScriptBehaviour = function () {
1658
+ var xmlBehaviours = new XmlBehaviour({ closeCurlyBraces: true }).getBehaviours();
1659
+ this.addBehaviours(xmlBehaviours);
1660
+ this.inherit(CstyleBehaviour);
1661
+ this.add("autoclosing-fragment", "insertion", function (state, action, editor, session, text) {
1662
+ if (text == '>') {
1663
+ var position = editor.getSelectionRange().start;
1664
+ var iterator = new TokenIterator(session, position.row, position.column);
1665
+ var token = iterator.getCurrentToken() || iterator.stepBackward();
1666
+ if (!token)
1667
+ return;
1668
+ if (token.value == '<') {
1669
+ return {
1670
+ text: "></>",
1671
+ selection: [1, 1]
1672
+ };
1673
+ }
1674
+ }
1675
+ });
1676
+ };
1677
+ oop.inherits(JavaScriptBehaviour, CstyleBehaviour);
1678
+ exports.JavaScriptBehaviour = JavaScriptBehaviour;
1679
+
1680
+ });
1681
+
1682
+ ace.define("ace/mode/folding/xml",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"], function(require, exports, module){"use strict";
1683
+ var oop = require("../../lib/oop");
1684
+ var Range = require("../../range").Range;
1685
+ var BaseFoldMode = require("./fold_mode").FoldMode;
1686
+ var FoldMode = exports.FoldMode = function (voidElements, optionalEndTags) {
1687
+ BaseFoldMode.call(this);
1688
+ this.voidElements = voidElements || {};
1689
+ this.optionalEndTags = oop.mixin({}, this.voidElements);
1690
+ if (optionalEndTags)
1691
+ oop.mixin(this.optionalEndTags, optionalEndTags);
1692
+ };
1693
+ oop.inherits(FoldMode, BaseFoldMode);
1694
+ var Tag = function () {
1695
+ this.tagName = "";
1696
+ this.closing = false;
1697
+ this.selfClosing = false;
1698
+ this.start = { row: 0, column: 0 };
1699
+ this.end = { row: 0, column: 0 };
1700
+ };
1701
+ function is(token, type) {
1702
+ return token && token.type && token.type.lastIndexOf(type + ".xml") > -1;
1703
+ }
1704
+ (function () {
1705
+ this.getFoldWidget = function (session, foldStyle, row) {
1706
+ var tag = this._getFirstTagInLine(session, row);
1707
+ if (!tag)
1708
+ return this.getCommentFoldWidget(session, row);
1709
+ if (tag.closing || (!tag.tagName && tag.selfClosing))
1710
+ return foldStyle === "markbeginend" ? "end" : "";
1711
+ if (!tag.tagName || tag.selfClosing || this.voidElements.hasOwnProperty(tag.tagName.toLowerCase()))
1712
+ return "";
1713
+ if (this._findEndTagInLine(session, row, tag.tagName, tag.end.column))
1714
+ return "";
1715
+ return "start";
1716
+ };
1717
+ this.getCommentFoldWidget = function (session, row) {
1718
+ if (/comment/.test(session.getState(row)) && /<!-/.test(session.getLine(row)))
1719
+ return "start";
1720
+ return "";
1721
+ };
1722
+ this._getFirstTagInLine = function (session, row) {
1723
+ var tokens = session.getTokens(row);
1724
+ var tag = new Tag();
1725
+ for (var i = 0; i < tokens.length; i++) {
1726
+ var token = tokens[i];
1727
+ if (is(token, "tag-open")) {
1728
+ tag.end.column = tag.start.column + token.value.length;
1729
+ tag.closing = is(token, "end-tag-open");
1730
+ token = tokens[++i];
1731
+ if (!token)
1732
+ return null;
1733
+ tag.tagName = token.value;
1734
+ if (token.value === "") { //skip empty tag name token for fragment
1735
+ token = tokens[++i];
1736
+ if (!token)
1737
+ return null;
1738
+ tag.tagName = token.value;
1739
+ }
1740
+ tag.end.column += token.value.length;
1741
+ for (i++; i < tokens.length; i++) {
1742
+ token = tokens[i];
1743
+ tag.end.column += token.value.length;
1744
+ if (is(token, "tag-close")) {
1745
+ tag.selfClosing = token.value == '/>';
1746
+ break;
1747
+ }
1748
+ }
1749
+ return tag;
1750
+ }
1751
+ else if (is(token, "tag-close")) {
1752
+ tag.selfClosing = token.value == '/>';
1753
+ return tag;
1754
+ }
1755
+ tag.start.column += token.value.length;
1756
+ }
1757
+ return null;
1758
+ };
1759
+ this._findEndTagInLine = function (session, row, tagName, startColumn) {
1760
+ var tokens = session.getTokens(row);
1761
+ var column = 0;
1762
+ for (var i = 0; i < tokens.length; i++) {
1763
+ var token = tokens[i];
1764
+ column += token.value.length;
1765
+ if (column < startColumn - 1)
1766
+ continue;
1767
+ if (is(token, "end-tag-open")) {
1768
+ token = tokens[i + 1];
1769
+ if (is(token, "tag-name") && token.value === "") {
1770
+ token = tokens[i + 2];
1771
+ }
1772
+ if (token && token.value == tagName)
1773
+ return true;
1774
+ }
1775
+ }
1776
+ return false;
1777
+ };
1778
+ this.getFoldWidgetRange = function (session, foldStyle, row) {
1779
+ var firstTag = this._getFirstTagInLine(session, row);
1780
+ if (!firstTag) {
1781
+ return this.getCommentFoldWidget(session, row) && session.getCommentFoldRange(row, session.getLine(row).length);
1782
+ }
1783
+ var tags = session.getMatchingTags({ row: row, column: 0 });
1784
+ if (tags) {
1785
+ return new Range(tags.openTag.end.row, tags.openTag.end.column, tags.closeTag.start.row, tags.closeTag.start.column);
1786
+ }
1787
+ };
1788
+ }).call(FoldMode.prototype);
1789
+
1790
+ });
1791
+
1792
+ ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"], function(require, exports, module){"use strict";
1793
+ var oop = require("../../lib/oop");
1794
+ var Range = require("../../range").Range;
1795
+ var BaseFoldMode = require("./fold_mode").FoldMode;
1796
+ var FoldMode = exports.FoldMode = function (commentRegex) {
1797
+ if (commentRegex) {
1798
+ this.foldingStartMarker = new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/, "|" + commentRegex.start));
1799
+ this.foldingStopMarker = new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/, "|" + commentRegex.end));
1800
+ }
1801
+ };
1802
+ oop.inherits(FoldMode, BaseFoldMode);
1803
+ (function () {
1804
+ this.foldingStartMarker = /([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/;
1805
+ this.foldingStopMarker = /^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/;
1806
+ this.singleLineBlockCommentRe = /^\s*(\/\*).*\*\/\s*$/;
1807
+ this.tripleStarBlockCommentRe = /^\s*(\/\*\*\*).*\*\/\s*$/;
1808
+ this.startRegionRe = /^\s*(\/\*|\/\/)#?region\b/;
1809
+ this._getFoldWidgetBase = this.getFoldWidget;
1810
+ this.getFoldWidget = function (session, foldStyle, row) {
1811
+ var line = session.getLine(row);
1812
+ if (this.singleLineBlockCommentRe.test(line)) {
1813
+ if (!this.startRegionRe.test(line) && !this.tripleStarBlockCommentRe.test(line))
1814
+ return "";
1815
+ }
1816
+ var fw = this._getFoldWidgetBase(session, foldStyle, row);
1817
+ if (!fw && this.startRegionRe.test(line))
1818
+ return "start"; // lineCommentRegionStart
1819
+ return fw;
1820
+ };
1821
+ this.getFoldWidgetRange = function (session, foldStyle, row, forceMultiline) {
1822
+ var line = session.getLine(row);
1823
+ if (this.startRegionRe.test(line))
1824
+ return this.getCommentRegionBlock(session, line, row);
1825
+ var match = line.match(this.foldingStartMarker);
1826
+ if (match) {
1827
+ var i = match.index;
1828
+ if (match[1])
1829
+ return this.openingBracketBlock(session, match[1], row, i);
1830
+ var range = session.getCommentFoldRange(row, i + match[0].length, 1);
1831
+ if (range && !range.isMultiLine()) {
1832
+ if (forceMultiline) {
1833
+ range = this.getSectionRange(session, row);
1834
+ }
1835
+ else if (foldStyle != "all")
1836
+ range = null;
1837
+ }
1838
+ return range;
1839
+ }
1840
+ if (foldStyle === "markbegin")
1841
+ return;
1842
+ var match = line.match(this.foldingStopMarker);
1843
+ if (match) {
1844
+ var i = match.index + match[0].length;
1845
+ if (match[1])
1846
+ return this.closingBracketBlock(session, match[1], row, i);
1847
+ return session.getCommentFoldRange(row, i, -1);
1848
+ }
1849
+ };
1850
+ this.getSectionRange = function (session, row) {
1851
+ var line = session.getLine(row);
1852
+ var startIndent = line.search(/\S/);
1853
+ var startRow = row;
1854
+ var startColumn = line.length;
1855
+ row = row + 1;
1856
+ var endRow = row;
1857
+ var maxRow = session.getLength();
1858
+ while (++row < maxRow) {
1859
+ line = session.getLine(row);
1860
+ var indent = line.search(/\S/);
1861
+ if (indent === -1)
1862
+ continue;
1863
+ if (startIndent > indent)
1864
+ break;
1865
+ var subRange = this.getFoldWidgetRange(session, "all", row);
1866
+ if (subRange) {
1867
+ if (subRange.start.row <= startRow) {
1868
+ break;
1869
+ }
1870
+ else if (subRange.isMultiLine()) {
1871
+ row = subRange.end.row;
1872
+ }
1873
+ else if (startIndent == indent) {
1874
+ break;
1875
+ }
1876
+ }
1877
+ endRow = row;
1878
+ }
1879
+ return new Range(startRow, startColumn, endRow, session.getLine(endRow).length);
1880
+ };
1881
+ this.getCommentRegionBlock = function (session, line, row) {
1882
+ var startColumn = line.search(/\s*$/);
1883
+ var maxRow = session.getLength();
1884
+ var startRow = row;
1885
+ var re = /^\s*(?:\/\*|\/\/|--)#?(end)?region\b/;
1886
+ var depth = 1;
1887
+ while (++row < maxRow) {
1888
+ line = session.getLine(row);
1889
+ var m = re.exec(line);
1890
+ if (!m)
1891
+ continue;
1892
+ if (m[1])
1893
+ depth--;
1894
+ else
1895
+ depth++;
1896
+ if (!depth)
1897
+ break;
1898
+ }
1899
+ var endRow = row;
1900
+ if (endRow > startRow) {
1901
+ return new Range(startRow, startColumn, endRow, line.length);
1902
+ }
1903
+ };
1904
+ }).call(FoldMode.prototype);
1905
+
1906
+ });
1907
+
1908
+ ace.define("ace/mode/folding/javascript",["require","exports","module","ace/lib/oop","ace/mode/folding/xml","ace/mode/folding/cstyle"], function(require, exports, module){"use strict";
1909
+ var oop = require("../../lib/oop");
1910
+ var XmlFoldMode = require("./xml").FoldMode;
1911
+ var CFoldMode = require("./cstyle").FoldMode;
1912
+ var FoldMode = exports.FoldMode = function (commentRegex) {
1913
+ if (commentRegex) {
1914
+ this.foldingStartMarker = new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/, "|" + commentRegex.start));
1915
+ this.foldingStopMarker = new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/, "|" + commentRegex.end));
1916
+ }
1917
+ this.xmlFoldMode = new XmlFoldMode();
1918
+ };
1919
+ oop.inherits(FoldMode, CFoldMode);
1920
+ (function () {
1921
+ this.getFoldWidgetRangeBase = this.getFoldWidgetRange;
1922
+ this.getFoldWidgetBase = this.getFoldWidget;
1923
+ this.getFoldWidget = function (session, foldStyle, row) {
1924
+ var fw = this.getFoldWidgetBase(session, foldStyle, row);
1925
+ if (!fw) {
1926
+ return this.xmlFoldMode.getFoldWidget(session, foldStyle, row);
1927
+ }
1928
+ return fw;
1929
+ };
1930
+ this.getFoldWidgetRange = function (session, foldStyle, row, forceMultiline) {
1931
+ var range = this.getFoldWidgetRangeBase(session, foldStyle, row, forceMultiline);
1932
+ if (range)
1933
+ return range;
1934
+ return this.xmlFoldMode.getFoldWidgetRange(session, foldStyle, row);
1935
+ };
1936
+ }).call(FoldMode.prototype);
1937
+
1938
+ });
1939
+
1940
+ ace.define("ace/mode/javascript",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/javascript_highlight_rules","ace/mode/matching_brace_outdent","ace/worker/worker_client","ace/mode/behaviour/javascript","ace/mode/folding/javascript"], function(require, exports, module){"use strict";
1941
+ var oop = require("../lib/oop");
1942
+ var TextMode = require("./text").Mode;
1943
+ var JavaScriptHighlightRules = require("./javascript_highlight_rules").JavaScriptHighlightRules;
1944
+ var MatchingBraceOutdent = require("./matching_brace_outdent").MatchingBraceOutdent;
1945
+ var WorkerClient = require("../worker/worker_client").WorkerClient;
1946
+ var JavaScriptBehaviour = require("./behaviour/javascript").JavaScriptBehaviour;
1947
+ var JavaScriptFoldMode = require("./folding/javascript").FoldMode;
1948
+ var Mode = function () {
1949
+ this.HighlightRules = JavaScriptHighlightRules;
1950
+ this.$outdent = new MatchingBraceOutdent();
1951
+ this.$behaviour = new JavaScriptBehaviour();
1952
+ this.foldingRules = new JavaScriptFoldMode();
1953
+ };
1954
+ oop.inherits(Mode, TextMode);
1955
+ (function () {
1956
+ this.lineCommentStart = "//";
1957
+ this.blockComment = { start: "/*", end: "*/" };
1958
+ this.$quotes = { '"': '"', "'": "'", "`": "`" };
1959
+ this.$pairQuotesAfter = {
1960
+ "`": /\w/
1961
+ };
1962
+ this.getNextLineIndent = function (state, line, tab) {
1963
+ var indent = this.$getIndent(line);
1964
+ var tokenizedLine = this.getTokenizer().getLineTokens(line, state);
1965
+ var tokens = tokenizedLine.tokens;
1966
+ var endState = tokenizedLine.state;
1967
+ if (tokens.length && tokens[tokens.length - 1].type == "comment") {
1968
+ return indent;
1969
+ }
1970
+ if (state == "start" || state == "no_regex") {
1971
+ var match = line.match(/^.*(?:\bcase\b.*:|[\{\(\[])\s*$/);
1972
+ if (match) {
1973
+ indent += tab;
1974
+ }
1975
+ }
1976
+ else if (state == "doc-start") {
1977
+ if (endState == "start" || endState == "no_regex") {
1978
+ return "";
1979
+ }
1980
+ }
1981
+ return indent;
1982
+ };
1983
+ this.checkOutdent = function (state, line, input) {
1984
+ return this.$outdent.checkOutdent(line, input);
1985
+ };
1986
+ this.autoOutdent = function (state, doc, row) {
1987
+ this.$outdent.autoOutdent(doc, row);
1988
+ };
1989
+ this.createWorker = function (session) {
1990
+ var worker = new WorkerClient(["ace"], "ace/mode/javascript_worker", "JavaScriptWorker");
1991
+ worker.attachToDocument(session.getDocument());
1992
+ worker.on("annotate", function (results) {
1993
+ session.setAnnotations(results.data);
1994
+ });
1995
+ worker.on("terminate", function () {
1996
+ session.clearAnnotations();
1997
+ });
1998
+ return worker;
1999
+ };
2000
+ this.$id = "ace/mode/javascript";
2001
+ this.snippetFileId = "ace/snippets/javascript";
2002
+ }).call(Mode.prototype);
2003
+ exports.Mode = Mode;
2004
+
2005
+ });
2006
+
2007
+ ace.define("ace/mode/css_completions",["require","exports","module"], function(require, exports, module){"use strict";
2008
+ var propertyMap = {
2009
+ "background": { "#$0": 1 },
2010
+ "background-color": { "#$0": 1, "transparent": 1, "fixed": 1 },
2011
+ "background-image": { "url('/$0')": 1 },
2012
+ "background-repeat": { "repeat": 1, "repeat-x": 1, "repeat-y": 1, "no-repeat": 1, "inherit": 1 },
2013
+ "background-position": { "bottom": 2, "center": 2, "left": 2, "right": 2, "top": 2, "inherit": 2 },
2014
+ "background-attachment": { "scroll": 1, "fixed": 1 },
2015
+ "background-size": { "cover": 1, "contain": 1 },
2016
+ "background-clip": { "border-box": 1, "padding-box": 1, "content-box": 1 },
2017
+ "background-origin": { "border-box": 1, "padding-box": 1, "content-box": 1 },
2018
+ "border": { "solid $0": 1, "dashed $0": 1, "dotted $0": 1, "#$0": 1 },
2019
+ "border-color": { "#$0": 1 },
2020
+ "border-style": { "solid": 2, "dashed": 2, "dotted": 2, "double": 2, "groove": 2, "hidden": 2, "inherit": 2, "inset": 2, "none": 2, "outset": 2, "ridged": 2 },
2021
+ "border-collapse": { "collapse": 1, "separate": 1 },
2022
+ "bottom": { "px": 1, "em": 1, "%": 1 },
2023
+ "clear": { "left": 1, "right": 1, "both": 1, "none": 1 },
2024
+ "color": { "#$0": 1, "rgb(#$00,0,0)": 1 },
2025
+ "cursor": { "default": 1, "pointer": 1, "move": 1, "text": 1, "wait": 1, "help": 1, "progress": 1, "n-resize": 1, "ne-resize": 1, "e-resize": 1, "se-resize": 1, "s-resize": 1, "sw-resize": 1, "w-resize": 1, "nw-resize": 1 },
2026
+ "display": { "none": 1, "block": 1, "inline": 1, "inline-block": 1, "table-cell": 1 },
2027
+ "empty-cells": { "show": 1, "hide": 1 },
2028
+ "float": { "left": 1, "right": 1, "none": 1 },
2029
+ "font-family": { "Arial": 2, "Comic Sans MS": 2, "Consolas": 2, "Courier New": 2, "Courier": 2, "Georgia": 2, "Monospace": 2, "Sans-Serif": 2, "Segoe UI": 2, "Tahoma": 2, "Times New Roman": 2, "Trebuchet MS": 2, "Verdana": 1 },
2030
+ "font-size": { "px": 1, "em": 1, "%": 1 },
2031
+ "font-weight": { "bold": 1, "normal": 1 },
2032
+ "font-style": { "italic": 1, "normal": 1 },
2033
+ "font-variant": { "normal": 1, "small-caps": 1 },
2034
+ "height": { "px": 1, "em": 1, "%": 1 },
2035
+ "left": { "px": 1, "em": 1, "%": 1 },
2036
+ "letter-spacing": { "normal": 1 },
2037
+ "line-height": { "normal": 1 },
2038
+ "list-style-type": { "none": 1, "disc": 1, "circle": 1, "square": 1, "decimal": 1, "decimal-leading-zero": 1, "lower-roman": 1, "upper-roman": 1, "lower-greek": 1, "lower-latin": 1, "upper-latin": 1, "georgian": 1, "lower-alpha": 1, "upper-alpha": 1 },
2039
+ "margin": { "px": 1, "em": 1, "%": 1 },
2040
+ "margin-right": { "px": 1, "em": 1, "%": 1 },
2041
+ "margin-left": { "px": 1, "em": 1, "%": 1 },
2042
+ "margin-top": { "px": 1, "em": 1, "%": 1 },
2043
+ "margin-bottom": { "px": 1, "em": 1, "%": 1 },
2044
+ "max-height": { "px": 1, "em": 1, "%": 1 },
2045
+ "max-width": { "px": 1, "em": 1, "%": 1 },
2046
+ "min-height": { "px": 1, "em": 1, "%": 1 },
2047
+ "min-width": { "px": 1, "em": 1, "%": 1 },
2048
+ "overflow": { "hidden": 1, "visible": 1, "auto": 1, "scroll": 1 },
2049
+ "overflow-x": { "hidden": 1, "visible": 1, "auto": 1, "scroll": 1 },
2050
+ "overflow-y": { "hidden": 1, "visible": 1, "auto": 1, "scroll": 1 },
2051
+ "padding": { "px": 1, "em": 1, "%": 1 },
2052
+ "padding-top": { "px": 1, "em": 1, "%": 1 },
2053
+ "padding-right": { "px": 1, "em": 1, "%": 1 },
2054
+ "padding-bottom": { "px": 1, "em": 1, "%": 1 },
2055
+ "padding-left": { "px": 1, "em": 1, "%": 1 },
2056
+ "page-break-after": { "auto": 1, "always": 1, "avoid": 1, "left": 1, "right": 1 },
2057
+ "page-break-before": { "auto": 1, "always": 1, "avoid": 1, "left": 1, "right": 1 },
2058
+ "position": { "absolute": 1, "relative": 1, "fixed": 1, "static": 1 },
2059
+ "right": { "px": 1, "em": 1, "%": 1 },
2060
+ "table-layout": { "fixed": 1, "auto": 1 },
2061
+ "text-decoration": { "none": 1, "underline": 1, "line-through": 1, "blink": 1 },
2062
+ "text-align": { "left": 1, "right": 1, "center": 1, "justify": 1 },
2063
+ "text-transform": { "capitalize": 1, "uppercase": 1, "lowercase": 1, "none": 1 },
2064
+ "top": { "px": 1, "em": 1, "%": 1 },
2065
+ "vertical-align": { "top": 1, "bottom": 1 },
2066
+ "visibility": { "hidden": 1, "visible": 1 },
2067
+ "white-space": { "nowrap": 1, "normal": 1, "pre": 1, "pre-line": 1, "pre-wrap": 1 },
2068
+ "width": { "px": 1, "em": 1, "%": 1 },
2069
+ "word-spacing": { "normal": 1 },
2070
+ "filter": { "alpha(opacity=$0100)": 1 },
2071
+ "text-shadow": { "$02px 2px 2px #777": 1 },
2072
+ "text-overflow": { "ellipsis-word": 1, "clip": 1, "ellipsis": 1 },
2073
+ "-moz-border-radius": 1,
2074
+ "-moz-border-radius-topright": 1,
2075
+ "-moz-border-radius-bottomright": 1,
2076
+ "-moz-border-radius-topleft": 1,
2077
+ "-moz-border-radius-bottomleft": 1,
2078
+ "-webkit-border-radius": 1,
2079
+ "-webkit-border-top-right-radius": 1,
2080
+ "-webkit-border-top-left-radius": 1,
2081
+ "-webkit-border-bottom-right-radius": 1,
2082
+ "-webkit-border-bottom-left-radius": 1,
2083
+ "-moz-box-shadow": 1,
2084
+ "-webkit-box-shadow": 1,
2085
+ "transform": { "rotate($00deg)": 1, "skew($00deg)": 1 },
2086
+ "-moz-transform": { "rotate($00deg)": 1, "skew($00deg)": 1 },
2087
+ "-webkit-transform": { "rotate($00deg)": 1, "skew($00deg)": 1 }
2088
+ };
2089
+ var CssCompletions = function () {
2090
+ };
2091
+ (function () {
2092
+ this.completionsDefined = false;
2093
+ this.defineCompletions = function () {
2094
+ if (document) {
2095
+ var style = document.createElement('c').style;
2096
+ for (var i in style) {
2097
+ if (typeof style[i] !== 'string')
2098
+ continue;
2099
+ var name = i.replace(/[A-Z]/g, function (x) {
2100
+ return '-' + x.toLowerCase();
2101
+ });
2102
+ if (!propertyMap.hasOwnProperty(name))
2103
+ propertyMap[name] = 1;
2104
+ }
2105
+ }
2106
+ this.completionsDefined = true;
2107
+ };
2108
+ this.getCompletions = function (state, session, pos, prefix) {
2109
+ if (!this.completionsDefined) {
2110
+ this.defineCompletions();
2111
+ }
2112
+ if (state === 'ruleset' || session.$mode.$id == "ace/mode/scss") {
2113
+ var line = session.getLine(pos.row).substr(0, pos.column);
2114
+ var inParens = /\([^)]*$/.test(line);
2115
+ if (inParens) {
2116
+ line = line.substr(line.lastIndexOf('(') + 1);
2117
+ }
2118
+ if (/:[^;]+$/.test(line)) {
2119
+ /([\w\-]+):[^:]*$/.test(line);
2120
+ return this.getPropertyValueCompletions(state, session, pos, prefix);
2121
+ }
2122
+ else {
2123
+ return this.getPropertyCompletions(state, session, pos, prefix, inParens);
2124
+ }
2125
+ }
2126
+ return [];
2127
+ };
2128
+ this.getPropertyCompletions = function (state, session, pos, prefix, skipSemicolon) {
2129
+ skipSemicolon = skipSemicolon || false;
2130
+ var properties = Object.keys(propertyMap);
2131
+ return properties.map(function (property) {
2132
+ return {
2133
+ caption: property,
2134
+ snippet: property + ': $0' + (skipSemicolon ? '' : ';'),
2135
+ meta: "property",
2136
+ score: 1000000
2137
+ };
2138
+ });
2139
+ };
2140
+ this.getPropertyValueCompletions = function (state, session, pos, prefix) {
2141
+ var line = session.getLine(pos.row).substr(0, pos.column);
2142
+ var property = (/([\w\-]+):[^:]*$/.exec(line) || {})[1];
2143
+ if (!property)
2144
+ return [];
2145
+ var values = [];
2146
+ if (property in propertyMap && typeof propertyMap[property] === "object") {
2147
+ values = Object.keys(propertyMap[property]);
2148
+ }
2149
+ return values.map(function (value) {
2150
+ return {
2151
+ caption: value,
2152
+ snippet: value,
2153
+ meta: "property value",
2154
+ score: 1000000
2155
+ };
2156
+ });
2157
+ };
2158
+ }).call(CssCompletions.prototype);
2159
+ exports.CssCompletions = CssCompletions;
2160
+
2161
+ });
2162
+
2163
+ ace.define("ace/mode/behaviour/css",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/mode/behaviour/cstyle","ace/token_iterator"], function(require, exports, module){"use strict";
2164
+ var oop = require("../../lib/oop");
2165
+ var Behaviour = require("../behaviour").Behaviour;
2166
+ var CstyleBehaviour = require("./cstyle").CstyleBehaviour;
2167
+ var TokenIterator = require("../../token_iterator").TokenIterator;
2168
+ var CssBehaviour = function () {
2169
+ this.inherit(CstyleBehaviour);
2170
+ this.add("colon", "insertion", function (state, action, editor, session, text) {
2171
+ if (text === ':' && editor.selection.isEmpty()) {
2172
+ var cursor = editor.getCursorPosition();
2173
+ var iterator = new TokenIterator(session, cursor.row, cursor.column);
2174
+ var token = iterator.getCurrentToken();
2175
+ if (token && token.value.match(/\s+/)) {
2176
+ token = iterator.stepBackward();
2177
+ }
2178
+ if (token && token.type === 'support.type') {
2179
+ var line = session.doc.getLine(cursor.row);
2180
+ var rightChar = line.substring(cursor.column, cursor.column + 1);
2181
+ if (rightChar === ':') {
2182
+ return {
2183
+ text: '',
2184
+ selection: [1, 1]
2185
+ };
2186
+ }
2187
+ if (/^(\s+[^;]|\s*$)/.test(line.substring(cursor.column))) {
2188
+ return {
2189
+ text: ':;',
2190
+ selection: [1, 1]
2191
+ };
2192
+ }
2193
+ }
2194
+ }
2195
+ });
2196
+ this.add("colon", "deletion", function (state, action, editor, session, range) {
2197
+ var selected = session.doc.getTextRange(range);
2198
+ if (!range.isMultiLine() && selected === ':') {
2199
+ var cursor = editor.getCursorPosition();
2200
+ var iterator = new TokenIterator(session, cursor.row, cursor.column);
2201
+ var token = iterator.getCurrentToken();
2202
+ if (token && token.value.match(/\s+/)) {
2203
+ token = iterator.stepBackward();
2204
+ }
2205
+ if (token && token.type === 'support.type') {
2206
+ var line = session.doc.getLine(range.start.row);
2207
+ var rightChar = line.substring(range.end.column, range.end.column + 1);
2208
+ if (rightChar === ';') {
2209
+ range.end.column++;
2210
+ return range;
2211
+ }
2212
+ }
2213
+ }
2214
+ });
2215
+ this.add("semicolon", "insertion", function (state, action, editor, session, text) {
2216
+ if (text === ';' && editor.selection.isEmpty()) {
2217
+ var cursor = editor.getCursorPosition();
2218
+ var line = session.doc.getLine(cursor.row);
2219
+ var rightChar = line.substring(cursor.column, cursor.column + 1);
2220
+ if (rightChar === ';') {
2221
+ return {
2222
+ text: '',
2223
+ selection: [1, 1]
2224
+ };
2225
+ }
2226
+ }
2227
+ });
2228
+ this.add("!important", "insertion", function (state, action, editor, session, text) {
2229
+ if (text === '!' && editor.selection.isEmpty()) {
2230
+ var cursor = editor.getCursorPosition();
2231
+ var line = session.doc.getLine(cursor.row);
2232
+ if (/^\s*(;|}|$)/.test(line.substring(cursor.column))) {
2233
+ return {
2234
+ text: '!important',
2235
+ selection: [10, 10]
2236
+ };
2237
+ }
2238
+ }
2239
+ });
2240
+ };
2241
+ oop.inherits(CssBehaviour, CstyleBehaviour);
2242
+ exports.CssBehaviour = CssBehaviour;
2243
+
2244
+ });
2245
+
2246
+ ace.define("ace/mode/css",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/css_highlight_rules","ace/mode/matching_brace_outdent","ace/worker/worker_client","ace/mode/css_completions","ace/mode/behaviour/css","ace/mode/folding/cstyle"], function(require, exports, module){"use strict";
2247
+ var oop = require("../lib/oop");
2248
+ var TextMode = require("./text").Mode;
2249
+ var CssHighlightRules = require("./css_highlight_rules").CssHighlightRules;
2250
+ var MatchingBraceOutdent = require("./matching_brace_outdent").MatchingBraceOutdent;
2251
+ var WorkerClient = require("../worker/worker_client").WorkerClient;
2252
+ var CssCompletions = require("./css_completions").CssCompletions;
2253
+ var CssBehaviour = require("./behaviour/css").CssBehaviour;
2254
+ var CStyleFoldMode = require("./folding/cstyle").FoldMode;
2255
+ var Mode = function () {
2256
+ this.HighlightRules = CssHighlightRules;
2257
+ this.$outdent = new MatchingBraceOutdent();
2258
+ this.$behaviour = new CssBehaviour();
2259
+ this.$completer = new CssCompletions();
2260
+ this.foldingRules = new CStyleFoldMode();
2261
+ };
2262
+ oop.inherits(Mode, TextMode);
2263
+ (function () {
2264
+ this.foldingRules = "cStyle";
2265
+ this.blockComment = { start: "/*", end: "*/" };
2266
+ this.getNextLineIndent = function (state, line, tab) {
2267
+ var indent = this.$getIndent(line);
2268
+ var tokens = this.getTokenizer().getLineTokens(line, state).tokens;
2269
+ if (tokens.length && tokens[tokens.length - 1].type == "comment") {
2270
+ return indent;
2271
+ }
2272
+ var match = line.match(/^.*\{\s*$/);
2273
+ if (match) {
2274
+ indent += tab;
2275
+ }
2276
+ return indent;
2277
+ };
2278
+ this.checkOutdent = function (state, line, input) {
2279
+ return this.$outdent.checkOutdent(line, input);
2280
+ };
2281
+ this.autoOutdent = function (state, doc, row) {
2282
+ this.$outdent.autoOutdent(doc, row);
2283
+ };
2284
+ this.getCompletions = function (state, session, pos, prefix) {
2285
+ return this.$completer.getCompletions(state, session, pos, prefix);
2286
+ };
2287
+ this.createWorker = function (session) {
2288
+ var worker = new WorkerClient(["ace"], "ace/mode/css_worker", "Worker");
2289
+ worker.attachToDocument(session.getDocument());
2290
+ worker.on("annotate", function (e) {
2291
+ session.setAnnotations(e.data);
2292
+ });
2293
+ worker.on("terminate", function () {
2294
+ session.clearAnnotations();
2295
+ });
2296
+ return worker;
2297
+ };
2298
+ this.$id = "ace/mode/css";
2299
+ this.snippetFileId = "ace/snippets/css";
2300
+ }).call(Mode.prototype);
2301
+ exports.Mode = Mode;
2302
+
2303
+ });
2304
+
2305
+ ace.define("ace/mode/folding/mixed",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode"], function(require, exports, module){"use strict";
2306
+ var oop = require("../../lib/oop");
2307
+ var BaseFoldMode = require("./fold_mode").FoldMode;
2308
+ var FoldMode = exports.FoldMode = function (defaultMode, subModes) {
2309
+ this.defaultMode = defaultMode;
2310
+ this.subModes = subModes;
2311
+ };
2312
+ oop.inherits(FoldMode, BaseFoldMode);
2313
+ (function () {
2314
+ this.$getMode = function (state) {
2315
+ if (typeof state != "string")
2316
+ state = state[0];
2317
+ for (var key in this.subModes) {
2318
+ if (state.indexOf(key) === 0)
2319
+ return this.subModes[key];
2320
+ }
2321
+ return null;
2322
+ };
2323
+ this.$tryMode = function (state, session, foldStyle, row) {
2324
+ var mode = this.$getMode(state);
2325
+ return (mode ? mode.getFoldWidget(session, foldStyle, row) : "");
2326
+ };
2327
+ this.getFoldWidget = function (session, foldStyle, row) {
2328
+ return (this.$tryMode(session.getState(row - 1), session, foldStyle, row) ||
2329
+ this.$tryMode(session.getState(row), session, foldStyle, row) ||
2330
+ this.defaultMode.getFoldWidget(session, foldStyle, row));
2331
+ };
2332
+ this.getFoldWidgetRange = function (session, foldStyle, row) {
2333
+ var mode = this.$getMode(session.getState(row - 1));
2334
+ if (!mode || !mode.getFoldWidget(session, foldStyle, row))
2335
+ mode = this.$getMode(session.getState(row));
2336
+ if (!mode || !mode.getFoldWidget(session, foldStyle, row))
2337
+ mode = this.defaultMode;
2338
+ return mode.getFoldWidgetRange(session, foldStyle, row);
2339
+ };
2340
+ }).call(FoldMode.prototype);
2341
+
2342
+ });
2343
+
2344
+ ace.define("ace/mode/folding/html",["require","exports","module","ace/lib/oop","ace/mode/folding/mixed","ace/mode/folding/xml","ace/mode/folding/cstyle"], function(require, exports, module){"use strict";
2345
+ var oop = require("../../lib/oop");
2346
+ var MixedFoldMode = require("./mixed").FoldMode;
2347
+ var XmlFoldMode = require("./xml").FoldMode;
2348
+ var CStyleFoldMode = require("./cstyle").FoldMode;
2349
+ var FoldMode = exports.FoldMode = function (voidElements, optionalTags) {
2350
+ MixedFoldMode.call(this, new XmlFoldMode(voidElements, optionalTags), {
2351
+ "js-": new CStyleFoldMode(),
2352
+ "css-": new CStyleFoldMode()
2353
+ });
2354
+ };
2355
+ oop.inherits(FoldMode, MixedFoldMode);
2356
+
2357
+ });
2358
+
2359
+ ace.define("ace/mode/html_completions",["require","exports","module","ace/token_iterator"], function(require, exports, module){"use strict";
2360
+ var TokenIterator = require("../token_iterator").TokenIterator;
2361
+ var commonAttributes = [
2362
+ "accesskey",
2363
+ "class",
2364
+ "contenteditable",
2365
+ "contextmenu",
2366
+ "dir",
2367
+ "draggable",
2368
+ "dropzone",
2369
+ "hidden",
2370
+ "id",
2371
+ "inert",
2372
+ "itemid",
2373
+ "itemprop",
2374
+ "itemref",
2375
+ "itemscope",
2376
+ "itemtype",
2377
+ "lang",
2378
+ "spellcheck",
2379
+ "style",
2380
+ "tabindex",
2381
+ "title",
2382
+ "translate"
2383
+ ];
2384
+ var eventAttributes = [
2385
+ "onabort",
2386
+ "onblur",
2387
+ "oncancel",
2388
+ "oncanplay",
2389
+ "oncanplaythrough",
2390
+ "onchange",
2391
+ "onclick",
2392
+ "onclose",
2393
+ "oncontextmenu",
2394
+ "oncuechange",
2395
+ "ondblclick",
2396
+ "ondrag",
2397
+ "ondragend",
2398
+ "ondragenter",
2399
+ "ondragleave",
2400
+ "ondragover",
2401
+ "ondragstart",
2402
+ "ondrop",
2403
+ "ondurationchange",
2404
+ "onemptied",
2405
+ "onended",
2406
+ "onerror",
2407
+ "onfocus",
2408
+ "oninput",
2409
+ "oninvalid",
2410
+ "onkeydown",
2411
+ "onkeypress",
2412
+ "onkeyup",
2413
+ "onload",
2414
+ "onloadeddata",
2415
+ "onloadedmetadata",
2416
+ "onloadstart",
2417
+ "onmousedown",
2418
+ "onmousemove",
2419
+ "onmouseout",
2420
+ "onmouseover",
2421
+ "onmouseup",
2422
+ "onmousewheel",
2423
+ "onpause",
2424
+ "onplay",
2425
+ "onplaying",
2426
+ "onprogress",
2427
+ "onratechange",
2428
+ "onreset",
2429
+ "onscroll",
2430
+ "onseeked",
2431
+ "onseeking",
2432
+ "onselect",
2433
+ "onshow",
2434
+ "onstalled",
2435
+ "onsubmit",
2436
+ "onsuspend",
2437
+ "ontimeupdate",
2438
+ "onvolumechange",
2439
+ "onwaiting"
2440
+ ];
2441
+ var globalAttributes = commonAttributes.concat(eventAttributes);
2442
+ var attributeMap = {
2443
+ "a": { "href": 1, "target": { "_blank": 1, "top": 1 }, "ping": 1, "rel": { "nofollow": 1, "alternate": 1, "author": 1, "bookmark": 1, "help": 1, "license": 1, "next": 1, "noreferrer": 1, "prefetch": 1, "prev": 1, "search": 1, "tag": 1 }, "media": 1, "hreflang": 1, "type": 1 },
2444
+ "abbr": {},
2445
+ "address": {},
2446
+ "area": { "shape": 1, "coords": 1, "href": 1, "hreflang": 1, "alt": 1, "target": 1, "media": 1, "rel": 1, "ping": 1, "type": 1 },
2447
+ "article": { "pubdate": 1 },
2448
+ "aside": {},
2449
+ "audio": { "src": 1, "autobuffer": 1, "autoplay": { "autoplay": 1 }, "loop": { "loop": 1 }, "controls": { "controls": 1 }, "muted": { "muted": 1 }, "preload": { "auto": 1, "metadata": 1, "none": 1 } },
2450
+ "b": {},
2451
+ "base": { "href": 1, "target": 1 },
2452
+ "bdi": {},
2453
+ "bdo": {},
2454
+ "blockquote": { "cite": 1 },
2455
+ "body": { "onafterprint": 1, "onbeforeprint": 1, "onbeforeunload": 1, "onhashchange": 1, "onmessage": 1, "onoffline": 1, "onpopstate": 1, "onredo": 1, "onresize": 1, "onstorage": 1, "onundo": 1, "onunload": 1 },
2456
+ "br": {},
2457
+ "button": { "autofocus": 1, "disabled": { "disabled": 1 }, "form": 1, "formaction": 1, "formenctype": 1, "formmethod": 1, "formnovalidate": 1, "formtarget": 1, "name": 1, "value": 1, "type": { "button": 1, "submit": 1 } },
2458
+ "canvas": { "width": 1, "height": 1 },
2459
+ "caption": {},
2460
+ "cite": {},
2461
+ "code": {},
2462
+ "col": { "span": 1 },
2463
+ "colgroup": { "span": 1 },
2464
+ "command": { "type": 1, "label": 1, "icon": 1, "disabled": 1, "checked": 1, "radiogroup": 1, "command": 1 },
2465
+ "data": {},
2466
+ "datalist": {},
2467
+ "dd": {},
2468
+ "del": { "cite": 1, "datetime": 1 },
2469
+ "details": { "open": 1 },
2470
+ "dfn": {},
2471
+ "dialog": { "open": 1 },
2472
+ "div": {},
2473
+ "dl": {},
2474
+ "dt": {},
2475
+ "em": {},
2476
+ "embed": { "src": 1, "height": 1, "width": 1, "type": 1 },
2477
+ "fieldset": { "disabled": 1, "form": 1, "name": 1 },
2478
+ "figcaption": {},
2479
+ "figure": {},
2480
+ "footer": {},
2481
+ "form": { "accept-charset": 1, "action": 1, "autocomplete": 1, "enctype": { "multipart/form-data": 1, "application/x-www-form-urlencoded": 1 }, "method": { "get": 1, "post": 1 }, "name": 1, "novalidate": 1, "target": { "_blank": 1, "top": 1 } },
2482
+ "h1": {},
2483
+ "h2": {},
2484
+ "h3": {},
2485
+ "h4": {},
2486
+ "h5": {},
2487
+ "h6": {},
2488
+ "head": {},
2489
+ "header": {},
2490
+ "hr": {},
2491
+ "html": { "manifest": 1 },
2492
+ "i": {},
2493
+ "iframe": { "name": 1, "src": 1, "height": 1, "width": 1, "sandbox": { "allow-same-origin": 1, "allow-top-navigation": 1, "allow-forms": 1, "allow-scripts": 1 }, "seamless": { "seamless": 1 } },
2494
+ "img": { "alt": 1, "src": 1, "height": 1, "width": 1, "usemap": 1, "ismap": 1 },
2495
+ "input": {
2496
+ "type": { "text": 1, "password": 1, "hidden": 1, "checkbox": 1, "submit": 1, "radio": 1, "file": 1, "button": 1, "reset": 1, "image": 31, "color": 1, "date": 1, "datetime": 1, "datetime-local": 1, "email": 1, "month": 1, "number": 1, "range": 1, "search": 1, "tel": 1, "time": 1, "url": 1, "week": 1 },
2497
+ "accept": 1, "alt": 1, "autocomplete": { "on": 1, "off": 1 }, "autofocus": { "autofocus": 1 }, "checked": { "checked": 1 }, "disabled": { "disabled": 1 }, "form": 1, "formaction": 1, "formenctype": { "application/x-www-form-urlencoded": 1, "multipart/form-data": 1, "text/plain": 1 }, "formmethod": { "get": 1, "post": 1 }, "formnovalidate": { "formnovalidate": 1 }, "formtarget": { "_blank": 1, "_self": 1, "_parent": 1, "_top": 1 }, "height": 1, "list": 1, "max": 1, "maxlength": 1, "min": 1, "multiple": { "multiple": 1 }, "name": 1, "pattern": 1, "placeholder": 1, "readonly": { "readonly": 1 }, "required": { "required": 1 }, "size": 1, "src": 1, "step": 1, "width": 1, "files": 1, "value": 1
2498
+ },
2499
+ "ins": { "cite": 1, "datetime": 1 },
2500
+ "kbd": {},
2501
+ "keygen": { "autofocus": 1, "challenge": { "challenge": 1 }, "disabled": { "disabled": 1 }, "form": 1, "keytype": { "rsa": 1, "dsa": 1, "ec": 1 }, "name": 1 },
2502
+ "label": { "form": 1, "for": 1 },
2503
+ "legend": {},
2504
+ "li": { "value": 1 },
2505
+ "link": { "href": 1, "hreflang": 1, "rel": { "stylesheet": 1, "icon": 1 }, "media": { "all": 1, "screen": 1, "print": 1 }, "type": { "text/css": 1, "image/png": 1, "image/jpeg": 1, "image/gif": 1 }, "sizes": 1 },
2506
+ "main": {},
2507
+ "map": { "name": 1 },
2508
+ "mark": {},
2509
+ "math": {},
2510
+ "menu": { "type": 1, "label": 1 },
2511
+ "meta": { "http-equiv": { "content-type": 1 }, "name": { "description": 1, "keywords": 1 }, "content": { "text/html; charset=UTF-8": 1 }, "charset": 1 },
2512
+ "meter": { "value": 1, "min": 1, "max": 1, "low": 1, "high": 1, "optimum": 1 },
2513
+ "nav": {},
2514
+ "noscript": { "href": 1 },
2515
+ "object": { "param": 1, "data": 1, "type": 1, "height": 1, "width": 1, "usemap": 1, "name": 1, "form": 1, "classid": 1 },
2516
+ "ol": { "start": 1, "reversed": 1 },
2517
+ "optgroup": { "disabled": 1, "label": 1 },
2518
+ "option": { "disabled": 1, "selected": 1, "label": 1, "value": 1 },
2519
+ "output": { "for": 1, "form": 1, "name": 1 },
2520
+ "p": {},
2521
+ "param": { "name": 1, "value": 1 },
2522
+ "pre": {},
2523
+ "progress": { "value": 1, "max": 1 },
2524
+ "q": { "cite": 1 },
2525
+ "rp": {},
2526
+ "rt": {},
2527
+ "ruby": {},
2528
+ "s": {},
2529
+ "samp": {},
2530
+ "script": { "charset": 1, "type": { "text/javascript": 1 }, "src": 1, "defer": 1, "async": 1 },
2531
+ "select": { "autofocus": 1, "disabled": 1, "form": 1, "multiple": { "multiple": 1 }, "name": 1, "size": 1, "readonly": { "readonly": 1 } },
2532
+ "small": {},
2533
+ "source": { "src": 1, "type": 1, "media": 1 },
2534
+ "span": {},
2535
+ "strong": {},
2536
+ "style": { "type": 1, "media": { "all": 1, "screen": 1, "print": 1 }, "scoped": 1 },
2537
+ "sub": {},
2538
+ "sup": {},
2539
+ "svg": {},
2540
+ "table": { "summary": 1 },
2541
+ "tbody": {},
2542
+ "td": { "headers": 1, "rowspan": 1, "colspan": 1 },
2543
+ "textarea": { "autofocus": { "autofocus": 1 }, "disabled": { "disabled": 1 }, "form": 1, "maxlength": 1, "name": 1, "placeholder": 1, "readonly": { "readonly": 1 }, "required": { "required": 1 }, "rows": 1, "cols": 1, "wrap": { "on": 1, "off": 1, "hard": 1, "soft": 1 } },
2544
+ "tfoot": {},
2545
+ "th": { "headers": 1, "rowspan": 1, "colspan": 1, "scope": 1 },
2546
+ "thead": {},
2547
+ "time": { "datetime": 1 },
2548
+ "title": {},
2549
+ "tr": {},
2550
+ "track": { "kind": 1, "src": 1, "srclang": 1, "label": 1, "default": 1 },
2551
+ "section": {},
2552
+ "summary": {},
2553
+ "u": {},
2554
+ "ul": {},
2555
+ "var": {},
2556
+ "video": { "src": 1, "autobuffer": 1, "autoplay": { "autoplay": 1 }, "loop": { "loop": 1 }, "controls": { "controls": 1 }, "width": 1, "height": 1, "poster": 1, "muted": { "muted": 1 }, "preload": { "auto": 1, "metadata": 1, "none": 1 } },
2557
+ "wbr": {}
2558
+ };
2559
+ var elements = Object.keys(attributeMap);
2560
+ function is(token, type) {
2561
+ return token.type.lastIndexOf(type + ".xml") > -1;
2562
+ }
2563
+ function findTagName(session, pos) {
2564
+ var iterator = new TokenIterator(session, pos.row, pos.column);
2565
+ var token = iterator.getCurrentToken();
2566
+ while (token && !is(token, "tag-name")) {
2567
+ token = iterator.stepBackward();
2568
+ }
2569
+ if (token)
2570
+ return token.value;
2571
+ }
2572
+ function findAttributeName(session, pos) {
2573
+ var iterator = new TokenIterator(session, pos.row, pos.column);
2574
+ var token = iterator.getCurrentToken();
2575
+ while (token && !is(token, "attribute-name")) {
2576
+ token = iterator.stepBackward();
2577
+ }
2578
+ if (token)
2579
+ return token.value;
2580
+ }
2581
+ var HtmlCompletions = function () {
2582
+ };
2583
+ (function () {
2584
+ this.getCompletions = function (state, session, pos, prefix) {
2585
+ var token = session.getTokenAt(pos.row, pos.column);
2586
+ if (!token)
2587
+ return [];
2588
+ if (is(token, "tag-name") || is(token, "tag-open") || is(token, "end-tag-open"))
2589
+ return this.getTagCompletions(state, session, pos, prefix);
2590
+ if (is(token, "tag-whitespace") || is(token, "attribute-name"))
2591
+ return this.getAttributeCompletions(state, session, pos, prefix);
2592
+ if (is(token, "attribute-value"))
2593
+ return this.getAttributeValueCompletions(state, session, pos, prefix);
2594
+ var line = session.getLine(pos.row).substr(0, pos.column);
2595
+ if (/&[a-z]*$/i.test(line))
2596
+ return this.getHTMLEntityCompletions(state, session, pos, prefix);
2597
+ return [];
2598
+ };
2599
+ this.getTagCompletions = function (state, session, pos, prefix) {
2600
+ return elements.map(function (element) {
2601
+ return {
2602
+ value: element,
2603
+ meta: "tag",
2604
+ score: 1000000
2605
+ };
2606
+ });
2607
+ };
2608
+ this.getAttributeCompletions = function (state, session, pos, prefix) {
2609
+ var tagName = findTagName(session, pos);
2610
+ if (!tagName)
2611
+ return [];
2612
+ var attributes = globalAttributes;
2613
+ if (tagName in attributeMap) {
2614
+ attributes = attributes.concat(Object.keys(attributeMap[tagName]));
2615
+ }
2616
+ return attributes.map(function (attribute) {
2617
+ return {
2618
+ caption: attribute,
2619
+ snippet: attribute + '="$0"',
2620
+ meta: "attribute",
2621
+ score: 1000000
2622
+ };
2623
+ });
2624
+ };
2625
+ this.getAttributeValueCompletions = function (state, session, pos, prefix) {
2626
+ var tagName = findTagName(session, pos);
2627
+ var attributeName = findAttributeName(session, pos);
2628
+ if (!tagName)
2629
+ return [];
2630
+ var values = [];
2631
+ if (tagName in attributeMap && attributeName in attributeMap[tagName] && typeof attributeMap[tagName][attributeName] === "object") {
2632
+ values = Object.keys(attributeMap[tagName][attributeName]);
2633
+ }
2634
+ return values.map(function (value) {
2635
+ return {
2636
+ caption: value,
2637
+ snippet: value,
2638
+ meta: "attribute value",
2639
+ score: 1000000
2640
+ };
2641
+ });
2642
+ };
2643
+ this.getHTMLEntityCompletions = function (state, session, pos, prefix) {
2644
+ var values = ['Aacute;', 'aacute;', 'Acirc;', 'acirc;', 'acute;', 'AElig;', 'aelig;', 'Agrave;', 'agrave;', 'alefsym;', 'Alpha;', 'alpha;', 'amp;', 'and;', 'ang;', 'Aring;', 'aring;', 'asymp;', 'Atilde;', 'atilde;', 'Auml;', 'auml;', 'bdquo;', 'Beta;', 'beta;', 'brvbar;', 'bull;', 'cap;', 'Ccedil;', 'ccedil;', 'cedil;', 'cent;', 'Chi;', 'chi;', 'circ;', 'clubs;', 'cong;', 'copy;', 'crarr;', 'cup;', 'curren;', 'Dagger;', 'dagger;', 'dArr;', 'darr;', 'deg;', 'Delta;', 'delta;', 'diams;', 'divide;', 'Eacute;', 'eacute;', 'Ecirc;', 'ecirc;', 'Egrave;', 'egrave;', 'empty;', 'emsp;', 'ensp;', 'Epsilon;', 'epsilon;', 'equiv;', 'Eta;', 'eta;', 'ETH;', 'eth;', 'Euml;', 'euml;', 'euro;', 'exist;', 'fnof;', 'forall;', 'frac12;', 'frac14;', 'frac34;', 'frasl;', 'Gamma;', 'gamma;', 'ge;', 'gt;', 'hArr;', 'harr;', 'hearts;', 'hellip;', 'Iacute;', 'iacute;', 'Icirc;', 'icirc;', 'iexcl;', 'Igrave;', 'igrave;', 'image;', 'infin;', 'int;', 'Iota;', 'iota;', 'iquest;', 'isin;', 'Iuml;', 'iuml;', 'Kappa;', 'kappa;', 'Lambda;', 'lambda;', 'lang;', 'laquo;', 'lArr;', 'larr;', 'lceil;', 'ldquo;', 'le;', 'lfloor;', 'lowast;', 'loz;', 'lrm;', 'lsaquo;', 'lsquo;', 'lt;', 'macr;', 'mdash;', 'micro;', 'middot;', 'minus;', 'Mu;', 'mu;', 'nabla;', 'nbsp;', 'ndash;', 'ne;', 'ni;', 'not;', 'notin;', 'nsub;', 'Ntilde;', 'ntilde;', 'Nu;', 'nu;', 'Oacute;', 'oacute;', 'Ocirc;', 'ocirc;', 'OElig;', 'oelig;', 'Ograve;', 'ograve;', 'oline;', 'Omega;', 'omega;', 'Omicron;', 'omicron;', 'oplus;', 'or;', 'ordf;', 'ordm;', 'Oslash;', 'oslash;', 'Otilde;', 'otilde;', 'otimes;', 'Ouml;', 'ouml;', 'para;', 'part;', 'permil;', 'perp;', 'Phi;', 'phi;', 'Pi;', 'pi;', 'piv;', 'plusmn;', 'pound;', 'Prime;', 'prime;', 'prod;', 'prop;', 'Psi;', 'psi;', 'quot;', 'radic;', 'rang;', 'raquo;', 'rArr;', 'rarr;', 'rceil;', 'rdquo;', 'real;', 'reg;', 'rfloor;', 'Rho;', 'rho;', 'rlm;', 'rsaquo;', 'rsquo;', 'sbquo;', 'Scaron;', 'scaron;', 'sdot;', 'sect;', 'shy;', 'Sigma;', 'sigma;', 'sigmaf;', 'sim;', 'spades;', 'sub;', 'sube;', 'sum;', 'sup;', 'sup1;', 'sup2;', 'sup3;', 'supe;', 'szlig;', 'Tau;', 'tau;', 'there4;', 'Theta;', 'theta;', 'thetasym;', 'thinsp;', 'THORN;', 'thorn;', 'tilde;', 'times;', 'trade;', 'Uacute;', 'uacute;', 'uArr;', 'uarr;', 'Ucirc;', 'ucirc;', 'Ugrave;', 'ugrave;', 'uml;', 'upsih;', 'Upsilon;', 'upsilon;', 'Uuml;', 'uuml;', 'weierp;', 'Xi;', 'xi;', 'Yacute;', 'yacute;', 'yen;', 'Yuml;', 'yuml;', 'Zeta;', 'zeta;', 'zwj;', 'zwnj;'];
2645
+ return values.map(function (value) {
2646
+ return {
2647
+ caption: value,
2648
+ snippet: value,
2649
+ meta: "html entity",
2650
+ score: 1000000
2651
+ };
2652
+ });
2653
+ };
2654
+ }).call(HtmlCompletions.prototype);
2655
+ exports.HtmlCompletions = HtmlCompletions;
2656
+
2657
+ });
2658
+
2659
+ ace.define("ace/mode/html",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text","ace/mode/javascript","ace/mode/css","ace/mode/html_highlight_rules","ace/mode/behaviour/xml","ace/mode/folding/html","ace/mode/html_completions","ace/worker/worker_client"], function(require, exports, module){"use strict";
2660
+ var oop = require("../lib/oop");
2661
+ var lang = require("../lib/lang");
2662
+ var TextMode = require("./text").Mode;
2663
+ var JavaScriptMode = require("./javascript").Mode;
2664
+ var CssMode = require("./css").Mode;
2665
+ var HtmlHighlightRules = require("./html_highlight_rules").HtmlHighlightRules;
2666
+ var XmlBehaviour = require("./behaviour/xml").XmlBehaviour;
2667
+ var HtmlFoldMode = require("./folding/html").FoldMode;
2668
+ var HtmlCompletions = require("./html_completions").HtmlCompletions;
2669
+ var WorkerClient = require("../worker/worker_client").WorkerClient;
2670
+ var voidElements = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "menuitem", "param", "source", "track", "wbr"];
2671
+ var optionalEndTags = ["li", "dt", "dd", "p", "rt", "rp", "optgroup", "option", "colgroup", "td", "th"];
2672
+ var Mode = function (options) {
2673
+ this.fragmentContext = options && options.fragmentContext;
2674
+ this.HighlightRules = HtmlHighlightRules;
2675
+ this.$behaviour = new XmlBehaviour();
2676
+ this.$completer = new HtmlCompletions();
2677
+ this.createModeDelegates({
2678
+ "js-": JavaScriptMode,
2679
+ "css-": CssMode
2680
+ });
2681
+ this.foldingRules = new HtmlFoldMode(this.voidElements, lang.arrayToMap(optionalEndTags));
2682
+ };
2683
+ oop.inherits(Mode, TextMode);
2684
+ (function () {
2685
+ this.blockComment = { start: "<!--", end: "-->" };
2686
+ this.voidElements = lang.arrayToMap(voidElements);
2687
+ this.getNextLineIndent = function (state, line, tab) {
2688
+ return this.$getIndent(line);
2689
+ };
2690
+ this.checkOutdent = function (state, line, input) {
2691
+ return false;
2692
+ };
2693
+ this.getCompletions = function (state, session, pos, prefix) {
2694
+ return this.$completer.getCompletions(state, session, pos, prefix);
2695
+ };
2696
+ this.createWorker = function (session) {
2697
+ if (this.constructor != Mode)
2698
+ return;
2699
+ var worker = new WorkerClient(["ace"], "ace/mode/html_worker", "Worker");
2700
+ worker.attachToDocument(session.getDocument());
2701
+ if (this.fragmentContext)
2702
+ worker.call("setOptions", [{ context: this.fragmentContext }]);
2703
+ worker.on("error", function (e) {
2704
+ session.setAnnotations(e.data);
2705
+ });
2706
+ worker.on("terminate", function () {
2707
+ session.clearAnnotations();
2708
+ });
2709
+ return worker;
2710
+ };
2711
+ this.$id = "ace/mode/html";
2712
+ this.snippetFileId = "ace/snippets/html";
2713
+ }).call(Mode.prototype);
2714
+ exports.Mode = Mode;
2715
+
2716
+ });
2717
+
2718
+ ace.define("ace/mode/folding/coffee",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode","ace/range"], function(require, exports, module){"use strict";
2719
+ var oop = require("../../lib/oop");
2720
+ var BaseFoldMode = require("./fold_mode").FoldMode;
2721
+ var Range = require("../../range").Range;
2722
+ var FoldMode = exports.FoldMode = function () { };
2723
+ oop.inherits(FoldMode, BaseFoldMode);
2724
+ (function () {
2725
+ this.commentBlock = function (session, row) {
2726
+ var re = /\S/;
2727
+ var line = session.getLine(row);
2728
+ var startLevel = line.search(re);
2729
+ if (startLevel == -1 || line[startLevel] != "#")
2730
+ return;
2731
+ var startColumn = line.length;
2732
+ var maxRow = session.getLength();
2733
+ var startRow = row;
2734
+ var endRow = row;
2735
+ while (++row < maxRow) {
2736
+ line = session.getLine(row);
2737
+ var level = line.search(re);
2738
+ if (level == -1)
2739
+ continue;
2740
+ if (line[level] != "#")
2741
+ break;
2742
+ endRow = row;
2743
+ }
2744
+ if (endRow > startRow) {
2745
+ var endColumn = session.getLine(endRow).length;
2746
+ return new Range(startRow, startColumn, endRow, endColumn);
2747
+ }
2748
+ };
2749
+ this.getFoldWidgetRange = function (session, foldStyle, row) {
2750
+ var range = this.indentationBlock(session, row);
2751
+ if (range)
2752
+ return range;
2753
+ range = this.commentBlock(session, row);
2754
+ if (range)
2755
+ return range;
2756
+ };
2757
+ this.getFoldWidget = function (session, foldStyle, row) {
2758
+ var line = session.getLine(row);
2759
+ var indent = line.search(/\S/);
2760
+ var next = session.getLine(row + 1);
2761
+ var prev = session.getLine(row - 1);
2762
+ var prevIndent = prev.search(/\S/);
2763
+ var nextIndent = next.search(/\S/);
2764
+ if (indent == -1) {
2765
+ session.foldWidgets[row - 1] = prevIndent != -1 && prevIndent < nextIndent ? "start" : "";
2766
+ return "";
2767
+ }
2768
+ if (prevIndent == -1) {
2769
+ if (indent == nextIndent && line[indent] == "#" && next[indent] == "#") {
2770
+ session.foldWidgets[row - 1] = "";
2771
+ session.foldWidgets[row + 1] = "";
2772
+ return "start";
2773
+ }
2774
+ }
2775
+ else if (prevIndent == indent && line[indent] == "#" && prev[indent] == "#") {
2776
+ if (session.getLine(row - 2).search(/\S/) == -1) {
2777
+ session.foldWidgets[row - 1] = "start";
2778
+ session.foldWidgets[row + 1] = "";
2779
+ return "";
2780
+ }
2781
+ }
2782
+ if (prevIndent != -1 && prevIndent < indent)
2783
+ session.foldWidgets[row - 1] = "start";
2784
+ else
2785
+ session.foldWidgets[row - 1] = "";
2786
+ if (indent < nextIndent)
2787
+ return "start";
2788
+ else
2789
+ return "";
2790
+ };
2791
+ }).call(FoldMode.prototype);
2792
+
2793
+ });
2794
+
2795
+ ace.define("ace/mode/elixir",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/elixir_highlight_rules","ace/mode/folding/coffee"], function(require, exports, module){/*
2796
+ THIS FILE WAS AUTOGENERATED BY mode.tmpl.js
2797
+ */
2798
+ "use strict";
2799
+ var oop = require("../lib/oop");
2800
+ var TextMode = require("./text").Mode;
2801
+ var ElixirHighlightRules = require("./elixir_highlight_rules").ElixirHighlightRules;
2802
+ var FoldMode = require("./folding/coffee").FoldMode;
2803
+ var Mode = function () {
2804
+ this.HighlightRules = ElixirHighlightRules;
2805
+ this.foldingRules = new FoldMode();
2806
+ this.$behaviour = this.$defaultBehaviour;
2807
+ };
2808
+ oop.inherits(Mode, TextMode);
2809
+ (function () {
2810
+ this.lineCommentStart = "#";
2811
+ this.$id = "ace/mode/elixir";
2812
+ }).call(Mode.prototype);
2813
+ exports.Mode = Mode;
2814
+
2815
+ });
2816
+
2817
+ ace.define("ace/mode/html_elixir",["require","exports","module","ace/lib/oop","ace/mode/html_elixir_highlight_rules","ace/mode/html","ace/mode/javascript","ace/mode/css","ace/mode/elixir"], function(require, exports, module){"use strict";
2818
+ var oop = require("../lib/oop");
2819
+ var HtmlElixirHighlightRules = require("./html_elixir_highlight_rules").HtmlElixirHighlightRules;
2820
+ var HtmlMode = require("./html").Mode;
2821
+ var JavaScriptMode = require("./javascript").Mode;
2822
+ var CssMode = require("./css").Mode;
2823
+ var ElixirMode = require("./elixir").Mode;
2824
+ var Mode = function () {
2825
+ HtmlMode.call(this);
2826
+ this.HighlightRules = HtmlElixirHighlightRules;
2827
+ this.createModeDelegates({
2828
+ "js-": JavaScriptMode,
2829
+ "css-": CssMode,
2830
+ "elixir-": ElixirMode
2831
+ });
2832
+ };
2833
+ oop.inherits(Mode, HtmlMode);
2834
+ (function () {
2835
+ this.$id = "ace/mode/html_elixir";
2836
+ }).call(Mode.prototype);
2837
+ exports.Mode = Mode;
2838
+
2839
+ }); (function() {
2840
+ ace.require(["ace/mode/html_elixir"], function(m) {
2841
+ if (typeof module == "object" && typeof exports == "object" && module) {
2842
+ module.exports = m;
2843
+ }
2844
+ });
2845
+ })();
2846
+