ace-rails-ap 4.1.3 → 4.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (437) hide show
  1. checksums.yaml +5 -5
  2. data/.gitmodules +1 -1
  3. data/Gemfile +2 -3
  4. data/ace-rails-ap.gemspec +0 -2
  5. data/lib/ace/rails/version.rb +1 -1
  6. data/update.sh +1 -1
  7. data/vendor/assets/javascripts/ace/ace.js +5192 -3414
  8. data/vendor/assets/javascripts/ace/ext-beautify.js +281 -288
  9. data/vendor/assets/javascripts/ace/ext-code_lens.js +238 -0
  10. data/vendor/assets/javascripts/ace/ext-elastic_tabstops_lite.js +6 -3
  11. data/vendor/assets/javascripts/ace/ext-emmet.js +353 -246
  12. data/vendor/assets/javascripts/ace/ext-error_marker.js +6 -3
  13. data/vendor/assets/javascripts/ace/ext-keybinding_menu.js +61 -38
  14. data/vendor/assets/javascripts/ace/ext-language_tools.js +532 -343
  15. data/vendor/assets/javascripts/ace/ext-linking.js +8 -5
  16. data/vendor/assets/javascripts/ace/ext-modelist.js +46 -12
  17. data/vendor/assets/javascripts/ace/ext-options.js +793 -0
  18. data/vendor/assets/javascripts/ace/ext-prompt.js +2783 -0
  19. data/vendor/assets/javascripts/ace/ext-rtl.js +122 -0
  20. data/vendor/assets/javascripts/ace/ext-searchbox.js +45 -40
  21. data/vendor/assets/javascripts/ace/ext-settings_menu.js +520 -369
  22. data/vendor/assets/javascripts/ace/ext-spellcheck.js +6 -4
  23. data/vendor/assets/javascripts/ace/ext-split.js +7 -46
  24. data/vendor/assets/javascripts/ace/ext-static_highlight.js +90 -22
  25. data/vendor/assets/javascripts/ace/ext-statusbar.js +9 -6
  26. data/vendor/assets/javascripts/ace/ext-textarea.js +21 -18
  27. data/vendor/assets/javascripts/ace/ext-themelist.js +10 -6
  28. data/vendor/assets/javascripts/ace/ext-whitespace.js +13 -6
  29. data/vendor/assets/javascripts/ace/keybinding-emacs.js +49 -61
  30. data/vendor/assets/javascripts/ace/keybinding-sublime.js +422 -0
  31. data/vendor/assets/javascripts/ace/keybinding-vim.js +620 -287
  32. data/vendor/assets/javascripts/ace/keybinding-vscode.js +262 -0
  33. data/vendor/assets/javascripts/ace/mode-abap.js +10 -3
  34. data/vendor/assets/javascripts/ace/mode-abc.js +14 -4
  35. data/vendor/assets/javascripts/ace/mode-actionscript.js +13 -5
  36. data/vendor/assets/javascripts/ace/mode-ada.js +54 -4
  37. data/vendor/assets/javascripts/ace/mode-alda.js +311 -0
  38. data/vendor/assets/javascripts/ace/mode-apache_conf.js +12 -5
  39. data/vendor/assets/javascripts/ace/mode-apex.js +457 -0
  40. data/vendor/assets/javascripts/ace/mode-applescript.js +11 -4
  41. data/vendor/assets/javascripts/ace/mode-aql.js +102 -0
  42. data/vendor/assets/javascripts/ace/mode-asciidoc.js +9 -2
  43. data/vendor/assets/javascripts/ace/mode-asl.js +422 -0
  44. data/vendor/assets/javascripts/ace/mode-assembly_x86.js +11 -4
  45. data/vendor/assets/javascripts/ace/mode-autohotkey.js +17 -8
  46. data/vendor/assets/javascripts/ace/mode-batchfile.js +12 -5
  47. data/vendor/assets/javascripts/ace/mode-c9search.js +9 -3
  48. data/vendor/assets/javascripts/ace/mode-c_cpp.js +23 -7
  49. data/vendor/assets/javascripts/ace/mode-cirru.js +11 -4
  50. data/vendor/assets/javascripts/ace/mode-clojure.js +9 -1
  51. data/vendor/assets/javascripts/ace/mode-cobol.js +8 -1
  52. data/vendor/assets/javascripts/ace/mode-coffee.js +12 -4
  53. data/vendor/assets/javascripts/ace/mode-coldfusion.js +163 -134
  54. data/vendor/assets/javascripts/ace/mode-crystal.js +642 -0
  55. data/vendor/assets/javascripts/ace/mode-csharp.js +13 -6
  56. data/vendor/assets/javascripts/ace/mode-csound_document.js +4036 -0
  57. data/vendor/assets/javascripts/ace/mode-csound_orchestra.js +2966 -0
  58. data/vendor/assets/javascripts/ace/mode-csound_score.js +462 -0
  59. data/vendor/assets/javascripts/ace/mode-csp.js +59 -0
  60. data/vendor/assets/javascripts/ace/mode-css.js +48 -27
  61. data/vendor/assets/javascripts/ace/mode-curly.js +162 -133
  62. data/vendor/assets/javascripts/ace/mode-d.js +12 -5
  63. data/vendor/assets/javascripts/ace/mode-dart.js +46 -20
  64. data/vendor/assets/javascripts/ace/mode-diff.js +11 -3
  65. data/vendor/assets/javascripts/ace/mode-django.js +164 -134
  66. data/vendor/assets/javascripts/ace/mode-dockerfile.js +12 -4
  67. data/vendor/assets/javascripts/ace/mode-dot.js +11 -4
  68. data/vendor/assets/javascripts/ace/mode-drools.js +46 -5
  69. data/vendor/assets/javascripts/ace/mode-edifact.js +166 -0
  70. data/vendor/assets/javascripts/ace/mode-eiffel.js +8 -1
  71. data/vendor/assets/javascripts/ace/mode-ejs.js +832 -298
  72. data/vendor/assets/javascripts/ace/mode-elixir.js +11 -4
  73. data/vendor/assets/javascripts/ace/mode-elm.js +10 -3
  74. data/vendor/assets/javascripts/ace/mode-erlang.js +13 -5
  75. data/vendor/assets/javascripts/ace/mode-forth.js +12 -5
  76. data/vendor/assets/javascripts/ace/mode-fortran.js +10 -3
  77. data/vendor/assets/javascripts/ace/mode-fsharp.js +316 -0
  78. data/vendor/assets/javascripts/ace/{mode-mipsassembler.js → mode-fsl.js} +91 -28
  79. data/vendor/assets/javascripts/ace/mode-ftl.js +23 -12
  80. data/vendor/assets/javascripts/ace/mode-gcode.js +8 -1
  81. data/vendor/assets/javascripts/ace/mode-gherkin.js +9 -4
  82. data/vendor/assets/javascripts/ace/mode-gitignore.js +8 -1
  83. data/vendor/assets/javascripts/ace/mode-glsl.js +24 -8
  84. data/vendor/assets/javascripts/ace/mode-gobstones.js +267 -99
  85. data/vendor/assets/javascripts/ace/mode-golang.js +11 -4
  86. data/vendor/assets/javascripts/ace/mode-graphqlschema.js +11 -3
  87. data/vendor/assets/javascripts/ace/mode-groovy.js +14 -5
  88. data/vendor/assets/javascripts/ace/mode-haml.js +442 -116
  89. data/vendor/assets/javascripts/ace/mode-handlebars.js +162 -133
  90. data/vendor/assets/javascripts/ace/mode-haskell.js +14 -6
  91. data/vendor/assets/javascripts/ace/mode-haskell_cabal.js +8 -1
  92. data/vendor/assets/javascripts/ace/mode-haxe.js +11 -4
  93. data/vendor/assets/javascripts/ace/mode-hjson.js +13 -6
  94. data/vendor/assets/javascripts/ace/mode-html.js +162 -133
  95. data/vendor/assets/javascripts/ace/mode-html_elixir.js +165 -136
  96. data/vendor/assets/javascripts/ace/mode-html_ruby.js +832 -298
  97. data/vendor/assets/javascripts/ace/mode-ini.js +8 -1
  98. data/vendor/assets/javascripts/ace/mode-io.js +14 -12
  99. data/vendor/assets/javascripts/ace/mode-jack.js +10 -3
  100. data/vendor/assets/javascripts/ace/mode-jade.js +272 -376
  101. data/vendor/assets/javascripts/ace/mode-java.js +110 -7
  102. data/vendor/assets/javascripts/ace/mode-javascript.js +14 -5
  103. data/vendor/assets/javascripts/ace/mode-json.js +13 -3
  104. data/vendor/assets/javascripts/ace/mode-json5.js +360 -0
  105. data/vendor/assets/javascripts/ace/mode-jsoniq.js +25 -12
  106. data/vendor/assets/javascripts/ace/mode-jsp.js +60 -15
  107. data/vendor/assets/javascripts/ace/mode-jssm.js +325 -0
  108. data/vendor/assets/javascripts/ace/mode-jsx.js +11 -4
  109. data/vendor/assets/javascripts/ace/mode-julia.js +12 -5
  110. data/vendor/assets/javascripts/ace/mode-kotlin.js +18 -7
  111. data/vendor/assets/javascripts/ace/mode-latex.js +87 -15
  112. data/vendor/assets/javascripts/ace/mode-less.js +47 -27
  113. data/vendor/assets/javascripts/ace/mode-liquid.js +2030 -472
  114. data/vendor/assets/javascripts/ace/mode-lisp.js +9 -2
  115. data/vendor/assets/javascripts/ace/mode-livescript.js +10 -2
  116. data/vendor/assets/javascripts/ace/mode-logiql.js +10 -3
  117. data/vendor/assets/javascripts/ace/mode-logtalk.js +352 -0
  118. data/vendor/assets/javascripts/ace/mode-lsl.js +11 -3
  119. data/vendor/assets/javascripts/ace/mode-lua.js +40 -12
  120. data/vendor/assets/javascripts/ace/mode-luapage.js +194 -144
  121. data/vendor/assets/javascripts/ace/mode-lucene.js +106 -22
  122. data/vendor/assets/javascripts/ace/mode-makefile.js +11 -3
  123. data/vendor/assets/javascripts/ace/mode-markdown.js +530 -201
  124. data/vendor/assets/javascripts/ace/mode-mask.js +101 -84
  125. data/vendor/assets/javascripts/ace/mode-matlab.js +8 -1
  126. data/vendor/assets/javascripts/ace/mode-maze.js +11 -3
  127. data/vendor/assets/javascripts/ace/mode-mediawiki.js +592 -0
  128. data/vendor/assets/javascripts/ace/mode-mel.js +11 -4
  129. data/vendor/assets/javascripts/ace/mode-mixal.js +122 -0
  130. data/vendor/assets/javascripts/ace/mode-mushcode.js +9 -2
  131. data/vendor/assets/javascripts/ace/mode-mysql.js +11 -4
  132. data/vendor/assets/javascripts/ace/mode-nginx.js +298 -0
  133. data/vendor/assets/javascripts/ace/mode-nim.js +363 -0
  134. data/vendor/assets/javascripts/ace/mode-nix.js +23 -7
  135. data/vendor/assets/javascripts/ace/mode-nsis.js +15 -8
  136. data/vendor/assets/javascripts/ace/mode-nunjucks.js +2698 -0
  137. data/vendor/assets/javascripts/ace/mode-objectivec.js +23 -8
  138. data/vendor/assets/javascripts/ace/mode-ocaml.js +8 -1
  139. data/vendor/assets/javascripts/ace/mode-pascal.js +92 -67
  140. data/vendor/assets/javascripts/ace/mode-perl.js +11 -3
  141. data/vendor/assets/javascripts/ace/mode-perl6.js +593 -0
  142. data/vendor/assets/javascripts/ace/mode-pgsql.js +314 -71
  143. data/vendor/assets/javascripts/ace/mode-php.js +1042 -995
  144. data/vendor/assets/javascripts/ace/mode-php_laravel_blade.js +13104 -0
  145. data/vendor/assets/javascripts/ace/mode-pig.js +13 -6
  146. data/vendor/assets/javascripts/ace/mode-plain_text.js +8 -1
  147. data/vendor/assets/javascripts/ace/mode-powershell.js +10 -3
  148. data/vendor/assets/javascripts/ace/mode-praat.js +17 -7
  149. data/vendor/assets/javascripts/ace/mode-prisma.js +489 -0
  150. data/vendor/assets/javascripts/ace/mode-prolog.js +12 -5
  151. data/vendor/assets/javascripts/ace/mode-properties.js +8 -1
  152. data/vendor/assets/javascripts/ace/mode-protobuf.js +23 -7
  153. data/vendor/assets/javascripts/ace/mode-puppet.js +368 -0
  154. data/vendor/assets/javascripts/ace/mode-python.js +306 -63
  155. data/vendor/assets/javascripts/ace/mode-qml.js +381 -0
  156. data/vendor/assets/javascripts/ace/mode-r.js +15 -4
  157. data/vendor/assets/javascripts/ace/mode-razor.js +166 -136
  158. data/vendor/assets/javascripts/ace/mode-rdoc.js +41 -3
  159. data/vendor/assets/javascripts/ace/mode-red.js +450 -0
  160. data/vendor/assets/javascripts/ace/mode-redshift.js +360 -0
  161. data/vendor/assets/javascripts/ace/mode-rhtml.js +162 -133
  162. data/vendor/assets/javascripts/ace/mode-rst.js +9 -1
  163. data/vendor/assets/javascripts/ace/mode-ruby.js +678 -166
  164. data/vendor/assets/javascripts/ace/mode-rust.js +16 -7
  165. data/vendor/assets/javascripts/ace/mode-sass.js +211 -116
  166. data/vendor/assets/javascripts/ace/mode-scad.js +11 -4
  167. data/vendor/assets/javascripts/ace/mode-scala.js +14 -5
  168. data/vendor/assets/javascripts/ace/mode-scheme.js +9 -2
  169. data/vendor/assets/javascripts/ace/mode-scss.js +412 -125
  170. data/vendor/assets/javascripts/ace/mode-sh.js +12 -4
  171. data/vendor/assets/javascripts/ace/mode-sjs.js +16 -7
  172. data/vendor/assets/javascripts/ace/mode-slim.js +5240 -0
  173. data/vendor/assets/javascripts/ace/mode-smarty.js +164 -135
  174. data/vendor/assets/javascripts/ace/mode-snippets.js +24 -16
  175. data/vendor/assets/javascripts/ace/mode-soy_template.js +164 -135
  176. data/vendor/assets/javascripts/ace/mode-space.js +8 -1
  177. data/vendor/assets/javascripts/ace/mode-sparql.js +13 -6
  178. data/vendor/assets/javascripts/ace/mode-sql.js +10 -2
  179. data/vendor/assets/javascripts/ace/mode-sqlserver.js +13 -5
  180. data/vendor/assets/javascripts/ace/mode-stylus.js +20 -10
  181. data/vendor/assets/javascripts/ace/mode-svg.js +27 -13
  182. data/vendor/assets/javascripts/ace/mode-swift.js +21 -8
  183. data/vendor/assets/javascripts/ace/mode-tcl.js +14 -3
  184. data/vendor/assets/javascripts/ace/mode-terraform.js +400 -0
  185. data/vendor/assets/javascripts/ace/mode-tex.js +9 -1
  186. data/vendor/assets/javascripts/ace/mode-text.js +8 -0
  187. data/vendor/assets/javascripts/ace/mode-textile.js +9 -1
  188. data/vendor/assets/javascripts/ace/mode-toml.js +9 -2
  189. data/vendor/assets/javascripts/ace/mode-tsx.js +28 -31
  190. data/vendor/assets/javascripts/ace/mode-turtle.js +13 -6
  191. data/vendor/assets/javascripts/ace/mode-twig.js +163 -134
  192. data/vendor/assets/javascripts/ace/mode-typescript.js +28 -31
  193. data/vendor/assets/javascripts/ace/mode-vala.js +14 -6
  194. data/vendor/assets/javascripts/ace/mode-vbscript.js +453 -17
  195. data/vendor/assets/javascripts/ace/mode-velocity.js +163 -133
  196. data/vendor/assets/javascripts/ace/mode-verilog.js +19 -5
  197. data/vendor/assets/javascripts/ace/mode-vhdl.js +13 -7
  198. data/vendor/assets/javascripts/ace/mode-visualforce.js +2640 -0
  199. data/vendor/assets/javascripts/ace/mode-wollok.js +17 -8
  200. data/vendor/assets/javascripts/ace/mode-xml.js +21 -9
  201. data/vendor/assets/javascripts/ace/mode-xquery.js +25 -12
  202. data/vendor/assets/javascripts/ace/mode-yaml.js +59 -18
  203. data/vendor/assets/javascripts/ace/mode-zeek.js +539 -0
  204. data/vendor/assets/javascripts/ace/snippets/abap.js +8 -6
  205. data/vendor/assets/javascripts/ace/snippets/abc.js +8 -1
  206. data/vendor/assets/javascripts/ace/snippets/actionscript.js +8 -1
  207. data/vendor/assets/javascripts/ace/snippets/ada.js +8 -6
  208. data/vendor/assets/javascripts/ace/snippets/alda.js +9 -0
  209. data/vendor/assets/javascripts/ace/snippets/apache_conf.js +8 -6
  210. data/vendor/assets/javascripts/ace/snippets/apex.js +9 -0
  211. data/vendor/assets/javascripts/ace/snippets/applescript.js +8 -6
  212. data/vendor/assets/javascripts/ace/snippets/aql.js +9 -0
  213. data/vendor/assets/javascripts/ace/snippets/asciidoc.js +8 -6
  214. data/vendor/assets/javascripts/ace/snippets/asl.js +9 -0
  215. data/vendor/assets/javascripts/ace/snippets/assembly_x86.js +8 -6
  216. data/vendor/assets/javascripts/ace/snippets/autohotkey.js +8 -6
  217. data/vendor/assets/javascripts/ace/snippets/batchfile.js +8 -6
  218. data/vendor/assets/javascripts/ace/snippets/c9search.js +8 -6
  219. data/vendor/assets/javascripts/ace/snippets/c_cpp.js +8 -1
  220. data/vendor/assets/javascripts/ace/snippets/cirru.js +8 -6
  221. data/vendor/assets/javascripts/ace/snippets/clojure.js +8 -1
  222. data/vendor/assets/javascripts/ace/snippets/cobol.js +8 -6
  223. data/vendor/assets/javascripts/ace/snippets/coffee.js +8 -1
  224. data/vendor/assets/javascripts/ace/snippets/coldfusion.js +8 -6
  225. data/vendor/assets/javascripts/ace/snippets/crystal.js +9 -0
  226. data/vendor/assets/javascripts/ace/snippets/csharp.js +8 -6
  227. data/vendor/assets/javascripts/ace/snippets/csound_document.js +24 -0
  228. data/vendor/assets/javascripts/ace/snippets/csound_orchestra.js +61 -0
  229. data/vendor/assets/javascripts/ace/snippets/csound_score.js +9 -0
  230. data/vendor/assets/javascripts/ace/snippets/csp.js +9 -0
  231. data/vendor/assets/javascripts/ace/snippets/css.js +8 -1
  232. data/vendor/assets/javascripts/ace/snippets/curly.js +8 -6
  233. data/vendor/assets/javascripts/ace/snippets/d.js +8 -6
  234. data/vendor/assets/javascripts/ace/snippets/dart.js +8 -1
  235. data/vendor/assets/javascripts/ace/snippets/diff.js +8 -1
  236. data/vendor/assets/javascripts/ace/snippets/django.js +8 -1
  237. data/vendor/assets/javascripts/ace/snippets/dockerfile.js +8 -6
  238. data/vendor/assets/javascripts/ace/snippets/dot.js +8 -6
  239. data/vendor/assets/javascripts/ace/snippets/drools.js +8 -1
  240. data/vendor/assets/javascripts/ace/snippets/edifact.js +254 -0
  241. data/vendor/assets/javascripts/ace/snippets/eiffel.js +8 -6
  242. data/vendor/assets/javascripts/ace/snippets/ejs.js +8 -6
  243. data/vendor/assets/javascripts/ace/snippets/elixir.js +8 -6
  244. data/vendor/assets/javascripts/ace/snippets/elm.js +8 -6
  245. data/vendor/assets/javascripts/ace/snippets/erlang.js +8 -1
  246. data/vendor/assets/javascripts/ace/snippets/forth.js +8 -6
  247. data/vendor/assets/javascripts/ace/snippets/fortran.js +8 -6
  248. data/vendor/assets/javascripts/ace/snippets/fsharp.js +9 -0
  249. data/vendor/assets/javascripts/ace/snippets/fsl.js +14 -0
  250. data/vendor/assets/javascripts/ace/snippets/ftl.js +8 -6
  251. data/vendor/assets/javascripts/ace/snippets/gcode.js +8 -6
  252. data/vendor/assets/javascripts/ace/snippets/gherkin.js +8 -6
  253. data/vendor/assets/javascripts/ace/snippets/gitignore.js +8 -6
  254. data/vendor/assets/javascripts/ace/snippets/glsl.js +8 -6
  255. data/vendor/assets/javascripts/ace/snippets/gobstones.js +1701 -24
  256. data/vendor/assets/javascripts/ace/snippets/golang.js +8 -6
  257. data/vendor/assets/javascripts/ace/snippets/graphqlschema.js +8 -1
  258. data/vendor/assets/javascripts/ace/snippets/groovy.js +8 -6
  259. data/vendor/assets/javascripts/ace/snippets/haml.js +8 -1
  260. data/vendor/assets/javascripts/ace/snippets/handlebars.js +8 -6
  261. data/vendor/assets/javascripts/ace/snippets/haskell.js +8 -1
  262. data/vendor/assets/javascripts/ace/snippets/haskell_cabal.js +8 -6
  263. data/vendor/assets/javascripts/ace/snippets/haxe.js +8 -6
  264. data/vendor/assets/javascripts/ace/snippets/hjson.js +8 -6
  265. data/vendor/assets/javascripts/ace/snippets/html.js +36 -2
  266. data/vendor/assets/javascripts/ace/snippets/html_elixir.js +8 -6
  267. data/vendor/assets/javascripts/ace/snippets/html_ruby.js +8 -6
  268. data/vendor/assets/javascripts/ace/snippets/ini.js +8 -6
  269. data/vendor/assets/javascripts/ace/snippets/io.js +8 -1
  270. data/vendor/assets/javascripts/ace/snippets/jack.js +8 -6
  271. data/vendor/assets/javascripts/ace/snippets/jade.js +8 -6
  272. data/vendor/assets/javascripts/ace/snippets/java.js +8 -1
  273. data/vendor/assets/javascripts/ace/snippets/javascript.js +8 -1
  274. data/vendor/assets/javascripts/ace/snippets/json.js +8 -6
  275. data/vendor/assets/javascripts/ace/snippets/json5.js +9 -0
  276. data/vendor/assets/javascripts/ace/snippets/jsoniq.js +8 -1
  277. data/vendor/assets/javascripts/ace/snippets/jsp.js +8 -1
  278. data/vendor/assets/javascripts/ace/snippets/jssm.js +9 -0
  279. data/vendor/assets/javascripts/ace/snippets/jsx.js +8 -6
  280. data/vendor/assets/javascripts/ace/snippets/julia.js +8 -6
  281. data/vendor/assets/javascripts/ace/snippets/kotlin.js +8 -6
  282. data/vendor/assets/javascripts/ace/snippets/latex.js +8 -6
  283. data/vendor/assets/javascripts/ace/snippets/less.js +8 -6
  284. data/vendor/assets/javascripts/ace/snippets/liquid.js +890 -2
  285. data/vendor/assets/javascripts/ace/snippets/lisp.js +8 -6
  286. data/vendor/assets/javascripts/ace/snippets/livescript.js +8 -6
  287. data/vendor/assets/javascripts/ace/snippets/logiql.js +8 -6
  288. data/vendor/assets/javascripts/ace/snippets/logtalk.js +9 -0
  289. data/vendor/assets/javascripts/ace/snippets/lsl.js +8 -1
  290. data/vendor/assets/javascripts/ace/snippets/lua.js +8 -1
  291. data/vendor/assets/javascripts/ace/snippets/luapage.js +8 -6
  292. data/vendor/assets/javascripts/ace/snippets/lucene.js +8 -6
  293. data/vendor/assets/javascripts/ace/snippets/makefile.js +8 -1
  294. data/vendor/assets/javascripts/ace/snippets/markdown.js +8 -1
  295. data/vendor/assets/javascripts/ace/snippets/mask.js +8 -6
  296. data/vendor/assets/javascripts/ace/snippets/matlab.js +8 -6
  297. data/vendor/assets/javascripts/ace/snippets/maze.js +8 -1
  298. data/vendor/assets/javascripts/ace/snippets/mediawiki.js +9 -0
  299. data/vendor/assets/javascripts/ace/snippets/mel.js +8 -6
  300. data/vendor/assets/javascripts/ace/snippets/mixal.js +9 -0
  301. data/vendor/assets/javascripts/ace/snippets/mushcode.js +8 -6
  302. data/vendor/assets/javascripts/ace/snippets/mysql.js +8 -6
  303. data/vendor/assets/javascripts/ace/snippets/nginx.js +9 -0
  304. data/vendor/assets/javascripts/ace/snippets/nim.js +9 -0
  305. data/vendor/assets/javascripts/ace/snippets/nix.js +8 -6
  306. data/vendor/assets/javascripts/ace/snippets/nsis.js +8 -6
  307. data/vendor/assets/javascripts/ace/snippets/nunjucks.js +9 -0
  308. data/vendor/assets/javascripts/ace/snippets/objectivec.js +8 -6
  309. data/vendor/assets/javascripts/ace/snippets/ocaml.js +8 -6
  310. data/vendor/assets/javascripts/ace/snippets/pascal.js +8 -6
  311. data/vendor/assets/javascripts/ace/snippets/perl.js +8 -1
  312. data/vendor/assets/javascripts/ace/snippets/perl6.js +9 -0
  313. data/vendor/assets/javascripts/ace/snippets/pgsql.js +8 -6
  314. data/vendor/assets/javascripts/ace/snippets/php.js +49 -36
  315. data/vendor/assets/javascripts/ace/snippets/php_laravel_blade.js +9 -0
  316. data/vendor/assets/javascripts/ace/snippets/pig.js +8 -6
  317. data/vendor/assets/javascripts/ace/snippets/plain_text.js +8 -6
  318. data/vendor/assets/javascripts/ace/snippets/powershell.js +8 -6
  319. data/vendor/assets/javascripts/ace/snippets/praat.js +8 -6
  320. data/vendor/assets/javascripts/ace/snippets/prisma.js +9 -0
  321. data/vendor/assets/javascripts/ace/snippets/prolog.js +8 -6
  322. data/vendor/assets/javascripts/ace/snippets/properties.js +8 -6
  323. data/vendor/assets/javascripts/ace/snippets/protobuf.js +8 -6
  324. data/vendor/assets/javascripts/ace/snippets/puppet.js +9 -0
  325. data/vendor/assets/javascripts/ace/snippets/python.js +8 -1
  326. data/vendor/assets/javascripts/ace/snippets/qml.js +9 -0
  327. data/vendor/assets/javascripts/ace/snippets/r.js +8 -1
  328. data/vendor/assets/javascripts/ace/snippets/razor.js +8 -1
  329. data/vendor/assets/javascripts/ace/snippets/rdoc.js +8 -6
  330. data/vendor/assets/javascripts/ace/snippets/red.js +9 -0
  331. data/vendor/assets/javascripts/ace/snippets/redshift.js +9 -0
  332. data/vendor/assets/javascripts/ace/snippets/rhtml.js +8 -6
  333. data/vendor/assets/javascripts/ace/snippets/rst.js +8 -1
  334. data/vendor/assets/javascripts/ace/snippets/ruby.js +8 -1
  335. data/vendor/assets/javascripts/ace/snippets/rust.js +8 -6
  336. data/vendor/assets/javascripts/ace/snippets/sass.js +8 -6
  337. data/vendor/assets/javascripts/ace/snippets/scad.js +8 -6
  338. data/vendor/assets/javascripts/ace/snippets/scala.js +8 -6
  339. data/vendor/assets/javascripts/ace/snippets/scheme.js +8 -6
  340. data/vendor/assets/javascripts/ace/snippets/scss.js +8 -6
  341. data/vendor/assets/javascripts/ace/snippets/sh.js +8 -1
  342. data/vendor/assets/javascripts/ace/snippets/sjs.js +8 -6
  343. data/vendor/assets/javascripts/ace/snippets/slim.js +9 -0
  344. data/vendor/assets/javascripts/ace/snippets/smarty.js +8 -6
  345. data/vendor/assets/javascripts/ace/snippets/snippets.js +8 -1
  346. data/vendor/assets/javascripts/ace/snippets/soy_template.js +8 -6
  347. data/vendor/assets/javascripts/ace/snippets/space.js +8 -6
  348. data/vendor/assets/javascripts/ace/snippets/sparql.js +8 -6
  349. data/vendor/assets/javascripts/ace/snippets/sql.js +8 -1
  350. data/vendor/assets/javascripts/ace/snippets/sqlserver.js +8 -1
  351. data/vendor/assets/javascripts/ace/snippets/stylus.js +8 -6
  352. data/vendor/assets/javascripts/ace/snippets/svg.js +8 -6
  353. data/vendor/assets/javascripts/ace/snippets/swift.js +8 -6
  354. data/vendor/assets/javascripts/ace/snippets/tcl.js +8 -1
  355. data/vendor/assets/javascripts/ace/snippets/terraform.js +9 -0
  356. data/vendor/assets/javascripts/ace/snippets/tex.js +8 -1
  357. data/vendor/assets/javascripts/ace/snippets/text.js +8 -6
  358. data/vendor/assets/javascripts/ace/snippets/textile.js +8 -1
  359. data/vendor/assets/javascripts/ace/snippets/toml.js +8 -6
  360. data/vendor/assets/javascripts/ace/snippets/tsx.js +8 -6
  361. data/vendor/assets/javascripts/ace/snippets/turtle.js +8 -6
  362. data/vendor/assets/javascripts/ace/snippets/twig.js +8 -6
  363. data/vendor/assets/javascripts/ace/snippets/typescript.js +8 -6
  364. data/vendor/assets/javascripts/ace/snippets/vala.js +8 -1
  365. data/vendor/assets/javascripts/ace/snippets/vbscript.js +8 -6
  366. data/vendor/assets/javascripts/ace/snippets/velocity.js +8 -1
  367. data/vendor/assets/javascripts/ace/snippets/verilog.js +8 -6
  368. data/vendor/assets/javascripts/ace/snippets/vhdl.js +8 -6
  369. data/vendor/assets/javascripts/ace/snippets/visualforce.js +9 -0
  370. data/vendor/assets/javascripts/ace/snippets/wollok.js +8 -1
  371. data/vendor/assets/javascripts/ace/snippets/xml.js +8 -6
  372. data/vendor/assets/javascripts/ace/snippets/xquery.js +8 -1
  373. data/vendor/assets/javascripts/ace/snippets/yaml.js +8 -6
  374. data/vendor/assets/javascripts/ace/snippets/zeek.js +9 -0
  375. data/vendor/assets/javascripts/ace/theme-ambiance.js +11 -8
  376. data/vendor/assets/javascripts/ace/theme-chaos.js +9 -2
  377. data/vendor/assets/javascripts/ace/theme-chrome.js +8 -1
  378. data/vendor/assets/javascripts/ace/theme-clouds.js +8 -1
  379. data/vendor/assets/javascripts/ace/theme-clouds_midnight.js +8 -1
  380. data/vendor/assets/javascripts/ace/theme-cobalt.js +8 -1
  381. data/vendor/assets/javascripts/ace/theme-crimson_editor.js +8 -1
  382. data/vendor/assets/javascripts/ace/theme-dawn.js +8 -1
  383. data/vendor/assets/javascripts/ace/theme-dracula.js +135 -0
  384. data/vendor/assets/javascripts/ace/theme-dreamweaver.js +8 -1
  385. data/vendor/assets/javascripts/ace/theme-eclipse.js +8 -1
  386. data/vendor/assets/javascripts/ace/theme-github.js +8 -1
  387. data/vendor/assets/javascripts/ace/theme-gob.js +8 -1
  388. data/vendor/assets/javascripts/ace/theme-gruvbox.js +8 -1
  389. data/vendor/assets/javascripts/ace/theme-idle_fingers.js +8 -1
  390. data/vendor/assets/javascripts/ace/theme-iplastic.js +8 -1
  391. data/vendor/assets/javascripts/ace/theme-katzenmilch.js +8 -1
  392. data/vendor/assets/javascripts/ace/theme-kr_theme.js +8 -1
  393. data/vendor/assets/javascripts/ace/theme-kuroir.js +8 -1
  394. data/vendor/assets/javascripts/ace/theme-merbivore.js +8 -1
  395. data/vendor/assets/javascripts/ace/theme-merbivore_soft.js +8 -1
  396. data/vendor/assets/javascripts/ace/theme-mono_industrial.js +8 -1
  397. data/vendor/assets/javascripts/ace/theme-monokai.js +8 -1
  398. data/vendor/assets/javascripts/ace/theme-nord_dark.js +102 -0
  399. data/vendor/assets/javascripts/ace/theme-pastel_on_dark.js +8 -1
  400. data/vendor/assets/javascripts/ace/theme-solarized_dark.js +8 -1
  401. data/vendor/assets/javascripts/ace/theme-solarized_light.js +9 -2
  402. data/vendor/assets/javascripts/ace/theme-sqlserver.js +8 -1
  403. data/vendor/assets/javascripts/ace/theme-terminal.js +8 -1
  404. data/vendor/assets/javascripts/ace/theme-textmate.js +9 -1
  405. data/vendor/assets/javascripts/ace/theme-tomorrow.js +8 -1
  406. data/vendor/assets/javascripts/ace/theme-tomorrow_night.js +8 -1
  407. data/vendor/assets/javascripts/ace/theme-tomorrow_night_blue.js +8 -1
  408. data/vendor/assets/javascripts/ace/theme-tomorrow_night_bright.js +8 -1
  409. data/vendor/assets/javascripts/ace/theme-tomorrow_night_eighties.js +8 -1
  410. data/vendor/assets/javascripts/ace/theme-twilight.js +8 -1
  411. data/vendor/assets/javascripts/ace/theme-vibrant_ink.js +8 -1
  412. data/vendor/assets/javascripts/ace/theme-xcode.js +8 -1
  413. data/vendor/assets/javascripts/ace/worker-base.js +1421 -0
  414. data/vendor/assets/javascripts/ace/worker-coffee.js +55 -742
  415. data/vendor/assets/javascripts/ace/worker-css.js +66 -739
  416. data/vendor/assets/javascripts/ace/worker-html.js +55 -738
  417. data/vendor/assets/javascripts/ace/worker-javascript.js +6693 -4209
  418. data/vendor/assets/javascripts/ace/worker-json.js +56 -737
  419. data/vendor/assets/javascripts/ace/worker-lua.js +56 -738
  420. data/vendor/assets/javascripts/ace/worker-php.js +897 -1512
  421. data/vendor/assets/javascripts/ace/worker-xml.js +129 -808
  422. data/vendor/assets/javascripts/ace/worker-xquery.js +54 -737
  423. metadata +74 -19
  424. data/vendor/assets/javascripts/ace/ext-chromevox.js +0 -540
  425. data/vendor/assets/javascripts/ace/ext-old_ie.js +0 -502
  426. data/vendor/assets/javascripts/ace/mode-bash.js +0 -247
  427. data/vendor/assets/javascripts/ace/mode-bro.js +0 -327
  428. data/vendor/assets/javascripts/ace/mode-lean.js +0 -281
  429. data/vendor/assets/javascripts/ace/mode-live_script.js +0 -481
  430. data/vendor/assets/javascripts/ace/mode-mips_assembler.js +0 -235
  431. data/vendor/assets/javascripts/ace/mode-swig.js +0 -1099
  432. data/vendor/assets/javascripts/ace/snippets/bro.js +0 -7
  433. data/vendor/assets/javascripts/ace/snippets/lean.js +0 -7
  434. data/vendor/assets/javascripts/ace/snippets/live_script.js +0 -7
  435. data/vendor/assets/javascripts/ace/snippets/mips_assembler.js +0 -7
  436. data/vendor/assets/javascripts/ace/snippets/mipsassembler.js +0 -7
  437. data/vendor/assets/javascripts/ace/snippets/swig.js +0 -7
@@ -152,4 +152,11 @@ oop.inherits(Mode, TextMode);
152
152
  }).call(Mode.prototype);
153
153
 
154
154
  exports.Mode = Mode;
155
- });
155
+ }); (function() {
156
+ window.require(["ace/mode/ini"], function(m) {
157
+ if (typeof module == "object" && typeof exports == "object" && module) {
158
+ module.exports = m;
159
+ }
160
+ });
161
+ })();
162
+
@@ -7,13 +7,7 @@ var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
7
7
  var IoHighlightRules = function() {
8
8
 
9
9
  this.$rules = { start:
10
- [ { token: [ 'text', 'meta.empty-parenthesis.io' ],
11
- regex: '(\\()(\\))',
12
- comment: 'we match this to overload return inside () --Allan; scoping rules for what gets the scope have changed, so we now group the ) instead of the ( -- Rob' },
13
- { token: [ 'text', 'meta.comma-parenthesis.io' ],
14
- regex: '(\\,)(\\))',
15
- comment: 'We want to do the same for ,) -- Seckar; same as above -- Rob' },
16
- { token: 'keyword.control.io',
10
+ [ { token: 'keyword.control.io',
17
11
  regex: '\\b(?:if|ifTrue|ifFalse|ifTrueIfFalse|for|loop|reverseForeach|foreach|map|continue|break|while|do|return)\\b' },
18
12
  { token: 'punctuation.definition.comment.io',
19
13
  regex: '/\\*',
@@ -65,7 +59,7 @@ var IoHighlightRules = function() {
65
59
  regex: '\\b(?:0(?:x|X)[0-9a-fA-F]*|(?:[0-9]+\\.?[0-9]*|\\.[0-9]+)(?:(?:e|E)(?:\\+|-)?[0-9]+)?)(?:L|l|UL|ul|u|U|F|f)?\\b' },
66
60
  { token: 'variable.other.global.io', regex: 'Lobby\\b' },
67
61
  { token: 'constant.language.io',
68
- regex: '\\b(?:TRUE|true|FALSE|false|NULL|null|Null|Nil|nil|YES|NO)\\b' } ] }
62
+ regex: '\\b(?:TRUE|true|FALSE|false|NULL|null|Null|Nil|nil|YES|NO)\\b' } ] };
69
63
 
70
64
  this.normalizeRules();
71
65
  };
@@ -73,7 +67,7 @@ var IoHighlightRules = function() {
73
67
  IoHighlightRules.metaData = { fileTypes: [ 'io' ],
74
68
  keyEquivalent: '^~I',
75
69
  name: 'Io',
76
- scopeName: 'source.io' }
70
+ scopeName: 'source.io' };
77
71
 
78
72
 
79
73
  oop.inherits(IoHighlightRules, TextHighlightRules);
@@ -102,8 +96,8 @@ oop.inherits(FoldMode, BaseFoldMode);
102
96
 
103
97
  (function() {
104
98
 
105
- this.foldingStartMarker = /(\{|\[)[^\}\]]*$|^\s*(\/\*)/;
106
- this.foldingStopMarker = /^[^\[\{]*(\}|\])|^[\s\*]*(\*\/)/;
99
+ this.foldingStartMarker = /([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/;
100
+ this.foldingStopMarker = /^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/;
107
101
  this.singleLineBlockCommentRe= /^\s*(\/\*).*\*\/\s*$/;
108
102
  this.tripleStarBlockCommentRe = /^\s*(\/\*\*\*).*\*\/\s*$/;
109
103
  this.startRegionRe = /^\s*(\/\*|\/\/)#?region\b/;
@@ -240,7 +234,15 @@ oop.inherits(Mode, TextMode);
240
234
  this.lineCommentStart = "//";
241
235
  this.blockComment = {start: "/*", end: "*/"};
242
236
  this.$id = "ace/mode/io";
237
+ this.snippetFileId = "ace/snippets/io";
243
238
  }).call(Mode.prototype);
244
239
 
245
240
  exports.Mode = Mode;
246
- });
241
+ }); (function() {
242
+ window.require(["ace/mode/io"], function(m) {
243
+ if (typeof module == "object" && typeof exports == "object" && module) {
244
+ module.exports = m;
245
+ }
246
+ });
247
+ })();
248
+
@@ -169,8 +169,8 @@ oop.inherits(FoldMode, BaseFoldMode);
169
169
 
170
170
  (function() {
171
171
 
172
- this.foldingStartMarker = /(\{|\[)[^\}\]]*$|^\s*(\/\*)/;
173
- this.foldingStopMarker = /^[^\[\{]*(\}|\])|^[\s\*]*(\*\/)/;
172
+ this.foldingStartMarker = /([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/;
173
+ this.foldingStopMarker = /^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/;
174
174
  this.singleLineBlockCommentRe= /^\s*(\/\*).*\*\/\s*$/;
175
175
  this.tripleStarBlockCommentRe = /^\s*(\/\*\*\*).*\*\/\s*$/;
176
176
  this.startRegionRe = /^\s*(\/\*|\/\/)#?region\b/;
@@ -336,4 +336,11 @@ oop.inherits(Mode, TextMode);
336
336
  }).call(Mode.prototype);
337
337
 
338
338
  exports.Mode = Mode;
339
- });
339
+ }); (function() {
340
+ window.require(["ace/mode/jack"], function(m) {
341
+ if (typeof module == "object" && typeof exports == "object" && module) {
342
+ module.exports = m;
343
+ }
344
+ });
345
+ })();
346
+
@@ -1,3 +1,198 @@
1
+ define("ace/mode/css_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text_highlight_rules"], function(require, exports, module) {
2
+ "use strict";
3
+
4
+ var oop = require("../lib/oop");
5
+ var lang = require("../lib/lang");
6
+ var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
7
+ 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";
8
+ var supportFunction = exports.supportFunction = "rgb|rgba|url|attr|counter|counters";
9
+ 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";
10
+ 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";
11
+ 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";
12
+
13
+ var numRe = exports.numRe = "\\-?(?:(?:[0-9]+(?:\\.[0-9]+)?)|(?:\\.[0-9]+))";
14
+ var pseudoElements = exports.pseudoElements = "(\\:+)\\b(after|before|first-letter|first-line|moz-selection|selection)\\b";
15
+ 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";
16
+
17
+ var CssHighlightRules = function() {
18
+
19
+ var keywordMapper = this.createKeywordMapper({
20
+ "support.function": supportFunction,
21
+ "support.constant": supportConstant,
22
+ "support.type": supportType,
23
+ "support.constant.color": supportConstantColor,
24
+ "support.constant.fonts": supportConstantFonts
25
+ }, "text", true);
26
+
27
+ this.$rules = {
28
+ "start" : [{
29
+ include : ["strings", "url", "comments"]
30
+ }, {
31
+ token: "paren.lparen",
32
+ regex: "\\{",
33
+ next: "ruleset"
34
+ }, {
35
+ token: "paren.rparen",
36
+ regex: "\\}"
37
+ }, {
38
+ token: "string",
39
+ regex: "@(?!viewport)",
40
+ next: "media"
41
+ }, {
42
+ token: "keyword",
43
+ regex: "#[a-z0-9-_]+"
44
+ }, {
45
+ token: "keyword",
46
+ regex: "%"
47
+ }, {
48
+ token: "variable",
49
+ regex: "\\.[a-z0-9-_]+"
50
+ }, {
51
+ token: "string",
52
+ regex: ":[a-z0-9-_]+"
53
+ }, {
54
+ token : "constant.numeric",
55
+ regex : numRe
56
+ }, {
57
+ token: "constant",
58
+ regex: "[a-z0-9-_]+"
59
+ }, {
60
+ caseInsensitive: true
61
+ }],
62
+
63
+ "media": [{
64
+ include : ["strings", "url", "comments"]
65
+ }, {
66
+ token: "paren.lparen",
67
+ regex: "\\{",
68
+ next: "start"
69
+ }, {
70
+ token: "paren.rparen",
71
+ regex: "\\}",
72
+ next: "start"
73
+ }, {
74
+ token: "string",
75
+ regex: ";",
76
+ next: "start"
77
+ }, {
78
+ token: "keyword",
79
+ regex: "(?:media|supports|document|charset|import|namespace|media|supports|document"
80
+ + "|page|font|keyframes|viewport|counter-style|font-feature-values"
81
+ + "|swash|ornaments|annotation|stylistic|styleset|character-variant)"
82
+ }],
83
+
84
+ "comments" : [{
85
+ token: "comment", // multi line comment
86
+ regex: "\\/\\*",
87
+ push: [{
88
+ token : "comment",
89
+ regex : "\\*\\/",
90
+ next : "pop"
91
+ }, {
92
+ defaultToken : "comment"
93
+ }]
94
+ }],
95
+
96
+ "ruleset" : [{
97
+ regex : "-(webkit|ms|moz|o)-",
98
+ token : "text"
99
+ }, {
100
+ token : "punctuation.operator",
101
+ regex : "[:;]"
102
+ }, {
103
+ token : "paren.rparen",
104
+ regex : "\\}",
105
+ next : "start"
106
+ }, {
107
+ include : ["strings", "url", "comments"]
108
+ }, {
109
+ token : ["constant.numeric", "keyword"],
110
+ 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|%)"
111
+ }, {
112
+ token : "constant.numeric",
113
+ regex : numRe
114
+ }, {
115
+ token : "constant.numeric", // hex6 color
116
+ regex : "#[a-f0-9]{6}"
117
+ }, {
118
+ token : "constant.numeric", // hex3 color
119
+ regex : "#[a-f0-9]{3}"
120
+ }, {
121
+ token : ["punctuation", "entity.other.attribute-name.pseudo-element.css"],
122
+ regex : pseudoElements
123
+ }, {
124
+ token : ["punctuation", "entity.other.attribute-name.pseudo-class.css"],
125
+ regex : pseudoClasses
126
+ }, {
127
+ include: "url"
128
+ }, {
129
+ token : keywordMapper,
130
+ regex : "\\-?[a-zA-Z_][a-zA-Z0-9_\\-]*"
131
+ }, {
132
+ caseInsensitive: true
133
+ }],
134
+
135
+ url: [{
136
+ token : "support.function",
137
+ regex : "(?:url(:?-prefix)?|domain|regexp)\\(",
138
+ push: [{
139
+ token : "support.function",
140
+ regex : "\\)",
141
+ next : "pop"
142
+ }, {
143
+ defaultToken: "string"
144
+ }]
145
+ }],
146
+
147
+ strings: [{
148
+ token : "string.start",
149
+ regex : "'",
150
+ push : [{
151
+ token : "string.end",
152
+ regex : "'|$",
153
+ next: "pop"
154
+ }, {
155
+ include : "escapes"
156
+ }, {
157
+ token : "constant.language.escape",
158
+ regex : /\\$/,
159
+ consumeLineEnd: true
160
+ }, {
161
+ defaultToken: "string"
162
+ }]
163
+ }, {
164
+ token : "string.start",
165
+ regex : '"',
166
+ push : [{
167
+ token : "string.end",
168
+ regex : '"|$',
169
+ next: "pop"
170
+ }, {
171
+ include : "escapes"
172
+ }, {
173
+ token : "constant.language.escape",
174
+ regex : /\\$/,
175
+ consumeLineEnd: true
176
+ }, {
177
+ defaultToken: "string"
178
+ }]
179
+ }],
180
+ escapes: [{
181
+ token : "constant.language.escape",
182
+ regex : /\\([a-fA-F\d]{1,6}|[^a-fA-F\d])/
183
+ }]
184
+
185
+ };
186
+
187
+ this.normalizeRules();
188
+ };
189
+
190
+ oop.inherits(CssHighlightRules, TextHighlightRules);
191
+
192
+ exports.CssHighlightRules = CssHighlightRules;
193
+
194
+ });
195
+
1
196
  define("ace/mode/doc_comment_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"], function(require, exports, module) {
2
197
  "use strict";
3
198
 
@@ -25,7 +220,7 @@ DocCommentHighlightRules.getTagRule = function(start) {
25
220
  token : "comment.doc.tag.storage.type",
26
221
  regex : "\\b(?:TODO|FIXME|XXX|HACK)\\b"
27
222
  };
28
- }
223
+ };
29
224
 
30
225
  DocCommentHighlightRules.getStartRule = function(start) {
31
226
  return {
@@ -181,7 +376,8 @@ var JavaScriptHighlightRules = function(options) {
181
376
  next : "property"
182
377
  }, {
183
378
  token : "storage.type",
184
- regex : /=>/
379
+ regex : /=>/,
380
+ next : "start"
185
381
  }, {
186
382
  token : "keyword.operator",
187
383
  regex : /--|\+\+|\.{3}|===|==|=|!=|!==|<+=?|>+=?|!|&&|\|\||\?:|[!$%&*+\-~\/^]=?/,
@@ -702,7 +898,7 @@ var XmlHighlightRules = function(normalize) {
702
898
  stack.splice(0);
703
899
  return this.token;
704
900
  }}
705
- ]
901
+ ];
706
902
 
707
903
  this.embedRules(HighlightRules, prefix, [{
708
904
  token: ["meta.tag.punctuation.end-tag-open.xml", "meta.tag." + tag + ".tag-name.xml"],
@@ -724,198 +920,6 @@ oop.inherits(XmlHighlightRules, TextHighlightRules);
724
920
  exports.XmlHighlightRules = XmlHighlightRules;
725
921
  });
726
922
 
727
- define("ace/mode/css_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text_highlight_rules"], function(require, exports, module) {
728
- "use strict";
729
-
730
- var oop = require("../lib/oop");
731
- var lang = require("../lib/lang");
732
- var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
733
- 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|min-height|min-width|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|vertical-align|visibility|white-space|width|word-break|word-spacing|word-wrap|z-index";
734
- var supportFunction = exports.supportFunction = "rgb|rgba|url|attr|counter|counters";
735
- 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";
736
- 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";
737
- 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";
738
-
739
- var numRe = exports.numRe = "\\-?(?:(?:[0-9]+(?:\\.[0-9]+)?)|(?:\\.[0-9]+))";
740
- var pseudoElements = exports.pseudoElements = "(\\:+)\\b(after|before|first-letter|first-line|moz-selection|selection)\\b";
741
- 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";
742
-
743
- var CssHighlightRules = function() {
744
-
745
- var keywordMapper = this.createKeywordMapper({
746
- "support.function": supportFunction,
747
- "support.constant": supportConstant,
748
- "support.type": supportType,
749
- "support.constant.color": supportConstantColor,
750
- "support.constant.fonts": supportConstantFonts
751
- }, "text", true);
752
-
753
- this.$rules = {
754
- "start" : [{
755
- include : ["strings", "url", "comments"]
756
- }, {
757
- token: "paren.lparen",
758
- regex: "\\{",
759
- next: "ruleset"
760
- }, {
761
- token: "paren.rparen",
762
- regex: "\\}"
763
- }, {
764
- token: "string",
765
- regex: "@",
766
- next: "media"
767
- }, {
768
- token: "keyword",
769
- regex: "#[a-z0-9-_]+"
770
- }, {
771
- token: "keyword",
772
- regex: "%"
773
- }, {
774
- token: "variable",
775
- regex: "\\.[a-z0-9-_]+"
776
- }, {
777
- token: "string",
778
- regex: ":[a-z0-9-_]+"
779
- }, {
780
- token : "constant.numeric",
781
- regex : numRe
782
- }, {
783
- token: "constant",
784
- regex: "[a-z0-9-_]+"
785
- }, {
786
- caseInsensitive: true
787
- }],
788
-
789
- "media": [{
790
- include : ["strings", "url", "comments"]
791
- }, {
792
- token: "paren.lparen",
793
- regex: "\\{",
794
- next: "start"
795
- }, {
796
- token: "paren.rparen",
797
- regex: "\\}",
798
- next: "start"
799
- }, {
800
- token: "string",
801
- regex: ";",
802
- next: "start"
803
- }, {
804
- token: "keyword",
805
- regex: "(?:media|supports|document|charset|import|namespace|media|supports|document"
806
- + "|page|font|keyframes|viewport|counter-style|font-feature-values"
807
- + "|swash|ornaments|annotation|stylistic|styleset|character-variant)"
808
- }],
809
-
810
- "comments" : [{
811
- token: "comment", // multi line comment
812
- regex: "\\/\\*",
813
- push: [{
814
- token : "comment",
815
- regex : "\\*\\/",
816
- next : "pop"
817
- }, {
818
- defaultToken : "comment"
819
- }]
820
- }],
821
-
822
- "ruleset" : [{
823
- regex : "-(webkit|ms|moz|o)-",
824
- token : "text"
825
- }, {
826
- token : "paren.rparen",
827
- regex : "\\}",
828
- next : "start"
829
- }, {
830
- include : ["strings", "url", "comments"]
831
- }, {
832
- token : ["constant.numeric", "keyword"],
833
- regex : "(" + numRe + ")(ch|cm|deg|em|ex|fr|gd|grad|Hz|in|kHz|mm|ms|pc|pt|px|rad|rem|s|turn|vh|vm|vw|%)"
834
- }, {
835
- token : "constant.numeric",
836
- regex : numRe
837
- }, {
838
- token : "constant.numeric", // hex6 color
839
- regex : "#[a-f0-9]{6}"
840
- }, {
841
- token : "constant.numeric", // hex3 color
842
- regex : "#[a-f0-9]{3}"
843
- }, {
844
- token : ["punctuation", "entity.other.attribute-name.pseudo-element.css"],
845
- regex : pseudoElements
846
- }, {
847
- token : ["punctuation", "entity.other.attribute-name.pseudo-class.css"],
848
- regex : pseudoClasses
849
- }, {
850
- include: "url"
851
- }, {
852
- token : keywordMapper,
853
- regex : "\\-?[a-zA-Z_][a-zA-Z0-9_\\-]*"
854
- }, {
855
- caseInsensitive: true
856
- }],
857
-
858
- url: [{
859
- token : "support.function",
860
- regex : "(?:url(:?-prefix)?|domain|regexp)\\(",
861
- push: [{
862
- token : "support.function",
863
- regex : "\\)",
864
- next : "pop"
865
- }, {
866
- defaultToken: "string"
867
- }]
868
- }],
869
-
870
- strings: [{
871
- token : "string.start",
872
- regex : "'",
873
- push : [{
874
- token : "string.end",
875
- regex : "'|$",
876
- next: "pop"
877
- }, {
878
- include : "escapes"
879
- }, {
880
- token : "constant.language.escape",
881
- regex : /\\$/,
882
- consumeLineEnd: true
883
- }, {
884
- defaultToken: "string"
885
- }]
886
- }, {
887
- token : "string.start",
888
- regex : '"',
889
- push : [{
890
- token : "string.end",
891
- regex : '"|$',
892
- next: "pop"
893
- }, {
894
- include : "escapes"
895
- }, {
896
- token : "constant.language.escape",
897
- regex : /\\$/,
898
- consumeLineEnd: true
899
- }, {
900
- defaultToken: "string"
901
- }]
902
- }],
903
- escapes: [{
904
- token : "constant.language.escape",
905
- regex : /\\([a-fA-F\d]{1,6}|[^a-fA-F\d])/
906
- }]
907
-
908
- };
909
-
910
- this.normalizeRules();
911
- };
912
-
913
- oop.inherits(CssHighlightRules, TextHighlightRules);
914
-
915
- exports.CssHighlightRules = CssHighlightRules;
916
-
917
- });
918
-
919
923
  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) {
920
924
  "use strict";
921
925
 
@@ -998,31 +1002,62 @@ oop.inherits(HtmlHighlightRules, XmlHighlightRules);
998
1002
  exports.HtmlHighlightRules = HtmlHighlightRules;
999
1003
  });
1000
1004
 
1001
- define("ace/mode/markdown_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text_highlight_rules","ace/mode/javascript_highlight_rules","ace/mode/xml_highlight_rules","ace/mode/html_highlight_rules","ace/mode/css_highlight_rules"], function(require, exports, module) {
1005
+ 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) {
1002
1006
  "use strict";
1003
1007
 
1008
+ var modes = require("../config").$modes;
1009
+
1004
1010
  var oop = require("../lib/oop");
1005
1011
  var lang = require("../lib/lang");
1006
1012
  var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
1007
- var JavaScriptHighlightRules = require("./javascript_highlight_rules").JavaScriptHighlightRules;
1008
- var XmlHighlightRules = require("./xml_highlight_rules").XmlHighlightRules;
1009
1013
  var HtmlHighlightRules = require("./html_highlight_rules").HtmlHighlightRules;
1010
- var CssHighlightRules = require("./css_highlight_rules").CssHighlightRules;
1011
1014
 
1012
1015
  var escaped = function(ch) {
1013
1016
  return "(?:[^" + lang.escapeRegExp(ch) + "\\\\]|\\\\.)*";
1014
- }
1015
-
1016
- function github_embed(tag, prefix) {
1017
- return { // Github style block
1018
- token : "support.function",
1019
- regex : "^\\s*```" + tag + "\\s*$",
1020
- push : prefix + "start"
1021
- };
1022
- }
1017
+ };
1023
1018
 
1024
1019
  var MarkdownHighlightRules = function() {
1025
1020
  HtmlHighlightRules.call(this);
1021
+ var codeBlockStartRule = {
1022
+ token : "support.function",
1023
+ regex : /^\s*(```+[^`]*|~~~+[^~]*)$/,
1024
+ onMatch: function(value, state, stack, line) {
1025
+ var m = value.match(/^(\s*)([`~]+)(.*)/);
1026
+ var language = /[\w-]+|$/.exec(m[3])[0];
1027
+ if (!modes[language])
1028
+ language = "";
1029
+ stack.unshift("githubblock", [], [m[1], m[2], language], state);
1030
+ return this.token;
1031
+ },
1032
+ next : "githubblock"
1033
+ };
1034
+ var codeBlockRules = [{
1035
+ token : "support.function",
1036
+ regex : ".*",
1037
+ onMatch: function(value, state, stack, line) {
1038
+ var embedState = stack[1];
1039
+ var indent = stack[2][0];
1040
+ var endMarker = stack[2][1];
1041
+ var language = stack[2][2];
1042
+
1043
+ var m = /^(\s*)(`+|~+)\s*$/.exec(value);
1044
+ if (
1045
+ m && m[1].length < indent.length + 3
1046
+ && m[2].length >= endMarker.length && m[2][0] == endMarker[0]
1047
+ ) {
1048
+ stack.splice(0, 3);
1049
+ this.next = stack.shift();
1050
+ return this.token;
1051
+ }
1052
+ this.next = "";
1053
+ if (language && modes[language]) {
1054
+ var data = modes[language].getTokenizer().getLineTokens(value, embedState.slice(0));
1055
+ stack[1] = data.state;
1056
+ return data.tokens;
1057
+ }
1058
+ return this.token;
1059
+ }
1060
+ }];
1026
1061
 
1027
1062
  this.$rules["start"].unshift({
1028
1063
  token : "empty_line",
@@ -1038,24 +1073,17 @@ var MarkdownHighlightRules = function() {
1038
1073
  token : function(value) {
1039
1074
  return "markup.heading." + value.length;
1040
1075
  },
1041
- regex : /^#{1,6}(?=\s*[^ #]|\s+#.)/,
1076
+ regex : /^#{1,6}(?=\s|$)/,
1042
1077
  next : "header"
1043
1078
  },
1044
- github_embed("(?:javascript|js)", "jscode-"),
1045
- github_embed("xml", "xmlcode-"),
1046
- github_embed("html", "htmlcode-"),
1047
- github_embed("css", "csscode-"),
1048
- { // Github style block
1049
- token : "support.function",
1050
- regex : "^\\s*```\\s*\\S*(?:{.*?\\})?\\s*$",
1051
- next : "githubblock"
1052
- }, { // block quote
1079
+ codeBlockStartRule,
1080
+ { // block quote
1053
1081
  token : "string.blockquote",
1054
1082
  regex : "^\\s*>\\s*(?:[*+-]|\\d+\\.)?\\s+",
1055
1083
  next : "blockquote"
1056
1084
  }, { // HR * - _
1057
1085
  token : "constant",
1058
- regex : "^ {0,2}(?:(?: ?\\* ?){3,}|(?: ?\\- ?){3,}|(?: ?\\_ ?){3,})\\s*$",
1086
+ regex : "^ {0,3}(?:(?:\\* ?){3,}|(?:\\- ?){3,}|(?:\\_ ?){3,})\\s*$",
1059
1087
  next: "allowBlock"
1060
1088
  }, { // list
1061
1089
  token : "markup.list",
@@ -1080,10 +1108,10 @@ var MarkdownHighlightRules = function() {
1080
1108
  regex : "(\\[)(" + escaped("]") + ")(\\]\\s*\\[)("+ escaped("]") + ")(\\])"
1081
1109
  }, { // link by url
1082
1110
  token : ["text", "string", "text", "markup.underline", "string", "text"],
1083
- regex : "(\\[)(" + // [
1084
- escaped("]") + // link text
1111
+ regex : "(\\!?\\[)(" + // [
1112
+ escaped("]") + // link text or alt text
1085
1113
  ")(\\]\\()"+ // ](
1086
- '((?:[^\\)\\s\\\\]|\\\\.|\\s(?=[^"]))*)' + // href
1114
+ '((?:[^\\)\\s\\\\]|\\\\.|\\s(?=[^"]))*)' + // href or image
1087
1115
  '(\\s*"' + escaped('"') + '"\\s*)?' + // "title"
1088
1116
  "(\\))" // )
1089
1117
  }, { // strong ** __
@@ -1131,11 +1159,9 @@ var MarkdownHighlightRules = function() {
1131
1159
  next : "listblock-start"
1132
1160
  }, {
1133
1161
  include : "basic", noEscape: true
1134
- }, { // Github style block
1135
- token : "support.function",
1136
- regex : "^\\s*```\\s*[a-zA-Z]*(?:{.*?\\})?\\s*$",
1137
- next : "githubblock"
1138
- }, {
1162
+ },
1163
+ codeBlockStartRule,
1164
+ {
1139
1165
  defaultToken : "list" //do not use markup.list to allow stling leading `*` differntly
1140
1166
  } ],
1141
1167
 
@@ -1153,39 +1179,9 @@ var MarkdownHighlightRules = function() {
1153
1179
  defaultToken : "string.blockquote"
1154
1180
  } ],
1155
1181
 
1156
- "githubblock" : [ {
1157
- token : "support.function",
1158
- regex : "^\\s*```",
1159
- next : "start"
1160
- }, {
1161
- defaultToken : "support.function"
1162
- } ]
1182
+ "githubblock" : codeBlockRules
1163
1183
  });
1164
1184
 
1165
- this.embedRules(JavaScriptHighlightRules, "jscode-", [{
1166
- token : "support.function",
1167
- regex : "^\\s*```",
1168
- next : "pop"
1169
- }]);
1170
-
1171
- this.embedRules(HtmlHighlightRules, "htmlcode-", [{
1172
- token : "support.function",
1173
- regex : "^\\s*```",
1174
- next : "pop"
1175
- }]);
1176
-
1177
- this.embedRules(CssHighlightRules, "csscode-", [{
1178
- token : "support.function",
1179
- regex : "^\\s*```",
1180
- next : "pop"
1181
- }]);
1182
-
1183
- this.embedRules(XmlHighlightRules, "xmlcode-", [{
1184
- token : "support.function",
1185
- regex : "^\\s*```",
1186
- next : "pop"
1187
- }]);
1188
-
1189
1185
  this.normalizeRules();
1190
1186
  };
1191
1187
  oop.inherits(MarkdownHighlightRules, TextHighlightRules);
@@ -1193,77 +1189,17 @@ oop.inherits(MarkdownHighlightRules, TextHighlightRules);
1193
1189
  exports.MarkdownHighlightRules = MarkdownHighlightRules;
1194
1190
  });
1195
1191
 
1196
- define("ace/mode/scss_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text_highlight_rules"], function(require, exports, module) {
1192
+ define("ace/mode/scss_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text_highlight_rules","ace/mode/css_highlight_rules"], function(require, exports, module) {
1197
1193
  "use strict";
1198
1194
 
1199
1195
  var oop = require("../lib/oop");
1200
1196
  var lang = require("../lib/lang");
1201
1197
  var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
1198
+ var CssHighlightRules = require("./css_highlight_rules");
1202
1199
 
1203
1200
  var ScssHighlightRules = function() {
1204
1201
 
1205
- var properties = lang.arrayToMap( (function () {
1206
-
1207
- var browserPrefix = ("-webkit-|-moz-|-o-|-ms-|-svg-|-pie-|-khtml-").split("|");
1208
-
1209
- var prefixProperties = ("appearance|background-clip|background-inline-policy|background-origin|" +
1210
- "background-size|binding|border-bottom-colors|border-left-colors|" +
1211
- "border-right-colors|border-top-colors|border-end|border-end-color|" +
1212
- "border-end-style|border-end-width|border-image|border-start|" +
1213
- "border-start-color|border-start-style|border-start-width|box-align|" +
1214
- "box-direction|box-flex|box-flexgroup|box-ordinal-group|box-orient|" +
1215
- "box-pack|box-sizing|column-count|column-gap|column-width|column-rule|" +
1216
- "column-rule-width|column-rule-style|column-rule-color|float-edge|" +
1217
- "font-feature-settings|font-language-override|force-broken-image-icon|" +
1218
- "image-region|margin-end|margin-start|opacity|outline|outline-color|" +
1219
- "outline-offset|outline-radius|outline-radius-bottomleft|" +
1220
- "outline-radius-bottomright|outline-radius-topleft|outline-radius-topright|" +
1221
- "outline-style|outline-width|padding-end|padding-start|stack-sizing|" +
1222
- "tab-size|text-blink|text-decoration-color|text-decoration-line|" +
1223
- "text-decoration-style|transform|transform-origin|transition|" +
1224
- "transition-delay|transition-duration|transition-property|" +
1225
- "transition-timing-function|user-focus|user-input|user-modify|user-select|" +
1226
- "window-shadow|border-radius").split("|");
1227
-
1228
- var properties = ("azimuth|background-attachment|background-color|background-image|" +
1229
- "background-position|background-repeat|background|border-bottom-color|" +
1230
- "border-bottom-style|border-bottom-width|border-bottom|border-collapse|" +
1231
- "border-color|border-left-color|border-left-style|border-left-width|" +
1232
- "border-left|border-right-color|border-right-style|border-right-width|" +
1233
- "border-right|border-spacing|border-style|border-top-color|" +
1234
- "border-top-style|border-top-width|border-top|border-width|border|bottom|" +
1235
- "box-shadow|box-sizing|caption-side|clear|clip|color|content|counter-increment|" +
1236
- "counter-reset|cue-after|cue-before|cue|cursor|direction|display|" +
1237
- "elevation|empty-cells|float|font-family|font-size-adjust|font-size|" +
1238
- "font-stretch|font-style|font-variant|font-weight|font|height|left|" +
1239
- "letter-spacing|line-height|list-style-image|list-style-position|" +
1240
- "list-style-type|list-style|margin-bottom|margin-left|margin-right|" +
1241
- "margin-top|marker-offset|margin|marks|max-height|max-width|min-height|" +
1242
- "min-width|opacity|orphans|outline-color|" +
1243
- "outline-style|outline-width|outline|overflow|overflow-x|overflow-y|padding-bottom|" +
1244
- "padding-left|padding-right|padding-top|padding|page-break-after|" +
1245
- "page-break-before|page-break-inside|page|pause-after|pause-before|" +
1246
- "pause|pitch-range|pitch|play-during|position|quotes|richness|right|" +
1247
- "size|speak-header|speak-numeral|speak-punctuation|speech-rate|speak|" +
1248
- "stress|table-layout|text-align|text-decoration|text-indent|" +
1249
- "text-shadow|text-transform|top|unicode-bidi|vertical-align|" +
1250
- "visibility|voice-family|volume|white-space|widows|width|word-spacing|" +
1251
- "z-index").split("|");
1252
- var ret = [];
1253
- for (var i=0, ln=browserPrefix.length; i<ln; i++) {
1254
- Array.prototype.push.apply(
1255
- ret,
1256
- (( browserPrefix[i] + prefixProperties.join("|" + browserPrefix[i]) ).split("|"))
1257
- );
1258
- }
1259
- Array.prototype.push.apply(ret, prefixProperties);
1260
- Array.prototype.push.apply(ret, properties);
1261
-
1262
- return ret;
1263
-
1264
- })() );
1265
-
1266
-
1202
+ var properties = lang.arrayToMap(CssHighlightRules.supportType.split("|"));
1267
1203
 
1268
1204
  var functions = lang.arrayToMap(
1269
1205
  ("hsl|hsla|rgb|rgba|url|attr|counter|counters|abs|adjust_color|adjust_hue|" +
@@ -1273,60 +1209,13 @@ var ScssHighlightRules = function() {
1273
1209
  "scale_color|transparentize|type_of|unit|unitless|unquote").split("|")
1274
1210
  );
1275
1211
 
1276
- var constants = lang.arrayToMap(
1277
- ("absolute|all-scroll|always|armenian|auto|baseline|below|bidi-override|" +
1278
- "block|bold|bolder|border-box|both|bottom|break-all|break-word|capitalize|center|" +
1279
- "char|circle|cjk-ideographic|col-resize|collapse|content-box|crosshair|dashed|" +
1280
- "decimal-leading-zero|decimal|default|disabled|disc|" +
1281
- "distribute-all-lines|distribute-letter|distribute-space|" +
1282
- "distribute|dotted|double|e-resize|ellipsis|fixed|georgian|groove|" +
1283
- "hand|hebrew|help|hidden|hiragana-iroha|hiragana|horizontal|" +
1284
- "ideograph-alpha|ideograph-numeric|ideograph-parenthesis|" +
1285
- "ideograph-space|inactive|inherit|inline-block|inline|inset|inside|" +
1286
- "inter-ideograph|inter-word|italic|justify|katakana-iroha|katakana|" +
1287
- "keep-all|left|lighter|line-edge|line-through|line|list-item|loose|" +
1288
- "lower-alpha|lower-greek|lower-latin|lower-roman|lowercase|lr-tb|ltr|" +
1289
- "medium|middle|move|n-resize|ne-resize|newspaper|no-drop|no-repeat|" +
1290
- "nw-resize|none|normal|not-allowed|nowrap|oblique|outset|outside|" +
1291
- "overline|pointer|progress|relative|repeat-x|repeat-y|repeat|right|" +
1292
- "ridge|row-resize|rtl|s-resize|scroll|se-resize|separate|small-caps|" +
1293
- "solid|square|static|strict|super|sw-resize|table-footer-group|" +
1294
- "table-header-group|tb-rl|text-bottom|text-top|text|thick|thin|top|" +
1295
- "transparent|underline|upper-alpha|upper-latin|upper-roman|uppercase|" +
1296
- "vertical-ideographic|vertical-text|visible|w-resize|wait|whitespace|" +
1297
- "zero").split("|")
1298
- );
1212
+ var constants = lang.arrayToMap(CssHighlightRules.supportConstant.split("|"));
1299
1213
 
1300
- var colors = lang.arrayToMap(
1301
- ("aliceblue|antiquewhite|aqua|aquamarine|azure|beige|bisque|black|" +
1302
- "blanchedalmond|blue|blueviolet|brown|burlywood|cadetblue|" +
1303
- "chartreuse|chocolate|coral|cornflowerblue|cornsilk|crimson|cyan|" +
1304
- "darkblue|darkcyan|darkgoldenrod|darkgray|darkgreen|darkgrey|" +
1305
- "darkkhaki|darkmagenta|darkolivegreen|darkorange|darkorchid|darkred|" +
1306
- "darksalmon|darkseagreen|darkslateblue|darkslategray|darkslategrey|" +
1307
- "darkturquoise|darkviolet|deeppink|deepskyblue|dimgray|dimgrey|" +
1308
- "dodgerblue|firebrick|floralwhite|forestgreen|fuchsia|gainsboro|" +
1309
- "ghostwhite|gold|goldenrod|gray|green|greenyellow|grey|honeydew|" +
1310
- "hotpink|indianred|indigo|ivory|khaki|lavender|lavenderblush|" +
1311
- "lawngreen|lemonchiffon|lightblue|lightcoral|lightcyan|" +
1312
- "lightgoldenrodyellow|lightgray|lightgreen|lightgrey|lightpink|" +
1313
- "lightsalmon|lightseagreen|lightskyblue|lightslategray|" +
1314
- "lightslategrey|lightsteelblue|lightyellow|lime|limegreen|linen|" +
1315
- "magenta|maroon|mediumaquamarine|mediumblue|mediumorchid|" +
1316
- "mediumpurple|mediumseagreen|mediumslateblue|mediumspringgreen|" +
1317
- "mediumturquoise|mediumvioletred|midnightblue|mintcream|mistyrose|" +
1318
- "moccasin|navajowhite|navy|oldlace|olive|olivedrab|orange|orangered|" +
1319
- "orchid|palegoldenrod|palegreen|paleturquoise|palevioletred|" +
1320
- "papayawhip|peachpuff|peru|pink|plum|powderblue|purple|rebeccapurple|" +
1321
- "red|rosybrown|royalblue|saddlebrown|salmon|sandybrown|seagreen|" +
1322
- "seashell|sienna|silver|skyblue|slateblue|slategray|slategrey|snow|" +
1323
- "springgreen|steelblue|tan|teal|thistle|tomato|turquoise|violet|" +
1324
- "wheat|white|whitesmoke|yellow|yellowgreen").split("|")
1325
- );
1214
+ var colors = lang.arrayToMap(CssHighlightRules.supportConstantColor.split("|"));
1326
1215
 
1327
1216
  var keywords = lang.arrayToMap(
1328
1217
  ("@mixin|@extend|@include|@import|@media|@debug|@warn|@if|@for|@each|@while|@else|@font-face|@-webkit-keyframes|if|and|!default|module|def|end|declare").split("|")
1329
- )
1218
+ );
1330
1219
 
1331
1220
  var tags = lang.arrayToMap(
1332
1221
  ("a|abbr|acronym|address|applet|area|article|aside|audio|b|base|basefont|bdo|" +
@@ -1368,7 +1257,7 @@ var ScssHighlightRules = function() {
1368
1257
  next : "qstring"
1369
1258
  }, {
1370
1259
  token : "constant.numeric",
1371
- regex : numRe + "(?:em|ex|px|cm|mm|in|pt|pc|deg|rad|grad|ms|s|hz|khz|%)"
1260
+ 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|%)"
1372
1261
  }, {
1373
1262
  token : "constant.numeric", // hex6 color
1374
1263
  regex : "#[a-f0-9]{6}"
@@ -1618,7 +1507,7 @@ define("ace/mode/coffee_highlight_rules",["require","exports","module","ace/lib/
1618
1507
  "this|throw|then|try|typeof|super|switch|return|break|by|continue|" +
1619
1508
  "catch|class|in|instanceof|is|isnt|if|else|extends|for|own|" +
1620
1509
  "finally|function|while|when|new|no|not|delete|debugger|do|loop|of|off|" +
1621
- "or|on|unless|until|and|yes"
1510
+ "or|on|unless|until|and|yes|yield|export|import|default"
1622
1511
  );
1623
1512
 
1624
1513
  var langConstant = (
@@ -1626,8 +1515,8 @@ define("ace/mode/coffee_highlight_rules",["require","exports","module","ace/lib/
1626
1515
  );
1627
1516
 
1628
1517
  var illegal = (
1629
- "case|const|default|function|var|void|with|enum|export|implements|" +
1630
- "interface|let|package|private|protected|public|static|yield"
1518
+ "case|const|function|var|void|with|enum|implements|" +
1519
+ "interface|let|package|private|protected|public|static"
1631
1520
  );
1632
1521
 
1633
1522
  var supportClass = (
@@ -2126,4 +2015,11 @@ oop.inherits(Mode, TextMode);
2126
2015
  }).call(Mode.prototype);
2127
2016
 
2128
2017
  exports.Mode = Mode;
2129
- });
2018
+ }); (function() {
2019
+ window.require(["ace/mode/jade"], function(m) {
2020
+ if (typeof module == "object" && typeof exports == "object" && module) {
2021
+ module.exports = m;
2022
+ }
2023
+ });
2024
+ })();
2025
+