bedrock_sass 0.1.9 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (534) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -5
  3. data/assets/_vendor/ace/ace.js +21635 -0
  4. data/assets/_vendor/ace/ext-beautify.js +318 -0
  5. data/assets/_vendor/ace/ext-elastic_tabstops_lite.js +277 -0
  6. data/assets/_vendor/ace/ext-emmet.js +1226 -0
  7. data/assets/_vendor/ace/ext-error_marker.js +10 -0
  8. data/assets/_vendor/ace/ext-keybinding_menu.js +189 -0
  9. data/assets/_vendor/ace/ext-language_tools.js +1997 -0
  10. data/assets/_vendor/ace/ext-linking.js +65 -0
  11. data/assets/_vendor/ace/ext-modelist.js +228 -0
  12. data/assets/_vendor/ace/ext-options.js +750 -0
  13. data/assets/_vendor/ace/ext-rtl.js +110 -0
  14. data/assets/_vendor/ace/ext-searchbox.js +512 -0
  15. data/assets/_vendor/ace/ext-settings_menu.js +771 -0
  16. data/assets/_vendor/ace/ext-spellcheck.js +75 -0
  17. data/assets/_vendor/ace/ext-split.js +208 -0
  18. data/assets/_vendor/ace/ext-static_highlight.js +226 -0
  19. data/assets/_vendor/ace/ext-statusbar.js +57 -0
  20. data/assets/_vendor/ace/ext-textarea.js +567 -0
  21. data/assets/_vendor/ace/ext-themelist.js +67 -0
  22. data/assets/_vendor/ace/ext-whitespace.js +210 -0
  23. data/assets/_vendor/ace/keybinding-emacs.js +1165 -0
  24. data/assets/_vendor/ace/keybinding-vim.js +5673 -0
  25. data/assets/_vendor/ace/mode-abap.js +222 -0
  26. data/assets/_vendor/ace/mode-abc.js +267 -0
  27. data/assets/_vendor/ace/mode-actionscript.js +274 -0
  28. data/assets/_vendor/ace/mode-ada.js +138 -0
  29. data/assets/_vendor/ace/mode-apache_conf.js +363 -0
  30. data/assets/_vendor/ace/mode-applescript.js +279 -0
  31. data/assets/_vendor/ace/mode-asciidoc.js +349 -0
  32. data/assets/_vendor/ace/mode-asl.js +422 -0
  33. data/assets/_vendor/ace/mode-assembly_x86.js +193 -0
  34. data/assets/_vendor/ace/mode-autohotkey.js +243 -0
  35. data/assets/_vendor/ace/mode-batchfile.js +230 -0
  36. data/assets/_vendor/ace/mode-bro.js +334 -0
  37. data/assets/_vendor/ace/mode-c9search.js +294 -0
  38. data/assets/_vendor/ace/mode-c_cpp.js +502 -0
  39. data/assets/_vendor/ace/mode-cirru.js +211 -0
  40. data/assets/_vendor/ace/mode-clojure.js +314 -0
  41. data/assets/_vendor/ace/mode-cobol.js +102 -0
  42. data/assets/_vendor/ace/mode-coffee.js +400 -0
  43. data/assets/_vendor/ace/mode-coldfusion.js +2596 -0
  44. data/assets/_vendor/ace/mode-csharp.js +502 -0
  45. data/assets/_vendor/ace/mode-csound_document.js +3749 -0
  46. data/assets/_vendor/ace/mode-csound_orchestra.js +2687 -0
  47. data/assets/_vendor/ace/mode-csound_score.js +454 -0
  48. data/assets/_vendor/ace/mode-csp.js +60 -0
  49. data/assets/_vendor/ace/mode-css.js +723 -0
  50. data/assets/_vendor/ace/mode-curly.js +2564 -0
  51. data/assets/_vendor/ace/mode-d.js +520 -0
  52. data/assets/_vendor/ace/mode-dart.js +703 -0
  53. data/assets/_vendor/ace/mode-diff.js +146 -0
  54. data/assets/_vendor/ace/mode-django.js +2594 -0
  55. data/assets/_vendor/ace/mode-dockerfile.js +498 -0
  56. data/assets/_vendor/ace/mode-dot.js +418 -0
  57. data/assets/_vendor/ace/mode-drools.js +496 -0
  58. data/assets/_vendor/ace/mode-edifact.js +165 -0
  59. data/assets/_vendor/ace/mode-eiffel.js +136 -0
  60. data/assets/_vendor/ace/mode-ejs.js +3026 -0
  61. data/assets/_vendor/ace/mode-elixir.js +501 -0
  62. data/assets/_vendor/ace/mode-elm.js +307 -0
  63. data/assets/_vendor/ace/mode-erlang.js +1009 -0
  64. data/assets/_vendor/ace/mode-forth.js +297 -0
  65. data/assets/_vendor/ace/mode-fortran.js +431 -0
  66. data/assets/_vendor/ace/mode-fsharp.js +314 -0
  67. data/assets/_vendor/ace/mode-ftl.js +1192 -0
  68. data/assets/_vendor/ace/mode-gcode.js +94 -0
  69. data/assets/_vendor/ace/mode-gherkin.js +172 -0
  70. data/assets/_vendor/ace/mode-gitignore.js +60 -0
  71. data/assets/_vendor/ace/mode-glsl.js +579 -0
  72. data/assets/_vendor/ace/mode-gobstones.js +929 -0
  73. data/assets/_vendor/ace/mode-golang.js +414 -0
  74. data/assets/_vendor/ace/mode-graphqlschema.js +214 -0
  75. data/assets/_vendor/ace/mode-groovy.js +986 -0
  76. data/assets/_vendor/ace/mode-haml.js +1555 -0
  77. data/assets/_vendor/ace/mode-handlebars.js +2622 -0
  78. data/assets/_vendor/ace/mode-haskell.js +379 -0
  79. data/assets/_vendor/ace/mode-haskell_cabal.js +142 -0
  80. data/assets/_vendor/ace/mode-haxe.js +386 -0
  81. data/assets/_vendor/ace/mode-hjson.js +353 -0
  82. data/assets/_vendor/ace/mode-html.js +2509 -0
  83. data/assets/_vendor/ace/mode-html_elixir.js +3087 -0
  84. data/assets/_vendor/ace/mode-html_ruby.js +3043 -0
  85. data/assets/_vendor/ace/mode-ini.js +163 -0
  86. data/assets/_vendor/ace/mode-io.js +253 -0
  87. data/assets/_vendor/ace/mode-jack.js +347 -0
  88. data/assets/_vendor/ace/mode-jade.js +2126 -0
  89. data/assets/_vendor/ace/mode-java.js +975 -0
  90. data/assets/_vendor/ace/mode-javascript.js +797 -0
  91. data/assets/_vendor/ace/mode-json.js +327 -0
  92. data/assets/_vendor/ace/mode-jsoniq.js +4940 -0
  93. data/assets/_vendor/ace/mode-jsp.js +1430 -0
  94. data/assets/_vendor/ace/mode-jssm.js +325 -0
  95. data/assets/_vendor/ace/mode-jsx.js +412 -0
  96. data/assets/_vendor/ace/mode-julia.js +303 -0
  97. data/assets/_vendor/ace/mode-kotlin.js +795 -0
  98. data/assets/_vendor/ace/mode-latex.js +297 -0
  99. data/assets/_vendor/ace/mode-less.js +841 -0
  100. data/assets/_vendor/ace/mode-liquid.js +1193 -0
  101. data/assets/_vendor/ace/mode-lisp.js +112 -0
  102. data/assets/_vendor/ace/mode-livescript.js +280 -0
  103. data/assets/_vendor/ace/mode-logiql.js +317 -0
  104. data/assets/_vendor/ace/mode-lsl.js +343 -0
  105. data/assets/_vendor/ace/mode-lua.js +432 -0
  106. data/assets/_vendor/ace/mode-luapage.js +3007 -0
  107. data/assets/_vendor/ace/mode-lucene.js +87 -0
  108. data/assets/_vendor/ace/mode-makefile.js +410 -0
  109. data/assets/_vendor/ace/mode-markdown.js +3189 -0
  110. data/assets/_vendor/ace/mode-mask.js +1802 -0
  111. data/assets/_vendor/ace/mode-matlab.js +264 -0
  112. data/assets/_vendor/ace/mode-maze.js +291 -0
  113. data/assets/_vendor/ace/mode-mel.js +263 -0
  114. data/assets/_vendor/ace/mode-mixal.js +123 -0
  115. data/assets/_vendor/ace/mode-mushcode.js +681 -0
  116. data/assets/_vendor/ace/mode-mysql.js +168 -0
  117. data/assets/_vendor/ace/mode-nix.js +646 -0
  118. data/assets/_vendor/ace/mode-nsis.js +312 -0
  119. data/assets/_vendor/ace/mode-objectivec.js +739 -0
  120. data/assets/_vendor/ace/mode-ocaml.js +422 -0
  121. data/assets/_vendor/ace/mode-pascal.js +205 -0
  122. data/assets/_vendor/ace/mode-perl.js +380 -0
  123. data/assets/_vendor/ace/mode-pgsql.js +1508 -0
  124. data/assets/_vendor/ace/mode-php.js +13088 -0
  125. data/assets/_vendor/ace/mode-php_laravel_blade.js +13289 -0
  126. data/assets/_vendor/ace/mode-pig.js +310 -0
  127. data/assets/_vendor/ace/mode-plain_text.js +33 -0
  128. data/assets/_vendor/ace/mode-powershell.js +418 -0
  129. data/assets/_vendor/ace/mode-praat.js +478 -0
  130. data/assets/_vendor/ace/mode-prolog.js +371 -0
  131. data/assets/_vendor/ace/mode-properties.js +81 -0
  132. data/assets/_vendor/ace/mode-protobuf.js +592 -0
  133. data/assets/_vendor/ace/mode-puppet.js +370 -0
  134. data/assets/_vendor/ace/mode-python.js +273 -0
  135. data/assets/_vendor/ace/mode-r.js +310 -0
  136. data/assets/_vendor/ace/mode-razor.js +2869 -0
  137. data/assets/_vendor/ace/mode-rdoc.js +243 -0
  138. data/assets/_vendor/ace/mode-red.js +450 -0
  139. data/assets/_vendor/ace/mode-redshift.js +361 -0
  140. data/assets/_vendor/ace/mode-rhtml.js +2806 -0
  141. data/assets/_vendor/ace/mode-rst.js +257 -0
  142. data/assets/_vendor/ace/mode-ruby.js +497 -0
  143. data/assets/_vendor/ace/mode-rust.js +279 -0
  144. data/assets/_vendor/ace/mode-sass.js +441 -0
  145. data/assets/_vendor/ace/mode-scad.js +414 -0
  146. data/assets/_vendor/ace/mode-scala.js +982 -0
  147. data/assets/_vendor/ace/mode-scheme.js +232 -0
  148. data/assets/_vendor/ace/mode-scss.js +606 -0
  149. data/assets/_vendor/ace/mode-sh.js +447 -0
  150. data/assets/_vendor/ace/mode-sjs.js +1014 -0
  151. data/assets/_vendor/ace/mode-slim.js +4736 -0
  152. data/assets/_vendor/ace/mode-smarty.js +2635 -0
  153. data/assets/_vendor/ace/mode-snippets.js +207 -0
  154. data/assets/_vendor/ace/mode-soy_template.js +2847 -0
  155. data/assets/_vendor/ace/mode-space.js +168 -0
  156. data/assets/_vendor/ace/mode-sparql.js +320 -0
  157. data/assets/_vendor/ace/mode-sql.js +111 -0
  158. data/assets/_vendor/ace/mode-sqlserver.js +444 -0
  159. data/assets/_vendor/ace/mode-stylus.js +471 -0
  160. data/assets/_vendor/ace/mode-svg.js +1581 -0
  161. data/assets/_vendor/ace/mode-swift.js +390 -0
  162. data/assets/_vendor/ace/mode-tcl.js +383 -0
  163. data/assets/_vendor/ace/mode-terraform.js +398 -0
  164. data/assets/_vendor/ace/mode-tex.js +159 -0
  165. data/assets/_vendor/ace/mode-text.js +10 -0
  166. data/assets/_vendor/ace/mode-textile.js +150 -0
  167. data/assets/_vendor/ace/mode-toml.js +154 -0
  168. data/assets/_vendor/ace/mode-tsx.js +887 -0
  169. data/assets/_vendor/ace/mode-turtle.js +296 -0
  170. data/assets/_vendor/ace/mode-twig.js +2693 -0
  171. data/assets/_vendor/ace/mode-typescript.js +868 -0
  172. data/assets/_vendor/ace/mode-vala.js +676 -0
  173. data/assets/_vendor/ace/mode-vbscript.js +207 -0
  174. data/assets/_vendor/ace/mode-velocity.js +2790 -0
  175. data/assets/_vendor/ace/mode-verilog.js +119 -0
  176. data/assets/_vendor/ace/mode-vhdl.js +118 -0
  177. data/assets/_vendor/ace/mode-wollok.js +911 -0
  178. data/assets/_vendor/ace/mode-xml.js +677 -0
  179. data/assets/_vendor/ace/mode-xquery.js +4922 -0
  180. data/assets/_vendor/ace/mode-yaml.js +300 -0
  181. data/assets/_vendor/ace/snippets/abap.js +15 -0
  182. data/assets/_vendor/ace/snippets/abc.js +46 -0
  183. data/assets/_vendor/ace/snippets/actionscript.js +172 -0
  184. data/assets/_vendor/ace/snippets/ada.js +15 -0
  185. data/assets/_vendor/ace/snippets/apache_conf.js +15 -0
  186. data/assets/_vendor/ace/snippets/applescript.js +15 -0
  187. data/assets/_vendor/ace/snippets/asciidoc.js +15 -0
  188. data/assets/_vendor/ace/snippets/asl.js +14 -0
  189. data/assets/_vendor/ace/snippets/assembly_x86.js +15 -0
  190. data/assets/_vendor/ace/snippets/autohotkey.js +15 -0
  191. data/assets/_vendor/ace/snippets/batchfile.js +15 -0
  192. data/assets/_vendor/ace/snippets/bro.js +15 -0
  193. data/assets/_vendor/ace/snippets/c9search.js +15 -0
  194. data/assets/_vendor/ace/snippets/c_cpp.js +146 -0
  195. data/assets/_vendor/ace/snippets/cirru.js +15 -0
  196. data/assets/_vendor/ace/snippets/clojure.js +105 -0
  197. data/assets/_vendor/ace/snippets/cobol.js +15 -0
  198. data/assets/_vendor/ace/snippets/coffee.js +110 -0
  199. data/assets/_vendor/ace/snippets/coldfusion.js +15 -0
  200. data/assets/_vendor/ace/snippets/csharp.js +15 -0
  201. data/assets/_vendor/ace/snippets/csound_document.js +25 -0
  202. data/assets/_vendor/ace/snippets/csound_orchestra.js +62 -0
  203. data/assets/_vendor/ace/snippets/csound_score.js +15 -0
  204. data/assets/_vendor/ace/snippets/csp.js +15 -0
  205. data/assets/_vendor/ace/snippets/css.js +982 -0
  206. data/assets/_vendor/ace/snippets/curly.js +15 -0
  207. data/assets/_vendor/ace/snippets/d.js +15 -0
  208. data/assets/_vendor/ace/snippets/dart.js +98 -0
  209. data/assets/_vendor/ace/snippets/diff.js +26 -0
  210. data/assets/_vendor/ace/snippets/django.js +123 -0
  211. data/assets/_vendor/ace/snippets/dockerfile.js +15 -0
  212. data/assets/_vendor/ace/snippets/dot.js +15 -0
  213. data/assets/_vendor/ace/snippets/drools.js +34 -0
  214. data/assets/_vendor/ace/snippets/edifact.js +255 -0
  215. data/assets/_vendor/ace/snippets/eiffel.js +15 -0
  216. data/assets/_vendor/ace/snippets/ejs.js +15 -0
  217. data/assets/_vendor/ace/snippets/elixir.js +15 -0
  218. data/assets/_vendor/ace/snippets/elm.js +15 -0
  219. data/assets/_vendor/ace/snippets/erlang.js +175 -0
  220. data/assets/_vendor/ace/snippets/forth.js +15 -0
  221. data/assets/_vendor/ace/snippets/fortran.js +15 -0
  222. data/assets/_vendor/ace/snippets/fsharp.js +15 -0
  223. data/assets/_vendor/ace/snippets/ftl.js +15 -0
  224. data/assets/_vendor/ace/snippets/gcode.js +15 -0
  225. data/assets/_vendor/ace/snippets/gherkin.js +15 -0
  226. data/assets/_vendor/ace/snippets/gitignore.js +15 -0
  227. data/assets/_vendor/ace/snippets/glsl.js +15 -0
  228. data/assets/_vendor/ace/snippets/gobstones.js +49 -0
  229. data/assets/_vendor/ace/snippets/golang.js +15 -0
  230. data/assets/_vendor/ace/snippets/graphqlschema.js +47 -0
  231. data/assets/_vendor/ace/snippets/groovy.js +15 -0
  232. data/assets/_vendor/ace/snippets/haml.js +35 -0
  233. data/assets/_vendor/ace/snippets/handlebars.js +15 -0
  234. data/assets/_vendor/ace/snippets/haskell.js +97 -0
  235. data/assets/_vendor/ace/snippets/haskell_cabal.js +15 -0
  236. data/assets/_vendor/ace/snippets/haxe.js +15 -0
  237. data/assets/_vendor/ace/snippets/hjson.js +15 -0
  238. data/assets/_vendor/ace/snippets/html.js +870 -0
  239. data/assets/_vendor/ace/snippets/html_elixir.js +15 -0
  240. data/assets/_vendor/ace/snippets/html_ruby.js +15 -0
  241. data/assets/_vendor/ace/snippets/ini.js +15 -0
  242. data/assets/_vendor/ace/snippets/io.js +77 -0
  243. data/assets/_vendor/ace/snippets/jack.js +15 -0
  244. data/assets/_vendor/ace/snippets/jade.js +15 -0
  245. data/assets/_vendor/ace/snippets/java.js +255 -0
  246. data/assets/_vendor/ace/snippets/javascript.js +210 -0
  247. data/assets/_vendor/ace/snippets/json.js +15 -0
  248. data/assets/_vendor/ace/snippets/jsoniq.js +76 -0
  249. data/assets/_vendor/ace/snippets/jsp.js +114 -0
  250. data/assets/_vendor/ace/snippets/jssm.js +15 -0
  251. data/assets/_vendor/ace/snippets/jsx.js +15 -0
  252. data/assets/_vendor/ace/snippets/julia.js +15 -0
  253. data/assets/_vendor/ace/snippets/kotlin.js +15 -0
  254. data/assets/_vendor/ace/snippets/latex.js +15 -0
  255. data/assets/_vendor/ace/snippets/less.js +15 -0
  256. data/assets/_vendor/ace/snippets/liquid.js +15 -0
  257. data/assets/_vendor/ace/snippets/lisp.js +15 -0
  258. data/assets/_vendor/ace/snippets/livescript.js +15 -0
  259. data/assets/_vendor/ace/snippets/logiql.js +15 -0
  260. data/assets/_vendor/ace/snippets/lsl.js +1247 -0
  261. data/assets/_vendor/ace/snippets/lua.js +36 -0
  262. data/assets/_vendor/ace/snippets/luapage.js +15 -0
  263. data/assets/_vendor/ace/snippets/lucene.js +15 -0
  264. data/assets/_vendor/ace/snippets/makefile.js +19 -0
  265. data/assets/_vendor/ace/snippets/markdown.js +103 -0
  266. data/assets/_vendor/ace/snippets/mask.js +15 -0
  267. data/assets/_vendor/ace/snippets/matlab.js +15 -0
  268. data/assets/_vendor/ace/snippets/maze.js +24 -0
  269. data/assets/_vendor/ace/snippets/mel.js +15 -0
  270. data/assets/_vendor/ace/snippets/mixal.js +15 -0
  271. data/assets/_vendor/ace/snippets/mushcode.js +15 -0
  272. data/assets/_vendor/ace/snippets/mysql.js +15 -0
  273. data/assets/_vendor/ace/snippets/nix.js +15 -0
  274. data/assets/_vendor/ace/snippets/nsis.js +15 -0
  275. data/assets/_vendor/ace/snippets/objectivec.js +15 -0
  276. data/assets/_vendor/ace/snippets/ocaml.js +15 -0
  277. data/assets/_vendor/ace/snippets/pascal.js +15 -0
  278. data/assets/_vendor/ace/snippets/perl.js +362 -0
  279. data/assets/_vendor/ace/snippets/pgsql.js +15 -0
  280. data/assets/_vendor/ace/snippets/php.js +398 -0
  281. data/assets/_vendor/ace/snippets/php_laravel_blade.js +15 -0
  282. data/assets/_vendor/ace/snippets/pig.js +15 -0
  283. data/assets/_vendor/ace/snippets/plain_text.js +15 -0
  284. data/assets/_vendor/ace/snippets/powershell.js +15 -0
  285. data/assets/_vendor/ace/snippets/praat.js +15 -0
  286. data/assets/_vendor/ace/snippets/prolog.js +15 -0
  287. data/assets/_vendor/ace/snippets/properties.js +15 -0
  288. data/assets/_vendor/ace/snippets/protobuf.js +15 -0
  289. data/assets/_vendor/ace/snippets/puppet.js +15 -0
  290. data/assets/_vendor/ace/snippets/python.js +173 -0
  291. data/assets/_vendor/ace/snippets/r.js +136 -0
  292. data/assets/_vendor/ace/snippets/razor.js +18 -0
  293. data/assets/_vendor/ace/snippets/rdoc.js +15 -0
  294. data/assets/_vendor/ace/snippets/red.js +15 -0
  295. data/assets/_vendor/ace/snippets/redshift.js +15 -0
  296. data/assets/_vendor/ace/snippets/rhtml.js +15 -0
  297. data/assets/_vendor/ace/snippets/rst.js +37 -0
  298. data/assets/_vendor/ace/snippets/ruby.js +943 -0
  299. data/assets/_vendor/ace/snippets/rust.js +15 -0
  300. data/assets/_vendor/ace/snippets/sass.js +15 -0
  301. data/assets/_vendor/ace/snippets/scad.js +15 -0
  302. data/assets/_vendor/ace/snippets/scala.js +15 -0
  303. data/assets/_vendor/ace/snippets/scheme.js +15 -0
  304. data/assets/_vendor/ace/snippets/scss.js +15 -0
  305. data/assets/_vendor/ace/snippets/sh.js +98 -0
  306. data/assets/_vendor/ace/snippets/sjs.js +15 -0
  307. data/assets/_vendor/ace/snippets/slim.js +15 -0
  308. data/assets/_vendor/ace/snippets/smarty.js +15 -0
  309. data/assets/_vendor/ace/snippets/snippets.js +24 -0
  310. data/assets/_vendor/ace/snippets/soy_template.js +15 -0
  311. data/assets/_vendor/ace/snippets/space.js +15 -0
  312. data/assets/_vendor/ace/snippets/sparql.js +15 -0
  313. data/assets/_vendor/ace/snippets/sql.js +41 -0
  314. data/assets/_vendor/ace/snippets/sqlserver.js +84 -0
  315. data/assets/_vendor/ace/snippets/stylus.js +15 -0
  316. data/assets/_vendor/ace/snippets/svg.js +15 -0
  317. data/assets/_vendor/ace/snippets/swift.js +15 -0
  318. data/assets/_vendor/ace/snippets/tcl.js +107 -0
  319. data/assets/_vendor/ace/snippets/terraform.js +15 -0
  320. data/assets/_vendor/ace/snippets/tex.js +205 -0
  321. data/assets/_vendor/ace/snippets/text.js +15 -0
  322. data/assets/_vendor/ace/snippets/textile.js +45 -0
  323. data/assets/_vendor/ace/snippets/toml.js +15 -0
  324. data/assets/_vendor/ace/snippets/tsx.js +15 -0
  325. data/assets/_vendor/ace/snippets/turtle.js +15 -0
  326. data/assets/_vendor/ace/snippets/twig.js +15 -0
  327. data/assets/_vendor/ace/snippets/typescript.js +15 -0
  328. data/assets/_vendor/ace/snippets/vala.js +201 -0
  329. data/assets/_vendor/ace/snippets/vbscript.js +15 -0
  330. data/assets/_vendor/ace/snippets/velocity.js +44 -0
  331. data/assets/_vendor/ace/snippets/verilog.js +15 -0
  332. data/assets/_vendor/ace/snippets/vhdl.js +15 -0
  333. data/assets/_vendor/ace/snippets/wollok.js +99 -0
  334. data/assets/_vendor/ace/snippets/xml.js +15 -0
  335. data/assets/_vendor/ace/snippets/xquery.js +76 -0
  336. data/assets/_vendor/ace/snippets/yaml.js +15 -0
  337. data/assets/_vendor/ace/theme-ambiance.js +185 -0
  338. data/assets/_vendor/ace/theme-chaos.js +164 -0
  339. data/assets/_vendor/ace/theme-chrome.js +136 -0
  340. data/assets/_vendor/ace/theme-clouds.js +103 -0
  341. data/assets/_vendor/ace/theme-clouds_midnight.js +104 -0
  342. data/assets/_vendor/ace/theme-cobalt.js +121 -0
  343. data/assets/_vendor/ace/theme-crimson_editor.js +126 -0
  344. data/assets/_vendor/ace/theme-dawn.js +116 -0
  345. data/assets/_vendor/ace/theme-dracula.js +136 -0
  346. data/assets/_vendor/ace/theme-dreamweaver.js +149 -0
  347. data/assets/_vendor/ace/theme-eclipse.js +106 -0
  348. data/assets/_vendor/ace/theme-github.js +110 -0
  349. data/assets/_vendor/ace/theme-gob.js +120 -0
  350. data/assets/_vendor/ace/theme-gruvbox.js +90 -0
  351. data/assets/_vendor/ace/theme-idle_fingers.js +104 -0
  352. data/assets/_vendor/ace/theme-iplastic.js +129 -0
  353. data/assets/_vendor/ace/theme-katzenmilch.js +129 -0
  354. data/assets/_vendor/ace/theme-kr_theme.js +112 -0
  355. data/assets/_vendor/ace/theme-kuroir.js +69 -0
  356. data/assets/_vendor/ace/theme-merbivore.js +103 -0
  357. data/assets/_vendor/ace/theme-merbivore_soft.js +104 -0
  358. data/assets/_vendor/ace/theme-mono_industrial.js +115 -0
  359. data/assets/_vendor/ace/theme-monokai.js +113 -0
  360. data/assets/_vendor/ace/theme-pastel_on_dark.js +116 -0
  361. data/assets/_vendor/ace/theme-solarized_dark.js +96 -0
  362. data/assets/_vendor/ace/theme-solarized_light.js +99 -0
  363. data/assets/_vendor/ace/theme-sqlserver.js +146 -0
  364. data/assets/_vendor/ace/theme-terminal.js +122 -0
  365. data/assets/_vendor/ace/theme-textmate.js +138 -0
  366. data/assets/_vendor/ace/theme-tomorrow.js +116 -0
  367. data/assets/_vendor/ace/theme-tomorrow_night.js +116 -0
  368. data/assets/_vendor/ace/theme-tomorrow_night_blue.js +114 -0
  369. data/assets/_vendor/ace/theme-tomorrow_night_bright.js +129 -0
  370. data/assets/_vendor/ace/theme-tomorrow_night_eighties.js +116 -0
  371. data/assets/_vendor/ace/theme-twilight.js +117 -0
  372. data/assets/_vendor/ace/theme-vibrant_ink.js +102 -0
  373. data/assets/_vendor/ace/theme-xcode.js +96 -0
  374. data/assets/_vendor/ace/worker-coffee.js +2165 -0
  375. data/assets/_vendor/ace/worker-css.js +8764 -0
  376. data/assets/_vendor/ace/worker-html.js +11614 -0
  377. data/assets/_vendor/ace/worker-javascript.js +12491 -0
  378. data/assets/_vendor/ace/worker-json.js +2396 -0
  379. data/assets/_vendor/ace/worker-lua.js +3637 -0
  380. data/assets/_vendor/ace/worker-php.js +4313 -0
  381. data/assets/_vendor/ace/worker-xml.js +3899 -0
  382. data/assets/_vendor/ace/worker-xquery.js +70688 -0
  383. data/assets/_vendor/motion-ui/_settings.scss +1 -0
  384. data/assets/_vendor/motion-ui/effects/_fade.scss +1 -4
  385. data/assets/_vendor/motion-ui/effects/_hinge.scss +4 -3
  386. data/assets/_vendor/motion-ui/effects/_shake.scss +1 -1
  387. data/assets/_vendor/motion-ui/effects/_slide.scss +4 -3
  388. data/assets/_vendor/motion-ui/effects/_spin.scss +4 -3
  389. data/assets/_vendor/motion-ui/effects/_wiggle.scss +1 -1
  390. data/assets/_vendor/motion-ui/effects/_zoom.scss +2 -2
  391. data/assets/_vendor/motion-ui/motion-ui.scss +2 -0
  392. data/assets/_vendor/motion-ui/transitions/_fade.scss +6 -4
  393. data/assets/_vendor/motion-ui/transitions/_hinge.scss +3 -2
  394. data/assets/_vendor/motion-ui/transitions/_slide.scss +3 -2
  395. data/assets/_vendor/motion-ui/transitions/_spin.scss +2 -1
  396. data/assets/_vendor/motion-ui/transitions/_zoom.scss +6 -4
  397. data/assets/_vendor/motion-ui/util/_animation.scss +1 -1
  398. data/assets/_vendor/motion-ui/util/_args.scss +2 -2
  399. data/assets/_vendor/motion-ui/util/_function.scss +94 -0
  400. data/assets/_vendor/motion-ui/util/_keyframe.scss +5 -5
  401. data/assets/_vendor/motion-ui/util/_series.scss +20 -17
  402. data/assets/_vendor/motion-ui/util/_string.scss +36 -0
  403. data/assets/_vendor/tinymce/plugins/advlist/plugin.js +136 -404
  404. data/assets/_vendor/tinymce/plugins/advlist/plugin.min.js +1 -1
  405. data/assets/_vendor/tinymce/plugins/anchor/plugin.js +103 -323
  406. data/assets/_vendor/tinymce/plugins/anchor/plugin.min.js +1 -1
  407. data/assets/_vendor/tinymce/plugins/autolink/plugin.js +153 -377
  408. data/assets/_vendor/tinymce/plugins/autolink/plugin.min.js +1 -1
  409. data/assets/_vendor/tinymce/plugins/autoresize/plugin.js +145 -427
  410. data/assets/_vendor/tinymce/plugins/autoresize/plugin.min.js +1 -1
  411. data/assets/_vendor/tinymce/plugins/autosave/plugin.js +197 -579
  412. data/assets/_vendor/tinymce/plugins/autosave/plugin.min.js +1 -1
  413. data/assets/_vendor/tinymce/plugins/bbcode/plugin.js +88 -251
  414. data/assets/_vendor/tinymce/plugins/bbcode/plugin.min.js +1 -1
  415. data/assets/_vendor/tinymce/plugins/charmap/plugin.js +1243 -818
  416. data/assets/_vendor/tinymce/plugins/charmap/plugin.min.js +1 -1
  417. data/assets/_vendor/tinymce/plugins/code/plugin.js +82 -326
  418. data/assets/_vendor/tinymce/plugins/code/plugin.min.js +1 -1
  419. data/assets/_vendor/tinymce/plugins/codesample/plugin.js +829 -1444
  420. data/assets/_vendor/tinymce/plugins/codesample/plugin.min.js +1 -1
  421. data/assets/_vendor/tinymce/plugins/colorpicker/plugin.js +111 -257
  422. data/assets/_vendor/tinymce/plugins/colorpicker/plugin.min.js +1 -1
  423. data/assets/_vendor/tinymce/plugins/contextmenu/plugin.js +141 -469
  424. data/assets/_vendor/tinymce/plugins/contextmenu/plugin.min.js +1 -1
  425. data/assets/_vendor/tinymce/plugins/directionality/plugin.js +57 -261
  426. data/assets/_vendor/tinymce/plugins/directionality/plugin.min.js +1 -1
  427. data/assets/_vendor/tinymce/plugins/emoticons/plugin.js +78 -247
  428. data/assets/_vendor/tinymce/plugins/emoticons/plugin.min.js +1 -1
  429. data/assets/_vendor/tinymce/plugins/fullpage/plugin.js +463 -906
  430. data/assets/_vendor/tinymce/plugins/fullpage/plugin.min.js +1 -1
  431. data/assets/_vendor/tinymce/plugins/fullscreen/plugin.js +149 -427
  432. data/assets/_vendor/tinymce/plugins/fullscreen/plugin.min.js +1 -1
  433. data/assets/_vendor/tinymce/plugins/help/plugin.js +634 -1434
  434. data/assets/_vendor/tinymce/plugins/help/plugin.min.js +1 -1
  435. data/assets/_vendor/tinymce/plugins/hr/plugin.js +29 -185
  436. data/assets/_vendor/tinymce/plugins/hr/plugin.min.js +1 -1
  437. data/assets/_vendor/tinymce/plugins/image/plugin.js +1147 -1508
  438. data/assets/_vendor/tinymce/plugins/image/plugin.min.js +1 -1
  439. data/assets/_vendor/tinymce/plugins/imagetools/plugin.js +3319 -4079
  440. data/assets/_vendor/tinymce/plugins/imagetools/plugin.min.js +1 -2
  441. data/assets/_vendor/tinymce/plugins/importcss/plugin.js +230 -543
  442. data/assets/_vendor/tinymce/plugins/importcss/plugin.min.js +1 -1
  443. data/assets/_vendor/tinymce/plugins/insertdatetime/plugin.js +151 -460
  444. data/assets/_vendor/tinymce/plugins/insertdatetime/plugin.min.js +1 -1
  445. data/assets/_vendor/tinymce/plugins/legacyoutput/plugin.js +204 -379
  446. data/assets/_vendor/tinymce/plugins/legacyoutput/plugin.min.js +1 -1
  447. data/assets/_vendor/tinymce/plugins/link/plugin.js +644 -1162
  448. data/assets/_vendor/tinymce/plugins/link/plugin.min.js +1 -1
  449. data/assets/_vendor/tinymce/plugins/lists/plugin.js +1005 -1875
  450. data/assets/_vendor/tinymce/plugins/lists/plugin.min.js +1 -1
  451. data/assets/_vendor/tinymce/plugins/media/plugin.js +1066 -1926
  452. data/assets/_vendor/tinymce/plugins/media/plugin.min.js +1 -1
  453. data/assets/_vendor/tinymce/plugins/nonbreaking/plugin.js +70 -298
  454. data/assets/_vendor/tinymce/plugins/nonbreaking/plugin.min.js +1 -1
  455. data/assets/_vendor/tinymce/plugins/noneditable/plugin.js +96 -294
  456. data/assets/_vendor/tinymce/plugins/noneditable/plugin.min.js +1 -1
  457. data/assets/_vendor/tinymce/plugins/pagebreak/plugin.js +92 -337
  458. data/assets/_vendor/tinymce/plugins/pagebreak/plugin.min.js +1 -1
  459. data/assets/_vendor/tinymce/plugins/paste/plugin.js +1363 -2801
  460. data/assets/_vendor/tinymce/plugins/paste/plugin.min.js +1 -1
  461. data/assets/_vendor/tinymce/plugins/preview/plugin.js +106 -393
  462. data/assets/_vendor/tinymce/plugins/preview/plugin.min.js +1 -1
  463. data/assets/_vendor/tinymce/plugins/print/plugin.js +29 -185
  464. data/assets/_vendor/tinymce/plugins/print/plugin.min.js +1 -1
  465. data/assets/_vendor/tinymce/plugins/save/plugin.js +100 -350
  466. data/assets/_vendor/tinymce/plugins/save/plugin.min.js +1 -1
  467. data/assets/_vendor/tinymce/plugins/searchreplace/plugin.js +491 -865
  468. data/assets/_vendor/tinymce/plugins/searchreplace/plugin.min.js +1 -1
  469. data/assets/_vendor/tinymce/plugins/spellchecker/plugin.js +630 -1292
  470. data/assets/_vendor/tinymce/plugins/spellchecker/plugin.min.js +1 -1
  471. data/assets/_vendor/tinymce/plugins/tabfocus/plugin.js +96 -391
  472. data/assets/_vendor/tinymce/plugins/tabfocus/plugin.min.js +1 -1
  473. data/assets/_vendor/tinymce/plugins/table/plugin.js +9537 -14920
  474. data/assets/_vendor/tinymce/plugins/table/plugin.min.js +1 -5
  475. data/assets/_vendor/tinymce/plugins/template/plugin.js +309 -771
  476. data/assets/_vendor/tinymce/plugins/template/plugin.min.js +1 -1
  477. data/assets/_vendor/tinymce/plugins/textcolor/plugin.js +319 -592
  478. data/assets/_vendor/tinymce/plugins/textcolor/plugin.min.js +1 -1
  479. data/assets/_vendor/tinymce/plugins/textpattern/plugin.js +326 -674
  480. data/assets/_vendor/tinymce/plugins/textpattern/plugin.min.js +1 -1
  481. data/assets/_vendor/tinymce/plugins/toc/plugin.js +199 -530
  482. data/assets/_vendor/tinymce/plugins/toc/plugin.min.js +1 -1
  483. data/assets/_vendor/tinymce/plugins/visualblocks/plugin.js +112 -436
  484. data/assets/_vendor/tinymce/plugins/visualblocks/plugin.min.js +1 -1
  485. data/assets/_vendor/tinymce/plugins/visualchars/plugin.js +428 -1248
  486. data/assets/_vendor/tinymce/plugins/visualchars/plugin.min.js +1 -1
  487. data/assets/_vendor/tinymce/plugins/wordcount/plugin.js +307 -699
  488. data/assets/_vendor/tinymce/plugins/wordcount/plugin.min.js +1 -1
  489. data/assets/_vendor/tinymce/skins/lightgray/content.inline.min.css +1 -1
  490. data/assets/_vendor/tinymce/skins/lightgray/content.min.css +1 -1
  491. data/assets/_vendor/tinymce/skins/lightgray/fonts/tinymce.eot +0 -0
  492. data/assets/_vendor/tinymce/skins/lightgray/fonts/tinymce.svg +1 -1
  493. data/assets/_vendor/tinymce/skins/lightgray/fonts/tinymce.ttf +0 -0
  494. data/assets/_vendor/tinymce/skins/lightgray/fonts/tinymce.woff +0 -0
  495. data/assets/_vendor/tinymce/skins/lightgray/skin.min.css +1 -1
  496. data/assets/_vendor/tinymce/skins/lightgray/skin.mobile.min.css +1 -1
  497. data/assets/_vendor/tinymce/themes/inlite/theme.js +9693 -18245
  498. data/assets/_vendor/tinymce/themes/inlite/theme.min.js +1 -5
  499. data/assets/_vendor/tinymce/themes/mobile/theme.js +12629 -22467
  500. data/assets/_vendor/tinymce/themes/mobile/theme.min.js +1 -8
  501. data/assets/_vendor/tinymce/themes/modern/theme.js +9510 -17780
  502. data/assets/_vendor/tinymce/themes/modern/theme.min.js +1 -5
  503. data/assets/_vendor/tinymce/tinymce.js +25087 -42606
  504. data/assets/_vendor/yoastseo/css/_icons.scss +7 -7
  505. data/assets/_vendor/yoastseo/css/_snippet-editor.scss +1 -1
  506. data/assets/bedrock/js/bedrock.js +1 -71697
  507. data/assets/bedrock/scss/_bedrock-components.scss +20 -0
  508. data/assets/bedrock/scss/_bedrock-settings.scss +12 -4
  509. data/assets/bedrock/scss/_foundation-settings.scss +4 -2
  510. data/assets/bedrock/scss/components/ace-editor.scss +21 -0
  511. data/assets/bedrock/scss/components/attachments-grid.scss +18 -15
  512. data/assets/bedrock/scss/components/date-picker.scss +146 -0
  513. data/assets/bedrock/scss/components/dropzone-upload.scss +7 -0
  514. data/assets/bedrock/scss/components/file-input.scss +7 -0
  515. data/assets/bedrock/scss/components/file-preview.scss +36 -0
  516. data/assets/bedrock/scss/components/frame-embed.scss +23 -0
  517. data/assets/bedrock/scss/components/global.scss +27 -0
  518. data/assets/bedrock/scss/components/helper-classes.scss +1 -0
  519. data/assets/bedrock/scss/components/icon-box.scss +38 -0
  520. data/assets/bedrock/scss/components/item-list.scss +66 -0
  521. data/assets/bedrock/scss/components/lists.scss +58 -0
  522. data/assets/bedrock/scss/components/off-canvas-menu.scss +27 -15
  523. data/assets/bedrock/scss/components/place-autocomplete.scss +90 -0
  524. data/assets/bedrock/scss/components/rrule-generator.scss +102 -0
  525. data/assets/bedrock/scss/components/rrule-reveal.scss +14 -0
  526. data/assets/bedrock/scss/components/select-box.scss +1 -0
  527. data/assets/bedrock/scss/components/seo-analysis.scss +5 -0
  528. data/assets/bedrock/scss/components/textarea.scss +14 -2
  529. data/assets/bedrock/scss/components/tiny-mce-editor.scss +5 -16
  530. data/lib/bedrock_sass.rb +5 -0
  531. data/lib/bedrock_sass/version.rb +1 -1
  532. data/lib/tasks/before_assets_precompile.rake +1 -0
  533. metadata +395 -4
  534. data/CODE_OF_CONDUCT.md +0 -74
@@ -0,0 +1,1802 @@
1
+ define("ace/mode/doc_comment_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"], function(require, exports, module) {
2
+ "use strict";
3
+
4
+ var oop = require("../lib/oop");
5
+ var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
6
+
7
+ var DocCommentHighlightRules = function() {
8
+ this.$rules = {
9
+ "start" : [ {
10
+ token : "comment.doc.tag",
11
+ regex : "@[\\w\\d_]+" // TODO: fix email addresses
12
+ },
13
+ DocCommentHighlightRules.getTagRule(),
14
+ {
15
+ defaultToken : "comment.doc",
16
+ caseInsensitive: true
17
+ }]
18
+ };
19
+ };
20
+
21
+ oop.inherits(DocCommentHighlightRules, TextHighlightRules);
22
+
23
+ DocCommentHighlightRules.getTagRule = function(start) {
24
+ return {
25
+ token : "comment.doc.tag.storage.type",
26
+ regex : "\\b(?:TODO|FIXME|XXX|HACK)\\b"
27
+ };
28
+ };
29
+
30
+ DocCommentHighlightRules.getStartRule = function(start) {
31
+ return {
32
+ token : "comment.doc", // doc comment
33
+ regex : "\\/\\*(?=\\*)",
34
+ next : start
35
+ };
36
+ };
37
+
38
+ DocCommentHighlightRules.getEndRule = function (start) {
39
+ return {
40
+ token : "comment.doc", // closing comment
41
+ regex : "\\*\\/",
42
+ next : start
43
+ };
44
+ };
45
+
46
+
47
+ exports.DocCommentHighlightRules = DocCommentHighlightRules;
48
+
49
+ });
50
+
51
+ define("ace/mode/javascript_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/doc_comment_highlight_rules","ace/mode/text_highlight_rules"], function(require, exports, module) {
52
+ "use strict";
53
+
54
+ var oop = require("../lib/oop");
55
+ var DocCommentHighlightRules = require("./doc_comment_highlight_rules").DocCommentHighlightRules;
56
+ var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
57
+ var identifierRe = "[a-zA-Z\\$_\u00a1-\uffff][a-zA-Z\\d\\$_\u00a1-\uffff]*";
58
+
59
+ var JavaScriptHighlightRules = function(options) {
60
+ var keywordMapper = this.createKeywordMapper({
61
+ "variable.language":
62
+ "Array|Boolean|Date|Function|Iterator|Number|Object|RegExp|String|Proxy|" + // Constructors
63
+ "Namespace|QName|XML|XMLList|" + // E4X
64
+ "ArrayBuffer|Float32Array|Float64Array|Int16Array|Int32Array|Int8Array|" +
65
+ "Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray|" +
66
+ "Error|EvalError|InternalError|RangeError|ReferenceError|StopIteration|" + // Errors
67
+ "SyntaxError|TypeError|URIError|" +
68
+ "decodeURI|decodeURIComponent|encodeURI|encodeURIComponent|eval|isFinite|" + // Non-constructor functions
69
+ "isNaN|parseFloat|parseInt|" +
70
+ "JSON|Math|" + // Other
71
+ "this|arguments|prototype|window|document" , // Pseudo
72
+ "keyword":
73
+ "const|yield|import|get|set|async|await|" +
74
+ "break|case|catch|continue|default|delete|do|else|finally|for|function|" +
75
+ "if|in|of|instanceof|new|return|switch|throw|try|typeof|let|var|while|with|debugger|" +
76
+ "__parent__|__count__|escape|unescape|with|__proto__|" +
77
+ "class|enum|extends|super|export|implements|private|public|interface|package|protected|static",
78
+ "storage.type":
79
+ "const|let|var|function",
80
+ "constant.language":
81
+ "null|Infinity|NaN|undefined",
82
+ "support.function":
83
+ "alert",
84
+ "constant.language.boolean": "true|false"
85
+ }, "identifier");
86
+ var kwBeforeRe = "case|do|else|finally|in|instanceof|return|throw|try|typeof|yield|void";
87
+
88
+ var escapedRe = "\\\\(?:x[0-9a-fA-F]{2}|" + // hex
89
+ "u[0-9a-fA-F]{4}|" + // unicode
90
+ "u{[0-9a-fA-F]{1,6}}|" + // es6 unicode
91
+ "[0-2][0-7]{0,2}|" + // oct
92
+ "3[0-7][0-7]?|" + // oct
93
+ "[4-7][0-7]?|" + //oct
94
+ ".)";
95
+ this.$rules = {
96
+ "no_regex" : [
97
+ DocCommentHighlightRules.getStartRule("doc-start"),
98
+ comments("no_regex"),
99
+ {
100
+ token : "string",
101
+ regex : "'(?=.)",
102
+ next : "qstring"
103
+ }, {
104
+ token : "string",
105
+ regex : '"(?=.)',
106
+ next : "qqstring"
107
+ }, {
108
+ token : "constant.numeric", // hexadecimal, octal and binary
109
+ regex : /0(?:[xX][0-9a-fA-F]+|[oO][0-7]+|[bB][01]+)\b/
110
+ }, {
111
+ token : "constant.numeric", // decimal integers and floats
112
+ regex : /(?:\d\d*(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+\b)?/
113
+ }, {
114
+ token : [
115
+ "storage.type", "punctuation.operator", "support.function",
116
+ "punctuation.operator", "entity.name.function", "text","keyword.operator"
117
+ ],
118
+ regex : "(" + identifierRe + ")(\\.)(prototype)(\\.)(" + identifierRe +")(\\s*)(=)",
119
+ next: "function_arguments"
120
+ }, {
121
+ token : [
122
+ "storage.type", "punctuation.operator", "entity.name.function", "text",
123
+ "keyword.operator", "text", "storage.type", "text", "paren.lparen"
124
+ ],
125
+ regex : "(" + identifierRe + ")(\\.)(" + identifierRe +")(\\s*)(=)(\\s*)(function)(\\s*)(\\()",
126
+ next: "function_arguments"
127
+ }, {
128
+ token : [
129
+ "entity.name.function", "text", "keyword.operator", "text", "storage.type",
130
+ "text", "paren.lparen"
131
+ ],
132
+ regex : "(" + identifierRe +")(\\s*)(=)(\\s*)(function)(\\s*)(\\()",
133
+ next: "function_arguments"
134
+ }, {
135
+ token : [
136
+ "storage.type", "punctuation.operator", "entity.name.function", "text",
137
+ "keyword.operator", "text",
138
+ "storage.type", "text", "entity.name.function", "text", "paren.lparen"
139
+ ],
140
+ regex : "(" + identifierRe + ")(\\.)(" + identifierRe +")(\\s*)(=)(\\s*)(function)(\\s+)(\\w+)(\\s*)(\\()",
141
+ next: "function_arguments"
142
+ }, {
143
+ token : [
144
+ "storage.type", "text", "entity.name.function", "text", "paren.lparen"
145
+ ],
146
+ regex : "(function)(\\s+)(" + identifierRe + ")(\\s*)(\\()",
147
+ next: "function_arguments"
148
+ }, {
149
+ token : [
150
+ "entity.name.function", "text", "punctuation.operator",
151
+ "text", "storage.type", "text", "paren.lparen"
152
+ ],
153
+ regex : "(" + identifierRe + ")(\\s*)(:)(\\s*)(function)(\\s*)(\\()",
154
+ next: "function_arguments"
155
+ }, {
156
+ token : [
157
+ "text", "text", "storage.type", "text", "paren.lparen"
158
+ ],
159
+ regex : "(:)(\\s*)(function)(\\s*)(\\()",
160
+ next: "function_arguments"
161
+ }, {
162
+ token : "keyword",
163
+ regex : "from(?=\\s*('|\"))"
164
+ }, {
165
+ token : "keyword",
166
+ regex : "(?:" + kwBeforeRe + ")\\b",
167
+ next : "start"
168
+ }, {
169
+ token : ["support.constant"],
170
+ regex : /that\b/
171
+ }, {
172
+ token : ["storage.type", "punctuation.operator", "support.function.firebug"],
173
+ regex : /(console)(\.)(warn|info|log|error|time|trace|timeEnd|assert)\b/
174
+ }, {
175
+ token : keywordMapper,
176
+ regex : identifierRe
177
+ }, {
178
+ token : "punctuation.operator",
179
+ regex : /[.](?![.])/,
180
+ next : "property"
181
+ }, {
182
+ token : "storage.type",
183
+ regex : /=>/,
184
+ next : "start"
185
+ }, {
186
+ token : "keyword.operator",
187
+ regex : /--|\+\+|\.{3}|===|==|=|!=|!==|<+=?|>+=?|!|&&|\|\||\?:|[!$%&*+\-~\/^]=?/,
188
+ next : "start"
189
+ }, {
190
+ token : "punctuation.operator",
191
+ regex : /[?:,;.]/,
192
+ next : "start"
193
+ }, {
194
+ token : "paren.lparen",
195
+ regex : /[\[({]/,
196
+ next : "start"
197
+ }, {
198
+ token : "paren.rparen",
199
+ regex : /[\])}]/
200
+ }, {
201
+ token: "comment",
202
+ regex: /^#!.*$/
203
+ }
204
+ ],
205
+ property: [{
206
+ token : "text",
207
+ regex : "\\s+"
208
+ }, {
209
+ token : [
210
+ "storage.type", "punctuation.operator", "entity.name.function", "text",
211
+ "keyword.operator", "text",
212
+ "storage.type", "text", "entity.name.function", "text", "paren.lparen"
213
+ ],
214
+ regex : "(" + identifierRe + ")(\\.)(" + identifierRe +")(\\s*)(=)(\\s*)(function)(?:(\\s+)(\\w+))?(\\s*)(\\()",
215
+ next: "function_arguments"
216
+ }, {
217
+ token : "punctuation.operator",
218
+ regex : /[.](?![.])/
219
+ }, {
220
+ token : "support.function",
221
+ 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|le(?:ModifiedDate|Size|CreatedDate|UpdatedDate)|xed)|o(?:nt(?:size|color)|rward)|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(?=\()/
222
+ }, {
223
+ token : "support.function.dom",
224
+ 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(?=\()/
225
+ }, {
226
+ token : "support.constant",
227
+ 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/
228
+ }, {
229
+ token : "identifier",
230
+ regex : identifierRe
231
+ }, {
232
+ regex: "",
233
+ token: "empty",
234
+ next: "no_regex"
235
+ }
236
+ ],
237
+ "start": [
238
+ DocCommentHighlightRules.getStartRule("doc-start"),
239
+ comments("start"),
240
+ {
241
+ token: "string.regexp",
242
+ regex: "\\/",
243
+ next: "regex"
244
+ }, {
245
+ token : "text",
246
+ regex : "\\s+|^$",
247
+ next : "start"
248
+ }, {
249
+ token: "empty",
250
+ regex: "",
251
+ next: "no_regex"
252
+ }
253
+ ],
254
+ "regex": [
255
+ {
256
+ token: "regexp.keyword.operator",
257
+ regex: "\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"
258
+ }, {
259
+ token: "string.regexp",
260
+ regex: "/[sxngimy]*",
261
+ next: "no_regex"
262
+ }, {
263
+ token : "invalid",
264
+ regex: /\{\d+\b,?\d*\}[+*]|[+*$^?][+*]|[$^][?]|\?{3,}/
265
+ }, {
266
+ token : "constant.language.escape",
267
+ regex: /\(\?[:=!]|\)|\{\d+\b,?\d*\}|[+*]\?|[()$^+*?.]/
268
+ }, {
269
+ token : "constant.language.delimiter",
270
+ regex: /\|/
271
+ }, {
272
+ token: "constant.language.escape",
273
+ regex: /\[\^?/,
274
+ next: "regex_character_class"
275
+ }, {
276
+ token: "empty",
277
+ regex: "$",
278
+ next: "no_regex"
279
+ }, {
280
+ defaultToken: "string.regexp"
281
+ }
282
+ ],
283
+ "regex_character_class": [
284
+ {
285
+ token: "regexp.charclass.keyword.operator",
286
+ regex: "\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"
287
+ }, {
288
+ token: "constant.language.escape",
289
+ regex: "]",
290
+ next: "regex"
291
+ }, {
292
+ token: "constant.language.escape",
293
+ regex: "-"
294
+ }, {
295
+ token: "empty",
296
+ regex: "$",
297
+ next: "no_regex"
298
+ }, {
299
+ defaultToken: "string.regexp.charachterclass"
300
+ }
301
+ ],
302
+ "function_arguments": [
303
+ {
304
+ token: "variable.parameter",
305
+ regex: identifierRe
306
+ }, {
307
+ token: "punctuation.operator",
308
+ regex: "[, ]+"
309
+ }, {
310
+ token: "punctuation.operator",
311
+ regex: "$"
312
+ }, {
313
+ token: "empty",
314
+ regex: "",
315
+ next: "no_regex"
316
+ }
317
+ ],
318
+ "qqstring" : [
319
+ {
320
+ token : "constant.language.escape",
321
+ regex : escapedRe
322
+ }, {
323
+ token : "string",
324
+ regex : "\\\\$",
325
+ consumeLineEnd : true
326
+ }, {
327
+ token : "string",
328
+ regex : '"|$',
329
+ next : "no_regex"
330
+ }, {
331
+ defaultToken: "string"
332
+ }
333
+ ],
334
+ "qstring" : [
335
+ {
336
+ token : "constant.language.escape",
337
+ regex : escapedRe
338
+ }, {
339
+ token : "string",
340
+ regex : "\\\\$",
341
+ consumeLineEnd : true
342
+ }, {
343
+ token : "string",
344
+ regex : "'|$",
345
+ next : "no_regex"
346
+ }, {
347
+ defaultToken: "string"
348
+ }
349
+ ]
350
+ };
351
+
352
+
353
+ if (!options || !options.noES6) {
354
+ this.$rules.no_regex.unshift({
355
+ regex: "[{}]", onMatch: function(val, state, stack) {
356
+ this.next = val == "{" ? this.nextState : "";
357
+ if (val == "{" && stack.length) {
358
+ stack.unshift("start", state);
359
+ }
360
+ else if (val == "}" && stack.length) {
361
+ stack.shift();
362
+ this.next = stack.shift();
363
+ if (this.next.indexOf("string") != -1 || this.next.indexOf("jsx") != -1)
364
+ return "paren.quasi.end";
365
+ }
366
+ return val == "{" ? "paren.lparen" : "paren.rparen";
367
+ },
368
+ nextState: "start"
369
+ }, {
370
+ token : "string.quasi.start",
371
+ regex : /`/,
372
+ push : [{
373
+ token : "constant.language.escape",
374
+ regex : escapedRe
375
+ }, {
376
+ token : "paren.quasi.start",
377
+ regex : /\${/,
378
+ push : "start"
379
+ }, {
380
+ token : "string.quasi.end",
381
+ regex : /`/,
382
+ next : "pop"
383
+ }, {
384
+ defaultToken: "string.quasi"
385
+ }]
386
+ });
387
+
388
+ if (!options || options.jsx != false)
389
+ JSX.call(this);
390
+ }
391
+
392
+ this.embedRules(DocCommentHighlightRules, "doc-",
393
+ [ DocCommentHighlightRules.getEndRule("no_regex") ]);
394
+
395
+ this.normalizeRules();
396
+ };
397
+
398
+ oop.inherits(JavaScriptHighlightRules, TextHighlightRules);
399
+
400
+ function JSX() {
401
+ var tagRegex = identifierRe.replace("\\d", "\\d\\-");
402
+ var jsxTag = {
403
+ onMatch : function(val, state, stack) {
404
+ var offset = val.charAt(1) == "/" ? 2 : 1;
405
+ if (offset == 1) {
406
+ if (state != this.nextState)
407
+ stack.unshift(this.next, this.nextState, 0);
408
+ else
409
+ stack.unshift(this.next);
410
+ stack[2]++;
411
+ } else if (offset == 2) {
412
+ if (state == this.nextState) {
413
+ stack[1]--;
414
+ if (!stack[1] || stack[1] < 0) {
415
+ stack.shift();
416
+ stack.shift();
417
+ }
418
+ }
419
+ }
420
+ return [{
421
+ type: "meta.tag.punctuation." + (offset == 1 ? "" : "end-") + "tag-open.xml",
422
+ value: val.slice(0, offset)
423
+ }, {
424
+ type: "meta.tag.tag-name.xml",
425
+ value: val.substr(offset)
426
+ }];
427
+ },
428
+ regex : "</?" + tagRegex + "",
429
+ next: "jsxAttributes",
430
+ nextState: "jsx"
431
+ };
432
+ this.$rules.start.unshift(jsxTag);
433
+ var jsxJsRule = {
434
+ regex: "{",
435
+ token: "paren.quasi.start",
436
+ push: "start"
437
+ };
438
+ this.$rules.jsx = [
439
+ jsxJsRule,
440
+ jsxTag,
441
+ {include : "reference"},
442
+ {defaultToken: "string"}
443
+ ];
444
+ this.$rules.jsxAttributes = [{
445
+ token : "meta.tag.punctuation.tag-close.xml",
446
+ regex : "/?>",
447
+ onMatch : function(value, currentState, stack) {
448
+ if (currentState == stack[0])
449
+ stack.shift();
450
+ if (value.length == 2) {
451
+ if (stack[0] == this.nextState)
452
+ stack[1]--;
453
+ if (!stack[1] || stack[1] < 0) {
454
+ stack.splice(0, 2);
455
+ }
456
+ }
457
+ this.next = stack[0] || "start";
458
+ return [{type: this.token, value: value}];
459
+ },
460
+ nextState: "jsx"
461
+ },
462
+ jsxJsRule,
463
+ comments("jsxAttributes"),
464
+ {
465
+ token : "entity.other.attribute-name.xml",
466
+ regex : tagRegex
467
+ }, {
468
+ token : "keyword.operator.attribute-equals.xml",
469
+ regex : "="
470
+ }, {
471
+ token : "text.tag-whitespace.xml",
472
+ regex : "\\s+"
473
+ }, {
474
+ token : "string.attribute-value.xml",
475
+ regex : "'",
476
+ stateName : "jsx_attr_q",
477
+ push : [
478
+ {token : "string.attribute-value.xml", regex: "'", next: "pop"},
479
+ {include : "reference"},
480
+ {defaultToken : "string.attribute-value.xml"}
481
+ ]
482
+ }, {
483
+ token : "string.attribute-value.xml",
484
+ regex : '"',
485
+ stateName : "jsx_attr_qq",
486
+ push : [
487
+ {token : "string.attribute-value.xml", regex: '"', next: "pop"},
488
+ {include : "reference"},
489
+ {defaultToken : "string.attribute-value.xml"}
490
+ ]
491
+ },
492
+ jsxTag
493
+ ];
494
+ this.$rules.reference = [{
495
+ token : "constant.language.escape.reference.xml",
496
+ regex : "(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"
497
+ }];
498
+ }
499
+
500
+ function comments(next) {
501
+ return [
502
+ {
503
+ token : "comment", // multi line comment
504
+ regex : /\/\*/,
505
+ next: [
506
+ DocCommentHighlightRules.getTagRule(),
507
+ {token : "comment", regex : "\\*\\/", next : next || "pop"},
508
+ {defaultToken : "comment", caseInsensitive: true}
509
+ ]
510
+ }, {
511
+ token : "comment",
512
+ regex : "\\/\\/",
513
+ next: [
514
+ DocCommentHighlightRules.getTagRule(),
515
+ {token : "comment", regex : "$|^", next : next || "pop"},
516
+ {defaultToken : "comment", caseInsensitive: true}
517
+ ]
518
+ }
519
+ ];
520
+ }
521
+ exports.JavaScriptHighlightRules = JavaScriptHighlightRules;
522
+ });
523
+
524
+ define("ace/mode/css_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text_highlight_rules"], function(require, exports, module) {
525
+ "use strict";
526
+
527
+ var oop = require("../lib/oop");
528
+ var lang = require("../lib/lang");
529
+ var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
530
+ 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";
531
+ var supportFunction = exports.supportFunction = "rgb|rgba|url|attr|counter|counters";
532
+ 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|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";
533
+ 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";
534
+ 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";
535
+
536
+ var numRe = exports.numRe = "\\-?(?:(?:[0-9]+(?:\\.[0-9]+)?)|(?:\\.[0-9]+))";
537
+ var pseudoElements = exports.pseudoElements = "(\\:+)\\b(after|before|first-letter|first-line|moz-selection|selection)\\b";
538
+ 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";
539
+
540
+ var CssHighlightRules = function() {
541
+
542
+ var keywordMapper = this.createKeywordMapper({
543
+ "support.function": supportFunction,
544
+ "support.constant": supportConstant,
545
+ "support.type": supportType,
546
+ "support.constant.color": supportConstantColor,
547
+ "support.constant.fonts": supportConstantFonts
548
+ }, "text", true);
549
+ this.$rules = {
550
+ "start" : [{
551
+ include : ["strings", "url", "comments"]
552
+ }, {
553
+ token: "paren.lparen",
554
+ regex: "\\{",
555
+ next: "ruleset"
556
+ }, {
557
+ token: "paren.rparen",
558
+ regex: "\\}"
559
+ }, {
560
+ token: "string",
561
+ regex: "@(?!viewport)",
562
+ next: "media"
563
+ }, {
564
+ token: "keyword",
565
+ regex: "#[a-z0-9-_]+"
566
+ }, {
567
+ token: "keyword",
568
+ regex: "%"
569
+ }, {
570
+ token: "variable",
571
+ regex: "\\.[a-z0-9-_]+"
572
+ }, {
573
+ token: "string",
574
+ regex: ":[a-z0-9-_]+"
575
+ }, {
576
+ token : "constant.numeric",
577
+ regex : numRe
578
+ }, {
579
+ token: "constant",
580
+ regex: "[a-z0-9-_]+"
581
+ }, {
582
+ caseInsensitive: true
583
+ }],
584
+
585
+ "media": [{
586
+ include : ["strings", "url", "comments"]
587
+ }, {
588
+ token: "paren.lparen",
589
+ regex: "\\{",
590
+ next: "start"
591
+ }, {
592
+ token: "paren.rparen",
593
+ regex: "\\}",
594
+ next: "start"
595
+ }, {
596
+ token: "string",
597
+ regex: ";",
598
+ next: "start"
599
+ }, {
600
+ token: "keyword",
601
+ regex: "(?:media|supports|document|charset|import|namespace|media|supports|document"
602
+ + "|page|font|keyframes|viewport|counter-style|font-feature-values"
603
+ + "|swash|ornaments|annotation|stylistic|styleset|character-variant)"
604
+ }],
605
+
606
+ "comments" : [{
607
+ token: "comment", // multi line comment
608
+ regex: "\\/\\*",
609
+ push: [{
610
+ token : "comment",
611
+ regex : "\\*\\/",
612
+ next : "pop"
613
+ }, {
614
+ defaultToken : "comment"
615
+ }]
616
+ }],
617
+
618
+ "ruleset" : [{
619
+ regex : "-(webkit|ms|moz|o)-",
620
+ token : "text"
621
+ }, {
622
+ token : "punctuation.operator",
623
+ regex : "[:;]"
624
+ }, {
625
+ token : "paren.rparen",
626
+ regex : "\\}",
627
+ next : "start"
628
+ }, {
629
+ include : ["strings", "url", "comments"]
630
+ }, {
631
+ token : ["constant.numeric", "keyword"],
632
+ 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|%)"
633
+ }, {
634
+ token : "constant.numeric",
635
+ regex : numRe
636
+ }, {
637
+ token : "constant.numeric", // hex6 color
638
+ regex : "#[a-f0-9]{6}"
639
+ }, {
640
+ token : "constant.numeric", // hex3 color
641
+ regex : "#[a-f0-9]{3}"
642
+ }, {
643
+ token : ["punctuation", "entity.other.attribute-name.pseudo-element.css"],
644
+ regex : pseudoElements
645
+ }, {
646
+ token : ["punctuation", "entity.other.attribute-name.pseudo-class.css"],
647
+ regex : pseudoClasses
648
+ }, {
649
+ include: "url"
650
+ }, {
651
+ token : keywordMapper,
652
+ regex : "\\-?[a-zA-Z_][a-zA-Z0-9_\\-]*"
653
+ }, {
654
+ caseInsensitive: true
655
+ }],
656
+
657
+ url: [{
658
+ token : "support.function",
659
+ regex : "(?:url(:?-prefix)?|domain|regexp)\\(",
660
+ push: [{
661
+ token : "support.function",
662
+ regex : "\\)",
663
+ next : "pop"
664
+ }, {
665
+ defaultToken: "string"
666
+ }]
667
+ }],
668
+
669
+ strings: [{
670
+ token : "string.start",
671
+ regex : "'",
672
+ push : [{
673
+ token : "string.end",
674
+ regex : "'|$",
675
+ next: "pop"
676
+ }, {
677
+ include : "escapes"
678
+ }, {
679
+ token : "constant.language.escape",
680
+ regex : /\\$/,
681
+ consumeLineEnd: true
682
+ }, {
683
+ defaultToken: "string"
684
+ }]
685
+ }, {
686
+ token : "string.start",
687
+ regex : '"',
688
+ push : [{
689
+ token : "string.end",
690
+ regex : '"|$',
691
+ next: "pop"
692
+ }, {
693
+ include : "escapes"
694
+ }, {
695
+ token : "constant.language.escape",
696
+ regex : /\\$/,
697
+ consumeLineEnd: true
698
+ }, {
699
+ defaultToken: "string"
700
+ }]
701
+ }],
702
+ escapes: [{
703
+ token : "constant.language.escape",
704
+ regex : /\\([a-fA-F\d]{1,6}|[^a-fA-F\d])/
705
+ }]
706
+
707
+ };
708
+
709
+ this.normalizeRules();
710
+ };
711
+
712
+ oop.inherits(CssHighlightRules, TextHighlightRules);
713
+
714
+ exports.CssHighlightRules = CssHighlightRules;
715
+
716
+ });
717
+
718
+ define("ace/mode/xml_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"], function(require, exports, module) {
719
+ "use strict";
720
+
721
+ var oop = require("../lib/oop");
722
+ var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
723
+
724
+ var XmlHighlightRules = function(normalize) {
725
+ var tagRegex = "[_:a-zA-Z\xc0-\uffff][-_:.a-zA-Z0-9\xc0-\uffff]*";
726
+
727
+ this.$rules = {
728
+ start : [
729
+ {token : "string.cdata.xml", regex : "<\\!\\[CDATA\\[", next : "cdata"},
730
+ {
731
+ token : ["punctuation.instruction.xml", "keyword.instruction.xml"],
732
+ regex : "(<\\?)(" + tagRegex + ")", next : "processing_instruction"
733
+ },
734
+ {token : "comment.start.xml", regex : "<\\!--", next : "comment"},
735
+ {
736
+ token : ["xml-pe.doctype.xml", "xml-pe.doctype.xml"],
737
+ regex : "(<\\!)(DOCTYPE)(?=[\\s])", next : "doctype", caseInsensitive: true
738
+ },
739
+ {include : "tag"},
740
+ {token : "text.end-tag-open.xml", regex: "</"},
741
+ {token : "text.tag-open.xml", regex: "<"},
742
+ {include : "reference"},
743
+ {defaultToken : "text.xml"}
744
+ ],
745
+
746
+ processing_instruction : [{
747
+ token : "entity.other.attribute-name.decl-attribute-name.xml",
748
+ regex : tagRegex
749
+ }, {
750
+ token : "keyword.operator.decl-attribute-equals.xml",
751
+ regex : "="
752
+ }, {
753
+ include: "whitespace"
754
+ }, {
755
+ include: "string"
756
+ }, {
757
+ token : "punctuation.xml-decl.xml",
758
+ regex : "\\?>",
759
+ next : "start"
760
+ }],
761
+
762
+ doctype : [
763
+ {include : "whitespace"},
764
+ {include : "string"},
765
+ {token : "xml-pe.doctype.xml", regex : ">", next : "start"},
766
+ {token : "xml-pe.xml", regex : "[-_a-zA-Z0-9:]+"},
767
+ {token : "punctuation.int-subset", regex : "\\[", push : "int_subset"}
768
+ ],
769
+
770
+ int_subset : [{
771
+ token : "text.xml",
772
+ regex : "\\s+"
773
+ }, {
774
+ token: "punctuation.int-subset.xml",
775
+ regex: "]",
776
+ next: "pop"
777
+ }, {
778
+ token : ["punctuation.markup-decl.xml", "keyword.markup-decl.xml"],
779
+ regex : "(<\\!)(" + tagRegex + ")",
780
+ push : [{
781
+ token : "text",
782
+ regex : "\\s+"
783
+ },
784
+ {
785
+ token : "punctuation.markup-decl.xml",
786
+ regex : ">",
787
+ next : "pop"
788
+ },
789
+ {include : "string"}]
790
+ }],
791
+
792
+ cdata : [
793
+ {token : "string.cdata.xml", regex : "\\]\\]>", next : "start"},
794
+ {token : "text.xml", regex : "\\s+"},
795
+ {token : "text.xml", regex : "(?:[^\\]]|\\](?!\\]>))+"}
796
+ ],
797
+
798
+ comment : [
799
+ {token : "comment.end.xml", regex : "-->", next : "start"},
800
+ {defaultToken : "comment.xml"}
801
+ ],
802
+
803
+ reference : [{
804
+ token : "constant.language.escape.reference.xml",
805
+ regex : "(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"
806
+ }],
807
+
808
+ attr_reference : [{
809
+ token : "constant.language.escape.reference.attribute-value.xml",
810
+ regex : "(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"
811
+ }],
812
+
813
+ tag : [{
814
+ token : ["meta.tag.punctuation.tag-open.xml", "meta.tag.punctuation.end-tag-open.xml", "meta.tag.tag-name.xml"],
815
+ regex : "(?:(<)|(</))((?:" + tagRegex + ":)?" + tagRegex + ")",
816
+ next: [
817
+ {include : "attributes"},
818
+ {token : "meta.tag.punctuation.tag-close.xml", regex : "/?>", next : "start"}
819
+ ]
820
+ }],
821
+
822
+ tag_whitespace : [
823
+ {token : "text.tag-whitespace.xml", regex : "\\s+"}
824
+ ],
825
+ whitespace : [
826
+ {token : "text.whitespace.xml", regex : "\\s+"}
827
+ ],
828
+ string: [{
829
+ token : "string.xml",
830
+ regex : "'",
831
+ push : [
832
+ {token : "string.xml", regex: "'", next: "pop"},
833
+ {defaultToken : "string.xml"}
834
+ ]
835
+ }, {
836
+ token : "string.xml",
837
+ regex : '"',
838
+ push : [
839
+ {token : "string.xml", regex: '"', next: "pop"},
840
+ {defaultToken : "string.xml"}
841
+ ]
842
+ }],
843
+
844
+ attributes: [{
845
+ token : "entity.other.attribute-name.xml",
846
+ regex : tagRegex
847
+ }, {
848
+ token : "keyword.operator.attribute-equals.xml",
849
+ regex : "="
850
+ }, {
851
+ include: "tag_whitespace"
852
+ }, {
853
+ include: "attribute_value"
854
+ }],
855
+
856
+ attribute_value: [{
857
+ token : "string.attribute-value.xml",
858
+ regex : "'",
859
+ push : [
860
+ {token : "string.attribute-value.xml", regex: "'", next: "pop"},
861
+ {include : "attr_reference"},
862
+ {defaultToken : "string.attribute-value.xml"}
863
+ ]
864
+ }, {
865
+ token : "string.attribute-value.xml",
866
+ regex : '"',
867
+ push : [
868
+ {token : "string.attribute-value.xml", regex: '"', next: "pop"},
869
+ {include : "attr_reference"},
870
+ {defaultToken : "string.attribute-value.xml"}
871
+ ]
872
+ }]
873
+ };
874
+
875
+ if (this.constructor === XmlHighlightRules)
876
+ this.normalizeRules();
877
+ };
878
+
879
+
880
+ (function() {
881
+
882
+ this.embedTagRules = function(HighlightRules, prefix, tag){
883
+ this.$rules.tag.unshift({
884
+ token : ["meta.tag.punctuation.tag-open.xml", "meta.tag." + tag + ".tag-name.xml"],
885
+ regex : "(<)(" + tag + "(?=\\s|>|$))",
886
+ next: [
887
+ {include : "attributes"},
888
+ {token : "meta.tag.punctuation.tag-close.xml", regex : "/?>", next : prefix + "start"}
889
+ ]
890
+ });
891
+
892
+ this.$rules[tag + "-end"] = [
893
+ {include : "attributes"},
894
+ {token : "meta.tag.punctuation.tag-close.xml", regex : "/?>", next: "start",
895
+ onMatch : function(value, currentState, stack) {
896
+ stack.splice(0);
897
+ return this.token;
898
+ }}
899
+ ];
900
+
901
+ this.embedRules(HighlightRules, prefix, [{
902
+ token: ["meta.tag.punctuation.end-tag-open.xml", "meta.tag." + tag + ".tag-name.xml"],
903
+ regex : "(</)(" + tag + "(?=\\s|>|$))",
904
+ next: tag + "-end"
905
+ }, {
906
+ token: "string.cdata.xml",
907
+ regex : "<\\!\\[CDATA\\["
908
+ }, {
909
+ token: "string.cdata.xml",
910
+ regex : "\\]\\]>"
911
+ }]);
912
+ };
913
+
914
+ }).call(TextHighlightRules.prototype);
915
+
916
+ oop.inherits(XmlHighlightRules, TextHighlightRules);
917
+
918
+ exports.XmlHighlightRules = XmlHighlightRules;
919
+ });
920
+
921
+ 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) {
922
+ "use strict";
923
+
924
+ var oop = require("../lib/oop");
925
+ var lang = require("../lib/lang");
926
+ var CssHighlightRules = require("./css_highlight_rules").CssHighlightRules;
927
+ var JavaScriptHighlightRules = require("./javascript_highlight_rules").JavaScriptHighlightRules;
928
+ var XmlHighlightRules = require("./xml_highlight_rules").XmlHighlightRules;
929
+
930
+ var tagMap = lang.createMap({
931
+ a : 'anchor',
932
+ button : 'form',
933
+ form : 'form',
934
+ img : 'image',
935
+ input : 'form',
936
+ label : 'form',
937
+ option : 'form',
938
+ script : 'script',
939
+ select : 'form',
940
+ textarea : 'form',
941
+ style : 'style',
942
+ table : 'table',
943
+ tbody : 'table',
944
+ td : 'table',
945
+ tfoot : 'table',
946
+ th : 'table',
947
+ tr : 'table'
948
+ });
949
+
950
+ var HtmlHighlightRules = function() {
951
+ XmlHighlightRules.call(this);
952
+
953
+ this.addRules({
954
+ attributes: [{
955
+ include : "tag_whitespace"
956
+ }, {
957
+ token : "entity.other.attribute-name.xml",
958
+ regex : "[-_a-zA-Z0-9:.]+"
959
+ }, {
960
+ token : "keyword.operator.attribute-equals.xml",
961
+ regex : "=",
962
+ push : [{
963
+ include: "tag_whitespace"
964
+ }, {
965
+ token : "string.unquoted.attribute-value.html",
966
+ regex : "[^<>='\"`\\s]+",
967
+ next : "pop"
968
+ }, {
969
+ token : "empty",
970
+ regex : "",
971
+ next : "pop"
972
+ }]
973
+ }, {
974
+ include : "attribute_value"
975
+ }],
976
+ tag: [{
977
+ token : function(start, tag) {
978
+ var group = tagMap[tag];
979
+ return ["meta.tag.punctuation." + (start == "<" ? "" : "end-") + "tag-open.xml",
980
+ "meta.tag" + (group ? "." + group : "") + ".tag-name.xml"];
981
+ },
982
+ regex : "(</?)([-_a-zA-Z0-9:.]+)",
983
+ next: "tag_stuff"
984
+ }],
985
+ tag_stuff: [
986
+ {include : "attributes"},
987
+ {token : "meta.tag.punctuation.tag-close.xml", regex : "/?>", next : "start"}
988
+ ]
989
+ });
990
+
991
+ this.embedTagRules(CssHighlightRules, "css-", "style");
992
+ this.embedTagRules(new JavaScriptHighlightRules({jsx: false}).getRules(), "js-", "script");
993
+
994
+ if (this.constructor === HtmlHighlightRules)
995
+ this.normalizeRules();
996
+ };
997
+
998
+ oop.inherits(HtmlHighlightRules, XmlHighlightRules);
999
+
1000
+ exports.HtmlHighlightRules = HtmlHighlightRules;
1001
+ });
1002
+
1003
+ 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) {
1004
+ "use strict";
1005
+
1006
+ var modes = require("../config").$modes;
1007
+
1008
+ var oop = require("../lib/oop");
1009
+ var lang = require("../lib/lang");
1010
+ var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
1011
+ var HtmlHighlightRules = require("./html_highlight_rules").HtmlHighlightRules;
1012
+
1013
+ var escaped = function(ch) {
1014
+ return "(?:[^" + lang.escapeRegExp(ch) + "\\\\]|\\\\.)*";
1015
+ };
1016
+
1017
+ var MarkdownHighlightRules = function() {
1018
+ HtmlHighlightRules.call(this);
1019
+ var codeBlockStartRule = {
1020
+ token : "support.function",
1021
+ regex : /^\s*(```+[^`]*|~~~+[^~]*)$/,
1022
+ onMatch: function(value, state, stack, line) {
1023
+ var m = value.match(/^(\s*)([`~]+)(.*)/);
1024
+ var language = /[\w-]+|$/.exec(m[3])[0];
1025
+ if (!modes[language])
1026
+ language = "";
1027
+ stack.unshift("githubblock", [], [m[1], m[2], language], state);
1028
+ return this.token;
1029
+ },
1030
+ next : "githubblock"
1031
+ };
1032
+ var codeBlockRules = [{
1033
+ token : "support.function",
1034
+ regex : ".*",
1035
+ onMatch: function(value, state, stack, line) {
1036
+ var embedState = stack[1];
1037
+ var indent = stack[2][0];
1038
+ var endMarker = stack[2][1];
1039
+ var language = stack[2][2];
1040
+
1041
+ var m = /^(\s*)(`+|~+)\s*$/.exec(value);
1042
+ if (
1043
+ m && m[1].length < indent.length + 3
1044
+ && m[2].length >= endMarker.length && m[2][0] == endMarker[0]
1045
+ ) {
1046
+ stack.splice(0, 3);
1047
+ this.next = stack.shift();
1048
+ return this.token;
1049
+ }
1050
+ this.next = "";
1051
+ if (language && modes[language]) {
1052
+ var data = modes[language].getTokenizer().getLineTokens(value, embedState.slice(0));
1053
+ stack[1] = data.state;
1054
+ return data.tokens;
1055
+ }
1056
+ return this.token;
1057
+ }
1058
+ }];
1059
+
1060
+ this.$rules["start"].unshift({
1061
+ token : "empty_line",
1062
+ regex : '^$',
1063
+ next: "allowBlock"
1064
+ }, { // h1
1065
+ token: "markup.heading.1",
1066
+ regex: "^=+(?=\\s*$)"
1067
+ }, { // h2
1068
+ token: "markup.heading.2",
1069
+ regex: "^\\-+(?=\\s*$)"
1070
+ }, {
1071
+ token : function(value) {
1072
+ return "markup.heading." + value.length;
1073
+ },
1074
+ regex : /^#{1,6}(?=\s|$)/,
1075
+ next : "header"
1076
+ },
1077
+ codeBlockStartRule,
1078
+ { // block quote
1079
+ token : "string.blockquote",
1080
+ regex : "^\\s*>\\s*(?:[*+-]|\\d+\\.)?\\s+",
1081
+ next : "blockquote"
1082
+ }, { // HR * - _
1083
+ token : "constant",
1084
+ regex : "^ {0,2}(?:(?: ?\\* ?){3,}|(?: ?\\- ?){3,}|(?: ?\\_ ?){3,})\\s*$",
1085
+ next: "allowBlock"
1086
+ }, { // list
1087
+ token : "markup.list",
1088
+ regex : "^\\s{0,3}(?:[*+-]|\\d+\\.)\\s+",
1089
+ next : "listblock-start"
1090
+ }, {
1091
+ include : "basic"
1092
+ });
1093
+
1094
+ this.addRules({
1095
+ "basic" : [{
1096
+ token : "constant.language.escape",
1097
+ regex : /\\[\\`*_{}\[\]()#+\-.!]/
1098
+ }, { // code span `
1099
+ token : "support.function",
1100
+ regex : "(`+)(.*?[^`])(\\1)"
1101
+ }, { // reference
1102
+ token : ["text", "constant", "text", "url", "string", "text"],
1103
+ regex : "^([ ]{0,3}\\[)([^\\]]+)(\\]:\\s*)([^ ]+)(\\s*(?:[\"][^\"]+[\"])?(\\s*))$"
1104
+ }, { // link by reference
1105
+ token : ["text", "string", "text", "constant", "text"],
1106
+ regex : "(\\[)(" + escaped("]") + ")(\\]\\s*\\[)("+ escaped("]") + ")(\\])"
1107
+ }, { // link by url
1108
+ token : ["text", "string", "text", "markup.underline", "string", "text"],
1109
+ regex : "(\\!?\\[)(" + // [
1110
+ escaped("]") + // link text or alt text
1111
+ ")(\\]\\()"+ // ](
1112
+ '((?:[^\\)\\s\\\\]|\\\\.|\\s(?=[^"]))*)' + // href or image
1113
+ '(\\s*"' + escaped('"') + '"\\s*)?' + // "title"
1114
+ "(\\))" // )
1115
+ }, { // strong ** __
1116
+ token : "string.strong",
1117
+ regex : "([*]{2}|[_]{2}(?=\\S))(.*?\\S[*_]*)(\\1)"
1118
+ }, { // emphasis * _
1119
+ token : "string.emphasis",
1120
+ regex : "([*]|[_](?=\\S))(.*?\\S[*_]*)(\\1)"
1121
+ }, { //
1122
+ token : ["text", "url", "text"],
1123
+ regex : "(<)("+
1124
+ "(?:https?|ftp|dict):[^'\">\\s]+"+
1125
+ "|"+
1126
+ "(?:mailto:)?[-.\\w]+\\@[-a-z0-9]+(?:\\.[-a-z0-9]+)*\\.[a-z]+"+
1127
+ ")(>)"
1128
+ }],
1129
+ "allowBlock": [
1130
+ {token : "support.function", regex : "^ {4}.+", next : "allowBlock"},
1131
+ {token : "empty_line", regex : '^$', next: "allowBlock"},
1132
+ {token : "empty", regex : "", next : "start"}
1133
+ ],
1134
+
1135
+ "header" : [{
1136
+ regex: "$",
1137
+ next : "start"
1138
+ }, {
1139
+ include: "basic"
1140
+ }, {
1141
+ defaultToken : "heading"
1142
+ } ],
1143
+
1144
+ "listblock-start" : [{
1145
+ token : "support.variable",
1146
+ regex : /(?:\[[ x]\])?/,
1147
+ next : "listblock"
1148
+ }],
1149
+
1150
+ "listblock" : [ { // Lists only escape on completely blank lines.
1151
+ token : "empty_line",
1152
+ regex : "^$",
1153
+ next : "start"
1154
+ }, { // list
1155
+ token : "markup.list",
1156
+ regex : "^\\s{0,3}(?:[*+-]|\\d+\\.)\\s+",
1157
+ next : "listblock-start"
1158
+ }, {
1159
+ include : "basic", noEscape: true
1160
+ },
1161
+ codeBlockStartRule,
1162
+ {
1163
+ defaultToken : "list" //do not use markup.list to allow stling leading `*` differntly
1164
+ } ],
1165
+
1166
+ "blockquote" : [ { // Blockquotes only escape on blank lines.
1167
+ token : "empty_line",
1168
+ regex : "^\\s*$",
1169
+ next : "start"
1170
+ }, { // block quote
1171
+ token : "string.blockquote",
1172
+ regex : "^\\s*>\\s*(?:[*+-]|\\d+\\.)?\\s+",
1173
+ next : "blockquote"
1174
+ }, {
1175
+ include : "basic", noEscape: true
1176
+ }, {
1177
+ defaultToken : "string.blockquote"
1178
+ } ],
1179
+
1180
+ "githubblock" : codeBlockRules
1181
+ });
1182
+
1183
+ this.normalizeRules();
1184
+ };
1185
+ oop.inherits(MarkdownHighlightRules, TextHighlightRules);
1186
+
1187
+ exports.MarkdownHighlightRules = MarkdownHighlightRules;
1188
+ });
1189
+
1190
+ define("ace/mode/mask_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text_highlight_rules","ace/mode/javascript_highlight_rules","ace/mode/css_highlight_rules","ace/mode/markdown_highlight_rules","ace/mode/html_highlight_rules"], function(require, exports, module) {
1191
+ "use strict";
1192
+
1193
+ exports.MaskHighlightRules = MaskHighlightRules;
1194
+
1195
+ var oop = require("../lib/oop");
1196
+ var lang = require("../lib/lang");
1197
+ var TextRules = require("./text_highlight_rules").TextHighlightRules;
1198
+ var JSRules = require("./javascript_highlight_rules").JavaScriptHighlightRules;
1199
+ var CssRules = require("./css_highlight_rules").CssHighlightRules;
1200
+ var MDRules = require("./markdown_highlight_rules").MarkdownHighlightRules;
1201
+ var HTMLRules = require("./html_highlight_rules").HtmlHighlightRules;
1202
+
1203
+ var token_TAG = "keyword.support.constant.language",
1204
+ token_COMPO = "support.function.markup.bold",
1205
+ token_KEYWORD = "keyword",
1206
+ token_LANG = "constant.language",
1207
+ token_UTIL = "keyword.control.markup.italic",
1208
+ token_ATTR = "support.variable.class",
1209
+ token_PUNKT = "keyword.operator",
1210
+ token_ITALIC = "markup.italic",
1211
+ token_BOLD = "markup.bold",
1212
+ token_LPARE = "paren.lparen",
1213
+ token_RPARE = "paren.rparen";
1214
+
1215
+ var const_FUNCTIONS,
1216
+ const_KEYWORDS,
1217
+ const_CONST,
1218
+ const_TAGS;
1219
+ (function(){
1220
+ const_FUNCTIONS = lang.arrayToMap(
1221
+ ("log").split("|")
1222
+ );
1223
+ const_CONST = lang.arrayToMap(
1224
+ (":dualbind|:bind|:import|slot|event|style|html|markdown|md").split("|")
1225
+ );
1226
+ const_KEYWORDS = lang.arrayToMap(
1227
+ ("debugger|define|var|if|each|for|of|else|switch|case|with|visible|+if|+each|+for|+switch|+with|+visible|include|import").split("|")
1228
+ );
1229
+ const_TAGS = lang.arrayToMap(
1230
+ ("a|abbr|acronym|address|applet|area|article|aside|audio|b|base|basefont|bdo|" +
1231
+ "big|blockquote|body|br|button|canvas|caption|center|cite|code|col|colgroup|" +
1232
+ "command|datalist|dd|del|details|dfn|dir|div|dl|dt|em|embed|fieldset|" +
1233
+ "figcaption|figure|font|footer|form|frame|frameset|h1|h2|h3|h4|h5|h6|head|" +
1234
+ "header|hgroup|hr|html|i|iframe|img|input|ins|keygen|kbd|label|legend|li|" +
1235
+ "link|map|mark|menu|meta|meter|nav|noframes|noscript|object|ol|optgroup|" +
1236
+ "option|output|p|param|pre|progress|q|rp|rt|ruby|s|samp|script|section|select|" +
1237
+ "small|source|span|strike|strong|style|sub|summary|sup|table|tbody|td|" +
1238
+ "textarea|tfoot|th|thead|time|title|tr|tt|u|ul|var|video|wbr|xmp").split("|")
1239
+ );
1240
+ }());
1241
+
1242
+ function MaskHighlightRules () {
1243
+
1244
+ this.$rules = {
1245
+ "start" : [
1246
+ Token("comment", "\\/\\/.*$"),
1247
+ Token("comment", "\\/\\*", [
1248
+ Token("comment", ".*?\\*\\/", "start"),
1249
+ Token("comment", ".+")
1250
+ ]),
1251
+
1252
+ Blocks.string("'''"),
1253
+ Blocks.string('"""'),
1254
+ Blocks.string('"'),
1255
+ Blocks.string("'"),
1256
+
1257
+ Blocks.syntax(/(markdown|md)\b/, "md-multiline", "multiline"),
1258
+ Blocks.syntax(/html\b/, "html-multiline", "multiline"),
1259
+ Blocks.syntax(/(slot|event)\b/, "js-block", "block"),
1260
+ Blocks.syntax(/style\b/, "css-block", "block"),
1261
+ Blocks.syntax(/var\b/, "js-statement", "attr"),
1262
+
1263
+ Blocks.tag(),
1264
+
1265
+ Token(token_LPARE, "[[({>]"),
1266
+ Token(token_RPARE, "[\\])};]", "start"),
1267
+ {
1268
+ caseInsensitive: true
1269
+ }
1270
+ ]
1271
+ };
1272
+ var rules = this;
1273
+
1274
+ addJavaScript("interpolation", /\]/, token_RPARE + "." + token_ITALIC);
1275
+ addJavaScript("statement", /\)|}|;/);
1276
+ addJavaScript("block", /\}/);
1277
+ addCss();
1278
+ addMarkdown();
1279
+ addHtml();
1280
+
1281
+ function addJavaScript(name, escape, closeType) {
1282
+ var prfx = "js-" + name + "-",
1283
+ rootTokens = name === "block" ? ["start"] : ["start", "no_regex"];
1284
+ add(
1285
+ JSRules
1286
+ , prfx
1287
+ , escape
1288
+ , rootTokens
1289
+ , closeType
1290
+ );
1291
+ }
1292
+ function addCss() {
1293
+ add(CssRules, "css-block-", /\}/);
1294
+ }
1295
+ function addMarkdown() {
1296
+ add(MDRules, "md-multiline-", /("""|''')/, []);
1297
+ }
1298
+ function addHtml() {
1299
+ add(HTMLRules, "html-multiline-", /("""|''')/);
1300
+ }
1301
+ function add(Rules, strPrfx, rgxEnd, rootTokens, closeType) {
1302
+ var next = "pop";
1303
+ var tokens = rootTokens || [ "start" ];
1304
+ if (tokens.length === 0) {
1305
+ tokens = null;
1306
+ }
1307
+ if (/block|multiline/.test(strPrfx)) {
1308
+ next = strPrfx + "end";
1309
+ rules.$rules[next] = [
1310
+ Token("empty", "", "start")
1311
+ ];
1312
+ }
1313
+ rules.embedRules(
1314
+ Rules
1315
+ , strPrfx
1316
+ , [ Token(closeType || token_RPARE, rgxEnd, next) ]
1317
+ , tokens
1318
+ , tokens == null ? true : false
1319
+ );
1320
+ }
1321
+
1322
+ this.normalizeRules();
1323
+ }
1324
+ oop.inherits(MaskHighlightRules, TextRules);
1325
+
1326
+ var Blocks = {
1327
+ string: function(str, next){
1328
+ var token = Token(
1329
+ "string.start"
1330
+ , str
1331
+ , [
1332
+ Token(token_LPARE + "." + token_ITALIC, /~\[/, Blocks.interpolation()),
1333
+ Token("string.end", str, "pop"),
1334
+ {
1335
+ defaultToken: "string"
1336
+ }
1337
+ ]
1338
+ , next
1339
+ );
1340
+ if (str.length === 1){
1341
+ var escaped = Token("string.escape", "\\\\" + str);
1342
+ token.push.unshift(escaped);
1343
+ }
1344
+ return token;
1345
+ },
1346
+ interpolation: function(){
1347
+ return [
1348
+ Token(token_UTIL, /\s*\w*\s*:/),
1349
+ "js-interpolation-start"
1350
+ ];
1351
+ },
1352
+ tagHead: function (rgx) {
1353
+ return Token(token_ATTR, rgx, [
1354
+ Token(token_ATTR, /[\w\-_]+/),
1355
+ Token(token_LPARE + "." + token_ITALIC, /~\[/, Blocks.interpolation()),
1356
+ Blocks.goUp()
1357
+ ]);
1358
+ },
1359
+ tag: function () {
1360
+ return {
1361
+ token: 'tag',
1362
+ onMatch : function(value) {
1363
+ if (void 0 !== const_KEYWORDS[value])
1364
+ return token_KEYWORD;
1365
+ if (void 0 !== const_CONST[value])
1366
+ return token_LANG;
1367
+ if (void 0 !== const_FUNCTIONS[value])
1368
+ return "support.function";
1369
+ if (void 0 !== const_TAGS[value.toLowerCase()])
1370
+ return token_TAG;
1371
+
1372
+ return token_COMPO;
1373
+ },
1374
+ regex : /([@\w\-_:+]+)|((^|\s)(?=\s*(\.|#)))/,
1375
+ push: [
1376
+ Blocks.tagHead(/\./) ,
1377
+ Blocks.tagHead(/#/) ,
1378
+ Blocks.expression(),
1379
+ Blocks.attribute(),
1380
+
1381
+ Token(token_LPARE, /[;>{]/, "pop")
1382
+ ]
1383
+ };
1384
+ },
1385
+ syntax: function(rgx, next, type){
1386
+ return {
1387
+ token: token_LANG,
1388
+ regex : rgx,
1389
+ push: ({
1390
+ "attr": [
1391
+ next + "-start",
1392
+ Token(token_PUNKT, /;/, "start")
1393
+ ],
1394
+ "multiline": [
1395
+ Blocks.tagHead(/\./) ,
1396
+ Blocks.tagHead(/#/) ,
1397
+ Blocks.attribute(),
1398
+ Blocks.expression(),
1399
+ Token(token_LPARE, /[>\{]/),
1400
+ Token(token_PUNKT, /;/, "start"),
1401
+ Token(token_LPARE, /'''|"""/, [ next + "-start" ])
1402
+ ],
1403
+ "block": [
1404
+ Blocks.tagHead(/\./) ,
1405
+ Blocks.tagHead(/#/) ,
1406
+ Blocks.attribute(),
1407
+ Blocks.expression(),
1408
+ Token(token_LPARE, /\{/, [ next + "-start" ])
1409
+ ]
1410
+ })[type]
1411
+ };
1412
+ },
1413
+ attribute: function(){
1414
+ return Token(function(value){
1415
+ return /^x\-/.test(value)
1416
+ ? token_ATTR + "." + token_BOLD
1417
+ : token_ATTR;
1418
+ }, /[\w_-]+/, [
1419
+ Token(token_PUNKT, /\s*=\s*/, [
1420
+ Blocks.string('"'),
1421
+ Blocks.string("'"),
1422
+ Blocks.word(),
1423
+ Blocks.goUp()
1424
+ ]),
1425
+ Blocks.goUp()
1426
+ ]);
1427
+ },
1428
+ expression: function(){
1429
+ return Token(token_LPARE, /\(/, [ "js-statement-start" ]);
1430
+ },
1431
+ word: function(){
1432
+ return Token("string", /[\w-_]+/);
1433
+ },
1434
+ goUp: function(){
1435
+ return Token("text", "", "pop");
1436
+ },
1437
+ goStart: function(){
1438
+ return Token("text", "", "start");
1439
+ }
1440
+ };
1441
+
1442
+
1443
+ function Token(token, rgx, mix) {
1444
+ var push, next, onMatch;
1445
+ if (arguments.length === 4) {
1446
+ push = mix;
1447
+ next = arguments[3];
1448
+ }
1449
+ else if (typeof mix === "string") {
1450
+ next = mix;
1451
+ }
1452
+ else {
1453
+ push = mix;
1454
+ }
1455
+ if (typeof token === "function") {
1456
+ onMatch = token;
1457
+ token = "empty";
1458
+ }
1459
+ return {
1460
+ token: token,
1461
+ regex: rgx,
1462
+ push: push,
1463
+ next: next,
1464
+ onMatch: onMatch
1465
+ };
1466
+ }
1467
+
1468
+ });
1469
+
1470
+ define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"], function(require, exports, module) {
1471
+ "use strict";
1472
+
1473
+ var Range = require("../range").Range;
1474
+
1475
+ var MatchingBraceOutdent = function() {};
1476
+
1477
+ (function() {
1478
+
1479
+ this.checkOutdent = function(line, input) {
1480
+ if (! /^\s+$/.test(line))
1481
+ return false;
1482
+
1483
+ return /^\s*\}/.test(input);
1484
+ };
1485
+
1486
+ this.autoOutdent = function(doc, row) {
1487
+ var line = doc.getLine(row);
1488
+ var match = line.match(/^(\s*\})/);
1489
+
1490
+ if (!match) return 0;
1491
+
1492
+ var column = match[1].length;
1493
+ var openBracePos = doc.findMatchingBracket({row: row, column: column});
1494
+
1495
+ if (!openBracePos || openBracePos.row == row) return 0;
1496
+
1497
+ var indent = this.$getIndent(doc.getLine(openBracePos.row));
1498
+ doc.replace(new Range(row, 0, row, column-1), indent);
1499
+ };
1500
+
1501
+ this.$getIndent = function(line) {
1502
+ return line.match(/^\s*/)[0];
1503
+ };
1504
+
1505
+ }).call(MatchingBraceOutdent.prototype);
1506
+
1507
+ exports.MatchingBraceOutdent = MatchingBraceOutdent;
1508
+ });
1509
+
1510
+ 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) {
1511
+ "use strict";
1512
+
1513
+ var oop = require("../../lib/oop");
1514
+ var Behaviour = require("../behaviour").Behaviour;
1515
+ var CstyleBehaviour = require("./cstyle").CstyleBehaviour;
1516
+ var TokenIterator = require("../../token_iterator").TokenIterator;
1517
+
1518
+ var CssBehaviour = function () {
1519
+
1520
+ this.inherit(CstyleBehaviour);
1521
+
1522
+ this.add("colon", "insertion", function (state, action, editor, session, text) {
1523
+ if (text === ':' && editor.selection.isEmpty()) {
1524
+ var cursor = editor.getCursorPosition();
1525
+ var iterator = new TokenIterator(session, cursor.row, cursor.column);
1526
+ var token = iterator.getCurrentToken();
1527
+ if (token && token.value.match(/\s+/)) {
1528
+ token = iterator.stepBackward();
1529
+ }
1530
+ if (token && token.type === 'support.type') {
1531
+ var line = session.doc.getLine(cursor.row);
1532
+ var rightChar = line.substring(cursor.column, cursor.column + 1);
1533
+ if (rightChar === ':') {
1534
+ return {
1535
+ text: '',
1536
+ selection: [1, 1]
1537
+ };
1538
+ }
1539
+ if (/^(\s+[^;]|\s*$)/.test(line.substring(cursor.column))) {
1540
+ return {
1541
+ text: ':;',
1542
+ selection: [1, 1]
1543
+ };
1544
+ }
1545
+ }
1546
+ }
1547
+ });
1548
+
1549
+ this.add("colon", "deletion", function (state, action, editor, session, range) {
1550
+ var selected = session.doc.getTextRange(range);
1551
+ if (!range.isMultiLine() && selected === ':') {
1552
+ var cursor = editor.getCursorPosition();
1553
+ var iterator = new TokenIterator(session, cursor.row, cursor.column);
1554
+ var token = iterator.getCurrentToken();
1555
+ if (token && token.value.match(/\s+/)) {
1556
+ token = iterator.stepBackward();
1557
+ }
1558
+ if (token && token.type === 'support.type') {
1559
+ var line = session.doc.getLine(range.start.row);
1560
+ var rightChar = line.substring(range.end.column, range.end.column + 1);
1561
+ if (rightChar === ';') {
1562
+ range.end.column ++;
1563
+ return range;
1564
+ }
1565
+ }
1566
+ }
1567
+ });
1568
+
1569
+ this.add("semicolon", "insertion", function (state, action, editor, session, text) {
1570
+ if (text === ';' && editor.selection.isEmpty()) {
1571
+ var cursor = editor.getCursorPosition();
1572
+ var line = session.doc.getLine(cursor.row);
1573
+ var rightChar = line.substring(cursor.column, cursor.column + 1);
1574
+ if (rightChar === ';') {
1575
+ return {
1576
+ text: '',
1577
+ selection: [1, 1]
1578
+ };
1579
+ }
1580
+ }
1581
+ });
1582
+
1583
+ this.add("!important", "insertion", function (state, action, editor, session, text) {
1584
+ if (text === '!' && editor.selection.isEmpty()) {
1585
+ var cursor = editor.getCursorPosition();
1586
+ var line = session.doc.getLine(cursor.row);
1587
+
1588
+ if (/^\s*(;|}|$)/.test(line.substring(cursor.column))) {
1589
+ return {
1590
+ text: '!important',
1591
+ selection: [10, 10]
1592
+ };
1593
+ }
1594
+ }
1595
+ });
1596
+
1597
+ };
1598
+ oop.inherits(CssBehaviour, CstyleBehaviour);
1599
+
1600
+ exports.CssBehaviour = CssBehaviour;
1601
+ });
1602
+
1603
+ define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"], function(require, exports, module) {
1604
+ "use strict";
1605
+
1606
+ var oop = require("../../lib/oop");
1607
+ var Range = require("../../range").Range;
1608
+ var BaseFoldMode = require("./fold_mode").FoldMode;
1609
+
1610
+ var FoldMode = exports.FoldMode = function(commentRegex) {
1611
+ if (commentRegex) {
1612
+ this.foldingStartMarker = new RegExp(
1613
+ this.foldingStartMarker.source.replace(/\|[^|]*?$/, "|" + commentRegex.start)
1614
+ );
1615
+ this.foldingStopMarker = new RegExp(
1616
+ this.foldingStopMarker.source.replace(/\|[^|]*?$/, "|" + commentRegex.end)
1617
+ );
1618
+ }
1619
+ };
1620
+ oop.inherits(FoldMode, BaseFoldMode);
1621
+
1622
+ (function() {
1623
+
1624
+ this.foldingStartMarker = /([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/;
1625
+ this.foldingStopMarker = /^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/;
1626
+ this.singleLineBlockCommentRe= /^\s*(\/\*).*\*\/\s*$/;
1627
+ this.tripleStarBlockCommentRe = /^\s*(\/\*\*\*).*\*\/\s*$/;
1628
+ this.startRegionRe = /^\s*(\/\*|\/\/)#?region\b/;
1629
+ this._getFoldWidgetBase = this.getFoldWidget;
1630
+ this.getFoldWidget = function(session, foldStyle, row) {
1631
+ var line = session.getLine(row);
1632
+
1633
+ if (this.singleLineBlockCommentRe.test(line)) {
1634
+ if (!this.startRegionRe.test(line) && !this.tripleStarBlockCommentRe.test(line))
1635
+ return "";
1636
+ }
1637
+
1638
+ var fw = this._getFoldWidgetBase(session, foldStyle, row);
1639
+
1640
+ if (!fw && this.startRegionRe.test(line))
1641
+ return "start"; // lineCommentRegionStart
1642
+
1643
+ return fw;
1644
+ };
1645
+
1646
+ this.getFoldWidgetRange = function(session, foldStyle, row, forceMultiline) {
1647
+ var line = session.getLine(row);
1648
+
1649
+ if (this.startRegionRe.test(line))
1650
+ return this.getCommentRegionBlock(session, line, row);
1651
+
1652
+ var match = line.match(this.foldingStartMarker);
1653
+ if (match) {
1654
+ var i = match.index;
1655
+
1656
+ if (match[1])
1657
+ return this.openingBracketBlock(session, match[1], row, i);
1658
+
1659
+ var range = session.getCommentFoldRange(row, i + match[0].length, 1);
1660
+
1661
+ if (range && !range.isMultiLine()) {
1662
+ if (forceMultiline) {
1663
+ range = this.getSectionRange(session, row);
1664
+ } else if (foldStyle != "all")
1665
+ range = null;
1666
+ }
1667
+
1668
+ return range;
1669
+ }
1670
+
1671
+ if (foldStyle === "markbegin")
1672
+ return;
1673
+
1674
+ var match = line.match(this.foldingStopMarker);
1675
+ if (match) {
1676
+ var i = match.index + match[0].length;
1677
+
1678
+ if (match[1])
1679
+ return this.closingBracketBlock(session, match[1], row, i);
1680
+
1681
+ return session.getCommentFoldRange(row, i, -1);
1682
+ }
1683
+ };
1684
+
1685
+ this.getSectionRange = function(session, row) {
1686
+ var line = session.getLine(row);
1687
+ var startIndent = line.search(/\S/);
1688
+ var startRow = row;
1689
+ var startColumn = line.length;
1690
+ row = row + 1;
1691
+ var endRow = row;
1692
+ var maxRow = session.getLength();
1693
+ while (++row < maxRow) {
1694
+ line = session.getLine(row);
1695
+ var indent = line.search(/\S/);
1696
+ if (indent === -1)
1697
+ continue;
1698
+ if (startIndent > indent)
1699
+ break;
1700
+ var subRange = this.getFoldWidgetRange(session, "all", row);
1701
+
1702
+ if (subRange) {
1703
+ if (subRange.start.row <= startRow) {
1704
+ break;
1705
+ } else if (subRange.isMultiLine()) {
1706
+ row = subRange.end.row;
1707
+ } else if (startIndent == indent) {
1708
+ break;
1709
+ }
1710
+ }
1711
+ endRow = row;
1712
+ }
1713
+
1714
+ return new Range(startRow, startColumn, endRow, session.getLine(endRow).length);
1715
+ };
1716
+ this.getCommentRegionBlock = function(session, line, row) {
1717
+ var startColumn = line.search(/\s*$/);
1718
+ var maxRow = session.getLength();
1719
+ var startRow = row;
1720
+
1721
+ var re = /^\s*(?:\/\*|\/\/|--)#?(end)?region\b/;
1722
+ var depth = 1;
1723
+ while (++row < maxRow) {
1724
+ line = session.getLine(row);
1725
+ var m = re.exec(line);
1726
+ if (!m) continue;
1727
+ if (m[1]) depth--;
1728
+ else depth++;
1729
+
1730
+ if (!depth) break;
1731
+ }
1732
+
1733
+ var endRow = row;
1734
+ if (endRow > startRow) {
1735
+ return new Range(startRow, startColumn, endRow, line.length);
1736
+ }
1737
+ };
1738
+
1739
+ }).call(FoldMode.prototype);
1740
+
1741
+ });
1742
+
1743
+ define("ace/mode/mask",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/mask_highlight_rules","ace/mode/matching_brace_outdent","ace/mode/behaviour/css","ace/mode/folding/cstyle"], function(require, exports, module) {
1744
+ "use strict";
1745
+
1746
+ var oop = require("../lib/oop");
1747
+ var TextMode = require("./text").Mode;
1748
+ var MaskHighlightRules = require("./mask_highlight_rules").MaskHighlightRules;
1749
+ var MatchingBraceOutdent = require("./matching_brace_outdent").MatchingBraceOutdent;
1750
+ var CssBehaviour = require("./behaviour/css").CssBehaviour;
1751
+ var CStyleFoldMode = require("./folding/cstyle").FoldMode;
1752
+
1753
+ var Mode = function() {
1754
+ this.HighlightRules = MaskHighlightRules;
1755
+ this.$outdent = new MatchingBraceOutdent();
1756
+ this.$behaviour = new CssBehaviour();
1757
+ this.foldingRules = new CStyleFoldMode();
1758
+ };
1759
+ oop.inherits(Mode, TextMode);
1760
+
1761
+ (function() {
1762
+
1763
+ this.lineCommentStart = "//";
1764
+ this.blockComment = {start: "/*", end: "*/"};
1765
+
1766
+ this.getNextLineIndent = function(state, line, tab) {
1767
+ var indent = this.$getIndent(line);
1768
+ var tokens = this.getTokenizer().getLineTokens(line, state).tokens;
1769
+ if (tokens.length && tokens[tokens.length-1].type == "comment") {
1770
+ return indent;
1771
+ }
1772
+
1773
+ var match = line.match(/^.*\{\s*$/);
1774
+ if (match) {
1775
+ indent += tab;
1776
+ }
1777
+
1778
+ return indent;
1779
+ };
1780
+
1781
+ this.checkOutdent = function(state, line, input) {
1782
+ return this.$outdent.checkOutdent(line, input);
1783
+ };
1784
+
1785
+ this.autoOutdent = function(state, doc, row) {
1786
+ this.$outdent.autoOutdent(doc, row);
1787
+ };
1788
+
1789
+ this.$id = "ace/mode/mask";
1790
+ }).call(Mode.prototype);
1791
+
1792
+ exports.Mode = Mode;
1793
+
1794
+ });
1795
+ (function() {
1796
+ window.require(["ace/mode/mask"], function(m) {
1797
+ if (typeof module == "object" && typeof exports == "object" && module) {
1798
+ module.exports = m;
1799
+ }
1800
+ });
1801
+ })();
1802
+