@omicronenergy/oscd-ui 0.0.19 → 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 (716) hide show
  1. package/CHANGELOG.md +12 -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.js +23 -23
  529. package/dist/action-tree/OscdActionTree.js.map +1 -1
  530. package/dist/app-bar/OscdAppBar.d.ts +1 -1
  531. package/dist/app-bar/OscdAppBar.js +1 -1
  532. package/dist/app-bar/OscdAppBar.js.map +1 -1
  533. package/dist/app-bar/oscd-app-bar.d.ts +1 -1
  534. package/dist/app-bar/oscd-app-bar.js +1 -1
  535. package/dist/app-bar/oscd-app-bar.js.map +1 -1
  536. package/dist/button/OscdElevatedButton.d.ts +1 -1
  537. package/dist/button/OscdElevatedButton.js +1 -1
  538. package/dist/button/OscdElevatedButton.js.map +1 -1
  539. package/dist/button/OscdFilledButton.d.ts +1 -1
  540. package/dist/button/OscdFilledButton.js +1 -1
  541. package/dist/button/OscdFilledButton.js.map +1 -1
  542. package/dist/button/OscdFilledTonalButton.d.ts +1 -1
  543. package/dist/button/OscdFilledTonalButton.js +1 -1
  544. package/dist/button/OscdFilledTonalButton.js.map +1 -1
  545. package/dist/button/OscdOutlinedButton.d.ts +1 -1
  546. package/dist/button/OscdOutlinedButton.js +1 -1
  547. package/dist/button/OscdOutlinedButton.js.map +1 -1
  548. package/dist/button/OscdTextButton.d.ts +1 -1
  549. package/dist/button/OscdTextButton.js +1 -1
  550. package/dist/button/OscdTextButton.js.map +1 -1
  551. package/dist/checkbox/OscdCheckbox.d.ts +1 -1
  552. package/dist/checkbox/OscdCheckbox.js +1 -1
  553. package/dist/checkbox/OscdCheckbox.js.map +1 -1
  554. package/dist/chips/OscdAssistChip.d.ts +1 -1
  555. package/dist/chips/OscdAssistChip.js +1 -1
  556. package/dist/chips/OscdAssistChip.js.map +1 -1
  557. package/dist/chips/OscdChipSet.d.ts +1 -1
  558. package/dist/chips/OscdChipSet.js.map +1 -1
  559. package/dist/chips/OscdFilterChip.d.ts +1 -1
  560. package/dist/chips/OscdFilterChip.js +1 -1
  561. package/dist/chips/OscdFilterChip.js.map +1 -1
  562. package/dist/chips/OscdInputChip.d.ts +1 -1
  563. package/dist/chips/OscdInputChip.js +1 -1
  564. package/dist/chips/OscdInputChip.js.map +1 -1
  565. package/dist/chips/OscdSuggestionChip.d.ts +1 -1
  566. package/dist/chips/OscdSuggestionChip.js +1 -1
  567. package/dist/chips/OscdSuggestionChip.js.map +1 -1
  568. package/dist/decorators/localstorage.js.map +1 -1
  569. package/dist/dialog/OscdDialog.d.ts +1 -1
  570. package/dist/dialog/OscdDialog.js +1 -1
  571. package/dist/dialog/OscdDialog.js.map +1 -1
  572. package/dist/dialog/warning/OscdWarnDialog.d.ts +31 -0
  573. package/dist/dialog/warning/OscdWarnDialog.js +74 -0
  574. package/dist/dialog/warning/OscdWarnDialog.js.map +1 -0
  575. package/dist/dialog/warning/oscd-warn-dialog.d.ts +2 -0
  576. package/dist/dialog/warning/oscd-warn-dialog.js +4 -0
  577. package/dist/dialog/warning/oscd-warn-dialog.js.map +1 -0
  578. package/dist/divider/OscdDivider.d.ts +1 -1
  579. package/dist/divider/OscdDivider.js.map +1 -1
  580. package/dist/elevation/OscdElevation.d.ts +1 -1
  581. package/dist/elevation/OscdElevation.js.map +1 -1
  582. package/dist/fab/OscdBrandedFab.d.ts +1 -1
  583. package/dist/fab/OscdBrandedFab.js +1 -1
  584. package/dist/fab/OscdBrandedFab.js.map +1 -1
  585. package/dist/fab/OscdFab.d.ts +1 -1
  586. package/dist/fab/OscdFab.js +1 -1
  587. package/dist/fab/OscdFab.js.map +1 -1
  588. package/dist/field/OscdFilledField.d.ts +1 -1
  589. package/dist/field/OscdFilledField.js.map +1 -1
  590. package/dist/field/OscdOutlinedField.d.ts +1 -1
  591. package/dist/field/OscdOutlinedField.js.map +1 -1
  592. package/dist/filter-button/OscdFilterButton.js.map +1 -1
  593. package/dist/focus/OscdFocusRing.d.ts +1 -1
  594. package/dist/focus/OscdFocusRing.js.map +1 -1
  595. package/dist/icon/OscdIcon.d.ts +1 -1
  596. package/dist/icon/OscdIcon.js +1 -1
  597. package/dist/icon/OscdIcon.js.map +1 -1
  598. package/dist/icon/internal/icon.d.ts +1 -1
  599. package/dist/icon/internal/icon.js +1 -1
  600. package/dist/icon/internal/icon.js.map +1 -1
  601. package/dist/iconbutton/OscdFilledIconButton.d.ts +1 -1
  602. package/dist/iconbutton/OscdFilledIconButton.js +1 -1
  603. package/dist/iconbutton/OscdFilledIconButton.js.map +1 -1
  604. package/dist/iconbutton/OscdFilledTonalIconButton.d.ts +1 -1
  605. package/dist/iconbutton/OscdFilledTonalIconButton.js +1 -1
  606. package/dist/iconbutton/OscdFilledTonalIconButton.js.map +1 -1
  607. package/dist/iconbutton/OscdIconButton.d.ts +1 -1
  608. package/dist/iconbutton/OscdIconButton.js +1 -1
  609. package/dist/iconbutton/OscdIconButton.js.map +1 -1
  610. package/dist/iconbutton/OscdOutlinedIconButton.d.ts +1 -1
  611. package/dist/iconbutton/OscdOutlinedIconButton.js +1 -1
  612. package/dist/iconbutton/OscdOutlinedIconButton.js.map +1 -1
  613. package/dist/labs/badge/OscdBadge.d.ts +1 -1
  614. package/dist/labs/badge/OscdBadge.js.map +1 -1
  615. package/dist/labs/card/OscdElevatedCard.d.ts +1 -1
  616. package/dist/labs/card/OscdElevatedCard.js +1 -1
  617. package/dist/labs/card/OscdElevatedCard.js.map +1 -1
  618. package/dist/labs/card/OscdFilledCard.d.ts +1 -1
  619. package/dist/labs/card/OscdFilledCard.js +1 -1
  620. package/dist/labs/card/OscdFilledCard.js.map +1 -1
  621. package/dist/labs/card/OscdOutlinedCard.d.ts +1 -1
  622. package/dist/labs/card/OscdOutlinedCard.js +1 -1
  623. package/dist/labs/card/OscdOutlinedCard.js.map +1 -1
  624. package/dist/labs/item/OscdItem.d.ts +1 -1
  625. package/dist/labs/item/OscdItem.js.map +1 -1
  626. package/dist/labs/navigationbar/OscdNavigationBar.d.ts +1 -1
  627. package/dist/labs/navigationbar/OscdNavigationBar.js +1 -1
  628. package/dist/labs/navigationbar/OscdNavigationBar.js.map +1 -1
  629. package/dist/labs/navigationtab/OscdNavigationTab.d.ts +1 -1
  630. package/dist/labs/navigationtab/OscdNavigationTab.js +1 -1
  631. package/dist/labs/navigationtab/OscdNavigationTab.js.map +1 -1
  632. package/dist/labs/segmentedbutton/OscdOutlinedSegmentedButton.d.ts +1 -1
  633. package/dist/labs/segmentedbutton/OscdOutlinedSegmentedButton.js +1 -1
  634. package/dist/labs/segmentedbutton/OscdOutlinedSegmentedButton.js.map +1 -1
  635. package/dist/labs/segmentedbuttonset/OscdOutlinedSegmentedButtonSet.d.ts +1 -1
  636. package/dist/labs/segmentedbuttonset/OscdOutlinedSegmentedButtonSet.js.map +1 -1
  637. package/dist/list/OscdList.d.ts +1 -1
  638. package/dist/list/OscdList.js.map +1 -1
  639. package/dist/list/OscdListItem.d.ts +1 -1
  640. package/dist/list/OscdListItem.js +1 -1
  641. package/dist/list/OscdListItem.js.map +1 -1
  642. package/dist/menu/OscdMenu.d.ts +1 -1
  643. package/dist/menu/OscdMenu.js +1 -1
  644. package/dist/menu/OscdMenu.js.map +1 -1
  645. package/dist/menu/OscdMenuItem.d.ts +1 -1
  646. package/dist/menu/OscdMenuItem.js +1 -1
  647. package/dist/menu/OscdMenuItem.js.map +1 -1
  648. package/dist/menu/OscdSubMenu.d.ts +1 -1
  649. package/dist/menu/OscdSubMenu.js.map +1 -1
  650. package/dist/navigation-drawer/OscdNavigationDrawer.d.ts +1 -1
  651. package/dist/navigation-drawer/OscdNavigationDrawer.js +1 -1
  652. package/dist/navigation-drawer/OscdNavigationDrawer.js.map +1 -1
  653. package/dist/navigation-drawer/OscdNavigationDrawerHeader.d.ts +1 -1
  654. package/dist/navigation-drawer/OscdNavigationDrawerHeader.js +1 -1
  655. package/dist/navigation-drawer/OscdNavigationDrawerHeader.js.map +1 -1
  656. package/dist/progress/OscdCircularProgress.d.ts +1 -1
  657. package/dist/progress/OscdCircularProgress.js.map +1 -1
  658. package/dist/progress/OscdLinearProgress.d.ts +1 -1
  659. package/dist/progress/OscdLinearProgress.js.map +1 -1
  660. package/dist/radio/OscdRadio.d.ts +1 -1
  661. package/dist/radio/OscdRadio.js +1 -1
  662. package/dist/radio/OscdRadio.js.map +1 -1
  663. package/dist/ripple/OscdRipple.d.ts +1 -1
  664. package/dist/ripple/OscdRipple.js.map +1 -1
  665. package/dist/scl-checkbox/OscdSclCheckbox.js +1 -3
  666. package/dist/scl-checkbox/OscdSclCheckbox.js.map +1 -1
  667. package/dist/scl-icon/OscdSclIcon.d.ts +1 -1
  668. package/dist/scl-icon/OscdSclIcon.js +1 -1
  669. package/dist/scl-icon/OscdSclIcon.js.map +1 -1
  670. package/dist/search-field/internal/OutlinedSearchField.js.map +1 -1
  671. package/dist/select/OscdFilledSelect.d.ts +1 -1
  672. package/dist/select/OscdFilledSelect.js +1 -1
  673. package/dist/select/OscdFilledSelect.js.map +1 -1
  674. package/dist/select/OscdOutlinedSelect.d.ts +1 -1
  675. package/dist/select/OscdOutlinedSelect.js +1 -1
  676. package/dist/select/OscdOutlinedSelect.js.map +1 -1
  677. package/dist/select/OscdSelectOption.d.ts +1 -1
  678. package/dist/select/OscdSelectOption.js +1 -1
  679. package/dist/select/OscdSelectOption.js.map +1 -1
  680. package/dist/selection-list/OscdSelectionList.js.map +1 -1
  681. package/dist/slider/OscdSlider.d.ts +1 -1
  682. package/dist/slider/OscdSlider.js +1 -1
  683. package/dist/slider/OscdSlider.js.map +1 -1
  684. package/dist/switch/OscdSwitch.d.ts +1 -1
  685. package/dist/switch/OscdSwitch.js +1 -1
  686. package/dist/switch/OscdSwitch.js.map +1 -1
  687. package/dist/tabs/OscdPrimaryTab.d.ts +1 -1
  688. package/dist/tabs/OscdPrimaryTab.js +1 -1
  689. package/dist/tabs/OscdPrimaryTab.js.map +1 -1
  690. package/dist/tabs/OscdPrimaryTab.stories.js +1 -3
  691. package/dist/tabs/OscdPrimaryTab.stories.js.map +1 -1
  692. package/dist/tabs/OscdSecondaryTab.d.ts +1 -1
  693. package/dist/tabs/OscdSecondaryTab.js +1 -1
  694. package/dist/tabs/OscdSecondaryTab.js.map +1 -1
  695. package/dist/tabs/OscdSecondaryTab.stories.js +1 -3
  696. package/dist/tabs/OscdSecondaryTab.stories.js.map +1 -1
  697. package/dist/tabs/OscdTabs.d.ts +1 -1
  698. package/dist/tabs/OscdTabs.js +1 -1
  699. package/dist/tabs/OscdTabs.js.map +1 -1
  700. package/dist/textfield/OscdFilledTextField.d.ts +1 -1
  701. package/dist/textfield/OscdFilledTextField.js +1 -1
  702. package/dist/textfield/OscdFilledTextField.js.map +1 -1
  703. package/dist/textfield/OscdOutlinedTextField.d.ts +1 -1
  704. package/dist/textfield/OscdOutlinedTextField.js +1 -1
  705. package/dist/textfield/OscdOutlinedTextField.js.map +1 -1
  706. package/dist/tree/OscdTree.stories.js.map +1 -1
  707. package/dist/tree/internal/Tree.js +2 -2
  708. package/dist/tree/internal/Tree.js.map +1 -1
  709. package/dist/tree-grid/OscdTreeGrid.js +1 -4
  710. package/dist/tree-grid/OscdTreeGrid.js.map +1 -1
  711. package/dist/utils/storybook/getStorybookHelpers.js +2 -2
  712. package/dist/utils/storybook/getStorybookHelpers.js.map +1 -1
  713. package/dist/utils/storybook/getStorybookMeta.d.ts +5 -0
  714. package/dist/utils/storybook/getStorybookMeta.js +2 -1
  715. package/dist/utils/storybook/getStorybookMeta.js.map +1 -1
  716. package/package.json +39 -71
@@ -0,0 +1,3835 @@
1
+ ace.define("ace/mode/folding/mixed",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode"], function(require, exports, module){"use strict";
2
+ var oop = require("../../lib/oop");
3
+ var BaseFoldMode = require("./fold_mode").FoldMode;
4
+ var FoldMode = exports.FoldMode = function (defaultMode, subModes) {
5
+ this.defaultMode = defaultMode;
6
+ this.subModes = subModes;
7
+ };
8
+ oop.inherits(FoldMode, BaseFoldMode);
9
+ (function () {
10
+ this.$getMode = function (state) {
11
+ if (typeof state != "string")
12
+ state = state[0];
13
+ for (var key in this.subModes) {
14
+ if (state.indexOf(key) === 0)
15
+ return this.subModes[key];
16
+ }
17
+ return null;
18
+ };
19
+ this.$tryMode = function (state, session, foldStyle, row) {
20
+ var mode = this.$getMode(state);
21
+ return (mode ? mode.getFoldWidget(session, foldStyle, row) : "");
22
+ };
23
+ this.getFoldWidget = function (session, foldStyle, row) {
24
+ return (this.$tryMode(session.getState(row - 1), session, foldStyle, row) ||
25
+ this.$tryMode(session.getState(row), session, foldStyle, row) ||
26
+ this.defaultMode.getFoldWidget(session, foldStyle, row));
27
+ };
28
+ this.getFoldWidgetRange = function (session, foldStyle, row) {
29
+ var mode = this.$getMode(session.getState(row - 1));
30
+ if (!mode || !mode.getFoldWidget(session, foldStyle, row))
31
+ mode = this.$getMode(session.getState(row));
32
+ if (!mode || !mode.getFoldWidget(session, foldStyle, row))
33
+ mode = this.defaultMode;
34
+ return mode.getFoldWidgetRange(session, foldStyle, row);
35
+ };
36
+ }).call(FoldMode.prototype);
37
+
38
+ });
39
+
40
+ 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";
41
+ var oop = require("../../lib/oop");
42
+ var Range = require("../../range").Range;
43
+ var BaseFoldMode = require("./fold_mode").FoldMode;
44
+ var FoldMode = exports.FoldMode = function (voidElements, optionalEndTags) {
45
+ BaseFoldMode.call(this);
46
+ this.voidElements = voidElements || {};
47
+ this.optionalEndTags = oop.mixin({}, this.voidElements);
48
+ if (optionalEndTags)
49
+ oop.mixin(this.optionalEndTags, optionalEndTags);
50
+ };
51
+ oop.inherits(FoldMode, BaseFoldMode);
52
+ var Tag = function () {
53
+ this.tagName = "";
54
+ this.closing = false;
55
+ this.selfClosing = false;
56
+ this.start = { row: 0, column: 0 };
57
+ this.end = { row: 0, column: 0 };
58
+ };
59
+ function is(token, type) {
60
+ return token && token.type && token.type.lastIndexOf(type + ".xml") > -1;
61
+ }
62
+ (function () {
63
+ this.getFoldWidget = function (session, foldStyle, row) {
64
+ var tag = this._getFirstTagInLine(session, row);
65
+ if (!tag)
66
+ return this.getCommentFoldWidget(session, row);
67
+ if (tag.closing || (!tag.tagName && tag.selfClosing))
68
+ return foldStyle === "markbeginend" ? "end" : "";
69
+ if (!tag.tagName || tag.selfClosing || this.voidElements.hasOwnProperty(tag.tagName.toLowerCase()))
70
+ return "";
71
+ if (this._findEndTagInLine(session, row, tag.tagName, tag.end.column))
72
+ return "";
73
+ return "start";
74
+ };
75
+ this.getCommentFoldWidget = function (session, row) {
76
+ if (/comment/.test(session.getState(row)) && /<!-/.test(session.getLine(row)))
77
+ return "start";
78
+ return "";
79
+ };
80
+ this._getFirstTagInLine = function (session, row) {
81
+ var tokens = session.getTokens(row);
82
+ var tag = new Tag();
83
+ for (var i = 0; i < tokens.length; i++) {
84
+ var token = tokens[i];
85
+ if (is(token, "tag-open")) {
86
+ tag.end.column = tag.start.column + token.value.length;
87
+ tag.closing = is(token, "end-tag-open");
88
+ token = tokens[++i];
89
+ if (!token)
90
+ return null;
91
+ tag.tagName = token.value;
92
+ if (token.value === "") { //skip empty tag name token for fragment
93
+ token = tokens[++i];
94
+ if (!token)
95
+ return null;
96
+ tag.tagName = token.value;
97
+ }
98
+ tag.end.column += token.value.length;
99
+ for (i++; i < tokens.length; i++) {
100
+ token = tokens[i];
101
+ tag.end.column += token.value.length;
102
+ if (is(token, "tag-close")) {
103
+ tag.selfClosing = token.value == '/>';
104
+ break;
105
+ }
106
+ }
107
+ return tag;
108
+ }
109
+ else if (is(token, "tag-close")) {
110
+ tag.selfClosing = token.value == '/>';
111
+ return tag;
112
+ }
113
+ tag.start.column += token.value.length;
114
+ }
115
+ return null;
116
+ };
117
+ this._findEndTagInLine = function (session, row, tagName, startColumn) {
118
+ var tokens = session.getTokens(row);
119
+ var column = 0;
120
+ for (var i = 0; i < tokens.length; i++) {
121
+ var token = tokens[i];
122
+ column += token.value.length;
123
+ if (column < startColumn - 1)
124
+ continue;
125
+ if (is(token, "end-tag-open")) {
126
+ token = tokens[i + 1];
127
+ if (is(token, "tag-name") && token.value === "") {
128
+ token = tokens[i + 2];
129
+ }
130
+ if (token && token.value == tagName)
131
+ return true;
132
+ }
133
+ }
134
+ return false;
135
+ };
136
+ this.getFoldWidgetRange = function (session, foldStyle, row) {
137
+ var firstTag = this._getFirstTagInLine(session, row);
138
+ if (!firstTag) {
139
+ return this.getCommentFoldWidget(session, row) && session.getCommentFoldRange(row, session.getLine(row).length);
140
+ }
141
+ var tags = session.getMatchingTags({ row: row, column: 0 });
142
+ if (tags) {
143
+ return new Range(tags.openTag.end.row, tags.openTag.end.column, tags.closeTag.start.row, tags.closeTag.start.column);
144
+ }
145
+ };
146
+ }).call(FoldMode.prototype);
147
+
148
+ });
149
+
150
+ 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";
151
+ var oop = require("../../lib/oop");
152
+ var Range = require("../../range").Range;
153
+ var BaseFoldMode = require("./fold_mode").FoldMode;
154
+ var FoldMode = exports.FoldMode = function (commentRegex) {
155
+ if (commentRegex) {
156
+ this.foldingStartMarker = new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/, "|" + commentRegex.start));
157
+ this.foldingStopMarker = new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/, "|" + commentRegex.end));
158
+ }
159
+ };
160
+ oop.inherits(FoldMode, BaseFoldMode);
161
+ (function () {
162
+ this.foldingStartMarker = /([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/;
163
+ this.foldingStopMarker = /^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/;
164
+ this.singleLineBlockCommentRe = /^\s*(\/\*).*\*\/\s*$/;
165
+ this.tripleStarBlockCommentRe = /^\s*(\/\*\*\*).*\*\/\s*$/;
166
+ this.startRegionRe = /^\s*(\/\*|\/\/)#?region\b/;
167
+ this._getFoldWidgetBase = this.getFoldWidget;
168
+ this.getFoldWidget = function (session, foldStyle, row) {
169
+ var line = session.getLine(row);
170
+ if (this.singleLineBlockCommentRe.test(line)) {
171
+ if (!this.startRegionRe.test(line) && !this.tripleStarBlockCommentRe.test(line))
172
+ return "";
173
+ }
174
+ var fw = this._getFoldWidgetBase(session, foldStyle, row);
175
+ if (!fw && this.startRegionRe.test(line))
176
+ return "start"; // lineCommentRegionStart
177
+ return fw;
178
+ };
179
+ this.getFoldWidgetRange = function (session, foldStyle, row, forceMultiline) {
180
+ var line = session.getLine(row);
181
+ if (this.startRegionRe.test(line))
182
+ return this.getCommentRegionBlock(session, line, row);
183
+ var match = line.match(this.foldingStartMarker);
184
+ if (match) {
185
+ var i = match.index;
186
+ if (match[1])
187
+ return this.openingBracketBlock(session, match[1], row, i);
188
+ var range = session.getCommentFoldRange(row, i + match[0].length, 1);
189
+ if (range && !range.isMultiLine()) {
190
+ if (forceMultiline) {
191
+ range = this.getSectionRange(session, row);
192
+ }
193
+ else if (foldStyle != "all")
194
+ range = null;
195
+ }
196
+ return range;
197
+ }
198
+ if (foldStyle === "markbegin")
199
+ return;
200
+ var match = line.match(this.foldingStopMarker);
201
+ if (match) {
202
+ var i = match.index + match[0].length;
203
+ if (match[1])
204
+ return this.closingBracketBlock(session, match[1], row, i);
205
+ return session.getCommentFoldRange(row, i, -1);
206
+ }
207
+ };
208
+ this.getSectionRange = function (session, row) {
209
+ var line = session.getLine(row);
210
+ var startIndent = line.search(/\S/);
211
+ var startRow = row;
212
+ var startColumn = line.length;
213
+ row = row + 1;
214
+ var endRow = row;
215
+ var maxRow = session.getLength();
216
+ while (++row < maxRow) {
217
+ line = session.getLine(row);
218
+ var indent = line.search(/\S/);
219
+ if (indent === -1)
220
+ continue;
221
+ if (startIndent > indent)
222
+ break;
223
+ var subRange = this.getFoldWidgetRange(session, "all", row);
224
+ if (subRange) {
225
+ if (subRange.start.row <= startRow) {
226
+ break;
227
+ }
228
+ else if (subRange.isMultiLine()) {
229
+ row = subRange.end.row;
230
+ }
231
+ else if (startIndent == indent) {
232
+ break;
233
+ }
234
+ }
235
+ endRow = row;
236
+ }
237
+ return new Range(startRow, startColumn, endRow, session.getLine(endRow).length);
238
+ };
239
+ this.getCommentRegionBlock = function (session, line, row) {
240
+ var startColumn = line.search(/\s*$/);
241
+ var maxRow = session.getLength();
242
+ var startRow = row;
243
+ var re = /^\s*(?:\/\*|\/\/|--)#?(end)?region\b/;
244
+ var depth = 1;
245
+ while (++row < maxRow) {
246
+ line = session.getLine(row);
247
+ var m = re.exec(line);
248
+ if (!m)
249
+ continue;
250
+ if (m[1])
251
+ depth--;
252
+ else
253
+ depth++;
254
+ if (!depth)
255
+ break;
256
+ }
257
+ var endRow = row;
258
+ if (endRow > startRow) {
259
+ return new Range(startRow, startColumn, endRow, line.length);
260
+ }
261
+ };
262
+ }).call(FoldMode.prototype);
263
+
264
+ });
265
+
266
+ 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";
267
+ var oop = require("../../lib/oop");
268
+ var MixedFoldMode = require("./mixed").FoldMode;
269
+ var XmlFoldMode = require("./xml").FoldMode;
270
+ var CStyleFoldMode = require("./cstyle").FoldMode;
271
+ var FoldMode = exports.FoldMode = function (voidElements, optionalTags) {
272
+ MixedFoldMode.call(this, new XmlFoldMode(voidElements, optionalTags), {
273
+ "js-": new CStyleFoldMode(),
274
+ "css-": new CStyleFoldMode()
275
+ });
276
+ };
277
+ oop.inherits(FoldMode, MixedFoldMode);
278
+
279
+ });
280
+
281
+ ace.define("ace/mode/behaviour/xml",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator"], function(require, exports, module){"use strict";
282
+ var oop = require("../../lib/oop");
283
+ var Behaviour = require("../behaviour").Behaviour;
284
+ var TokenIterator = require("../../token_iterator").TokenIterator;
285
+ function is(token, type) {
286
+ return token && token.type.lastIndexOf(type + ".xml") > -1;
287
+ }
288
+ var XmlBehaviour = function () {
289
+ this.add("string_dquotes", "insertion", function (state, action, editor, session, text) {
290
+ if (text == '"' || text == "'") {
291
+ var quote = text;
292
+ var selected = session.doc.getTextRange(editor.getSelectionRange());
293
+ if (selected !== "" && selected !== "'" && selected != '"' && editor.getWrapBehavioursEnabled()) {
294
+ return {
295
+ text: quote + selected + quote,
296
+ selection: false
297
+ };
298
+ }
299
+ var cursor = editor.getCursorPosition();
300
+ var line = session.doc.getLine(cursor.row);
301
+ var rightChar = line.substring(cursor.column, cursor.column + 1);
302
+ var iterator = new TokenIterator(session, cursor.row, cursor.column);
303
+ var token = iterator.getCurrentToken();
304
+ if (rightChar == quote && (is(token, "attribute-value") || is(token, "string"))) {
305
+ return {
306
+ text: "",
307
+ selection: [1, 1]
308
+ };
309
+ }
310
+ if (!token)
311
+ token = iterator.stepBackward();
312
+ if (!token)
313
+ return;
314
+ while (is(token, "tag-whitespace") || is(token, "whitespace")) {
315
+ token = iterator.stepBackward();
316
+ }
317
+ var rightSpace = !rightChar || rightChar.match(/\s/);
318
+ if (is(token, "attribute-equals") && (rightSpace || rightChar == '>') || (is(token, "decl-attribute-equals") && (rightSpace || rightChar == '?'))) {
319
+ return {
320
+ text: quote + quote,
321
+ selection: [1, 1]
322
+ };
323
+ }
324
+ }
325
+ });
326
+ this.add("string_dquotes", "deletion", function (state, action, editor, session, range) {
327
+ var selected = session.doc.getTextRange(range);
328
+ if (!range.isMultiLine() && (selected == '"' || selected == "'")) {
329
+ var line = session.doc.getLine(range.start.row);
330
+ var rightChar = line.substring(range.start.column + 1, range.start.column + 2);
331
+ if (rightChar == selected) {
332
+ range.end.column++;
333
+ return range;
334
+ }
335
+ }
336
+ });
337
+ this.add("autoclosing", "insertion", function (state, action, editor, session, text) {
338
+ if (text == '>') {
339
+ var position = editor.getSelectionRange().start;
340
+ var iterator = new TokenIterator(session, position.row, position.column);
341
+ var token = iterator.getCurrentToken() || iterator.stepBackward();
342
+ if (!token || !(is(token, "tag-name") || is(token, "tag-whitespace") || is(token, "attribute-name") || is(token, "attribute-equals") || is(token, "attribute-value")))
343
+ return;
344
+ if (is(token, "reference.attribute-value"))
345
+ return;
346
+ if (is(token, "attribute-value")) {
347
+ var tokenEndColumn = iterator.getCurrentTokenColumn() + token.value.length;
348
+ if (position.column < tokenEndColumn)
349
+ return;
350
+ if (position.column == tokenEndColumn) {
351
+ var nextToken = iterator.stepForward();
352
+ if (nextToken && is(nextToken, "attribute-value"))
353
+ return;
354
+ iterator.stepBackward();
355
+ }
356
+ }
357
+ if (/^\s*>/.test(session.getLine(position.row).slice(position.column)))
358
+ return;
359
+ while (!is(token, "tag-name")) {
360
+ token = iterator.stepBackward();
361
+ if (token.value == "<") {
362
+ token = iterator.stepForward();
363
+ break;
364
+ }
365
+ }
366
+ var tokenRow = iterator.getCurrentTokenRow();
367
+ var tokenColumn = iterator.getCurrentTokenColumn();
368
+ if (is(iterator.stepBackward(), "end-tag-open"))
369
+ return;
370
+ var element = token.value;
371
+ if (tokenRow == position.row)
372
+ element = element.substring(0, position.column - tokenColumn);
373
+ if (this.voidElements && this.voidElements.hasOwnProperty(element.toLowerCase()))
374
+ return;
375
+ return {
376
+ text: ">" + "</" + element + ">",
377
+ selection: [1, 1]
378
+ };
379
+ }
380
+ });
381
+ this.add("autoindent", "insertion", function (state, action, editor, session, text) {
382
+ if (text == "\n") {
383
+ var cursor = editor.getCursorPosition();
384
+ var line = session.getLine(cursor.row);
385
+ var iterator = new TokenIterator(session, cursor.row, cursor.column);
386
+ var token = iterator.getCurrentToken();
387
+ if (is(token, "") && token.type.indexOf("tag-close") !== -1) {
388
+ if (token.value == "/>")
389
+ return;
390
+ while (token && token.type.indexOf("tag-name") === -1) {
391
+ token = iterator.stepBackward();
392
+ }
393
+ if (!token) {
394
+ return;
395
+ }
396
+ var tag = token.value;
397
+ var row = iterator.getCurrentTokenRow();
398
+ token = iterator.stepBackward();
399
+ if (!token || token.type.indexOf("end-tag") !== -1) {
400
+ return;
401
+ }
402
+ if (this.voidElements && !this.voidElements[tag] || !this.voidElements) {
403
+ var nextToken = session.getTokenAt(cursor.row, cursor.column + 1);
404
+ var line = session.getLine(row);
405
+ var nextIndent = this.$getIndent(line);
406
+ var indent = nextIndent + session.getTabString();
407
+ if (nextToken && nextToken.value === "</") {
408
+ return {
409
+ text: "\n" + indent + "\n" + nextIndent,
410
+ selection: [1, indent.length, 1, indent.length]
411
+ };
412
+ }
413
+ else {
414
+ return {
415
+ text: "\n" + indent
416
+ };
417
+ }
418
+ }
419
+ }
420
+ }
421
+ });
422
+ };
423
+ oop.inherits(XmlBehaviour, Behaviour);
424
+ exports.XmlBehaviour = XmlBehaviour;
425
+
426
+ });
427
+
428
+ ace.define("ace/mode/html_completions",["require","exports","module","ace/token_iterator"], function(require, exports, module){"use strict";
429
+ var TokenIterator = require("../token_iterator").TokenIterator;
430
+ var commonAttributes = [
431
+ "accesskey",
432
+ "class",
433
+ "contenteditable",
434
+ "contextmenu",
435
+ "dir",
436
+ "draggable",
437
+ "dropzone",
438
+ "hidden",
439
+ "id",
440
+ "inert",
441
+ "itemid",
442
+ "itemprop",
443
+ "itemref",
444
+ "itemscope",
445
+ "itemtype",
446
+ "lang",
447
+ "spellcheck",
448
+ "style",
449
+ "tabindex",
450
+ "title",
451
+ "translate"
452
+ ];
453
+ var eventAttributes = [
454
+ "onabort",
455
+ "onblur",
456
+ "oncancel",
457
+ "oncanplay",
458
+ "oncanplaythrough",
459
+ "onchange",
460
+ "onclick",
461
+ "onclose",
462
+ "oncontextmenu",
463
+ "oncuechange",
464
+ "ondblclick",
465
+ "ondrag",
466
+ "ondragend",
467
+ "ondragenter",
468
+ "ondragleave",
469
+ "ondragover",
470
+ "ondragstart",
471
+ "ondrop",
472
+ "ondurationchange",
473
+ "onemptied",
474
+ "onended",
475
+ "onerror",
476
+ "onfocus",
477
+ "oninput",
478
+ "oninvalid",
479
+ "onkeydown",
480
+ "onkeypress",
481
+ "onkeyup",
482
+ "onload",
483
+ "onloadeddata",
484
+ "onloadedmetadata",
485
+ "onloadstart",
486
+ "onmousedown",
487
+ "onmousemove",
488
+ "onmouseout",
489
+ "onmouseover",
490
+ "onmouseup",
491
+ "onmousewheel",
492
+ "onpause",
493
+ "onplay",
494
+ "onplaying",
495
+ "onprogress",
496
+ "onratechange",
497
+ "onreset",
498
+ "onscroll",
499
+ "onseeked",
500
+ "onseeking",
501
+ "onselect",
502
+ "onshow",
503
+ "onstalled",
504
+ "onsubmit",
505
+ "onsuspend",
506
+ "ontimeupdate",
507
+ "onvolumechange",
508
+ "onwaiting"
509
+ ];
510
+ var globalAttributes = commonAttributes.concat(eventAttributes);
511
+ var attributeMap = {
512
+ "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 },
513
+ "abbr": {},
514
+ "address": {},
515
+ "area": { "shape": 1, "coords": 1, "href": 1, "hreflang": 1, "alt": 1, "target": 1, "media": 1, "rel": 1, "ping": 1, "type": 1 },
516
+ "article": { "pubdate": 1 },
517
+ "aside": {},
518
+ "audio": { "src": 1, "autobuffer": 1, "autoplay": { "autoplay": 1 }, "loop": { "loop": 1 }, "controls": { "controls": 1 }, "muted": { "muted": 1 }, "preload": { "auto": 1, "metadata": 1, "none": 1 } },
519
+ "b": {},
520
+ "base": { "href": 1, "target": 1 },
521
+ "bdi": {},
522
+ "bdo": {},
523
+ "blockquote": { "cite": 1 },
524
+ "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 },
525
+ "br": {},
526
+ "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 } },
527
+ "canvas": { "width": 1, "height": 1 },
528
+ "caption": {},
529
+ "cite": {},
530
+ "code": {},
531
+ "col": { "span": 1 },
532
+ "colgroup": { "span": 1 },
533
+ "command": { "type": 1, "label": 1, "icon": 1, "disabled": 1, "checked": 1, "radiogroup": 1, "command": 1 },
534
+ "data": {},
535
+ "datalist": {},
536
+ "dd": {},
537
+ "del": { "cite": 1, "datetime": 1 },
538
+ "details": { "open": 1 },
539
+ "dfn": {},
540
+ "dialog": { "open": 1 },
541
+ "div": {},
542
+ "dl": {},
543
+ "dt": {},
544
+ "em": {},
545
+ "embed": { "src": 1, "height": 1, "width": 1, "type": 1 },
546
+ "fieldset": { "disabled": 1, "form": 1, "name": 1 },
547
+ "figcaption": {},
548
+ "figure": {},
549
+ "footer": {},
550
+ "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 } },
551
+ "h1": {},
552
+ "h2": {},
553
+ "h3": {},
554
+ "h4": {},
555
+ "h5": {},
556
+ "h6": {},
557
+ "head": {},
558
+ "header": {},
559
+ "hr": {},
560
+ "html": { "manifest": 1 },
561
+ "i": {},
562
+ "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 } },
563
+ "img": { "alt": 1, "src": 1, "height": 1, "width": 1, "usemap": 1, "ismap": 1 },
564
+ "input": {
565
+ "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 },
566
+ "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
567
+ },
568
+ "ins": { "cite": 1, "datetime": 1 },
569
+ "kbd": {},
570
+ "keygen": { "autofocus": 1, "challenge": { "challenge": 1 }, "disabled": { "disabled": 1 }, "form": 1, "keytype": { "rsa": 1, "dsa": 1, "ec": 1 }, "name": 1 },
571
+ "label": { "form": 1, "for": 1 },
572
+ "legend": {},
573
+ "li": { "value": 1 },
574
+ "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 },
575
+ "main": {},
576
+ "map": { "name": 1 },
577
+ "mark": {},
578
+ "math": {},
579
+ "menu": { "type": 1, "label": 1 },
580
+ "meta": { "http-equiv": { "content-type": 1 }, "name": { "description": 1, "keywords": 1 }, "content": { "text/html; charset=UTF-8": 1 }, "charset": 1 },
581
+ "meter": { "value": 1, "min": 1, "max": 1, "low": 1, "high": 1, "optimum": 1 },
582
+ "nav": {},
583
+ "noscript": { "href": 1 },
584
+ "object": { "param": 1, "data": 1, "type": 1, "height": 1, "width": 1, "usemap": 1, "name": 1, "form": 1, "classid": 1 },
585
+ "ol": { "start": 1, "reversed": 1 },
586
+ "optgroup": { "disabled": 1, "label": 1 },
587
+ "option": { "disabled": 1, "selected": 1, "label": 1, "value": 1 },
588
+ "output": { "for": 1, "form": 1, "name": 1 },
589
+ "p": {},
590
+ "param": { "name": 1, "value": 1 },
591
+ "pre": {},
592
+ "progress": { "value": 1, "max": 1 },
593
+ "q": { "cite": 1 },
594
+ "rp": {},
595
+ "rt": {},
596
+ "ruby": {},
597
+ "s": {},
598
+ "samp": {},
599
+ "script": { "charset": 1, "type": { "text/javascript": 1 }, "src": 1, "defer": 1, "async": 1 },
600
+ "select": { "autofocus": 1, "disabled": 1, "form": 1, "multiple": { "multiple": 1 }, "name": 1, "size": 1, "readonly": { "readonly": 1 } },
601
+ "small": {},
602
+ "source": { "src": 1, "type": 1, "media": 1 },
603
+ "span": {},
604
+ "strong": {},
605
+ "style": { "type": 1, "media": { "all": 1, "screen": 1, "print": 1 }, "scoped": 1 },
606
+ "sub": {},
607
+ "sup": {},
608
+ "svg": {},
609
+ "table": { "summary": 1 },
610
+ "tbody": {},
611
+ "td": { "headers": 1, "rowspan": 1, "colspan": 1 },
612
+ "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 } },
613
+ "tfoot": {},
614
+ "th": { "headers": 1, "rowspan": 1, "colspan": 1, "scope": 1 },
615
+ "thead": {},
616
+ "time": { "datetime": 1 },
617
+ "title": {},
618
+ "tr": {},
619
+ "track": { "kind": 1, "src": 1, "srclang": 1, "label": 1, "default": 1 },
620
+ "section": {},
621
+ "summary": {},
622
+ "u": {},
623
+ "ul": {},
624
+ "var": {},
625
+ "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 } },
626
+ "wbr": {}
627
+ };
628
+ var elements = Object.keys(attributeMap);
629
+ function is(token, type) {
630
+ return token.type.lastIndexOf(type + ".xml") > -1;
631
+ }
632
+ function findTagName(session, pos) {
633
+ var iterator = new TokenIterator(session, pos.row, pos.column);
634
+ var token = iterator.getCurrentToken();
635
+ while (token && !is(token, "tag-name")) {
636
+ token = iterator.stepBackward();
637
+ }
638
+ if (token)
639
+ return token.value;
640
+ }
641
+ function findAttributeName(session, pos) {
642
+ var iterator = new TokenIterator(session, pos.row, pos.column);
643
+ var token = iterator.getCurrentToken();
644
+ while (token && !is(token, "attribute-name")) {
645
+ token = iterator.stepBackward();
646
+ }
647
+ if (token)
648
+ return token.value;
649
+ }
650
+ var HtmlCompletions = function () {
651
+ };
652
+ (function () {
653
+ this.getCompletions = function (state, session, pos, prefix) {
654
+ var token = session.getTokenAt(pos.row, pos.column);
655
+ if (!token)
656
+ return [];
657
+ if (is(token, "tag-name") || is(token, "tag-open") || is(token, "end-tag-open"))
658
+ return this.getTagCompletions(state, session, pos, prefix);
659
+ if (is(token, "tag-whitespace") || is(token, "attribute-name"))
660
+ return this.getAttributeCompletions(state, session, pos, prefix);
661
+ if (is(token, "attribute-value"))
662
+ return this.getAttributeValueCompletions(state, session, pos, prefix);
663
+ var line = session.getLine(pos.row).substr(0, pos.column);
664
+ if (/&[a-z]*$/i.test(line))
665
+ return this.getHTMLEntityCompletions(state, session, pos, prefix);
666
+ return [];
667
+ };
668
+ this.getTagCompletions = function (state, session, pos, prefix) {
669
+ return elements.map(function (element) {
670
+ return {
671
+ value: element,
672
+ meta: "tag",
673
+ score: 1000000
674
+ };
675
+ });
676
+ };
677
+ this.getAttributeCompletions = function (state, session, pos, prefix) {
678
+ var tagName = findTagName(session, pos);
679
+ if (!tagName)
680
+ return [];
681
+ var attributes = globalAttributes;
682
+ if (tagName in attributeMap) {
683
+ attributes = attributes.concat(Object.keys(attributeMap[tagName]));
684
+ }
685
+ return attributes.map(function (attribute) {
686
+ return {
687
+ caption: attribute,
688
+ snippet: attribute + '="$0"',
689
+ meta: "attribute",
690
+ score: 1000000
691
+ };
692
+ });
693
+ };
694
+ this.getAttributeValueCompletions = function (state, session, pos, prefix) {
695
+ var tagName = findTagName(session, pos);
696
+ var attributeName = findAttributeName(session, pos);
697
+ if (!tagName)
698
+ return [];
699
+ var values = [];
700
+ if (tagName in attributeMap && attributeName in attributeMap[tagName] && typeof attributeMap[tagName][attributeName] === "object") {
701
+ values = Object.keys(attributeMap[tagName][attributeName]);
702
+ }
703
+ return values.map(function (value) {
704
+ return {
705
+ caption: value,
706
+ snippet: value,
707
+ meta: "attribute value",
708
+ score: 1000000
709
+ };
710
+ });
711
+ };
712
+ this.getHTMLEntityCompletions = function (state, session, pos, prefix) {
713
+ 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;'];
714
+ return values.map(function (value) {
715
+ return {
716
+ caption: value,
717
+ snippet: value,
718
+ meta: "html entity",
719
+ score: 1000000
720
+ };
721
+ });
722
+ };
723
+ }).call(HtmlCompletions.prototype);
724
+ exports.HtmlCompletions = HtmlCompletions;
725
+
726
+ });
727
+
728
+ 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";
729
+ var oop = require("../lib/oop");
730
+ var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
731
+ var JsDocCommentHighlightRules = function () {
732
+ this.$rules = {
733
+ "start": [
734
+ {
735
+ token: ["comment.doc.tag", "comment.doc.text", "lparen.doc"],
736
+ regex: "(@(?:param|member|typedef|property|namespace|var|const|callback))(\\s*)({)",
737
+ push: [
738
+ {
739
+ token: "lparen.doc",
740
+ regex: "{",
741
+ push: [
742
+ {
743
+ include: "doc-syntax"
744
+ }, {
745
+ token: "rparen.doc",
746
+ regex: "}|(?=$)",
747
+ next: "pop"
748
+ }
749
+ ]
750
+ }, {
751
+ token: ["rparen.doc", "text.doc", "variable.parameter.doc", "lparen.doc", "variable.parameter.doc", "rparen.doc"],
752
+ regex: /(})(\s*)(?:([\w=:\/\.]+)|(?:(\[)([\w=:\/\.\-\'\" ]+)(\])))/,
753
+ next: "pop"
754
+ }, {
755
+ token: "rparen.doc",
756
+ regex: "}|(?=$)",
757
+ next: "pop"
758
+ }, {
759
+ include: "doc-syntax"
760
+ }, {
761
+ defaultToken: "text.doc"
762
+ }
763
+ ]
764
+ }, {
765
+ token: ["comment.doc.tag", "text.doc", "lparen.doc"],
766
+ regex: "(@(?:returns?|yields|type|this|suppress|public|protected|private|package|modifies|"
767
+ + "implements|external|exception|throws|enum|define|extends))(\\s*)({)",
768
+ push: [
769
+ {
770
+ token: "lparen.doc",
771
+ regex: "{",
772
+ push: [
773
+ {
774
+ include: "doc-syntax"
775
+ }, {
776
+ token: "rparen.doc",
777
+ regex: "}|(?=$)",
778
+ next: "pop"
779
+ }
780
+ ]
781
+ }, {
782
+ token: "rparen.doc",
783
+ regex: "}|(?=$)",
784
+ next: "pop"
785
+ }, {
786
+ include: "doc-syntax"
787
+ }, {
788
+ defaultToken: "text.doc"
789
+ }
790
+ ]
791
+ }, {
792
+ token: ["comment.doc.tag", "text.doc", "variable.parameter.doc"],
793
+ regex: "(@(?:alias|memberof|instance|module|name|lends|namespace|external|this|template|"
794
+ + "requires|param|implements|function|extends|typedef|mixes|constructor|var|"
795
+ + "memberof\\!|event|listens|exports|class|constructs|interface|emits|fires|"
796
+ + "throws|const|callback|borrows|augments))(\\s+)(\\w[\\w#\.:\/~\"\\-]*)?"
797
+ }, {
798
+ token: ["comment.doc.tag", "text.doc", "variable.parameter.doc"],
799
+ regex: "(@method)(\\s+)(\\w[\\w\.\\(\\)]*)"
800
+ }, {
801
+ token: "comment.doc.tag",
802
+ regex: "@access\\s+(?:private|public|protected)"
803
+ }, {
804
+ token: "comment.doc.tag",
805
+ regex: "@kind\\s+(?:class|constant|event|external|file|function|member|mixin|module|namespace|typedef)"
806
+ }, {
807
+ token: "comment.doc.tag",
808
+ regex: "@\\w+(?=\\s|$)"
809
+ },
810
+ JsDocCommentHighlightRules.getTagRule(),
811
+ {
812
+ defaultToken: "comment.doc.body",
813
+ caseInsensitive: true
814
+ }
815
+ ],
816
+ "doc-syntax": [{
817
+ token: "operator.doc",
818
+ regex: /[|:]/
819
+ }, {
820
+ token: "paren.doc",
821
+ regex: /[\[\]]/
822
+ }]
823
+ };
824
+ this.normalizeRules();
825
+ };
826
+ oop.inherits(JsDocCommentHighlightRules, TextHighlightRules);
827
+ JsDocCommentHighlightRules.getTagRule = function (start) {
828
+ return {
829
+ token: "comment.doc.tag.storage.type",
830
+ regex: "\\b(?:TODO|FIXME|XXX|HACK)\\b"
831
+ };
832
+ };
833
+ JsDocCommentHighlightRules.getStartRule = function (start) {
834
+ return {
835
+ token: "comment.doc", // doc comment
836
+ regex: /\/\*\*(?!\/)/,
837
+ next: start
838
+ };
839
+ };
840
+ JsDocCommentHighlightRules.getEndRule = function (start) {
841
+ return {
842
+ token: "comment.doc", // closing comment
843
+ regex: "\\*\\/",
844
+ next: start
845
+ };
846
+ };
847
+ exports.JsDocCommentHighlightRules = JsDocCommentHighlightRules;
848
+
849
+ });
850
+
851
+ 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";
852
+ var oop = require("../lib/oop");
853
+ var DocCommentHighlightRules = require("./jsdoc_comment_highlight_rules").JsDocCommentHighlightRules;
854
+ var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
855
+ var identifierRe = "[a-zA-Z\\$_\u00a1-\uffff][a-zA-Z\\d\\$_\u00a1-\uffff]*";
856
+ var JavaScriptHighlightRules = function (options) {
857
+ var keywords = {
858
+ "variable.language": "Array|Boolean|Date|Function|Iterator|Number|Object|RegExp|String|Proxy|Symbol|" + // Constructors
859
+ "Namespace|QName|XML|XMLList|" + // E4X
860
+ "ArrayBuffer|Float32Array|Float64Array|Int16Array|Int32Array|Int8Array|" +
861
+ "Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray|" +
862
+ "Error|EvalError|InternalError|RangeError|ReferenceError|StopIteration|" + // Errors
863
+ "SyntaxError|TypeError|URIError|" +
864
+ "decodeURI|decodeURIComponent|encodeURI|encodeURIComponent|eval|isFinite|" + // Non-constructor functions
865
+ "isNaN|parseFloat|parseInt|" +
866
+ "JSON|Math|" + // Other
867
+ "this|arguments|prototype|window|document", // Pseudo
868
+ "keyword": "const|yield|import|get|set|async|await|" +
869
+ "break|case|catch|continue|default|delete|do|else|finally|for|" +
870
+ "if|in|of|instanceof|new|return|switch|throw|try|typeof|let|var|while|with|debugger|" +
871
+ "__parent__|__count__|escape|unescape|with|__proto__|" +
872
+ "class|enum|extends|super|export|implements|private|public|interface|package|protected|static|constructor",
873
+ "storage.type": "const|let|var|function",
874
+ "constant.language": "null|Infinity|NaN|undefined",
875
+ "support.function": "alert",
876
+ "constant.language.boolean": "true|false"
877
+ };
878
+ var keywordMapper = this.createKeywordMapper(keywords, "identifier");
879
+ var kwBeforeRe = "case|do|else|finally|in|instanceof|return|throw|try|typeof|yield|void";
880
+ var escapedRe = "\\\\(?:x[0-9a-fA-F]{2}|" + // hex
881
+ "u[0-9a-fA-F]{4}|" + // unicode
882
+ "u{[0-9a-fA-F]{1,6}}|" + // es6 unicode
883
+ "[0-2][0-7]{0,2}|" + // oct
884
+ "3[0-7][0-7]?|" + // oct
885
+ "[4-7][0-7]?|" + //oct
886
+ ".)";
887
+ var anonymousFunctionRe = "(function)(\\s*)(\\*?)";
888
+ var functionCallStartRule = {
889
+ token: ["identifier", "text", "paren.lparen"],
890
+ regex: "(\\b(?!" + Object.values(keywords).join("|") + "\\b)" + identifierRe + ")(\\s*)(\\()"
891
+ };
892
+ this.$rules = {
893
+ "no_regex": [
894
+ DocCommentHighlightRules.getStartRule("doc-start"),
895
+ comments("no_regex"),
896
+ functionCallStartRule,
897
+ {
898
+ token: "string",
899
+ regex: "'(?=.)",
900
+ next: "qstring"
901
+ }, {
902
+ token: "string",
903
+ regex: '"(?=.)',
904
+ next: "qqstring"
905
+ }, {
906
+ include: "numeric_constants"
907
+ }, {
908
+ token: [
909
+ "entity.name.function", "text", "keyword.operator", "text", "storage.type",
910
+ "text", "storage.type", "text", "paren.lparen"
911
+ ],
912
+ regex: "(" + identifierRe + ")(\\s*)(=)(\\s*)" + anonymousFunctionRe + "(\\s*)(\\()",
913
+ next: "function_arguments"
914
+ }, {
915
+ token: [
916
+ "storage.type", "text", "storage.type", "text", "text", "entity.name.function", "text", "paren.lparen"
917
+ ],
918
+ regex: "(function)(?:(?:(\\s*)(\\*)(\\s*))|(\\s+))(" + identifierRe + ")(\\s*)(\\()",
919
+ next: "function_arguments"
920
+ }, {
921
+ token: [
922
+ "entity.name.function", "text", "punctuation.operator",
923
+ "text", "storage.type", "text", "storage.type", "text", "paren.lparen"
924
+ ],
925
+ regex: "(" + identifierRe + ")(\\s*)(:)(\\s*)" + anonymousFunctionRe + "(\\s*)(\\()",
926
+ next: "function_arguments"
927
+ }, {
928
+ token: [
929
+ "text", "text", "storage.type", "text", "storage.type", "text", "paren.lparen"
930
+ ],
931
+ regex: "(:)(\\s*)" + anonymousFunctionRe + "(\\s*)(\\()",
932
+ next: "function_arguments"
933
+ }, {
934
+ token: "keyword",
935
+ regex: "from(?=\\s*('|\"))"
936
+ }, {
937
+ token: "keyword",
938
+ regex: "(?:" + kwBeforeRe + ")\\b",
939
+ next: "start"
940
+ }, {
941
+ token: "support.constant",
942
+ regex: /that\b/
943
+ }, {
944
+ token: ["storage.type", "punctuation.operator", "support.function.firebug"],
945
+ regex: /(console)(\.)(warn|info|log|error|debug|time|trace|timeEnd|assert)\b/
946
+ }, {
947
+ token: keywordMapper,
948
+ regex: identifierRe
949
+ }, {
950
+ token: "punctuation.operator",
951
+ regex: /[.](?![.])/,
952
+ next: "property"
953
+ }, {
954
+ token: "storage.type",
955
+ regex: /=>/,
956
+ next: "start"
957
+ }, {
958
+ token: "keyword.operator",
959
+ regex: /--|\+\+|\.{3}|===|==|=|!=|!==|<+=?|>+=?|!|&&|\|\||\?:|[!$%&*+\-~\/^]=?/,
960
+ next: "start"
961
+ }, {
962
+ token: "punctuation.operator",
963
+ regex: /[?:,;.]/,
964
+ next: "start"
965
+ }, {
966
+ token: "paren.lparen",
967
+ regex: /[\[({]/,
968
+ next: "start"
969
+ }, {
970
+ token: "paren.rparen",
971
+ regex: /[\])}]/
972
+ }, {
973
+ token: "comment",
974
+ regex: /^#!.*$/
975
+ }
976
+ ],
977
+ property: [{
978
+ token: "text",
979
+ regex: "\\s+"
980
+ }, {
981
+ token: "keyword.operator",
982
+ regex: /=/
983
+ }, {
984
+ token: [
985
+ "storage.type", "text", "storage.type", "text", "paren.lparen"
986
+ ],
987
+ regex: anonymousFunctionRe + "(\\s*)(\\()",
988
+ next: "function_arguments"
989
+ }, {
990
+ token: [
991
+ "storage.type", "text", "storage.type", "text", "text", "entity.name.function", "text", "paren.lparen"
992
+ ],
993
+ regex: "(function)(?:(?:(\\s*)(\\*)(\\s*))|(\\s+))(\\w+)(\\s*)(\\()",
994
+ next: "function_arguments"
995
+ }, {
996
+ token: "punctuation.operator",
997
+ regex: /[.](?![.])/
998
+ }, {
999
+ token: "support.function",
1000
+ regex: "prototype"
1001
+ }, {
1002
+ token: "support.function",
1003
+ 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(?=\()/
1004
+ }, {
1005
+ token: "support.function.dom",
1006
+ 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(?=\()/
1007
+ }, {
1008
+ token: "support.constant",
1009
+ 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/
1010
+ }, {
1011
+ token: "identifier",
1012
+ regex: identifierRe
1013
+ }, {
1014
+ regex: "",
1015
+ token: "empty",
1016
+ next: "no_regex"
1017
+ }
1018
+ ],
1019
+ "start": [
1020
+ DocCommentHighlightRules.getStartRule("doc-start"),
1021
+ comments("start"),
1022
+ {
1023
+ token: "string.regexp",
1024
+ regex: "\\/",
1025
+ next: "regex"
1026
+ }, {
1027
+ token: "text",
1028
+ regex: "\\s+|^$",
1029
+ next: "start"
1030
+ }, {
1031
+ token: "empty",
1032
+ regex: "",
1033
+ next: "no_regex"
1034
+ }
1035
+ ],
1036
+ "regex": [
1037
+ {
1038
+ token: "regexp.keyword.operator",
1039
+ regex: "\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"
1040
+ }, {
1041
+ token: "string.regexp",
1042
+ regex: "/[sxngimy]*",
1043
+ next: "no_regex"
1044
+ }, {
1045
+ token: "invalid",
1046
+ regex: /\{\d+\b,?\d*\}[+*]|[+*$^?][+*]|[$^][?]|\?{3,}/
1047
+ }, {
1048
+ token: "constant.language.escape",
1049
+ regex: /\(\?[:=!]|\)|\{\d+\b,?\d*\}|[+*]\?|[()$^+*?.]/
1050
+ }, {
1051
+ token: "constant.language.delimiter",
1052
+ regex: /\|/
1053
+ }, {
1054
+ token: "constant.language.escape",
1055
+ regex: /\[\^?/,
1056
+ next: "regex_character_class"
1057
+ }, {
1058
+ token: "empty",
1059
+ regex: "$",
1060
+ next: "no_regex"
1061
+ }, {
1062
+ defaultToken: "string.regexp"
1063
+ }
1064
+ ],
1065
+ "regex_character_class": [
1066
+ {
1067
+ token: "regexp.charclass.keyword.operator",
1068
+ regex: "\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"
1069
+ }, {
1070
+ token: "constant.language.escape",
1071
+ regex: "]",
1072
+ next: "regex"
1073
+ }, {
1074
+ token: "constant.language.escape",
1075
+ regex: "-"
1076
+ }, {
1077
+ token: "empty",
1078
+ regex: "$",
1079
+ next: "no_regex"
1080
+ }, {
1081
+ defaultToken: "string.regexp.charachterclass"
1082
+ }
1083
+ ],
1084
+ "default_parameter": [
1085
+ {
1086
+ token: "string",
1087
+ regex: "'(?=.)",
1088
+ push: [
1089
+ {
1090
+ token: "string",
1091
+ regex: "'|$",
1092
+ next: "pop"
1093
+ }, {
1094
+ include: "qstring"
1095
+ }
1096
+ ]
1097
+ }, {
1098
+ token: "string",
1099
+ regex: '"(?=.)',
1100
+ push: [
1101
+ {
1102
+ token: "string",
1103
+ regex: '"|$',
1104
+ next: "pop"
1105
+ }, {
1106
+ include: "qqstring"
1107
+ }
1108
+ ]
1109
+ }, {
1110
+ token: "constant.language",
1111
+ regex: "null|Infinity|NaN|undefined"
1112
+ }, {
1113
+ include: "numeric_constants"
1114
+ }, {
1115
+ token: "punctuation.operator",
1116
+ regex: ",",
1117
+ next: "function_arguments"
1118
+ }, {
1119
+ token: "text",
1120
+ regex: "\\s+"
1121
+ }, {
1122
+ token: "punctuation.operator",
1123
+ regex: "$"
1124
+ }, {
1125
+ token: "empty",
1126
+ regex: "",
1127
+ next: "no_regex"
1128
+ }
1129
+ ],
1130
+ "function_arguments": [
1131
+ comments("function_arguments"),
1132
+ {
1133
+ token: "variable.parameter",
1134
+ regex: identifierRe
1135
+ }, {
1136
+ token: "punctuation.operator",
1137
+ regex: ","
1138
+ }, {
1139
+ token: "text",
1140
+ regex: "\\s+"
1141
+ }, {
1142
+ token: "punctuation.operator",
1143
+ regex: "$"
1144
+ }, {
1145
+ token: "empty",
1146
+ regex: "",
1147
+ next: "no_regex"
1148
+ }
1149
+ ],
1150
+ "qqstring": [
1151
+ {
1152
+ token: "constant.language.escape",
1153
+ regex: escapedRe
1154
+ }, {
1155
+ token: "string",
1156
+ regex: "\\\\$",
1157
+ consumeLineEnd: true
1158
+ }, {
1159
+ token: "string",
1160
+ regex: '"|$',
1161
+ next: "no_regex"
1162
+ }, {
1163
+ defaultToken: "string"
1164
+ }
1165
+ ],
1166
+ "qstring": [
1167
+ {
1168
+ token: "constant.language.escape",
1169
+ regex: escapedRe
1170
+ }, {
1171
+ token: "string",
1172
+ regex: "\\\\$",
1173
+ consumeLineEnd: true
1174
+ }, {
1175
+ token: "string",
1176
+ regex: "'|$",
1177
+ next: "no_regex"
1178
+ }, {
1179
+ defaultToken: "string"
1180
+ }
1181
+ ],
1182
+ "numeric_constants": [
1183
+ {
1184
+ token: "constant.numeric", // hexadecimal, octal and binary
1185
+ regex: /0(?:[xX][0-9a-fA-F_]+|[oO][0-7_]+|[bB][01_]+)\b/
1186
+ }, {
1187
+ token: "constant.numeric", // decimal integers and floats
1188
+ regex: /(?:\d[\d_]*(?:\.[\d_]*)?|\.\d[\d_]*)(?:[eE][+-]?\d+\b)?/
1189
+ },
1190
+ ]
1191
+ };
1192
+ if (!options || !options.noES6) {
1193
+ this.$rules.no_regex.unshift({
1194
+ regex: "[{}]", onMatch: function (val, state, stack) {
1195
+ this.next = val == "{" ? this.nextState : "";
1196
+ if (val == "{" && stack.length) {
1197
+ stack.unshift("start", state);
1198
+ }
1199
+ else if (val == "}" && stack.length) {
1200
+ stack.shift();
1201
+ this.next = stack.shift();
1202
+ if (this.next.indexOf("string") != -1 || this.next.indexOf("jsx") != -1)
1203
+ return "paren.quasi.end";
1204
+ }
1205
+ return val == "{" ? "paren.lparen" : "paren.rparen";
1206
+ },
1207
+ nextState: "start"
1208
+ }, {
1209
+ token: "string.quasi.start",
1210
+ regex: /`/,
1211
+ push: [{
1212
+ token: "constant.language.escape",
1213
+ regex: escapedRe
1214
+ }, {
1215
+ token: "paren.quasi.start",
1216
+ regex: /\${/,
1217
+ push: "start"
1218
+ }, {
1219
+ token: "string.quasi.end",
1220
+ regex: /`/,
1221
+ next: "pop"
1222
+ }, {
1223
+ defaultToken: "string.quasi"
1224
+ }]
1225
+ }, {
1226
+ token: ["variable.parameter", "text"],
1227
+ regex: "(" + identifierRe + ")(\\s*)(?=\\=>)"
1228
+ }, {
1229
+ token: "paren.lparen",
1230
+ regex: "(\\()(?=[^\\(]+\\s*=>)",
1231
+ next: "function_arguments"
1232
+ }, {
1233
+ token: "variable.language",
1234
+ regex: "(?:(?:(?:Weak)?(?:Set|Map))|Promise)\\b"
1235
+ });
1236
+ this.$rules["function_arguments"].unshift({
1237
+ token: "keyword.operator",
1238
+ regex: "=",
1239
+ next: "default_parameter"
1240
+ }, {
1241
+ token: "keyword.operator",
1242
+ regex: "\\.{3}"
1243
+ });
1244
+ this.$rules["property"].unshift({
1245
+ token: "support.function",
1246
+ regex: "(findIndex|repeat|startsWith|endsWith|includes|isSafeInteger|trunc|cbrt|log2|log10|sign|then|catch|"
1247
+ + "finally|resolve|reject|race|any|all|allSettled|keys|entries|isInteger)\\b(?=\\()"
1248
+ }, {
1249
+ token: "constant.language",
1250
+ regex: "(?:MAX_SAFE_INTEGER|MIN_SAFE_INTEGER|EPSILON)\\b"
1251
+ });
1252
+ if (!options || options.jsx != false)
1253
+ JSX.call(this);
1254
+ }
1255
+ this.embedRules(DocCommentHighlightRules, "doc-", [DocCommentHighlightRules.getEndRule("no_regex")]);
1256
+ this.normalizeRules();
1257
+ };
1258
+ oop.inherits(JavaScriptHighlightRules, TextHighlightRules);
1259
+ function JSX() {
1260
+ var tagRegex = identifierRe.replace("\\d", "\\d\\-");
1261
+ var jsxTag = {
1262
+ onMatch: function (val, state, stack) {
1263
+ var offset = val.charAt(1) == "/" ? 2 : 1;
1264
+ if (offset == 1) {
1265
+ if (state != this.nextState)
1266
+ stack.unshift(this.next, this.nextState, 0);
1267
+ else
1268
+ stack.unshift(this.next);
1269
+ stack[2]++;
1270
+ }
1271
+ else if (offset == 2) {
1272
+ if (state == this.nextState) {
1273
+ stack[1]--;
1274
+ if (!stack[1] || stack[1] < 0) {
1275
+ stack.shift();
1276
+ stack.shift();
1277
+ }
1278
+ }
1279
+ }
1280
+ return [{
1281
+ type: "meta.tag.punctuation." + (offset == 1 ? "" : "end-") + "tag-open.xml",
1282
+ value: val.slice(0, offset)
1283
+ }, {
1284
+ type: "meta.tag.tag-name.xml",
1285
+ value: val.substr(offset)
1286
+ }];
1287
+ },
1288
+ regex: "</?(?:" + tagRegex + "|(?=>))",
1289
+ next: "jsxAttributes",
1290
+ nextState: "jsx"
1291
+ };
1292
+ this.$rules.start.unshift(jsxTag);
1293
+ var jsxJsRule = {
1294
+ regex: "{",
1295
+ token: "paren.quasi.start",
1296
+ push: "start"
1297
+ };
1298
+ this.$rules.jsx = [
1299
+ jsxJsRule,
1300
+ jsxTag,
1301
+ { include: "reference" }, { defaultToken: "string.xml" }
1302
+ ];
1303
+ this.$rules.jsxAttributes = [{
1304
+ token: "meta.tag.punctuation.tag-close.xml",
1305
+ regex: "/?>",
1306
+ onMatch: function (value, currentState, stack) {
1307
+ if (currentState == stack[0])
1308
+ stack.shift();
1309
+ if (value.length == 2) {
1310
+ if (stack[0] == this.nextState)
1311
+ stack[1]--;
1312
+ if (!stack[1] || stack[1] < 0) {
1313
+ stack.splice(0, 2);
1314
+ }
1315
+ }
1316
+ this.next = stack[0] || "start";
1317
+ return [{ type: this.token, value: value }];
1318
+ },
1319
+ nextState: "jsx"
1320
+ },
1321
+ jsxJsRule,
1322
+ comments("jsxAttributes"),
1323
+ {
1324
+ token: "entity.other.attribute-name.xml",
1325
+ regex: tagRegex
1326
+ }, {
1327
+ token: "keyword.operator.attribute-equals.xml",
1328
+ regex: "="
1329
+ }, {
1330
+ token: "text.tag-whitespace.xml",
1331
+ regex: "\\s+"
1332
+ }, {
1333
+ token: "string.attribute-value.xml",
1334
+ regex: "'",
1335
+ stateName: "jsx_attr_q",
1336
+ push: [
1337
+ { token: "string.attribute-value.xml", regex: "'", next: "pop" },
1338
+ { include: "reference" },
1339
+ { defaultToken: "string.attribute-value.xml" }
1340
+ ]
1341
+ }, {
1342
+ token: "string.attribute-value.xml",
1343
+ regex: '"',
1344
+ stateName: "jsx_attr_qq",
1345
+ push: [
1346
+ { token: "string.attribute-value.xml", regex: '"', next: "pop" },
1347
+ { include: "reference" },
1348
+ { defaultToken: "string.attribute-value.xml" }
1349
+ ]
1350
+ },
1351
+ jsxTag
1352
+ ];
1353
+ this.$rules.reference = [{
1354
+ token: "constant.language.escape.reference.xml",
1355
+ regex: "(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"
1356
+ }];
1357
+ }
1358
+ function comments(next) {
1359
+ return [
1360
+ {
1361
+ token: "comment", // multi line comment
1362
+ regex: /\/\*/,
1363
+ next: [
1364
+ DocCommentHighlightRules.getTagRule(),
1365
+ { token: "comment", regex: "\\*\\/", next: next || "pop" },
1366
+ { defaultToken: "comment", caseInsensitive: true }
1367
+ ]
1368
+ }, {
1369
+ token: "comment",
1370
+ regex: "\\/\\/",
1371
+ next: [
1372
+ DocCommentHighlightRules.getTagRule(),
1373
+ { token: "comment", regex: "$|^", next: next || "pop" },
1374
+ { defaultToken: "comment", caseInsensitive: true }
1375
+ ]
1376
+ }
1377
+ ];
1378
+ }
1379
+ exports.JavaScriptHighlightRules = JavaScriptHighlightRules;
1380
+
1381
+ });
1382
+
1383
+ ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"], function(require, exports, module){"use strict";
1384
+ var Range = require("../range").Range;
1385
+ var MatchingBraceOutdent = function () { };
1386
+ (function () {
1387
+ this.checkOutdent = function (line, input) {
1388
+ if (!/^\s+$/.test(line))
1389
+ return false;
1390
+ return /^\s*\}/.test(input);
1391
+ };
1392
+ this.autoOutdent = function (doc, row) {
1393
+ var line = doc.getLine(row);
1394
+ var match = line.match(/^(\s*\})/);
1395
+ if (!match)
1396
+ return 0;
1397
+ var column = match[1].length;
1398
+ var openBracePos = doc.findMatchingBracket({ row: row, column: column });
1399
+ if (!openBracePos || openBracePos.row == row)
1400
+ return 0;
1401
+ var indent = this.$getIndent(doc.getLine(openBracePos.row));
1402
+ doc.replace(new Range(row, 0, row, column - 1), indent);
1403
+ };
1404
+ this.$getIndent = function (line) {
1405
+ return line.match(/^\s*/)[0];
1406
+ };
1407
+ }).call(MatchingBraceOutdent.prototype);
1408
+ exports.MatchingBraceOutdent = MatchingBraceOutdent;
1409
+
1410
+ });
1411
+
1412
+ 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";
1413
+ var oop = require("../../lib/oop");
1414
+ var TokenIterator = require("../../token_iterator").TokenIterator;
1415
+ var CstyleBehaviour = require("../behaviour/cstyle").CstyleBehaviour;
1416
+ var XmlBehaviour = require("../behaviour/xml").XmlBehaviour;
1417
+ var JavaScriptBehaviour = function () {
1418
+ var xmlBehaviours = new XmlBehaviour({ closeCurlyBraces: true }).getBehaviours();
1419
+ this.addBehaviours(xmlBehaviours);
1420
+ this.inherit(CstyleBehaviour);
1421
+ this.add("autoclosing-fragment", "insertion", function (state, action, editor, session, text) {
1422
+ if (text == '>') {
1423
+ var position = editor.getSelectionRange().start;
1424
+ var iterator = new TokenIterator(session, position.row, position.column);
1425
+ var token = iterator.getCurrentToken() || iterator.stepBackward();
1426
+ if (!token)
1427
+ return;
1428
+ if (token.value == '<') {
1429
+ return {
1430
+ text: "></>",
1431
+ selection: [1, 1]
1432
+ };
1433
+ }
1434
+ }
1435
+ });
1436
+ };
1437
+ oop.inherits(JavaScriptBehaviour, CstyleBehaviour);
1438
+ exports.JavaScriptBehaviour = JavaScriptBehaviour;
1439
+
1440
+ });
1441
+
1442
+ 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";
1443
+ var oop = require("../../lib/oop");
1444
+ var XmlFoldMode = require("./xml").FoldMode;
1445
+ var CFoldMode = require("./cstyle").FoldMode;
1446
+ var FoldMode = exports.FoldMode = function (commentRegex) {
1447
+ if (commentRegex) {
1448
+ this.foldingStartMarker = new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/, "|" + commentRegex.start));
1449
+ this.foldingStopMarker = new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/, "|" + commentRegex.end));
1450
+ }
1451
+ this.xmlFoldMode = new XmlFoldMode();
1452
+ };
1453
+ oop.inherits(FoldMode, CFoldMode);
1454
+ (function () {
1455
+ this.getFoldWidgetRangeBase = this.getFoldWidgetRange;
1456
+ this.getFoldWidgetBase = this.getFoldWidget;
1457
+ this.getFoldWidget = function (session, foldStyle, row) {
1458
+ var fw = this.getFoldWidgetBase(session, foldStyle, row);
1459
+ if (!fw) {
1460
+ return this.xmlFoldMode.getFoldWidget(session, foldStyle, row);
1461
+ }
1462
+ return fw;
1463
+ };
1464
+ this.getFoldWidgetRange = function (session, foldStyle, row, forceMultiline) {
1465
+ var range = this.getFoldWidgetRangeBase(session, foldStyle, row, forceMultiline);
1466
+ if (range)
1467
+ return range;
1468
+ return this.xmlFoldMode.getFoldWidgetRange(session, foldStyle, row);
1469
+ };
1470
+ }).call(FoldMode.prototype);
1471
+
1472
+ });
1473
+
1474
+ 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";
1475
+ var oop = require("../lib/oop");
1476
+ var TextMode = require("./text").Mode;
1477
+ var JavaScriptHighlightRules = require("./javascript_highlight_rules").JavaScriptHighlightRules;
1478
+ var MatchingBraceOutdent = require("./matching_brace_outdent").MatchingBraceOutdent;
1479
+ var WorkerClient = require("../worker/worker_client").WorkerClient;
1480
+ var JavaScriptBehaviour = require("./behaviour/javascript").JavaScriptBehaviour;
1481
+ var JavaScriptFoldMode = require("./folding/javascript").FoldMode;
1482
+ var Mode = function () {
1483
+ this.HighlightRules = JavaScriptHighlightRules;
1484
+ this.$outdent = new MatchingBraceOutdent();
1485
+ this.$behaviour = new JavaScriptBehaviour();
1486
+ this.foldingRules = new JavaScriptFoldMode();
1487
+ };
1488
+ oop.inherits(Mode, TextMode);
1489
+ (function () {
1490
+ this.lineCommentStart = "//";
1491
+ this.blockComment = { start: "/*", end: "*/" };
1492
+ this.$quotes = { '"': '"', "'": "'", "`": "`" };
1493
+ this.$pairQuotesAfter = {
1494
+ "`": /\w/
1495
+ };
1496
+ this.getNextLineIndent = function (state, line, tab) {
1497
+ var indent = this.$getIndent(line);
1498
+ var tokenizedLine = this.getTokenizer().getLineTokens(line, state);
1499
+ var tokens = tokenizedLine.tokens;
1500
+ var endState = tokenizedLine.state;
1501
+ if (tokens.length && tokens[tokens.length - 1].type == "comment") {
1502
+ return indent;
1503
+ }
1504
+ if (state == "start" || state == "no_regex") {
1505
+ var match = line.match(/^.*(?:\bcase\b.*:|[\{\(\[])\s*$/);
1506
+ if (match) {
1507
+ indent += tab;
1508
+ }
1509
+ }
1510
+ else if (state == "doc-start") {
1511
+ if (endState == "start" || endState == "no_regex") {
1512
+ return "";
1513
+ }
1514
+ }
1515
+ return indent;
1516
+ };
1517
+ this.checkOutdent = function (state, line, input) {
1518
+ return this.$outdent.checkOutdent(line, input);
1519
+ };
1520
+ this.autoOutdent = function (state, doc, row) {
1521
+ this.$outdent.autoOutdent(doc, row);
1522
+ };
1523
+ this.createWorker = function (session) {
1524
+ var worker = new WorkerClient(["ace"], "ace/mode/javascript_worker", "JavaScriptWorker");
1525
+ worker.attachToDocument(session.getDocument());
1526
+ worker.on("annotate", function (results) {
1527
+ session.setAnnotations(results.data);
1528
+ });
1529
+ worker.on("terminate", function () {
1530
+ session.clearAnnotations();
1531
+ });
1532
+ return worker;
1533
+ };
1534
+ this.$id = "ace/mode/javascript";
1535
+ this.snippetFileId = "ace/snippets/javascript";
1536
+ }).call(Mode.prototype);
1537
+ exports.Mode = Mode;
1538
+
1539
+ });
1540
+
1541
+ 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";
1542
+ var oop = require("../lib/oop");
1543
+ var lang = require("../lib/lang");
1544
+ var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
1545
+ 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";
1546
+ var supportFunction = exports.supportFunction = "rgb|rgba|url|attr|counter|counters";
1547
+ 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";
1548
+ 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";
1549
+ 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";
1550
+ var numRe = exports.numRe = "\\-?(?:(?:[0-9]+(?:\\.[0-9]+)?)|(?:\\.[0-9]+))";
1551
+ var pseudoElements = exports.pseudoElements = "(\\:+)\\b(after|before|first-letter|first-line|moz-selection|selection)\\b";
1552
+ 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";
1553
+ var CssHighlightRules = function () {
1554
+ var keywordMapper = this.createKeywordMapper({
1555
+ "support.function": supportFunction,
1556
+ "support.constant": supportConstant,
1557
+ "support.type": supportType,
1558
+ "support.constant.color": supportConstantColor,
1559
+ "support.constant.fonts": supportConstantFonts
1560
+ }, "text", true);
1561
+ this.$rules = {
1562
+ "start": [{
1563
+ include: ["strings", "url", "comments"]
1564
+ }, {
1565
+ token: "paren.lparen",
1566
+ regex: "\\{",
1567
+ next: "ruleset"
1568
+ }, {
1569
+ token: "paren.rparen",
1570
+ regex: "\\}"
1571
+ }, {
1572
+ token: "string",
1573
+ regex: "@(?!viewport)",
1574
+ next: "media"
1575
+ }, {
1576
+ token: "keyword",
1577
+ regex: "#[a-z0-9-_]+"
1578
+ }, {
1579
+ token: "keyword",
1580
+ regex: "%"
1581
+ }, {
1582
+ token: "variable",
1583
+ regex: "\\.[a-z0-9-_]+"
1584
+ }, {
1585
+ token: "string",
1586
+ regex: ":[a-z0-9-_]+"
1587
+ }, {
1588
+ token: "constant.numeric",
1589
+ regex: numRe
1590
+ }, {
1591
+ token: "constant",
1592
+ regex: "[a-z0-9-_]+"
1593
+ }, {
1594
+ caseInsensitive: true
1595
+ }],
1596
+ "media": [{
1597
+ include: ["strings", "url", "comments"]
1598
+ }, {
1599
+ token: "paren.lparen",
1600
+ regex: "\\{",
1601
+ next: "start"
1602
+ }, {
1603
+ token: "paren.rparen",
1604
+ regex: "\\}",
1605
+ next: "start"
1606
+ }, {
1607
+ token: "string",
1608
+ regex: ";",
1609
+ next: "start"
1610
+ }, {
1611
+ token: "keyword",
1612
+ regex: "(?:media|supports|document|charset|import|namespace|media|supports|document"
1613
+ + "|page|font|keyframes|viewport|counter-style|font-feature-values"
1614
+ + "|swash|ornaments|annotation|stylistic|styleset|character-variant)"
1615
+ }],
1616
+ "comments": [{
1617
+ token: "comment", // multi line comment
1618
+ regex: "\\/\\*",
1619
+ push: [{
1620
+ token: "comment",
1621
+ regex: "\\*\\/",
1622
+ next: "pop"
1623
+ }, {
1624
+ defaultToken: "comment"
1625
+ }]
1626
+ }],
1627
+ "ruleset": [{
1628
+ regex: "-(webkit|ms|moz|o)-",
1629
+ token: "text"
1630
+ }, {
1631
+ token: "punctuation.operator",
1632
+ regex: "[:;]"
1633
+ }, {
1634
+ token: "paren.rparen",
1635
+ regex: "\\}",
1636
+ next: "start"
1637
+ }, {
1638
+ include: ["strings", "url", "comments"]
1639
+ }, {
1640
+ token: ["constant.numeric", "keyword"],
1641
+ 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|%)"
1642
+ }, {
1643
+ token: "constant.numeric",
1644
+ regex: numRe
1645
+ }, {
1646
+ token: "constant.numeric", // hex6 color
1647
+ regex: "#[a-f0-9]{6}"
1648
+ }, {
1649
+ token: "constant.numeric", // hex3 color
1650
+ regex: "#[a-f0-9]{3}"
1651
+ }, {
1652
+ token: ["punctuation", "entity.other.attribute-name.pseudo-element.css"],
1653
+ regex: pseudoElements
1654
+ }, {
1655
+ token: ["punctuation", "entity.other.attribute-name.pseudo-class.css"],
1656
+ regex: pseudoClasses
1657
+ }, {
1658
+ include: "url"
1659
+ }, {
1660
+ token: keywordMapper,
1661
+ regex: "\\-?[a-zA-Z_][a-zA-Z0-9_\\-]*"
1662
+ }, {
1663
+ token: "paren.lparen",
1664
+ regex: "\\{"
1665
+ }, {
1666
+ caseInsensitive: true
1667
+ }],
1668
+ url: [{
1669
+ token: "support.function",
1670
+ regex: "(?:url(:?-prefix)?|domain|regexp)\\(",
1671
+ push: [{
1672
+ token: "support.function",
1673
+ regex: "\\)",
1674
+ next: "pop"
1675
+ }, {
1676
+ defaultToken: "string"
1677
+ }]
1678
+ }],
1679
+ strings: [{
1680
+ token: "string.start",
1681
+ regex: "'",
1682
+ push: [{
1683
+ token: "string.end",
1684
+ regex: "'|$",
1685
+ next: "pop"
1686
+ }, {
1687
+ include: "escapes"
1688
+ }, {
1689
+ token: "constant.language.escape",
1690
+ regex: /\\$/,
1691
+ consumeLineEnd: true
1692
+ }, {
1693
+ defaultToken: "string"
1694
+ }]
1695
+ }, {
1696
+ token: "string.start",
1697
+ regex: '"',
1698
+ push: [{
1699
+ token: "string.end",
1700
+ regex: '"|$',
1701
+ next: "pop"
1702
+ }, {
1703
+ include: "escapes"
1704
+ }, {
1705
+ token: "constant.language.escape",
1706
+ regex: /\\$/,
1707
+ consumeLineEnd: true
1708
+ }, {
1709
+ defaultToken: "string"
1710
+ }]
1711
+ }],
1712
+ escapes: [{
1713
+ token: "constant.language.escape",
1714
+ regex: /\\([a-fA-F\d]{1,6}|[^a-fA-F\d])/
1715
+ }]
1716
+ };
1717
+ this.normalizeRules();
1718
+ };
1719
+ oop.inherits(CssHighlightRules, TextHighlightRules);
1720
+ exports.CssHighlightRules = CssHighlightRules;
1721
+
1722
+ });
1723
+
1724
+ ace.define("ace/mode/css_completions",["require","exports","module"], function(require, exports, module){"use strict";
1725
+ var propertyMap = {
1726
+ "background": { "#$0": 1 },
1727
+ "background-color": { "#$0": 1, "transparent": 1, "fixed": 1 },
1728
+ "background-image": { "url('/$0')": 1 },
1729
+ "background-repeat": { "repeat": 1, "repeat-x": 1, "repeat-y": 1, "no-repeat": 1, "inherit": 1 },
1730
+ "background-position": { "bottom": 2, "center": 2, "left": 2, "right": 2, "top": 2, "inherit": 2 },
1731
+ "background-attachment": { "scroll": 1, "fixed": 1 },
1732
+ "background-size": { "cover": 1, "contain": 1 },
1733
+ "background-clip": { "border-box": 1, "padding-box": 1, "content-box": 1 },
1734
+ "background-origin": { "border-box": 1, "padding-box": 1, "content-box": 1 },
1735
+ "border": { "solid $0": 1, "dashed $0": 1, "dotted $0": 1, "#$0": 1 },
1736
+ "border-color": { "#$0": 1 },
1737
+ "border-style": { "solid": 2, "dashed": 2, "dotted": 2, "double": 2, "groove": 2, "hidden": 2, "inherit": 2, "inset": 2, "none": 2, "outset": 2, "ridged": 2 },
1738
+ "border-collapse": { "collapse": 1, "separate": 1 },
1739
+ "bottom": { "px": 1, "em": 1, "%": 1 },
1740
+ "clear": { "left": 1, "right": 1, "both": 1, "none": 1 },
1741
+ "color": { "#$0": 1, "rgb(#$00,0,0)": 1 },
1742
+ "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 },
1743
+ "display": { "none": 1, "block": 1, "inline": 1, "inline-block": 1, "table-cell": 1 },
1744
+ "empty-cells": { "show": 1, "hide": 1 },
1745
+ "float": { "left": 1, "right": 1, "none": 1 },
1746
+ "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 },
1747
+ "font-size": { "px": 1, "em": 1, "%": 1 },
1748
+ "font-weight": { "bold": 1, "normal": 1 },
1749
+ "font-style": { "italic": 1, "normal": 1 },
1750
+ "font-variant": { "normal": 1, "small-caps": 1 },
1751
+ "height": { "px": 1, "em": 1, "%": 1 },
1752
+ "left": { "px": 1, "em": 1, "%": 1 },
1753
+ "letter-spacing": { "normal": 1 },
1754
+ "line-height": { "normal": 1 },
1755
+ "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 },
1756
+ "margin": { "px": 1, "em": 1, "%": 1 },
1757
+ "margin-right": { "px": 1, "em": 1, "%": 1 },
1758
+ "margin-left": { "px": 1, "em": 1, "%": 1 },
1759
+ "margin-top": { "px": 1, "em": 1, "%": 1 },
1760
+ "margin-bottom": { "px": 1, "em": 1, "%": 1 },
1761
+ "max-height": { "px": 1, "em": 1, "%": 1 },
1762
+ "max-width": { "px": 1, "em": 1, "%": 1 },
1763
+ "min-height": { "px": 1, "em": 1, "%": 1 },
1764
+ "min-width": { "px": 1, "em": 1, "%": 1 },
1765
+ "overflow": { "hidden": 1, "visible": 1, "auto": 1, "scroll": 1 },
1766
+ "overflow-x": { "hidden": 1, "visible": 1, "auto": 1, "scroll": 1 },
1767
+ "overflow-y": { "hidden": 1, "visible": 1, "auto": 1, "scroll": 1 },
1768
+ "padding": { "px": 1, "em": 1, "%": 1 },
1769
+ "padding-top": { "px": 1, "em": 1, "%": 1 },
1770
+ "padding-right": { "px": 1, "em": 1, "%": 1 },
1771
+ "padding-bottom": { "px": 1, "em": 1, "%": 1 },
1772
+ "padding-left": { "px": 1, "em": 1, "%": 1 },
1773
+ "page-break-after": { "auto": 1, "always": 1, "avoid": 1, "left": 1, "right": 1 },
1774
+ "page-break-before": { "auto": 1, "always": 1, "avoid": 1, "left": 1, "right": 1 },
1775
+ "position": { "absolute": 1, "relative": 1, "fixed": 1, "static": 1 },
1776
+ "right": { "px": 1, "em": 1, "%": 1 },
1777
+ "table-layout": { "fixed": 1, "auto": 1 },
1778
+ "text-decoration": { "none": 1, "underline": 1, "line-through": 1, "blink": 1 },
1779
+ "text-align": { "left": 1, "right": 1, "center": 1, "justify": 1 },
1780
+ "text-transform": { "capitalize": 1, "uppercase": 1, "lowercase": 1, "none": 1 },
1781
+ "top": { "px": 1, "em": 1, "%": 1 },
1782
+ "vertical-align": { "top": 1, "bottom": 1 },
1783
+ "visibility": { "hidden": 1, "visible": 1 },
1784
+ "white-space": { "nowrap": 1, "normal": 1, "pre": 1, "pre-line": 1, "pre-wrap": 1 },
1785
+ "width": { "px": 1, "em": 1, "%": 1 },
1786
+ "word-spacing": { "normal": 1 },
1787
+ "filter": { "alpha(opacity=$0100)": 1 },
1788
+ "text-shadow": { "$02px 2px 2px #777": 1 },
1789
+ "text-overflow": { "ellipsis-word": 1, "clip": 1, "ellipsis": 1 },
1790
+ "-moz-border-radius": 1,
1791
+ "-moz-border-radius-topright": 1,
1792
+ "-moz-border-radius-bottomright": 1,
1793
+ "-moz-border-radius-topleft": 1,
1794
+ "-moz-border-radius-bottomleft": 1,
1795
+ "-webkit-border-radius": 1,
1796
+ "-webkit-border-top-right-radius": 1,
1797
+ "-webkit-border-top-left-radius": 1,
1798
+ "-webkit-border-bottom-right-radius": 1,
1799
+ "-webkit-border-bottom-left-radius": 1,
1800
+ "-moz-box-shadow": 1,
1801
+ "-webkit-box-shadow": 1,
1802
+ "transform": { "rotate($00deg)": 1, "skew($00deg)": 1 },
1803
+ "-moz-transform": { "rotate($00deg)": 1, "skew($00deg)": 1 },
1804
+ "-webkit-transform": { "rotate($00deg)": 1, "skew($00deg)": 1 }
1805
+ };
1806
+ var CssCompletions = function () {
1807
+ };
1808
+ (function () {
1809
+ this.completionsDefined = false;
1810
+ this.defineCompletions = function () {
1811
+ if (document) {
1812
+ var style = document.createElement('c').style;
1813
+ for (var i in style) {
1814
+ if (typeof style[i] !== 'string')
1815
+ continue;
1816
+ var name = i.replace(/[A-Z]/g, function (x) {
1817
+ return '-' + x.toLowerCase();
1818
+ });
1819
+ if (!propertyMap.hasOwnProperty(name))
1820
+ propertyMap[name] = 1;
1821
+ }
1822
+ }
1823
+ this.completionsDefined = true;
1824
+ };
1825
+ this.getCompletions = function (state, session, pos, prefix) {
1826
+ if (!this.completionsDefined) {
1827
+ this.defineCompletions();
1828
+ }
1829
+ if (state === 'ruleset' || session.$mode.$id == "ace/mode/scss") {
1830
+ var line = session.getLine(pos.row).substr(0, pos.column);
1831
+ var inParens = /\([^)]*$/.test(line);
1832
+ if (inParens) {
1833
+ line = line.substr(line.lastIndexOf('(') + 1);
1834
+ }
1835
+ if (/:[^;]+$/.test(line)) {
1836
+ /([\w\-]+):[^:]*$/.test(line);
1837
+ return this.getPropertyValueCompletions(state, session, pos, prefix);
1838
+ }
1839
+ else {
1840
+ return this.getPropertyCompletions(state, session, pos, prefix, inParens);
1841
+ }
1842
+ }
1843
+ return [];
1844
+ };
1845
+ this.getPropertyCompletions = function (state, session, pos, prefix, skipSemicolon) {
1846
+ skipSemicolon = skipSemicolon || false;
1847
+ var properties = Object.keys(propertyMap);
1848
+ return properties.map(function (property) {
1849
+ return {
1850
+ caption: property,
1851
+ snippet: property + ': $0' + (skipSemicolon ? '' : ';'),
1852
+ meta: "property",
1853
+ score: 1000000
1854
+ };
1855
+ });
1856
+ };
1857
+ this.getPropertyValueCompletions = function (state, session, pos, prefix) {
1858
+ var line = session.getLine(pos.row).substr(0, pos.column);
1859
+ var property = (/([\w\-]+):[^:]*$/.exec(line) || {})[1];
1860
+ if (!property)
1861
+ return [];
1862
+ var values = [];
1863
+ if (property in propertyMap && typeof propertyMap[property] === "object") {
1864
+ values = Object.keys(propertyMap[property]);
1865
+ }
1866
+ return values.map(function (value) {
1867
+ return {
1868
+ caption: value,
1869
+ snippet: value,
1870
+ meta: "property value",
1871
+ score: 1000000
1872
+ };
1873
+ });
1874
+ };
1875
+ }).call(CssCompletions.prototype);
1876
+ exports.CssCompletions = CssCompletions;
1877
+
1878
+ });
1879
+
1880
+ 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";
1881
+ var oop = require("../../lib/oop");
1882
+ var Behaviour = require("../behaviour").Behaviour;
1883
+ var CstyleBehaviour = require("./cstyle").CstyleBehaviour;
1884
+ var TokenIterator = require("../../token_iterator").TokenIterator;
1885
+ var CssBehaviour = function () {
1886
+ this.inherit(CstyleBehaviour);
1887
+ this.add("colon", "insertion", function (state, action, editor, session, text) {
1888
+ if (text === ':' && editor.selection.isEmpty()) {
1889
+ var cursor = editor.getCursorPosition();
1890
+ var iterator = new TokenIterator(session, cursor.row, cursor.column);
1891
+ var token = iterator.getCurrentToken();
1892
+ if (token && token.value.match(/\s+/)) {
1893
+ token = iterator.stepBackward();
1894
+ }
1895
+ if (token && token.type === 'support.type') {
1896
+ var line = session.doc.getLine(cursor.row);
1897
+ var rightChar = line.substring(cursor.column, cursor.column + 1);
1898
+ if (rightChar === ':') {
1899
+ return {
1900
+ text: '',
1901
+ selection: [1, 1]
1902
+ };
1903
+ }
1904
+ if (/^(\s+[^;]|\s*$)/.test(line.substring(cursor.column))) {
1905
+ return {
1906
+ text: ':;',
1907
+ selection: [1, 1]
1908
+ };
1909
+ }
1910
+ }
1911
+ }
1912
+ });
1913
+ this.add("colon", "deletion", function (state, action, editor, session, range) {
1914
+ var selected = session.doc.getTextRange(range);
1915
+ if (!range.isMultiLine() && selected === ':') {
1916
+ var cursor = editor.getCursorPosition();
1917
+ var iterator = new TokenIterator(session, cursor.row, cursor.column);
1918
+ var token = iterator.getCurrentToken();
1919
+ if (token && token.value.match(/\s+/)) {
1920
+ token = iterator.stepBackward();
1921
+ }
1922
+ if (token && token.type === 'support.type') {
1923
+ var line = session.doc.getLine(range.start.row);
1924
+ var rightChar = line.substring(range.end.column, range.end.column + 1);
1925
+ if (rightChar === ';') {
1926
+ range.end.column++;
1927
+ return range;
1928
+ }
1929
+ }
1930
+ }
1931
+ });
1932
+ this.add("semicolon", "insertion", function (state, action, editor, session, text) {
1933
+ if (text === ';' && editor.selection.isEmpty()) {
1934
+ var cursor = editor.getCursorPosition();
1935
+ var line = session.doc.getLine(cursor.row);
1936
+ var rightChar = line.substring(cursor.column, cursor.column + 1);
1937
+ if (rightChar === ';') {
1938
+ return {
1939
+ text: '',
1940
+ selection: [1, 1]
1941
+ };
1942
+ }
1943
+ }
1944
+ });
1945
+ this.add("!important", "insertion", function (state, action, editor, session, text) {
1946
+ if (text === '!' && editor.selection.isEmpty()) {
1947
+ var cursor = editor.getCursorPosition();
1948
+ var line = session.doc.getLine(cursor.row);
1949
+ if (/^\s*(;|}|$)/.test(line.substring(cursor.column))) {
1950
+ return {
1951
+ text: '!important',
1952
+ selection: [10, 10]
1953
+ };
1954
+ }
1955
+ }
1956
+ });
1957
+ };
1958
+ oop.inherits(CssBehaviour, CstyleBehaviour);
1959
+ exports.CssBehaviour = CssBehaviour;
1960
+
1961
+ });
1962
+
1963
+ 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";
1964
+ var oop = require("../lib/oop");
1965
+ var TextMode = require("./text").Mode;
1966
+ var CssHighlightRules = require("./css_highlight_rules").CssHighlightRules;
1967
+ var MatchingBraceOutdent = require("./matching_brace_outdent").MatchingBraceOutdent;
1968
+ var WorkerClient = require("../worker/worker_client").WorkerClient;
1969
+ var CssCompletions = require("./css_completions").CssCompletions;
1970
+ var CssBehaviour = require("./behaviour/css").CssBehaviour;
1971
+ var CStyleFoldMode = require("./folding/cstyle").FoldMode;
1972
+ var Mode = function () {
1973
+ this.HighlightRules = CssHighlightRules;
1974
+ this.$outdent = new MatchingBraceOutdent();
1975
+ this.$behaviour = new CssBehaviour();
1976
+ this.$completer = new CssCompletions();
1977
+ this.foldingRules = new CStyleFoldMode();
1978
+ };
1979
+ oop.inherits(Mode, TextMode);
1980
+ (function () {
1981
+ this.foldingRules = "cStyle";
1982
+ this.blockComment = { start: "/*", end: "*/" };
1983
+ this.getNextLineIndent = function (state, line, tab) {
1984
+ var indent = this.$getIndent(line);
1985
+ var tokens = this.getTokenizer().getLineTokens(line, state).tokens;
1986
+ if (tokens.length && tokens[tokens.length - 1].type == "comment") {
1987
+ return indent;
1988
+ }
1989
+ var match = line.match(/^.*\{\s*$/);
1990
+ if (match) {
1991
+ indent += tab;
1992
+ }
1993
+ return indent;
1994
+ };
1995
+ this.checkOutdent = function (state, line, input) {
1996
+ return this.$outdent.checkOutdent(line, input);
1997
+ };
1998
+ this.autoOutdent = function (state, doc, row) {
1999
+ this.$outdent.autoOutdent(doc, row);
2000
+ };
2001
+ this.getCompletions = function (state, session, pos, prefix) {
2002
+ return this.$completer.getCompletions(state, session, pos, prefix);
2003
+ };
2004
+ this.createWorker = function (session) {
2005
+ var worker = new WorkerClient(["ace"], "ace/mode/css_worker", "Worker");
2006
+ worker.attachToDocument(session.getDocument());
2007
+ worker.on("annotate", function (e) {
2008
+ session.setAnnotations(e.data);
2009
+ });
2010
+ worker.on("terminate", function () {
2011
+ session.clearAnnotations();
2012
+ });
2013
+ return worker;
2014
+ };
2015
+ this.$id = "ace/mode/css";
2016
+ this.snippetFileId = "ace/snippets/css";
2017
+ }).call(Mode.prototype);
2018
+ exports.Mode = Mode;
2019
+
2020
+ });
2021
+
2022
+ ace.define("ace/mode/xml_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"], function(require, exports, module){"use strict";
2023
+ var oop = require("../lib/oop");
2024
+ var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
2025
+ var XmlHighlightRules = function (normalize) {
2026
+ var tagRegex = "[_:a-zA-Z\xc0-\uffff][-_:.a-zA-Z0-9\xc0-\uffff]*";
2027
+ this.$rules = {
2028
+ start: [
2029
+ { token: "string.cdata.xml", regex: "<\\!\\[CDATA\\[", next: "cdata" },
2030
+ {
2031
+ token: ["punctuation.instruction.xml", "keyword.instruction.xml"],
2032
+ regex: "(<\\?)(" + tagRegex + ")", next: "processing_instruction"
2033
+ },
2034
+ { token: "comment.start.xml", regex: "<\\!--", next: "comment" },
2035
+ {
2036
+ token: ["xml-pe.doctype.xml", "xml-pe.doctype.xml"],
2037
+ regex: "(<\\!)(DOCTYPE)(?=[\\s])", next: "doctype", caseInsensitive: true
2038
+ },
2039
+ { include: "tag" },
2040
+ { token: "text.end-tag-open.xml", regex: "</" },
2041
+ { token: "text.tag-open.xml", regex: "<" },
2042
+ { include: "reference" },
2043
+ { defaultToken: "text.xml" }
2044
+ ],
2045
+ processing_instruction: [{
2046
+ token: "entity.other.attribute-name.decl-attribute-name.xml",
2047
+ regex: tagRegex
2048
+ }, {
2049
+ token: "keyword.operator.decl-attribute-equals.xml",
2050
+ regex: "="
2051
+ }, {
2052
+ include: "whitespace"
2053
+ }, {
2054
+ include: "string"
2055
+ }, {
2056
+ token: "punctuation.xml-decl.xml",
2057
+ regex: "\\?>",
2058
+ next: "start"
2059
+ }],
2060
+ doctype: [
2061
+ { include: "whitespace" },
2062
+ { include: "string" },
2063
+ { token: "xml-pe.doctype.xml", regex: ">", next: "start" },
2064
+ { token: "xml-pe.xml", regex: "[-_a-zA-Z0-9:]+" },
2065
+ { token: "punctuation.int-subset", regex: "\\[", push: "int_subset" }
2066
+ ],
2067
+ int_subset: [{
2068
+ token: "text.xml",
2069
+ regex: "\\s+"
2070
+ }, {
2071
+ token: "punctuation.int-subset.xml",
2072
+ regex: "]",
2073
+ next: "pop"
2074
+ }, {
2075
+ token: ["punctuation.markup-decl.xml", "keyword.markup-decl.xml"],
2076
+ regex: "(<\\!)(" + tagRegex + ")",
2077
+ push: [{
2078
+ token: "text",
2079
+ regex: "\\s+"
2080
+ },
2081
+ {
2082
+ token: "punctuation.markup-decl.xml",
2083
+ regex: ">",
2084
+ next: "pop"
2085
+ },
2086
+ { include: "string" }]
2087
+ }],
2088
+ cdata: [
2089
+ { token: "string.cdata.xml", regex: "\\]\\]>", next: "start" },
2090
+ { token: "text.xml", regex: "\\s+" },
2091
+ { token: "text.xml", regex: "(?:[^\\]]|\\](?!\\]>))+" }
2092
+ ],
2093
+ comment: [
2094
+ { token: "comment.end.xml", regex: "-->", next: "start" },
2095
+ { defaultToken: "comment.xml" }
2096
+ ],
2097
+ reference: [{
2098
+ token: "constant.language.escape.reference.xml",
2099
+ regex: "(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"
2100
+ }],
2101
+ attr_reference: [{
2102
+ token: "constant.language.escape.reference.attribute-value.xml",
2103
+ regex: "(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"
2104
+ }],
2105
+ tag: [{
2106
+ token: ["meta.tag.punctuation.tag-open.xml", "meta.tag.punctuation.end-tag-open.xml", "meta.tag.tag-name.xml"],
2107
+ regex: "(?:(<)|(</))((?:" + tagRegex + ":)?" + tagRegex + ")",
2108
+ next: [
2109
+ { include: "attributes" },
2110
+ { token: "meta.tag.punctuation.tag-close.xml", regex: "/?>", next: "start" }
2111
+ ]
2112
+ }],
2113
+ tag_whitespace: [
2114
+ { token: "text.tag-whitespace.xml", regex: "\\s+" }
2115
+ ],
2116
+ whitespace: [
2117
+ { token: "text.whitespace.xml", regex: "\\s+" }
2118
+ ],
2119
+ string: [{
2120
+ token: "string.xml",
2121
+ regex: "'",
2122
+ push: [
2123
+ { token: "string.xml", regex: "'", next: "pop" },
2124
+ { defaultToken: "string.xml" }
2125
+ ]
2126
+ }, {
2127
+ token: "string.xml",
2128
+ regex: '"',
2129
+ push: [
2130
+ { token: "string.xml", regex: '"', next: "pop" },
2131
+ { defaultToken: "string.xml" }
2132
+ ]
2133
+ }],
2134
+ attributes: [{
2135
+ token: "entity.other.attribute-name.xml",
2136
+ regex: tagRegex
2137
+ }, {
2138
+ token: "keyword.operator.attribute-equals.xml",
2139
+ regex: "="
2140
+ }, {
2141
+ include: "tag_whitespace"
2142
+ }, {
2143
+ include: "attribute_value"
2144
+ }],
2145
+ attribute_value: [{
2146
+ token: "string.attribute-value.xml",
2147
+ regex: "'",
2148
+ push: [
2149
+ { token: "string.attribute-value.xml", regex: "'", next: "pop" },
2150
+ { include: "attr_reference" },
2151
+ { defaultToken: "string.attribute-value.xml" }
2152
+ ]
2153
+ }, {
2154
+ token: "string.attribute-value.xml",
2155
+ regex: '"',
2156
+ push: [
2157
+ { token: "string.attribute-value.xml", regex: '"', next: "pop" },
2158
+ { include: "attr_reference" },
2159
+ { defaultToken: "string.attribute-value.xml" }
2160
+ ]
2161
+ }]
2162
+ };
2163
+ if (this.constructor === XmlHighlightRules)
2164
+ this.normalizeRules();
2165
+ };
2166
+ (function () {
2167
+ this.embedTagRules = function (HighlightRules, prefix, tag) {
2168
+ this.$rules.tag.unshift({
2169
+ token: ["meta.tag.punctuation.tag-open.xml", "meta.tag." + tag + ".tag-name.xml"],
2170
+ regex: "(<)(" + tag + "(?=\\s|>|$))",
2171
+ next: [
2172
+ { include: "attributes" },
2173
+ { token: "meta.tag.punctuation.tag-close.xml", regex: "/?>", next: prefix + "start" }
2174
+ ]
2175
+ });
2176
+ this.$rules[tag + "-end"] = [
2177
+ { include: "attributes" },
2178
+ { token: "meta.tag.punctuation.tag-close.xml", regex: "/?>", next: "start",
2179
+ onMatch: function (value, currentState, stack) {
2180
+ stack.splice(0);
2181
+ return this.token;
2182
+ } }
2183
+ ];
2184
+ this.embedRules(HighlightRules, prefix, [{
2185
+ token: ["meta.tag.punctuation.end-tag-open.xml", "meta.tag." + tag + ".tag-name.xml"],
2186
+ regex: "(</)(" + tag + "(?=\\s|>|$))",
2187
+ next: tag + "-end"
2188
+ }, {
2189
+ token: "string.cdata.xml",
2190
+ regex: "<\\!\\[CDATA\\["
2191
+ }, {
2192
+ token: "string.cdata.xml",
2193
+ regex: "\\]\\]>"
2194
+ }]);
2195
+ };
2196
+ }).call(TextHighlightRules.prototype);
2197
+ oop.inherits(XmlHighlightRules, TextHighlightRules);
2198
+ exports.XmlHighlightRules = XmlHighlightRules;
2199
+
2200
+ });
2201
+
2202
+ 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";
2203
+ var oop = require("../lib/oop");
2204
+ var lang = require("../lib/lang");
2205
+ var CssHighlightRules = require("./css_highlight_rules").CssHighlightRules;
2206
+ var JavaScriptHighlightRules = require("./javascript_highlight_rules").JavaScriptHighlightRules;
2207
+ var XmlHighlightRules = require("./xml_highlight_rules").XmlHighlightRules;
2208
+ var tagMap = lang.createMap({
2209
+ a: 'anchor',
2210
+ button: 'form',
2211
+ form: 'form',
2212
+ img: 'image',
2213
+ input: 'form',
2214
+ label: 'form',
2215
+ option: 'form',
2216
+ script: 'script',
2217
+ select: 'form',
2218
+ textarea: 'form',
2219
+ style: 'style',
2220
+ table: 'table',
2221
+ tbody: 'table',
2222
+ td: 'table',
2223
+ tfoot: 'table',
2224
+ th: 'table',
2225
+ tr: 'table'
2226
+ });
2227
+ var HtmlHighlightRules = function () {
2228
+ XmlHighlightRules.call(this);
2229
+ this.addRules({
2230
+ attributes: [{
2231
+ include: "tag_whitespace"
2232
+ }, {
2233
+ token: "entity.other.attribute-name.xml",
2234
+ regex: "[-_a-zA-Z0-9:.]+"
2235
+ }, {
2236
+ token: "keyword.operator.attribute-equals.xml",
2237
+ regex: "=",
2238
+ push: [{
2239
+ include: "tag_whitespace"
2240
+ }, {
2241
+ token: "string.unquoted.attribute-value.html",
2242
+ regex: "[^<>='\"`\\s]+",
2243
+ next: "pop"
2244
+ }, {
2245
+ token: "empty",
2246
+ regex: "",
2247
+ next: "pop"
2248
+ }]
2249
+ }, {
2250
+ include: "attribute_value"
2251
+ }],
2252
+ tag: [{
2253
+ token: function (start, tag) {
2254
+ var group = tagMap[tag];
2255
+ return ["meta.tag.punctuation." + (start == "<" ? "" : "end-") + "tag-open.xml",
2256
+ "meta.tag" + (group ? "." + group : "") + ".tag-name.xml"];
2257
+ },
2258
+ regex: "(</?)([-_a-zA-Z0-9:.]+)",
2259
+ next: "tag_stuff"
2260
+ }],
2261
+ tag_stuff: [
2262
+ { include: "attributes" },
2263
+ { token: "meta.tag.punctuation.tag-close.xml", regex: "/?>", next: "start" }
2264
+ ]
2265
+ });
2266
+ this.embedTagRules(CssHighlightRules, "css-", "style");
2267
+ this.embedTagRules(new JavaScriptHighlightRules({ jsx: false }).getRules(), "js-", "script");
2268
+ if (this.constructor === HtmlHighlightRules)
2269
+ this.normalizeRules();
2270
+ };
2271
+ oop.inherits(HtmlHighlightRules, XmlHighlightRules);
2272
+ exports.HtmlHighlightRules = HtmlHighlightRules;
2273
+
2274
+ });
2275
+
2276
+ 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";
2277
+ var oop = require("../lib/oop");
2278
+ var lang = require("../lib/lang");
2279
+ var TextMode = require("./text").Mode;
2280
+ var JavaScriptMode = require("./javascript").Mode;
2281
+ var CssMode = require("./css").Mode;
2282
+ var HtmlHighlightRules = require("./html_highlight_rules").HtmlHighlightRules;
2283
+ var XmlBehaviour = require("./behaviour/xml").XmlBehaviour;
2284
+ var HtmlFoldMode = require("./folding/html").FoldMode;
2285
+ var HtmlCompletions = require("./html_completions").HtmlCompletions;
2286
+ var WorkerClient = require("../worker/worker_client").WorkerClient;
2287
+ var voidElements = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "menuitem", "param", "source", "track", "wbr"];
2288
+ var optionalEndTags = ["li", "dt", "dd", "p", "rt", "rp", "optgroup", "option", "colgroup", "td", "th"];
2289
+ var Mode = function (options) {
2290
+ this.fragmentContext = options && options.fragmentContext;
2291
+ this.HighlightRules = HtmlHighlightRules;
2292
+ this.$behaviour = new XmlBehaviour();
2293
+ this.$completer = new HtmlCompletions();
2294
+ this.createModeDelegates({
2295
+ "js-": JavaScriptMode,
2296
+ "css-": CssMode
2297
+ });
2298
+ this.foldingRules = new HtmlFoldMode(this.voidElements, lang.arrayToMap(optionalEndTags));
2299
+ };
2300
+ oop.inherits(Mode, TextMode);
2301
+ (function () {
2302
+ this.blockComment = { start: "<!--", end: "-->" };
2303
+ this.voidElements = lang.arrayToMap(voidElements);
2304
+ this.getNextLineIndent = function (state, line, tab) {
2305
+ return this.$getIndent(line);
2306
+ };
2307
+ this.checkOutdent = function (state, line, input) {
2308
+ return false;
2309
+ };
2310
+ this.getCompletions = function (state, session, pos, prefix) {
2311
+ return this.$completer.getCompletions(state, session, pos, prefix);
2312
+ };
2313
+ this.createWorker = function (session) {
2314
+ if (this.constructor != Mode)
2315
+ return;
2316
+ var worker = new WorkerClient(["ace"], "ace/mode/html_worker", "Worker");
2317
+ worker.attachToDocument(session.getDocument());
2318
+ if (this.fragmentContext)
2319
+ worker.call("setOptions", [{ context: this.fragmentContext }]);
2320
+ worker.on("error", function (e) {
2321
+ session.setAnnotations(e.data);
2322
+ });
2323
+ worker.on("terminate", function () {
2324
+ session.clearAnnotations();
2325
+ });
2326
+ return worker;
2327
+ };
2328
+ this.$id = "ace/mode/html";
2329
+ this.snippetFileId = "ace/snippets/html";
2330
+ }).call(Mode.prototype);
2331
+ exports.Mode = Mode;
2332
+
2333
+ });
2334
+
2335
+ ace.define("ace/mode/typescript_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/javascript_highlight_rules"], function(require, exports, module){/*
2336
+ THIS FILE WAS AUTOGENERATED BY mode_highlight_rules.tmpl.js (UUID: 21e323af-f665-4161-96e7-5087d262557e) */
2337
+ "use strict";
2338
+ var oop = require("../lib/oop");
2339
+ var JavaScriptHighlightRules = require("./javascript_highlight_rules").JavaScriptHighlightRules;
2340
+ var TypeScriptHighlightRules = function (options) {
2341
+ var tsRules = [
2342
+ {
2343
+ token: ["storage.type", "text", "entity.name.function.ts"],
2344
+ regex: "(function)(\\s+)([a-zA-Z0-9\$_\u00a1-\uffff][a-zA-Z0-9\d\$_\u00a1-\uffff]*)"
2345
+ },
2346
+ {
2347
+ token: "keyword",
2348
+ regex: "(?:\\b(constructor|declare|interface|as|AS|public|private|extends|export|super|readonly|module|namespace|abstract|implements)\\b)"
2349
+ },
2350
+ {
2351
+ token: ["keyword", "storage.type.variable.ts"],
2352
+ regex: "(class|type)(\\s+[a-zA-Z0-9_?.$][\\w?.$]*)"
2353
+ },
2354
+ {
2355
+ token: "keyword",
2356
+ regex: "\\b(?:super|export|import|keyof|infer)\\b"
2357
+ },
2358
+ {
2359
+ token: ["storage.type.variable.ts"],
2360
+ regex: "(?:\\b(this\\.|string\\b|bool\\b|boolean\\b|number\\b|true\\b|false\\b|undefined\\b|any\\b|null\\b|(?:unique )?symbol\\b|object\\b|never\\b|enum\\b))"
2361
+ }
2362
+ ];
2363
+ var JSRules = new JavaScriptHighlightRules({ jsx: (options && options.jsx) == true }).getRules();
2364
+ JSRules.no_regex = tsRules.concat(JSRules.no_regex);
2365
+ this.$rules = JSRules;
2366
+ };
2367
+ oop.inherits(TypeScriptHighlightRules, JavaScriptHighlightRules);
2368
+ exports.TypeScriptHighlightRules = TypeScriptHighlightRules;
2369
+
2370
+ });
2371
+
2372
+ ace.define("ace/mode/coffee_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"], function(require, exports, module){"use strict";
2373
+ var oop = require("../lib/oop");
2374
+ var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
2375
+ oop.inherits(CoffeeHighlightRules, TextHighlightRules);
2376
+ function CoffeeHighlightRules() {
2377
+ var identifier = "[$A-Za-z_\\x7f-\\uffff][$\\w\\x7f-\\uffff]*";
2378
+ var keywords = ("this|throw|then|try|typeof|super|switch|return|break|by|continue|" +
2379
+ "catch|class|in|instanceof|is|isnt|if|else|extends|for|own|" +
2380
+ "finally|function|while|when|new|no|not|delete|debugger|do|loop|of|off|" +
2381
+ "or|on|unless|until|and|yes|yield|export|import|default");
2382
+ var langConstant = ("true|false|null|undefined|NaN|Infinity");
2383
+ var illegal = ("case|const|function|var|void|with|enum|implements|" +
2384
+ "interface|let|package|private|protected|public|static");
2385
+ var supportClass = ("Array|Boolean|Date|Function|Number|Object|RegExp|ReferenceError|String|" +
2386
+ "Error|EvalError|InternalError|RangeError|ReferenceError|StopIteration|" +
2387
+ "SyntaxError|TypeError|URIError|" +
2388
+ "ArrayBuffer|Float32Array|Float64Array|Int16Array|Int32Array|Int8Array|" +
2389
+ "Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray");
2390
+ var supportFunction = ("Math|JSON|isNaN|isFinite|parseInt|parseFloat|encodeURI|" +
2391
+ "encodeURIComponent|decodeURI|decodeURIComponent|String|");
2392
+ var variableLanguage = ("window|arguments|prototype|document");
2393
+ var keywordMapper = this.createKeywordMapper({
2394
+ "keyword": keywords,
2395
+ "constant.language": langConstant,
2396
+ "invalid.illegal": illegal,
2397
+ "language.support.class": supportClass,
2398
+ "language.support.function": supportFunction,
2399
+ "variable.language": variableLanguage
2400
+ }, "identifier");
2401
+ var functionRule = {
2402
+ token: ["paren.lparen", "variable.parameter", "paren.rparen", "text", "storage.type"],
2403
+ regex: /(?:(\()((?:"[^")]*?"|'[^')]*?'|\/[^\/)]*?\/|[^()"'\/])*?)(\))(\s*))?([\-=]>)/.source
2404
+ };
2405
+ var stringEscape = /\\(?:x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|[0-2][0-7]{0,2}|3[0-6][0-7]?|37[0-7]?|[4-7][0-7]?|.)/;
2406
+ this.$rules = {
2407
+ start: [
2408
+ {
2409
+ token: "constant.numeric",
2410
+ regex: "(?:0x[\\da-fA-F]+|(?:\\d+(?:\\.\\d+)?|\\.\\d+)(?:[eE][+-]?\\d+)?)"
2411
+ }, {
2412
+ stateName: "qdoc",
2413
+ token: "string", regex: "'''", next: [
2414
+ { token: "string", regex: "'''", next: "start" },
2415
+ { token: "constant.language.escape", regex: stringEscape },
2416
+ { defaultToken: "string" }
2417
+ ]
2418
+ }, {
2419
+ stateName: "qqdoc",
2420
+ token: "string",
2421
+ regex: '"""',
2422
+ next: [
2423
+ { token: "string", regex: '"""', next: "start" },
2424
+ { token: "paren.string", regex: '#{', push: "start" },
2425
+ { token: "constant.language.escape", regex: stringEscape },
2426
+ { defaultToken: "string" }
2427
+ ]
2428
+ }, {
2429
+ stateName: "qstring",
2430
+ token: "string", regex: "'", next: [
2431
+ { token: "string", regex: "'", next: "start" },
2432
+ { token: "constant.language.escape", regex: stringEscape },
2433
+ { defaultToken: "string" }
2434
+ ]
2435
+ }, {
2436
+ stateName: "qqstring",
2437
+ token: "string.start", regex: '"', next: [
2438
+ { token: "string.end", regex: '"', next: "start" },
2439
+ { token: "paren.string", regex: '#{', push: "start" },
2440
+ { token: "constant.language.escape", regex: stringEscape },
2441
+ { defaultToken: "string" }
2442
+ ]
2443
+ }, {
2444
+ stateName: "js",
2445
+ token: "string", regex: "`", next: [
2446
+ { token: "string", regex: "`", next: "start" },
2447
+ { token: "constant.language.escape", regex: stringEscape },
2448
+ { defaultToken: "string" }
2449
+ ]
2450
+ }, {
2451
+ regex: "[{}]", onMatch: function (val, state, stack) {
2452
+ this.next = "";
2453
+ if (val == "{" && stack.length) {
2454
+ stack.unshift("start", state);
2455
+ return "paren";
2456
+ }
2457
+ if (val == "}" && stack.length) {
2458
+ stack.shift();
2459
+ this.next = stack.shift() || "";
2460
+ if (this.next.indexOf("string") != -1)
2461
+ return "paren.string";
2462
+ }
2463
+ return "paren";
2464
+ }
2465
+ }, {
2466
+ token: "string.regex",
2467
+ regex: "///",
2468
+ next: "heregex"
2469
+ }, {
2470
+ token: "string.regex",
2471
+ regex: /(?:\/(?![\s=])[^[\/\n\\]*(?:(?:\\[\s\S]|\[[^\]\n\\]*(?:\\[\s\S][^\]\n\\]*)*])[^[\/\n\\]*)*\/)(?:[imgy]{0,4})(?!\w)/
2472
+ }, {
2473
+ token: "comment",
2474
+ regex: "###(?!#)",
2475
+ next: "comment"
2476
+ }, {
2477
+ token: "comment",
2478
+ regex: "#.*"
2479
+ }, {
2480
+ token: ["punctuation.operator", "text", "identifier"],
2481
+ regex: "(\\.)(\\s*)(" + illegal + ")"
2482
+ }, {
2483
+ token: "punctuation.operator",
2484
+ regex: "\\.{1,3}"
2485
+ }, {
2486
+ token: ["keyword", "text", "language.support.class",
2487
+ "text", "keyword", "text", "language.support.class"],
2488
+ regex: "(class)(\\s+)(" + identifier + ")(?:(\\s+)(extends)(\\s+)(" + identifier + "))?"
2489
+ }, {
2490
+ token: ["entity.name.function", "text", "keyword.operator", "text"].concat(functionRule.token),
2491
+ regex: "(" + identifier + ")(\\s*)([=:])(\\s*)" + functionRule.regex
2492
+ },
2493
+ functionRule,
2494
+ {
2495
+ token: "variable",
2496
+ regex: "@(?:" + identifier + ")?"
2497
+ }, {
2498
+ token: keywordMapper,
2499
+ regex: identifier
2500
+ }, {
2501
+ token: "punctuation.operator",
2502
+ regex: "\\,|\\."
2503
+ }, {
2504
+ token: "storage.type",
2505
+ regex: "[\\-=]>"
2506
+ }, {
2507
+ token: "keyword.operator",
2508
+ regex: "(?:[-+*/%<>&|^!?=]=|>>>=?|\\-\\-|\\+\\+|::|&&=|\\|\\|=|<<=|>>=|\\?\\.|\\.{2,3}|[!*+-=><])"
2509
+ }, {
2510
+ token: "paren.lparen",
2511
+ regex: "[({[]"
2512
+ }, {
2513
+ token: "paren.rparen",
2514
+ regex: "[\\]})]"
2515
+ }, {
2516
+ token: "text",
2517
+ regex: "\\s+"
2518
+ }
2519
+ ],
2520
+ heregex: [{
2521
+ token: "string.regex",
2522
+ regex: '.*?///[imgy]{0,4}',
2523
+ next: "start"
2524
+ }, {
2525
+ token: "comment.regex",
2526
+ regex: "\\s+(?:#.*)?"
2527
+ }, {
2528
+ token: "string.regex",
2529
+ regex: "\\S+"
2530
+ }],
2531
+ comment: [{
2532
+ token: "comment",
2533
+ regex: '###',
2534
+ next: "start"
2535
+ }, {
2536
+ defaultToken: "comment"
2537
+ }]
2538
+ };
2539
+ this.normalizeRules();
2540
+ }
2541
+ exports.CoffeeHighlightRules = CoffeeHighlightRules;
2542
+
2543
+ });
2544
+
2545
+ ace.define("ace/mode/stylus_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules","ace/mode/css_highlight_rules"], function(require, exports, module){/*
2546
+ THIS FILE WAS AUTOGENERATED BY Stylus.tmlanguage (UUID: 60519324-6A3A-4382-9E0B-546993A3869A) */
2547
+ "use strict";
2548
+ var oop = require("../lib/oop");
2549
+ var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
2550
+ var CssHighlightRules = require("./css_highlight_rules");
2551
+ var StylusHighlightRules = function () {
2552
+ var keywordMapper = this.createKeywordMapper({
2553
+ "support.type": CssHighlightRules.supportType,
2554
+ "support.function": CssHighlightRules.supportFunction,
2555
+ "support.constant": CssHighlightRules.supportConstant,
2556
+ "support.constant.color": CssHighlightRules.supportConstantColor,
2557
+ "support.constant.fonts": CssHighlightRules.supportConstantFonts
2558
+ }, "text", true);
2559
+ this.$rules = {
2560
+ start: [
2561
+ {
2562
+ token: "comment",
2563
+ regex: /\/\/.*$/
2564
+ },
2565
+ {
2566
+ token: "comment", // multi line comment
2567
+ regex: /\/\*/,
2568
+ next: "comment"
2569
+ },
2570
+ {
2571
+ token: ["entity.name.function.stylus", "text"],
2572
+ regex: "^([-a-zA-Z_][-\\w]*)?(\\()"
2573
+ },
2574
+ {
2575
+ token: ["entity.other.attribute-name.class.stylus"],
2576
+ regex: "\\.-?[_a-zA-Z]+[_a-zA-Z0-9-]*"
2577
+ },
2578
+ {
2579
+ token: ["entity.language.stylus"],
2580
+ regex: "^ *&"
2581
+ },
2582
+ {
2583
+ token: ["variable.language.stylus"],
2584
+ regex: "(arguments)"
2585
+ },
2586
+ {
2587
+ token: ["keyword.stylus"],
2588
+ regex: "@[-\\w]+"
2589
+ },
2590
+ {
2591
+ token: ["punctuation", "entity.other.attribute-name.pseudo-element.css"],
2592
+ regex: CssHighlightRules.pseudoElements
2593
+ }, {
2594
+ token: ["punctuation", "entity.other.attribute-name.pseudo-class.css"],
2595
+ regex: CssHighlightRules.pseudoClasses
2596
+ },
2597
+ {
2598
+ token: ["entity.name.tag.stylus"],
2599
+ regex: "(?:\\b)(a|abbr|acronym|address|area|article|aside|audio|b|base|big|blockquote|body|br|button|canvas|caption|cite|code|col|colgroup|datalist|dd|del|details|dfn|dialog|div|dl|dt|em|eventsource|fieldset|figure|figcaption|footer|form|frame|frameset|(?:h[1-6])|head|header|hgroup|hr|html|i|iframe|img|input|ins|kbd|label|legend|li|link|map|mark|menu|meta|meter|nav|noframes|noscript|object|ol|optgroup|option|output|p|param|pre|progress|q|samp|script|section|select|small|span|strike|strong|style|sub|summary|sup|table|tbody|td|textarea|tfoot|th|thead|time|title|tr|tt|ul|var|video)(?:\\b)"
2600
+ },
2601
+ {
2602
+ token: "constant.numeric", // hex6 color
2603
+ regex: "#[a-fA-F0-9]{6}"
2604
+ },
2605
+ {
2606
+ token: "constant.numeric", // hex3 color
2607
+ regex: "#[a-fA-F0-9]{3}"
2608
+ },
2609
+ {
2610
+ token: ["punctuation.definition.entity.stylus", "entity.other.attribute-name.id.stylus"],
2611
+ regex: "(#)([a-zA-Z][a-zA-Z0-9_-]*)"
2612
+ },
2613
+ {
2614
+ token: "meta.vendor-prefix.stylus",
2615
+ regex: "-webkit-|-moz\\-|-ms-|-o-"
2616
+ },
2617
+ {
2618
+ token: "keyword.control.stylus",
2619
+ regex: "(?:!important|for|in|return|true|false|null|if|else|unless|return)\\b"
2620
+ },
2621
+ {
2622
+ token: "keyword.operator.stylus",
2623
+ regex: "!|~|\\+|-|(?:\\*)?\\*|\\/|%|(?:\\.)\\.\\.|<|>|(?:=|:|\\?|\\+|-|\\*|\\/|%|<|>)?=|!="
2624
+ },
2625
+ {
2626
+ token: "keyword.operator.stylus",
2627
+ regex: "(?:in|is(?:nt)?|not)\\b"
2628
+ },
2629
+ {
2630
+ token: "string",
2631
+ regex: "'(?=.)",
2632
+ next: "qstring"
2633
+ }, {
2634
+ token: "string",
2635
+ regex: '"(?=.)',
2636
+ next: "qqstring"
2637
+ },
2638
+ {
2639
+ token: "constant.numeric",
2640
+ regex: CssHighlightRules.numRe
2641
+ },
2642
+ {
2643
+ token: "keyword",
2644
+ regex: "(?:ch|cm|deg|em|ex|fr|gd|grad|Hz|in|kHz|mm|ms|pc|pt|px|rad|rem|s|turn|vh|vm|vw|%)\\b"
2645
+ },
2646
+ {
2647
+ token: keywordMapper,
2648
+ regex: "\\-?[a-zA-Z_][a-zA-Z0-9_\\-]*"
2649
+ }
2650
+ ],
2651
+ "comment": [
2652
+ {
2653
+ token: "comment", // closing comment
2654
+ regex: "\\*\\/",
2655
+ next: "start"
2656
+ }, {
2657
+ defaultToken: "comment"
2658
+ }
2659
+ ],
2660
+ "qqstring": [
2661
+ {
2662
+ token: "string",
2663
+ regex: '[^"\\\\]+'
2664
+ },
2665
+ {
2666
+ token: "string",
2667
+ regex: "\\\\$",
2668
+ next: "qqstring"
2669
+ },
2670
+ {
2671
+ token: "string",
2672
+ regex: '"|$',
2673
+ next: "start"
2674
+ }
2675
+ ],
2676
+ "qstring": [
2677
+ {
2678
+ token: "string",
2679
+ regex: "[^'\\\\]+"
2680
+ },
2681
+ {
2682
+ token: "string",
2683
+ regex: "\\\\$",
2684
+ next: "qstring"
2685
+ },
2686
+ {
2687
+ token: "string",
2688
+ regex: "'|$",
2689
+ next: "start"
2690
+ }
2691
+ ]
2692
+ };
2693
+ };
2694
+ oop.inherits(StylusHighlightRules, TextHighlightRules);
2695
+ exports.StylusHighlightRules = StylusHighlightRules;
2696
+
2697
+ });
2698
+
2699
+ ace.define("ace/mode/scss_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text_highlight_rules","ace/mode/css_highlight_rules"], function(require, exports, module){"use strict";
2700
+ var oop = require("../lib/oop");
2701
+ var lang = require("../lib/lang");
2702
+ var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
2703
+ var CssHighlightRules = require("./css_highlight_rules");
2704
+ var ScssHighlightRules = function () {
2705
+ var properties = lang.arrayToMap(CssHighlightRules.supportType.split("|"));
2706
+ var functions = lang.arrayToMap(("hsl|hsla|rgb|rgba|url|attr|counter|counters|abs|adjust_color|adjust_hue|" +
2707
+ "alpha|join|blue|ceil|change_color|comparable|complement|darken|desaturate|" +
2708
+ "floor|grayscale|green|hue|if|invert|join|length|lighten|lightness|mix|" +
2709
+ "nth|opacify|opacity|percentage|quote|red|round|saturate|saturation|" +
2710
+ "scale_color|transparentize|type_of|unit|unitless|unquote").split("|"));
2711
+ var constants = lang.arrayToMap(CssHighlightRules.supportConstant.split("|"));
2712
+ var colors = lang.arrayToMap(CssHighlightRules.supportConstantColor.split("|"));
2713
+ var keywords = lang.arrayToMap(("@mixin|@extend|@include|@import|@media|@debug|@warn|@if|@for|@each|@while|@else|@font-face|@-webkit-keyframes|if|and|!default|module|def|end|declare").split("|"));
2714
+ var tags = lang.arrayToMap(("a|abbr|acronym|address|applet|area|article|aside|audio|b|base|basefont|bdo|" +
2715
+ "big|blockquote|body|br|button|canvas|caption|center|cite|code|col|colgroup|" +
2716
+ "command|datalist|dd|del|details|dfn|dir|div|dl|dt|em|embed|fieldset|" +
2717
+ "figcaption|figure|font|footer|form|frame|frameset|h1|h2|h3|h4|h5|h6|head|" +
2718
+ "header|hgroup|hr|html|i|iframe|img|input|ins|keygen|kbd|label|legend|li|" +
2719
+ "link|map|mark|menu|meta|meter|nav|noframes|noscript|object|ol|optgroup|" +
2720
+ "option|output|p|param|pre|progress|q|rp|rt|ruby|s|samp|script|section|select|" +
2721
+ "small|source|span|strike|strong|style|sub|summary|sup|table|tbody|td|" +
2722
+ "textarea|tfoot|th|thead|time|title|tr|tt|u|ul|var|video|wbr|xmp").split("|"));
2723
+ var numRe = "\\-?(?:(?:[0-9]+)|(?:[0-9]*\\.[0-9]+))";
2724
+ this.$rules = {
2725
+ "start": [
2726
+ {
2727
+ token: "comment",
2728
+ regex: "\\/\\/.*$"
2729
+ },
2730
+ {
2731
+ token: "comment", // multi line comment
2732
+ regex: "\\/\\*",
2733
+ next: "comment"
2734
+ }, {
2735
+ token: "string", // single line
2736
+ regex: '["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]'
2737
+ }, {
2738
+ token: "string", // multi line string start
2739
+ regex: '["].*\\\\$',
2740
+ next: "qqstring"
2741
+ }, {
2742
+ token: "string", // single line
2743
+ regex: "['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"
2744
+ }, {
2745
+ token: "string", // multi line string start
2746
+ regex: "['].*\\\\$",
2747
+ next: "qstring"
2748
+ }, {
2749
+ token: "constant.numeric",
2750
+ 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|%)"
2751
+ }, {
2752
+ token: "constant.numeric", // hex6 color
2753
+ regex: "#[a-f0-9]{6}"
2754
+ }, {
2755
+ token: "constant.numeric", // hex3 color
2756
+ regex: "#[a-f0-9]{3}"
2757
+ }, {
2758
+ token: "constant.numeric",
2759
+ regex: numRe
2760
+ }, {
2761
+ token: ["support.function", "string", "support.function"],
2762
+ regex: "(url\\()(.*)(\\))"
2763
+ }, {
2764
+ token: function (value) {
2765
+ if (properties.hasOwnProperty(value.toLowerCase()))
2766
+ return "support.type";
2767
+ if (keywords.hasOwnProperty(value))
2768
+ return "keyword";
2769
+ else if (constants.hasOwnProperty(value))
2770
+ return "constant.language";
2771
+ else if (functions.hasOwnProperty(value))
2772
+ return "support.function";
2773
+ else if (colors.hasOwnProperty(value.toLowerCase()))
2774
+ return "support.constant.color";
2775
+ else if (tags.hasOwnProperty(value.toLowerCase()))
2776
+ return "variable.language";
2777
+ else
2778
+ return "text";
2779
+ },
2780
+ regex: "\\-?[@a-z_][@a-z0-9_\\-]*"
2781
+ }, {
2782
+ token: "variable",
2783
+ regex: "[a-z_\\-$][a-z0-9_\\-$]*\\b"
2784
+ }, {
2785
+ token: "variable.language",
2786
+ regex: "#[a-z0-9-_]+"
2787
+ }, {
2788
+ token: "variable.language",
2789
+ regex: "\\.[a-z0-9-_]+"
2790
+ }, {
2791
+ token: "variable.language",
2792
+ regex: ":[a-z0-9-_]+"
2793
+ }, {
2794
+ token: "constant",
2795
+ regex: "[a-z0-9-_]+"
2796
+ }, {
2797
+ token: "keyword.operator",
2798
+ regex: "<|>|<=|>=|==|!=|-|%|#|\\+|\\$|\\+|\\*"
2799
+ }, {
2800
+ token: "paren.lparen",
2801
+ regex: "[[({]"
2802
+ }, {
2803
+ token: "paren.rparen",
2804
+ regex: "[\\])}]"
2805
+ }, {
2806
+ token: "text",
2807
+ regex: "\\s+"
2808
+ }, {
2809
+ caseInsensitive: true
2810
+ }
2811
+ ],
2812
+ "comment": [
2813
+ {
2814
+ token: "comment", // closing comment
2815
+ regex: "\\*\\/",
2816
+ next: "start"
2817
+ }, {
2818
+ defaultToken: "comment"
2819
+ }
2820
+ ],
2821
+ "qqstring": [
2822
+ {
2823
+ token: "string",
2824
+ regex: '(?:(?:\\\\.)|(?:[^"\\\\]))*?"',
2825
+ next: "start"
2826
+ }, {
2827
+ token: "string",
2828
+ regex: '.+'
2829
+ }
2830
+ ],
2831
+ "qstring": [
2832
+ {
2833
+ token: "string",
2834
+ regex: "(?:(?:\\\\.)|(?:[^'\\\\]))*?'",
2835
+ next: "start"
2836
+ }, {
2837
+ token: "string",
2838
+ regex: '.+'
2839
+ }
2840
+ ]
2841
+ };
2842
+ };
2843
+ oop.inherits(ScssHighlightRules, TextHighlightRules);
2844
+ exports.ScssHighlightRules = ScssHighlightRules;
2845
+
2846
+ });
2847
+
2848
+ ace.define("ace/mode/sass_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/scss_highlight_rules"], function(require, exports, module){"use strict";
2849
+ var oop = require("../lib/oop");
2850
+ var lang = require("../lib/lang");
2851
+ var ScssHighlightRules = require("./scss_highlight_rules").ScssHighlightRules;
2852
+ var SassHighlightRules = function () {
2853
+ ScssHighlightRules.call(this);
2854
+ var start = this.$rules.start;
2855
+ if (start[1].token == "comment") {
2856
+ start.splice(1, 1, {
2857
+ onMatch: function (value, currentState, stack) {
2858
+ stack.unshift(this.next, -1, value.length - 2, currentState);
2859
+ return "comment";
2860
+ },
2861
+ regex: /^\s*\/\*/,
2862
+ next: "comment"
2863
+ }, {
2864
+ token: "error.invalid",
2865
+ regex: "/\\*|[{;}]"
2866
+ }, {
2867
+ token: "support.type",
2868
+ regex: /^\s*:[\w\-]+\s/
2869
+ });
2870
+ this.$rules.comment = [
2871
+ { regex: /^\s*/, onMatch: function (value, currentState, stack) {
2872
+ if (stack[1] === -1)
2873
+ stack[1] = Math.max(stack[2], value.length - 1);
2874
+ if (value.length <= stack[1]) { stack.shift();
2875
+ stack.shift();
2876
+ stack.shift();
2877
+ this.next = stack.shift();
2878
+ return "text";
2879
+ }
2880
+ else {
2881
+ this.next = "";
2882
+ return "comment";
2883
+ }
2884
+ }, next: "start" },
2885
+ { defaultToken: "comment" }
2886
+ ];
2887
+ }
2888
+ };
2889
+ oop.inherits(SassHighlightRules, ScssHighlightRules);
2890
+ exports.SassHighlightRules = SassHighlightRules;
2891
+
2892
+ });
2893
+
2894
+ ace.define("ace/mode/less_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules","ace/mode/css_highlight_rules"], function(require, exports, module){"use strict";
2895
+ var oop = require("../lib/oop");
2896
+ var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
2897
+ var CssHighlightRules = require('./css_highlight_rules');
2898
+ var LessHighlightRules = function () {
2899
+ var keywordList = "@import|@media|@font-face|@keyframes|@-webkit-keyframes|@supports|" +
2900
+ "@charset|@plugin|@namespace|@document|@page|@viewport|@-ms-viewport|" +
2901
+ "or|and|when|not";
2902
+ var keywords = keywordList.split('|');
2903
+ var properties = CssHighlightRules.supportType.split('|');
2904
+ var keywordMapper = this.createKeywordMapper({
2905
+ "support.constant": CssHighlightRules.supportConstant,
2906
+ "keyword": keywordList,
2907
+ "support.constant.color": CssHighlightRules.supportConstantColor,
2908
+ "support.constant.fonts": CssHighlightRules.supportConstantFonts
2909
+ }, "identifier", true);
2910
+ var numRe = "\\-?(?:(?:[0-9]+)|(?:[0-9]*\\.[0-9]+))";
2911
+ this.$rules = {
2912
+ "start": [
2913
+ {
2914
+ token: "comment",
2915
+ regex: "\\/\\/.*$"
2916
+ },
2917
+ {
2918
+ token: "comment", // multi line comment
2919
+ regex: "\\/\\*",
2920
+ next: "comment"
2921
+ }, {
2922
+ token: "string", // single line
2923
+ regex: '["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]'
2924
+ }, {
2925
+ token: "string", // single line
2926
+ regex: "['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"
2927
+ }, {
2928
+ token: ["constant.numeric", "keyword"],
2929
+ regex: "(" + numRe + ")(ch|cm|deg|em|ex|fr|gd|grad|Hz|in|kHz|mm|ms|pc|pt|px|rad|rem|s|turn|vh|vm|vw|%)"
2930
+ }, {
2931
+ token: "constant.numeric", // hex6 color
2932
+ regex: "#[a-f0-9]{6}"
2933
+ }, {
2934
+ token: "constant.numeric", // hex3 color
2935
+ regex: "#[a-f0-9]{3}"
2936
+ }, {
2937
+ token: "constant.numeric",
2938
+ regex: numRe
2939
+ }, {
2940
+ token: ["support.function", "paren.lparen", "string", "paren.rparen"],
2941
+ regex: "(url)(\\()(.*)(\\))"
2942
+ }, {
2943
+ token: ["support.function", "paren.lparen"],
2944
+ regex: "(:extend|[a-z0-9_\\-]+)(\\()"
2945
+ }, {
2946
+ token: function (value) {
2947
+ if (keywords.indexOf(value.toLowerCase()) > -1)
2948
+ return "keyword";
2949
+ else
2950
+ return "variable";
2951
+ },
2952
+ regex: "[@\\$][a-z0-9_\\-@\\$]*\\b"
2953
+ }, {
2954
+ token: "variable",
2955
+ regex: "[@\\$]\\{[a-z0-9_\\-@\\$]*\\}"
2956
+ }, {
2957
+ token: function (first, second) {
2958
+ if (properties.indexOf(first.toLowerCase()) > -1) {
2959
+ return ["support.type.property", "text"];
2960
+ }
2961
+ else {
2962
+ return ["support.type.unknownProperty", "text"];
2963
+ }
2964
+ },
2965
+ regex: "([a-z0-9-_]+)(\\s*:)"
2966
+ }, {
2967
+ token: "keyword",
2968
+ regex: "&" // special case - always treat as keyword
2969
+ }, {
2970
+ token: keywordMapper,
2971
+ regex: "\\-?[@a-z_][@a-z0-9_\\-]*"
2972
+ }, {
2973
+ token: "variable.language",
2974
+ regex: "#[a-z0-9-_]+"
2975
+ }, {
2976
+ token: "variable.language",
2977
+ regex: "\\.[a-z0-9-_]+"
2978
+ }, {
2979
+ token: "variable.language",
2980
+ regex: ":[a-z_][a-z0-9-_]*"
2981
+ }, {
2982
+ token: "constant",
2983
+ regex: "[a-z0-9-_]+"
2984
+ }, {
2985
+ token: "keyword.operator",
2986
+ regex: "<|>|<=|>=|=|!=|-|%|\\+|\\*"
2987
+ }, {
2988
+ token: "paren.lparen",
2989
+ regex: "[[({]"
2990
+ }, {
2991
+ token: "paren.rparen",
2992
+ regex: "[\\])}]"
2993
+ }, {
2994
+ token: "text",
2995
+ regex: "\\s+"
2996
+ }, {
2997
+ caseInsensitive: true
2998
+ }
2999
+ ],
3000
+ "comment": [
3001
+ {
3002
+ token: "comment", // closing comment
3003
+ regex: "\\*\\/",
3004
+ next: "start"
3005
+ }, {
3006
+ defaultToken: "comment"
3007
+ }
3008
+ ]
3009
+ };
3010
+ this.normalizeRules();
3011
+ };
3012
+ oop.inherits(LessHighlightRules, TextHighlightRules);
3013
+ exports.LessHighlightRules = LessHighlightRules;
3014
+
3015
+ });
3016
+
3017
+ ace.define("ace/mode/slim_highlight_rules",["require","exports","module","ace/config","ace/lib/oop","ace/mode/text_highlight_rules"], function(require, exports, module){"use strict";
3018
+ var modes = require("../config").$modes;
3019
+ var oop = require("../lib/oop");
3020
+ var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
3021
+ var SlimHighlightRules = function () {
3022
+ this.$rules = {
3023
+ "start": [
3024
+ {
3025
+ token: "keyword",
3026
+ regex: /^(\s*)(\w+):\s*/,
3027
+ onMatch: function (value, state, stack, line) {
3028
+ var indent = /^\s*/.exec(line)[0];
3029
+ var m = value.match(/^(\s*)(\w+):/);
3030
+ var language = m[2];
3031
+ if (!/^(javascript|ruby|coffee|markdown|css|scss|sass|less)$/.test(language))
3032
+ language = "";
3033
+ stack.unshift("language-embed", [], [indent, language], state);
3034
+ return this.token;
3035
+ },
3036
+ stateName: "language-embed",
3037
+ next: [{
3038
+ token: "string",
3039
+ regex: /^(\s*)/,
3040
+ onMatch: function (value, state, stack, line) {
3041
+ var indent = stack[2][0];
3042
+ if (indent.length >= value.length) {
3043
+ stack.splice(0, 3);
3044
+ this.next = stack.shift();
3045
+ return this.token;
3046
+ }
3047
+ this.next = "";
3048
+ return [{ type: "text", value: indent }];
3049
+ },
3050
+ next: ""
3051
+ }, {
3052
+ token: "string",
3053
+ regex: /.+/,
3054
+ onMatch: function (value, state, stack, line) {
3055
+ var indent = stack[2][0];
3056
+ var language = stack[2][1];
3057
+ var embedState = stack[1];
3058
+ if (modes[language]) {
3059
+ var data = modes[language].getTokenizer().getLineTokens(line.slice(indent.length), embedState.slice(0));
3060
+ stack[1] = data.state;
3061
+ return data.tokens;
3062
+ }
3063
+ return this.token;
3064
+ }
3065
+ }]
3066
+ },
3067
+ {
3068
+ token: 'constant.begin.javascript.filter.slim',
3069
+ regex: '^(\\s*)():$'
3070
+ }, {
3071
+ token: 'constant.begin..filter.slim',
3072
+ regex: '^(\\s*)(ruby):$'
3073
+ }, {
3074
+ token: 'constant.begin.coffeescript.filter.slim',
3075
+ regex: '^(\\s*)():$'
3076
+ }, {
3077
+ token: 'constant.begin..filter.slim',
3078
+ regex: '^(\\s*)(markdown):$'
3079
+ }, {
3080
+ token: 'constant.begin.css.filter.slim',
3081
+ regex: '^(\\s*)():$'
3082
+ }, {
3083
+ token: 'constant.begin.scss.filter.slim',
3084
+ regex: '^(\\s*)():$'
3085
+ }, {
3086
+ token: 'constant.begin..filter.slim',
3087
+ regex: '^(\\s*)(sass):$'
3088
+ }, {
3089
+ token: 'constant.begin..filter.slim',
3090
+ regex: '^(\\s*)(less):$'
3091
+ }, {
3092
+ token: 'constant.begin..filter.slim',
3093
+ regex: '^(\\s*)(erb):$'
3094
+ }, {
3095
+ token: 'keyword.html.tags.slim',
3096
+ regex: '^(\\s*)((:?\\*(\\w)+)|doctype html|abbr|acronym|address|applet|area|article|aside|audio|base|basefont|bdo|big|blockquote|body|br|button|canvas|caption|center|cite|code|col|colgroup|command|datalist|dd|del|details|dialog|dfn|dir|div|dl|dt|embed|fieldset|figure|font|footer|form|frame|frameset|h1|h2|h3|h4|h5|h6|head|header|hgroup|hr|html|i|iframe|img|input|ins|keygen|kbd|label|legend|link|li|map|mark|menu|meta|meter|nav|noframes|noscript|object|ol|optgroup|option|output|p|param|pre|progress|q|rp|rt|ruby|samp|script|section|select|small|source|span|strike|strong|style|sub|sup|table|tbody|td|textarea|tfoot|th|thead|time|title|tr|tt|ul|var|video|xmp|b|u|s|em|a)(?:([.#](\\w|\\.)+)+\\s?)?\\b'
3097
+ }, {
3098
+ token: 'keyword.slim',
3099
+ regex: '^(\\s*)(?:([.#](\\w|\\.)+)+\\s?)'
3100
+ }, {
3101
+ token: "string",
3102
+ regex: /^(\s*)('|\||\/|(\/!))\s*/,
3103
+ onMatch: function (val, state, stack, line) {
3104
+ var indent = /^\s*/.exec(line)[0];
3105
+ if (stack.length < 1) {
3106
+ stack.push(this.next);
3107
+ }
3108
+ else {
3109
+ stack[0] = "mlString";
3110
+ }
3111
+ if (stack.length < 2) {
3112
+ stack.push(indent.length);
3113
+ }
3114
+ else {
3115
+ stack[1] = indent.length;
3116
+ }
3117
+ return this.token;
3118
+ },
3119
+ next: "mlString"
3120
+ }, {
3121
+ token: 'keyword.control.slim',
3122
+ regex: '^(\\s*)(\\-|==|=)',
3123
+ push: [{
3124
+ token: 'control.end.slim',
3125
+ regex: '$',
3126
+ next: "pop"
3127
+ }, {
3128
+ include: "rubyline"
3129
+ }, {
3130
+ include: "misc"
3131
+ }]
3132
+ }, {
3133
+ token: 'paren',
3134
+ regex: '\\(',
3135
+ push: [{
3136
+ token: 'paren',
3137
+ regex: '\\)',
3138
+ next: "pop"
3139
+ }, {
3140
+ include: "misc"
3141
+ }]
3142
+ }, {
3143
+ token: 'paren',
3144
+ regex: '\\[',
3145
+ push: [{
3146
+ token: 'paren',
3147
+ regex: '\\]',
3148
+ next: "pop"
3149
+ }, {
3150
+ include: "misc"
3151
+ }]
3152
+ }, {
3153
+ include: "misc"
3154
+ }
3155
+ ],
3156
+ "mlString": [{
3157
+ token: "indent",
3158
+ regex: /^\s*/,
3159
+ onMatch: function (val, state, stack) {
3160
+ var curIndent = stack[1];
3161
+ if (curIndent >= val.length) {
3162
+ this.next = "start";
3163
+ stack.splice(0);
3164
+ }
3165
+ else {
3166
+ this.next = "mlString";
3167
+ }
3168
+ return this.token;
3169
+ },
3170
+ next: "start"
3171
+ }, {
3172
+ defaultToken: "string"
3173
+ }],
3174
+ "rubyline": [{
3175
+ token: "keyword.operator.ruby.embedded.slim",
3176
+ regex: "(==|=)(<>|><|<'|'<|<|>)?|-"
3177
+ }, {
3178
+ token: "list.ruby.operators.slim",
3179
+ regex: "(\\b)(for|in|do|if|else|elsif|unless|while|yield|not|and|or)\\b"
3180
+ }, {
3181
+ token: "string",
3182
+ regex: "['](.)*?[']"
3183
+ }, {
3184
+ token: "string",
3185
+ regex: "[\"](.)*?[\"]"
3186
+ }],
3187
+ "misc": [{
3188
+ token: 'class.variable.slim',
3189
+ regex: '\\@([a-zA-Z_][a-zA-Z0-9_]*)\\b'
3190
+ }, {
3191
+ token: "list.meta.slim",
3192
+ regex: "(\\b)(true|false|nil)(\\b)"
3193
+ }, {
3194
+ token: 'keyword.operator.equals.slim',
3195
+ regex: '='
3196
+ }, {
3197
+ token: "string",
3198
+ regex: "['](.)*?[']"
3199
+ }, {
3200
+ token: "string",
3201
+ regex: "[\"](.)*?[\"]"
3202
+ }]
3203
+ };
3204
+ this.normalizeRules();
3205
+ };
3206
+ oop.inherits(SlimHighlightRules, TextHighlightRules);
3207
+ exports.SlimHighlightRules = SlimHighlightRules;
3208
+
3209
+ });
3210
+
3211
+ ace.define("ace/mode/markdown_highlight_rules",["require","exports","module","ace/config","ace/lib/oop","ace/lib/lang","ace/mode/text_highlight_rules","ace/mode/html_highlight_rules"], function(require, exports, module){"use strict";
3212
+ var modes = require("../config").$modes;
3213
+ var oop = require("../lib/oop");
3214
+ var lang = require("../lib/lang");
3215
+ var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
3216
+ var HtmlHighlightRules = require("./html_highlight_rules").HtmlHighlightRules;
3217
+ var escaped = function (ch) {
3218
+ return "(?:[^" + lang.escapeRegExp(ch) + "\\\\]|\\\\.)*";
3219
+ };
3220
+ var MarkdownHighlightRules = function () {
3221
+ HtmlHighlightRules.call(this);
3222
+ var codeBlockStartRule = {
3223
+ token: "support.function",
3224
+ regex: /^\s*(```+[^`]*|~~~+[^~]*)$/,
3225
+ onMatch: function (value, state, stack, line) {
3226
+ var m = value.match(/^(\s*)([`~]+)(.*)/);
3227
+ var language = /[\w-]+|$/.exec(m[3])[0];
3228
+ if (!modes[language])
3229
+ language = "";
3230
+ stack.unshift("githubblock", [], [m[1], m[2], language], state);
3231
+ return this.token;
3232
+ },
3233
+ next: "githubblock"
3234
+ };
3235
+ var codeBlockRules = [{
3236
+ token: "support.function",
3237
+ regex: ".*",
3238
+ onMatch: function (value, state, stack, line) {
3239
+ var embedState = stack[1];
3240
+ var indent = stack[2][0];
3241
+ var endMarker = stack[2][1];
3242
+ var language = stack[2][2];
3243
+ var m = /^(\s*)(`+|~+)\s*$/.exec(value);
3244
+ if (m && m[1].length < indent.length + 3
3245
+ && m[2].length >= endMarker.length && m[2][0] == endMarker[0]) {
3246
+ stack.splice(0, 3);
3247
+ this.next = stack.shift();
3248
+ return this.token;
3249
+ }
3250
+ this.next = "";
3251
+ if (language && modes[language]) {
3252
+ var data = modes[language].getTokenizer().getLineTokens(value, embedState.slice(0));
3253
+ stack[1] = data.state;
3254
+ return data.tokens;
3255
+ }
3256
+ return this.token;
3257
+ }
3258
+ }];
3259
+ this.$rules["start"].unshift({
3260
+ token: "empty_line",
3261
+ regex: '^$',
3262
+ next: "allowBlock"
3263
+ }, {
3264
+ token: "markup.heading.1",
3265
+ regex: "^=+(?=\\s*$)"
3266
+ }, {
3267
+ token: "markup.heading.2",
3268
+ regex: "^\\-+(?=\\s*$)"
3269
+ }, {
3270
+ token: function (value) {
3271
+ return "markup.heading." + value.length;
3272
+ },
3273
+ regex: /^#{1,6}(?=\s|$)/,
3274
+ next: "header"
3275
+ }, codeBlockStartRule, {
3276
+ token: "string.blockquote",
3277
+ regex: "^\\s*>\\s*(?:[*+-]|\\d+\\.)?\\s+",
3278
+ next: "blockquote"
3279
+ }, {
3280
+ token: "constant",
3281
+ regex: "^ {0,3}(?:(?:\\* ?){3,}|(?:\\- ?){3,}|(?:\\_ ?){3,})\\s*$",
3282
+ next: "allowBlock"
3283
+ }, {
3284
+ token: "markup.list",
3285
+ regex: "^\\s{0,3}(?:[*+-]|\\d+\\.)\\s+",
3286
+ next: "listblock-start"
3287
+ }, {
3288
+ include: "basic"
3289
+ });
3290
+ this.addRules({
3291
+ "basic": [{
3292
+ token: "constant.language.escape",
3293
+ regex: /\\[\\`*_{}\[\]()#+\-.!]/
3294
+ }, {
3295
+ token: "support.function",
3296
+ regex: "(`+)(.*?[^`])(\\1)"
3297
+ }, {
3298
+ token: ["text", "constant", "text", "url", "string", "text"],
3299
+ regex: "^([ ]{0,3}\\[)([^\\]]+)(\\]:\\s*)([^ ]+)(\\s*(?:[\"][^\"]+[\"])?(\\s*))$"
3300
+ }, {
3301
+ token: ["text", "string", "text", "constant", "text"],
3302
+ regex: "(\\[)(" + escaped("]") + ")(\\]\\s*\\[)(" + escaped("]") + ")(\\])"
3303
+ }, {
3304
+ token: ["text", "string", "text", "markup.underline", "string", "text"],
3305
+ regex: "(\\!?\\[)(" + // [
3306
+ escaped("]") + // link text or alt text
3307
+ ")(\\]\\()" + // ](
3308
+ '((?:[^\\)\\s\\\\]|\\\\.|\\s(?=[^"]))*)' + // href or image
3309
+ '(\\s*"' + escaped('"') + '"\\s*)?' + // "title"
3310
+ "(\\))" // )
3311
+ }, {
3312
+ token: "string.strong",
3313
+ regex: "([*]{2}|[_]{2}(?=\\S))(.*?\\S[*_]*)(\\1)"
3314
+ }, {
3315
+ token: "string.emphasis",
3316
+ regex: "([*]|[_](?=\\S))(.*?\\S[*_]*)(\\1)"
3317
+ }, {
3318
+ token: ["text", "url", "text"],
3319
+ regex: "(<)(" +
3320
+ "(?:https?|ftp|dict):[^'\">\\s]+" +
3321
+ "|" +
3322
+ "(?:mailto:)?[-.\\w]+\\@[-a-z0-9]+(?:\\.[-a-z0-9]+)*\\.[a-z]+" +
3323
+ ")(>)"
3324
+ }],
3325
+ "allowBlock": [
3326
+ { token: "support.function", regex: "^ {4}.+", next: "allowBlock" },
3327
+ { token: "empty_line", regex: '^$', next: "allowBlock" },
3328
+ { token: "empty", regex: "", next: "start" }
3329
+ ],
3330
+ "header": [{
3331
+ regex: "$",
3332
+ next: "start"
3333
+ }, {
3334
+ include: "basic"
3335
+ }, {
3336
+ defaultToken: "heading"
3337
+ }],
3338
+ "listblock-start": [{
3339
+ token: "support.variable",
3340
+ regex: /(?:\[[ x]\])?/,
3341
+ next: "listblock"
3342
+ }],
3343
+ "listblock": [{
3344
+ token: "empty_line",
3345
+ regex: "^$",
3346
+ next: "start"
3347
+ }, {
3348
+ token: "markup.list",
3349
+ regex: "^\\s{0,3}(?:[*+-]|\\d+\\.)\\s+",
3350
+ next: "listblock-start"
3351
+ }, {
3352
+ include: "basic", noEscape: true
3353
+ },
3354
+ codeBlockStartRule,
3355
+ {
3356
+ defaultToken: "list" //do not use markup.list to allow stling leading `*` differntly
3357
+ }],
3358
+ "blockquote": [{
3359
+ token: "empty_line",
3360
+ regex: "^\\s*$",
3361
+ next: "start"
3362
+ }, {
3363
+ token: "string.blockquote",
3364
+ regex: "^\\s*>\\s*(?:[*+-]|\\d+\\.)?\\s+",
3365
+ next: "blockquote"
3366
+ }, {
3367
+ include: "basic", noEscape: true
3368
+ }, {
3369
+ defaultToken: "string.blockquote"
3370
+ }],
3371
+ "githubblock": codeBlockRules
3372
+ });
3373
+ this.normalizeRules();
3374
+ };
3375
+ oop.inherits(MarkdownHighlightRules, TextHighlightRules);
3376
+ exports.MarkdownHighlightRules = MarkdownHighlightRules;
3377
+
3378
+ });
3379
+
3380
+ ace.define("ace/mode/jade_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules","ace/mode/markdown_highlight_rules","ace/mode/scss_highlight_rules","ace/mode/less_highlight_rules","ace/mode/coffee_highlight_rules","ace/mode/javascript_highlight_rules"], function(require, exports, module){/*
3381
+ THIS FILE WAS AUTOGENERATED BY mode_highlight_rules.tmpl.js (UUID: C5B73B98-5F2A-42E3-9F0E-028A74A9FE4B)
3382
+ */
3383
+ "use strict";
3384
+ var oop = require("../lib/oop");
3385
+ var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
3386
+ var MarkdownHighlightRules = require("./markdown_highlight_rules").MarkdownHighlightRules;
3387
+ var SassHighlightRules = require("./scss_highlight_rules").ScssHighlightRules;
3388
+ var LessHighlightRules = require("./less_highlight_rules").LessHighlightRules;
3389
+ var CoffeeHighlightRules = require("./coffee_highlight_rules").CoffeeHighlightRules;
3390
+ var JavaScriptHighlightRules = require("./javascript_highlight_rules").JavaScriptHighlightRules;
3391
+ function mixin_embed(tag, prefix) {
3392
+ return {
3393
+ token: "entity.name.function.jade",
3394
+ regex: "^\\s*\\:" + tag,
3395
+ next: prefix + "start"
3396
+ };
3397
+ }
3398
+ var JadeHighlightRules = function () {
3399
+ var escapedRe = "\\\\(?:x[0-9a-fA-F]{2}|" + // hex
3400
+ "u[0-9a-fA-F]{4}|" + // unicode
3401
+ "[0-2][0-7]{0,2}|" + // oct
3402
+ "3[0-6][0-7]?|" + // oct
3403
+ "37[0-7]?|" + // oct
3404
+ "[4-7][0-7]?|" + //oct
3405
+ ".)";
3406
+ this.$rules =
3407
+ {
3408
+ "start": [
3409
+ {
3410
+ token: "keyword.control.import.include.jade",
3411
+ regex: "\\s*\\binclude\\b"
3412
+ },
3413
+ {
3414
+ token: "keyword.other.doctype.jade",
3415
+ regex: "^!!!\\s*(?:[a-zA-Z0-9-_]+)?"
3416
+ },
3417
+ {
3418
+ onMatch: function (value, currentState, stack) {
3419
+ stack.unshift(this.next, value.length - 2, currentState);
3420
+ return "comment";
3421
+ },
3422
+ regex: /^\s*\/\//,
3423
+ next: "comment_block"
3424
+ },
3425
+ mixin_embed("markdown", "markdown-"),
3426
+ mixin_embed("sass", "sass-"),
3427
+ mixin_embed("less", "less-"),
3428
+ mixin_embed("coffee", "coffee-"),
3429
+ {
3430
+ token: ["storage.type.function.jade",
3431
+ "entity.name.function.jade",
3432
+ "punctuation.definition.parameters.begin.jade",
3433
+ "variable.parameter.function.jade",
3434
+ "punctuation.definition.parameters.end.jade"
3435
+ ],
3436
+ regex: "^(\\s*mixin)( [\\w\\-]+)(\\s*\\()(.*?)(\\))"
3437
+ },
3438
+ {
3439
+ token: ["storage.type.function.jade", "entity.name.function.jade"],
3440
+ regex: "^(\\s*mixin)( [\\w\\-]+)"
3441
+ },
3442
+ {
3443
+ token: "source.js.embedded.jade",
3444
+ regex: "^\\s*(?:-|=|!=)",
3445
+ next: "js-start"
3446
+ },
3447
+ {
3448
+ token: "string.interpolated.jade",
3449
+ regex: "[#!]\\{[^\\}]+\\}"
3450
+ },
3451
+ {
3452
+ token: "meta.tag.any.jade",
3453
+ regex: /^\s*(?!\w+:)(?:[\w-]+|(?=\.|#)])/,
3454
+ next: "tag_single"
3455
+ },
3456
+ {
3457
+ token: "suport.type.attribute.id.jade",
3458
+ regex: "#\\w+"
3459
+ },
3460
+ {
3461
+ token: "suport.type.attribute.class.jade",
3462
+ regex: "\\.\\w+"
3463
+ },
3464
+ {
3465
+ token: "punctuation",
3466
+ regex: "\\s*(?:\\()",
3467
+ next: "tag_attributes"
3468
+ }
3469
+ ],
3470
+ "comment_block": [
3471
+ { regex: /^\s*(?:\/\/)?/, onMatch: function (value, currentState, stack) {
3472
+ if (value.length <= stack[1]) {
3473
+ if (value.slice(-1) == "/") {
3474
+ stack[1] = value.length - 2;
3475
+ this.next = "";
3476
+ return "comment";
3477
+ }
3478
+ stack.shift();
3479
+ stack.shift();
3480
+ this.next = stack.shift();
3481
+ return "text";
3482
+ }
3483
+ else {
3484
+ this.next = "";
3485
+ return "comment";
3486
+ }
3487
+ }, next: "start" },
3488
+ { defaultToken: "comment" }
3489
+ ],
3490
+ "tag_single": [
3491
+ {
3492
+ token: "entity.other.attribute-name.class.jade",
3493
+ regex: "\\.[\\w-]+"
3494
+ },
3495
+ {
3496
+ token: "entity.other.attribute-name.id.jade",
3497
+ regex: "#[\\w-]+"
3498
+ },
3499
+ {
3500
+ token: ["text", "punctuation"],
3501
+ regex: "($)|((?!\\.|#|=|-))",
3502
+ next: "start"
3503
+ }
3504
+ ],
3505
+ "tag_attributes": [
3506
+ {
3507
+ token: "string",
3508
+ regex: "'(?=.)",
3509
+ next: "qstring"
3510
+ },
3511
+ {
3512
+ token: "string",
3513
+ regex: '"(?=.)',
3514
+ next: "qqstring"
3515
+ },
3516
+ {
3517
+ token: ["entity.other.attribute-name.jade", "punctuation"],
3518
+ regex: "([a-zA-Z:\\.-]+)(=)?",
3519
+ next: "attribute_strings"
3520
+ },
3521
+ {
3522
+ token: "punctuation",
3523
+ regex: "\\)",
3524
+ next: "start"
3525
+ }
3526
+ ],
3527
+ "attribute_strings": [
3528
+ {
3529
+ token: "string",
3530
+ regex: "'(?=.)",
3531
+ next: "qstring"
3532
+ },
3533
+ {
3534
+ token: "string",
3535
+ regex: '"(?=.)',
3536
+ next: "qqstring"
3537
+ },
3538
+ {
3539
+ token: "string",
3540
+ regex: '(?=\\S)',
3541
+ next: "tag_attributes"
3542
+ }
3543
+ ],
3544
+ "qqstring": [
3545
+ {
3546
+ token: "constant.language.escape",
3547
+ regex: escapedRe
3548
+ }, {
3549
+ token: "string",
3550
+ regex: '[^"\\\\]+'
3551
+ }, {
3552
+ token: "string",
3553
+ regex: "\\\\$",
3554
+ next: "qqstring"
3555
+ }, {
3556
+ token: "string",
3557
+ regex: '"|$',
3558
+ next: "tag_attributes"
3559
+ }
3560
+ ],
3561
+ "qstring": [
3562
+ {
3563
+ token: "constant.language.escape",
3564
+ regex: escapedRe
3565
+ }, {
3566
+ token: "string",
3567
+ regex: "[^'\\\\]+"
3568
+ }, {
3569
+ token: "string",
3570
+ regex: "\\\\$",
3571
+ next: "qstring"
3572
+ }, {
3573
+ token: "string",
3574
+ regex: "'|$",
3575
+ next: "tag_attributes"
3576
+ }
3577
+ ]
3578
+ };
3579
+ this.embedRules(JavaScriptHighlightRules, "js-", [{
3580
+ token: "text",
3581
+ regex: ".$",
3582
+ next: "start"
3583
+ }]);
3584
+ };
3585
+ oop.inherits(JadeHighlightRules, TextHighlightRules);
3586
+ exports.JadeHighlightRules = JadeHighlightRules;
3587
+
3588
+ });
3589
+
3590
+ ace.define("ace/mode/vue_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/css_highlight_rules","ace/mode/typescript_highlight_rules","ace/mode/coffee_highlight_rules","ace/mode/html_highlight_rules","ace/mode/javascript_highlight_rules","ace/mode/stylus_highlight_rules","ace/mode/sass_highlight_rules","ace/mode/scss_highlight_rules","ace/mode/less_highlight_rules","ace/tokenizer","ace/mode/slim_highlight_rules","ace/mode/jade_highlight_rules","ace/mode/javascript"], function(require, exports, module){"use strict";
3591
+ var __read = (this && this.__read) || function (o, n) {
3592
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
3593
+ if (!m) return o;
3594
+ var i = m.call(o), r, ar = [], e;
3595
+ try {
3596
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
3597
+ }
3598
+ catch (error) { e = { error: error }; }
3599
+ finally {
3600
+ try {
3601
+ if (r && !r.done && (m = i["return"])) m.call(i);
3602
+ }
3603
+ finally { if (e) throw e.error; }
3604
+ }
3605
+ return ar;
3606
+ };
3607
+ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
3608
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
3609
+ if (ar || !(i in from)) {
3610
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
3611
+ ar[i] = from[i];
3612
+ }
3613
+ }
3614
+ return to.concat(ar || Array.prototype.slice.call(from));
3615
+ };
3616
+ var oop = require("../lib/oop");
3617
+ var CssHighlightRules = require("./css_highlight_rules").CssHighlightRules;
3618
+ var TypeScriptHighlightRules = require("./typescript_highlight_rules").TypeScriptHighlightRules;
3619
+ var CoffeeHighlightRules = require("./coffee_highlight_rules").CoffeeHighlightRules;
3620
+ var HtmlHighlightRules = require("./html_highlight_rules").HtmlHighlightRules;
3621
+ var JavaScriptHighlightRules = require("./javascript_highlight_rules").JavaScriptHighlightRules;
3622
+ var StylusHighlightRules = require("./stylus_highlight_rules").StylusHighlightRules;
3623
+ var SassHighlightRules = require("./sass_highlight_rules").SassHighlightRules;
3624
+ var ScssHighlightRules = require("./scss_highlight_rules").ScssHighlightRules;
3625
+ var LessHighlightRules = require("./less_highlight_rules").LessHighlightRules;
3626
+ var Tokenizer = require("../tokenizer").Tokenizer;
3627
+ var SlimHighlightRules = require("./slim_highlight_rules").SlimHighlightRules;
3628
+ var JadeHighlightRules = require("./jade_highlight_rules").JadeHighlightRules;
3629
+ var JavaScriptMode = require("./javascript").Mode;
3630
+ var VueHighlightRules = function (options) {
3631
+ this.embedLangRules = function (HighlightRules, tag, value, attribute) {
3632
+ var condition = attribute ? "(?=[^>]*" + attribute + "\\s*=\\s*['\"]" + value + "['\"]))" : "(?=\\s|>|$))";
3633
+ this.$rules.start.unshift({
3634
+ token: ["meta.tag.punctuation.tag-open.xml", "meta.tag." + tag + ".tag-name.xml"],
3635
+ regex: "(<)(" + tag + condition,
3636
+ next: [
3637
+ {
3638
+ token: "meta.tag.punctuation.tag-close." + tag + ".xml",
3639
+ regex: "/?>",
3640
+ next: value + "-start"
3641
+ }, { include: "attributes" }
3642
+ ]
3643
+ });
3644
+ this.$rules[tag + "-end"] = [
3645
+ { include: "attributes" }, {
3646
+ token: "meta.tag.punctuation.tag-close.xml",
3647
+ regex: "/?>",
3648
+ next: "start",
3649
+ onMatch: function (value, currentState, stack) {
3650
+ stack.splice(0);
3651
+ return this.token;
3652
+ }
3653
+ }
3654
+ ];
3655
+ this.embedRules(HighlightRules, value + "-", [
3656
+ {
3657
+ token: ["meta.tag.punctuation.end-tag-open.xml", "meta.tag." + tag + ".tag-name.xml"],
3658
+ regex: "(</)(" + tag + "(?=\\s|>|$))",
3659
+ next: tag + "-end"
3660
+ }, {
3661
+ token: "string.cdata.xml",
3662
+ regex: "<\\!\\[CDATA\\["
3663
+ }, {
3664
+ token: "string.cdata.xml",
3665
+ regex: "\\]\\]>"
3666
+ }
3667
+ ]);
3668
+ };
3669
+ var vueRules = [
3670
+ {
3671
+ include: "vue-interpolations"
3672
+ }
3673
+ ];
3674
+ var VueRules = new HtmlHighlightRules().getRules();
3675
+ VueRules.start = vueRules.concat(VueRules.start);
3676
+ VueRules["vue-interpolations"] = [
3677
+ {
3678
+ token: "punctuation",
3679
+ regex: /\{\{\{?/,
3680
+ next: "js-interpolation-start"
3681
+ }
3682
+ ];
3683
+ var self = this;
3684
+ VueRules.tag_stuff.unshift({
3685
+ token: "string",
3686
+ regex: /(?:\b(v-)|(:|@))(\[?[a-zA-Z\-.]+\]?)(?:(\:\[?[a-zA-Z\-]+\]?))?((?:\.[a-zA-Z\-]+)*)(\s*)(=)(\s*)(["'])/,
3687
+ onMatch: function (value, currentState, stack) {
3688
+ var quote = value[value.length - 1];
3689
+ stack.unshift(quote, currentState);
3690
+ var values = new RegExp(this.regex).exec(value);
3691
+ if (!values)
3692
+ return "text";
3693
+ var tokens = [];
3694
+ var types = [
3695
+ "entity.other.attribute-name.xml", "punctuation.separator.key-value.xml",
3696
+ "entity.other.attribute-name.xml", "entity.other.attribute-name.xml", "entity.other.attribute-name.xml",
3697
+ "text", "punctuation.separator.key-value.xml", "text", "string"
3698
+ ];
3699
+ for (var i = 0, l = types.length; i < l; i++) {
3700
+ if (values[i + 1])
3701
+ tokens[tokens.length] = {
3702
+ type: types[i],
3703
+ value: values[i + 1]
3704
+ };
3705
+ }
3706
+ return tokens;
3707
+ },
3708
+ next: [
3709
+ {
3710
+ token: "string",
3711
+ regex: /$/,
3712
+ next: "tag_stuff"
3713
+ }, {
3714
+ token: "string",
3715
+ regex: /.*/,
3716
+ onMatch: function (value, currentState, stack, line) {
3717
+ var quote = stack[0];
3718
+ var parts = value.split(quote);
3719
+ var text = parts[0];
3720
+ this.next = "";
3721
+ if (parts.length > 1) {
3722
+ stack.shift();
3723
+ var nextState = stack.shift();
3724
+ var currentData = new Tokenizer(self.$rules).getLineTokens(parts.slice(1).join(quote), nextState);
3725
+ currentData.tokens.unshift({
3726
+ type: "string",
3727
+ value: quote
3728
+ });
3729
+ this.next = Array.isArray(currentData.state) ? currentData.state[currentData.state.length - 1]
3730
+ : currentData.state;
3731
+ }
3732
+ var data = new JavaScriptMode().getTokenizer().getLineTokens(text, "start");
3733
+ var tokens = data.tokens;
3734
+ if (currentData) {
3735
+ tokens.push.apply(tokens, __spreadArray([], __read(currentData.tokens), false));
3736
+ }
3737
+ return tokens;
3738
+ }
3739
+ }
3740
+ ]
3741
+ }, {
3742
+ token: "string",
3743
+ regex: '"',
3744
+ next: [
3745
+ {
3746
+ token: "string",
3747
+ regex: '"|$',
3748
+ next: "tag_stuff"
3749
+ }, {
3750
+ include: "vue-interpolations"
3751
+ }, {
3752
+ defaultToken: "string"
3753
+ }
3754
+ ]
3755
+ }, {
3756
+ token: "string",
3757
+ regex: "'",
3758
+ next: [
3759
+ {
3760
+ token: "string",
3761
+ regex: "'|$",
3762
+ next: "tag_stuff"
3763
+ }, {
3764
+ include: "vue-interpolations"
3765
+ }, {
3766
+ defaultToken: "string"
3767
+ }
3768
+ ]
3769
+ });
3770
+ this.$rules = VueRules;
3771
+ this.embedRules(JavaScriptHighlightRules, "js-interpolation-", [
3772
+ {
3773
+ token: "punctuation",
3774
+ regex: /\}\}\}?/,
3775
+ next: "start"
3776
+ }
3777
+ ]);
3778
+ this.embedLangRules(CssHighlightRules, "style", "css");
3779
+ this.embedLangRules(StylusHighlightRules, "style", "stylus", "lang");
3780
+ this.embedLangRules(SassHighlightRules, "style", "sass", "lang");
3781
+ this.embedLangRules(ScssHighlightRules, "style", "scss", "lang");
3782
+ this.embedLangRules(LessHighlightRules, "style", "less", "lang");
3783
+ this.embedLangRules(TypeScriptHighlightRules, "script", "ts", "lang");
3784
+ this.embedLangRules(CoffeeHighlightRules, "script", "coffee", "lang");
3785
+ this.embedLangRules(SlimHighlightRules, "template", "slm", "lang");
3786
+ this.embedLangRules(JadeHighlightRules, "template", "jade", "lang");
3787
+ this.embedLangRules(StylusHighlightRules, "template", "stylus", "lang");
3788
+ this.normalizeRules();
3789
+ };
3790
+ oop.inherits(VueHighlightRules, HtmlHighlightRules);
3791
+ exports.VueHighlightRules = VueHighlightRules;
3792
+
3793
+ });
3794
+
3795
+ ace.define("ace/mode/vue",["require","exports","module","ace/lib/oop","ace/mode/folding/html","ace/lib/lang","ace/mode/behaviour/xml","ace/mode/html_completions","ace/mode/html","ace/mode/vue_highlight_rules"], function(require, exports, module){"use strict";
3796
+ var oop = require("../lib/oop");
3797
+ var HtmlFoldMode = require("./folding/html").FoldMode;
3798
+ var lang = require("../lib/lang");
3799
+ var XmlBehaviour = require("./behaviour/xml").XmlBehaviour;
3800
+ var HtmlCompletions = require("./html_completions").HtmlCompletions;
3801
+ var HTMLMode = require("./html").Mode;
3802
+ var VueHighlightRules = require("./vue_highlight_rules").VueHighlightRules;
3803
+ var voidElements = [
3804
+ "area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "menuitem", "param", "source",
3805
+ "track", "wbr"
3806
+ ];
3807
+ var optionalEndTags = ["li", "dt", "dd", "p", "rt", "rp", "optgroup", "option", "colgroup", "td", "th"];
3808
+ var Mode = function () {
3809
+ this.HighlightRules = VueHighlightRules;
3810
+ this.foldingRules = new HtmlFoldMode(this.voidElements, lang.arrayToMap(optionalEndTags));
3811
+ this.$behaviour = new XmlBehaviour();
3812
+ this.$completer = new HtmlCompletions();
3813
+ };
3814
+ oop.inherits(Mode, HTMLMode);
3815
+ (function () {
3816
+ this.blockComment = {
3817
+ start: "<!--",
3818
+ end: "-->"
3819
+ };
3820
+ this.voidElements = lang.arrayToMap(voidElements);
3821
+ this.getCompletions = function (state, session, pos, prefix) {
3822
+ return this.$completer.getCompletions(state, session, pos, prefix);
3823
+ };
3824
+ this.$id = "ace/mode/vue";
3825
+ }).call(Mode.prototype);
3826
+ exports.Mode = Mode;
3827
+
3828
+ }); (function() {
3829
+ ace.require(["ace/mode/vue"], function(m) {
3830
+ if (typeof module == "object" && typeof exports == "object" && module) {
3831
+ module.exports = m;
3832
+ }
3833
+ });
3834
+ })();
3835
+