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,1581 @@
1
+ define("ace/mode/xml_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 XmlHighlightRules = function(normalize) {
8
+ var tagRegex = "[_:a-zA-Z\xc0-\uffff][-_:.a-zA-Z0-9\xc0-\uffff]*";
9
+
10
+ this.$rules = {
11
+ start : [
12
+ {token : "string.cdata.xml", regex : "<\\!\\[CDATA\\[", next : "cdata"},
13
+ {
14
+ token : ["punctuation.instruction.xml", "keyword.instruction.xml"],
15
+ regex : "(<\\?)(" + tagRegex + ")", next : "processing_instruction"
16
+ },
17
+ {token : "comment.start.xml", regex : "<\\!--", next : "comment"},
18
+ {
19
+ token : ["xml-pe.doctype.xml", "xml-pe.doctype.xml"],
20
+ regex : "(<\\!)(DOCTYPE)(?=[\\s])", next : "doctype", caseInsensitive: true
21
+ },
22
+ {include : "tag"},
23
+ {token : "text.end-tag-open.xml", regex: "</"},
24
+ {token : "text.tag-open.xml", regex: "<"},
25
+ {include : "reference"},
26
+ {defaultToken : "text.xml"}
27
+ ],
28
+
29
+ processing_instruction : [{
30
+ token : "entity.other.attribute-name.decl-attribute-name.xml",
31
+ regex : tagRegex
32
+ }, {
33
+ token : "keyword.operator.decl-attribute-equals.xml",
34
+ regex : "="
35
+ }, {
36
+ include: "whitespace"
37
+ }, {
38
+ include: "string"
39
+ }, {
40
+ token : "punctuation.xml-decl.xml",
41
+ regex : "\\?>",
42
+ next : "start"
43
+ }],
44
+
45
+ doctype : [
46
+ {include : "whitespace"},
47
+ {include : "string"},
48
+ {token : "xml-pe.doctype.xml", regex : ">", next : "start"},
49
+ {token : "xml-pe.xml", regex : "[-_a-zA-Z0-9:]+"},
50
+ {token : "punctuation.int-subset", regex : "\\[", push : "int_subset"}
51
+ ],
52
+
53
+ int_subset : [{
54
+ token : "text.xml",
55
+ regex : "\\s+"
56
+ }, {
57
+ token: "punctuation.int-subset.xml",
58
+ regex: "]",
59
+ next: "pop"
60
+ }, {
61
+ token : ["punctuation.markup-decl.xml", "keyword.markup-decl.xml"],
62
+ regex : "(<\\!)(" + tagRegex + ")",
63
+ push : [{
64
+ token : "text",
65
+ regex : "\\s+"
66
+ },
67
+ {
68
+ token : "punctuation.markup-decl.xml",
69
+ regex : ">",
70
+ next : "pop"
71
+ },
72
+ {include : "string"}]
73
+ }],
74
+
75
+ cdata : [
76
+ {token : "string.cdata.xml", regex : "\\]\\]>", next : "start"},
77
+ {token : "text.xml", regex : "\\s+"},
78
+ {token : "text.xml", regex : "(?:[^\\]]|\\](?!\\]>))+"}
79
+ ],
80
+
81
+ comment : [
82
+ {token : "comment.end.xml", regex : "-->", next : "start"},
83
+ {defaultToken : "comment.xml"}
84
+ ],
85
+
86
+ reference : [{
87
+ token : "constant.language.escape.reference.xml",
88
+ regex : "(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"
89
+ }],
90
+
91
+ attr_reference : [{
92
+ token : "constant.language.escape.reference.attribute-value.xml",
93
+ regex : "(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"
94
+ }],
95
+
96
+ tag : [{
97
+ token : ["meta.tag.punctuation.tag-open.xml", "meta.tag.punctuation.end-tag-open.xml", "meta.tag.tag-name.xml"],
98
+ regex : "(?:(<)|(</))((?:" + tagRegex + ":)?" + tagRegex + ")",
99
+ next: [
100
+ {include : "attributes"},
101
+ {token : "meta.tag.punctuation.tag-close.xml", regex : "/?>", next : "start"}
102
+ ]
103
+ }],
104
+
105
+ tag_whitespace : [
106
+ {token : "text.tag-whitespace.xml", regex : "\\s+"}
107
+ ],
108
+ whitespace : [
109
+ {token : "text.whitespace.xml", regex : "\\s+"}
110
+ ],
111
+ string: [{
112
+ token : "string.xml",
113
+ regex : "'",
114
+ push : [
115
+ {token : "string.xml", regex: "'", next: "pop"},
116
+ {defaultToken : "string.xml"}
117
+ ]
118
+ }, {
119
+ token : "string.xml",
120
+ regex : '"',
121
+ push : [
122
+ {token : "string.xml", regex: '"', next: "pop"},
123
+ {defaultToken : "string.xml"}
124
+ ]
125
+ }],
126
+
127
+ attributes: [{
128
+ token : "entity.other.attribute-name.xml",
129
+ regex : tagRegex
130
+ }, {
131
+ token : "keyword.operator.attribute-equals.xml",
132
+ regex : "="
133
+ }, {
134
+ include: "tag_whitespace"
135
+ }, {
136
+ include: "attribute_value"
137
+ }],
138
+
139
+ attribute_value: [{
140
+ token : "string.attribute-value.xml",
141
+ regex : "'",
142
+ push : [
143
+ {token : "string.attribute-value.xml", regex: "'", next: "pop"},
144
+ {include : "attr_reference"},
145
+ {defaultToken : "string.attribute-value.xml"}
146
+ ]
147
+ }, {
148
+ token : "string.attribute-value.xml",
149
+ regex : '"',
150
+ push : [
151
+ {token : "string.attribute-value.xml", regex: '"', next: "pop"},
152
+ {include : "attr_reference"},
153
+ {defaultToken : "string.attribute-value.xml"}
154
+ ]
155
+ }]
156
+ };
157
+
158
+ if (this.constructor === XmlHighlightRules)
159
+ this.normalizeRules();
160
+ };
161
+
162
+
163
+ (function() {
164
+
165
+ this.embedTagRules = function(HighlightRules, prefix, tag){
166
+ this.$rules.tag.unshift({
167
+ token : ["meta.tag.punctuation.tag-open.xml", "meta.tag." + tag + ".tag-name.xml"],
168
+ regex : "(<)(" + tag + "(?=\\s|>|$))",
169
+ next: [
170
+ {include : "attributes"},
171
+ {token : "meta.tag.punctuation.tag-close.xml", regex : "/?>", next : prefix + "start"}
172
+ ]
173
+ });
174
+
175
+ this.$rules[tag + "-end"] = [
176
+ {include : "attributes"},
177
+ {token : "meta.tag.punctuation.tag-close.xml", regex : "/?>", next: "start",
178
+ onMatch : function(value, currentState, stack) {
179
+ stack.splice(0);
180
+ return this.token;
181
+ }}
182
+ ];
183
+
184
+ this.embedRules(HighlightRules, prefix, [{
185
+ token: ["meta.tag.punctuation.end-tag-open.xml", "meta.tag." + tag + ".tag-name.xml"],
186
+ regex : "(</)(" + tag + "(?=\\s|>|$))",
187
+ next: tag + "-end"
188
+ }, {
189
+ token: "string.cdata.xml",
190
+ regex : "<\\!\\[CDATA\\["
191
+ }, {
192
+ token: "string.cdata.xml",
193
+ regex : "\\]\\]>"
194
+ }]);
195
+ };
196
+
197
+ }).call(TextHighlightRules.prototype);
198
+
199
+ oop.inherits(XmlHighlightRules, TextHighlightRules);
200
+
201
+ exports.XmlHighlightRules = XmlHighlightRules;
202
+ });
203
+
204
+ define("ace/mode/behaviour/xml",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator","ace/lib/lang"], function(require, exports, module) {
205
+ "use strict";
206
+
207
+ var oop = require("../../lib/oop");
208
+ var Behaviour = require("../behaviour").Behaviour;
209
+ var TokenIterator = require("../../token_iterator").TokenIterator;
210
+ var lang = require("../../lib/lang");
211
+
212
+ function is(token, type) {
213
+ return token && token.type.lastIndexOf(type + ".xml") > -1;
214
+ }
215
+
216
+ var XmlBehaviour = function () {
217
+
218
+ this.add("string_dquotes", "insertion", function (state, action, editor, session, text) {
219
+ if (text == '"' || text == "'") {
220
+ var quote = text;
221
+ var selected = session.doc.getTextRange(editor.getSelectionRange());
222
+ if (selected !== "" && selected !== "'" && selected != '"' && editor.getWrapBehavioursEnabled()) {
223
+ return {
224
+ text: quote + selected + quote,
225
+ selection: false
226
+ };
227
+ }
228
+
229
+ var cursor = editor.getCursorPosition();
230
+ var line = session.doc.getLine(cursor.row);
231
+ var rightChar = line.substring(cursor.column, cursor.column + 1);
232
+ var iterator = new TokenIterator(session, cursor.row, cursor.column);
233
+ var token = iterator.getCurrentToken();
234
+
235
+ if (rightChar == quote && (is(token, "attribute-value") || is(token, "string"))) {
236
+ return {
237
+ text: "",
238
+ selection: [1, 1]
239
+ };
240
+ }
241
+
242
+ if (!token)
243
+ token = iterator.stepBackward();
244
+
245
+ if (!token)
246
+ return;
247
+
248
+ while (is(token, "tag-whitespace") || is(token, "whitespace")) {
249
+ token = iterator.stepBackward();
250
+ }
251
+ var rightSpace = !rightChar || rightChar.match(/\s/);
252
+ if (is(token, "attribute-equals") && (rightSpace || rightChar == '>') || (is(token, "decl-attribute-equals") && (rightSpace || rightChar == '?'))) {
253
+ return {
254
+ text: quote + quote,
255
+ selection: [1, 1]
256
+ };
257
+ }
258
+ }
259
+ });
260
+
261
+ this.add("string_dquotes", "deletion", function(state, action, editor, session, range) {
262
+ var selected = session.doc.getTextRange(range);
263
+ if (!range.isMultiLine() && (selected == '"' || selected == "'")) {
264
+ var line = session.doc.getLine(range.start.row);
265
+ var rightChar = line.substring(range.start.column + 1, range.start.column + 2);
266
+ if (rightChar == selected) {
267
+ range.end.column++;
268
+ return range;
269
+ }
270
+ }
271
+ });
272
+
273
+ this.add("autoclosing", "insertion", function (state, action, editor, session, text) {
274
+ if (text == '>') {
275
+ var position = editor.getSelectionRange().start;
276
+ var iterator = new TokenIterator(session, position.row, position.column);
277
+ var token = iterator.getCurrentToken() || iterator.stepBackward();
278
+ if (!token || !(is(token, "tag-name") || is(token, "tag-whitespace") || is(token, "attribute-name") || is(token, "attribute-equals") || is(token, "attribute-value")))
279
+ return;
280
+ if (is(token, "reference.attribute-value"))
281
+ return;
282
+ if (is(token, "attribute-value")) {
283
+ var tokenEndColumn = iterator.getCurrentTokenColumn() + token.value.length;
284
+ if (position.column < tokenEndColumn)
285
+ return;
286
+ if (position.column == tokenEndColumn) {
287
+ var nextToken = iterator.stepForward();
288
+ if (nextToken && is(nextToken, "attribute-value"))
289
+ return;
290
+ iterator.stepBackward();
291
+ }
292
+ }
293
+
294
+ if (/^\s*>/.test(session.getLine(position.row).slice(position.column)))
295
+ return;
296
+ while (!is(token, "tag-name")) {
297
+ token = iterator.stepBackward();
298
+ if (token.value == "<") {
299
+ token = iterator.stepForward();
300
+ break;
301
+ }
302
+ }
303
+
304
+ var tokenRow = iterator.getCurrentTokenRow();
305
+ var tokenColumn = iterator.getCurrentTokenColumn();
306
+ if (is(iterator.stepBackward(), "end-tag-open"))
307
+ return;
308
+
309
+ var element = token.value;
310
+ if (tokenRow == position.row)
311
+ element = element.substring(0, position.column - tokenColumn);
312
+
313
+ if (this.voidElements.hasOwnProperty(element.toLowerCase()))
314
+ return;
315
+
316
+ return {
317
+ text: ">" + "</" + element + ">",
318
+ selection: [1, 1]
319
+ };
320
+ }
321
+ });
322
+
323
+ this.add("autoindent", "insertion", function (state, action, editor, session, text) {
324
+ if (text == "\n") {
325
+ var cursor = editor.getCursorPosition();
326
+ var line = session.getLine(cursor.row);
327
+ var iterator = new TokenIterator(session, cursor.row, cursor.column);
328
+ var token = iterator.getCurrentToken();
329
+
330
+ if (token && token.type.indexOf("tag-close") !== -1) {
331
+ if (token.value == "/>")
332
+ return;
333
+ while (token && token.type.indexOf("tag-name") === -1) {
334
+ token = iterator.stepBackward();
335
+ }
336
+
337
+ if (!token) {
338
+ return;
339
+ }
340
+
341
+ var tag = token.value;
342
+ var row = iterator.getCurrentTokenRow();
343
+ token = iterator.stepBackward();
344
+ if (!token || token.type.indexOf("end-tag") !== -1) {
345
+ return;
346
+ }
347
+
348
+ if (this.voidElements && !this.voidElements[tag]) {
349
+ var nextToken = session.getTokenAt(cursor.row, cursor.column+1);
350
+ var line = session.getLine(row);
351
+ var nextIndent = this.$getIndent(line);
352
+ var indent = nextIndent + session.getTabString();
353
+
354
+ if (nextToken && nextToken.value === "</") {
355
+ return {
356
+ text: "\n" + indent + "\n" + nextIndent,
357
+ selection: [1, indent.length, 1, indent.length]
358
+ };
359
+ } else {
360
+ return {
361
+ text: "\n" + indent
362
+ };
363
+ }
364
+ }
365
+ }
366
+ }
367
+ });
368
+
369
+ };
370
+
371
+ oop.inherits(XmlBehaviour, Behaviour);
372
+
373
+ exports.XmlBehaviour = XmlBehaviour;
374
+ });
375
+
376
+ define("ace/mode/folding/xml",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/range","ace/mode/folding/fold_mode","ace/token_iterator"], function(require, exports, module) {
377
+ "use strict";
378
+
379
+ var oop = require("../../lib/oop");
380
+ var lang = require("../../lib/lang");
381
+ var Range = require("../../range").Range;
382
+ var BaseFoldMode = require("./fold_mode").FoldMode;
383
+ var TokenIterator = require("../../token_iterator").TokenIterator;
384
+
385
+ var FoldMode = exports.FoldMode = function(voidElements, optionalEndTags) {
386
+ BaseFoldMode.call(this);
387
+ this.voidElements = voidElements || {};
388
+ this.optionalEndTags = oop.mixin({}, this.voidElements);
389
+ if (optionalEndTags)
390
+ oop.mixin(this.optionalEndTags, optionalEndTags);
391
+
392
+ };
393
+ oop.inherits(FoldMode, BaseFoldMode);
394
+
395
+ var Tag = function() {
396
+ this.tagName = "";
397
+ this.closing = false;
398
+ this.selfClosing = false;
399
+ this.start = {row: 0, column: 0};
400
+ this.end = {row: 0, column: 0};
401
+ };
402
+
403
+ function is(token, type) {
404
+ return token.type.lastIndexOf(type + ".xml") > -1;
405
+ }
406
+
407
+ (function() {
408
+
409
+ this.getFoldWidget = function(session, foldStyle, row) {
410
+ var tag = this._getFirstTagInLine(session, row);
411
+
412
+ if (!tag)
413
+ return this.getCommentFoldWidget(session, row);
414
+
415
+ if (tag.closing || (!tag.tagName && tag.selfClosing))
416
+ return foldStyle == "markbeginend" ? "end" : "";
417
+
418
+ if (!tag.tagName || tag.selfClosing || this.voidElements.hasOwnProperty(tag.tagName.toLowerCase()))
419
+ return "";
420
+
421
+ if (this._findEndTagInLine(session, row, tag.tagName, tag.end.column))
422
+ return "";
423
+
424
+ return "start";
425
+ };
426
+
427
+ this.getCommentFoldWidget = function(session, row) {
428
+ if (/comment/.test(session.getState(row)) && /<!-/.test(session.getLine(row)))
429
+ return "start";
430
+ return "";
431
+ };
432
+ this._getFirstTagInLine = function(session, row) {
433
+ var tokens = session.getTokens(row);
434
+ var tag = new Tag();
435
+
436
+ for (var i = 0; i < tokens.length; i++) {
437
+ var token = tokens[i];
438
+ if (is(token, "tag-open")) {
439
+ tag.end.column = tag.start.column + token.value.length;
440
+ tag.closing = is(token, "end-tag-open");
441
+ token = tokens[++i];
442
+ if (!token)
443
+ return null;
444
+ tag.tagName = token.value;
445
+ tag.end.column += token.value.length;
446
+ for (i++; i < tokens.length; i++) {
447
+ token = tokens[i];
448
+ tag.end.column += token.value.length;
449
+ if (is(token, "tag-close")) {
450
+ tag.selfClosing = token.value == '/>';
451
+ break;
452
+ }
453
+ }
454
+ return tag;
455
+ } else if (is(token, "tag-close")) {
456
+ tag.selfClosing = token.value == '/>';
457
+ return tag;
458
+ }
459
+ tag.start.column += token.value.length;
460
+ }
461
+
462
+ return null;
463
+ };
464
+
465
+ this._findEndTagInLine = function(session, row, tagName, startColumn) {
466
+ var tokens = session.getTokens(row);
467
+ var column = 0;
468
+ for (var i = 0; i < tokens.length; i++) {
469
+ var token = tokens[i];
470
+ column += token.value.length;
471
+ if (column < startColumn)
472
+ continue;
473
+ if (is(token, "end-tag-open")) {
474
+ token = tokens[i + 1];
475
+ if (token && token.value == tagName)
476
+ return true;
477
+ }
478
+ }
479
+ return false;
480
+ };
481
+ this._readTagForward = function(iterator) {
482
+ var token = iterator.getCurrentToken();
483
+ if (!token)
484
+ return null;
485
+
486
+ var tag = new Tag();
487
+ do {
488
+ if (is(token, "tag-open")) {
489
+ tag.closing = is(token, "end-tag-open");
490
+ tag.start.row = iterator.getCurrentTokenRow();
491
+ tag.start.column = iterator.getCurrentTokenColumn();
492
+ } else if (is(token, "tag-name")) {
493
+ tag.tagName = token.value;
494
+ } else if (is(token, "tag-close")) {
495
+ tag.selfClosing = token.value == "/>";
496
+ tag.end.row = iterator.getCurrentTokenRow();
497
+ tag.end.column = iterator.getCurrentTokenColumn() + token.value.length;
498
+ iterator.stepForward();
499
+ return tag;
500
+ }
501
+ } while(token = iterator.stepForward());
502
+
503
+ return null;
504
+ };
505
+
506
+ this._readTagBackward = function(iterator) {
507
+ var token = iterator.getCurrentToken();
508
+ if (!token)
509
+ return null;
510
+
511
+ var tag = new Tag();
512
+ do {
513
+ if (is(token, "tag-open")) {
514
+ tag.closing = is(token, "end-tag-open");
515
+ tag.start.row = iterator.getCurrentTokenRow();
516
+ tag.start.column = iterator.getCurrentTokenColumn();
517
+ iterator.stepBackward();
518
+ return tag;
519
+ } else if (is(token, "tag-name")) {
520
+ tag.tagName = token.value;
521
+ } else if (is(token, "tag-close")) {
522
+ tag.selfClosing = token.value == "/>";
523
+ tag.end.row = iterator.getCurrentTokenRow();
524
+ tag.end.column = iterator.getCurrentTokenColumn() + token.value.length;
525
+ }
526
+ } while(token = iterator.stepBackward());
527
+
528
+ return null;
529
+ };
530
+
531
+ this._pop = function(stack, tag) {
532
+ while (stack.length) {
533
+
534
+ var top = stack[stack.length-1];
535
+ if (!tag || top.tagName == tag.tagName) {
536
+ return stack.pop();
537
+ }
538
+ else if (this.optionalEndTags.hasOwnProperty(top.tagName)) {
539
+ stack.pop();
540
+ continue;
541
+ } else {
542
+ return null;
543
+ }
544
+ }
545
+ };
546
+
547
+ this.getFoldWidgetRange = function(session, foldStyle, row) {
548
+ var firstTag = this._getFirstTagInLine(session, row);
549
+
550
+ if (!firstTag) {
551
+ return this.getCommentFoldWidget(session, row)
552
+ && session.getCommentFoldRange(row, session.getLine(row).length);
553
+ }
554
+
555
+ var isBackward = firstTag.closing || firstTag.selfClosing;
556
+ var stack = [];
557
+ var tag;
558
+
559
+ if (!isBackward) {
560
+ var iterator = new TokenIterator(session, row, firstTag.start.column);
561
+ var start = {
562
+ row: row,
563
+ column: firstTag.start.column + firstTag.tagName.length + 2
564
+ };
565
+ if (firstTag.start.row == firstTag.end.row)
566
+ start.column = firstTag.end.column;
567
+ while (tag = this._readTagForward(iterator)) {
568
+ if (tag.selfClosing) {
569
+ if (!stack.length) {
570
+ tag.start.column += tag.tagName.length + 2;
571
+ tag.end.column -= 2;
572
+ return Range.fromPoints(tag.start, tag.end);
573
+ } else
574
+ continue;
575
+ }
576
+
577
+ if (tag.closing) {
578
+ this._pop(stack, tag);
579
+ if (stack.length == 0)
580
+ return Range.fromPoints(start, tag.start);
581
+ }
582
+ else {
583
+ stack.push(tag);
584
+ }
585
+ }
586
+ }
587
+ else {
588
+ var iterator = new TokenIterator(session, row, firstTag.end.column);
589
+ var end = {
590
+ row: row,
591
+ column: firstTag.start.column
592
+ };
593
+
594
+ while (tag = this._readTagBackward(iterator)) {
595
+ if (tag.selfClosing) {
596
+ if (!stack.length) {
597
+ tag.start.column += tag.tagName.length + 2;
598
+ tag.end.column -= 2;
599
+ return Range.fromPoints(tag.start, tag.end);
600
+ } else
601
+ continue;
602
+ }
603
+
604
+ if (!tag.closing) {
605
+ this._pop(stack, tag);
606
+ if (stack.length == 0) {
607
+ tag.start.column += tag.tagName.length + 2;
608
+ if (tag.start.row == tag.end.row && tag.start.column < tag.end.column)
609
+ tag.start.column = tag.end.column;
610
+ return Range.fromPoints(tag.start, end);
611
+ }
612
+ }
613
+ else {
614
+ stack.push(tag);
615
+ }
616
+ }
617
+ }
618
+
619
+ };
620
+
621
+ }).call(FoldMode.prototype);
622
+
623
+ });
624
+
625
+ define("ace/mode/xml",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text","ace/mode/xml_highlight_rules","ace/mode/behaviour/xml","ace/mode/folding/xml","ace/worker/worker_client"], function(require, exports, module) {
626
+ "use strict";
627
+
628
+ var oop = require("../lib/oop");
629
+ var lang = require("../lib/lang");
630
+ var TextMode = require("./text").Mode;
631
+ var XmlHighlightRules = require("./xml_highlight_rules").XmlHighlightRules;
632
+ var XmlBehaviour = require("./behaviour/xml").XmlBehaviour;
633
+ var XmlFoldMode = require("./folding/xml").FoldMode;
634
+ var WorkerClient = require("../worker/worker_client").WorkerClient;
635
+
636
+ var Mode = function() {
637
+ this.HighlightRules = XmlHighlightRules;
638
+ this.$behaviour = new XmlBehaviour();
639
+ this.foldingRules = new XmlFoldMode();
640
+ };
641
+
642
+ oop.inherits(Mode, TextMode);
643
+
644
+ (function() {
645
+
646
+ this.voidElements = lang.arrayToMap([]);
647
+
648
+ this.blockComment = {start: "<!--", end: "-->"};
649
+
650
+ this.createWorker = function(session) {
651
+ var worker = new WorkerClient(["ace"], "ace/mode/xml_worker", "Worker");
652
+ worker.attachToDocument(session.getDocument());
653
+
654
+ worker.on("error", function(e) {
655
+ session.setAnnotations(e.data);
656
+ });
657
+
658
+ worker.on("terminate", function() {
659
+ session.clearAnnotations();
660
+ });
661
+
662
+ return worker;
663
+ };
664
+
665
+ this.$id = "ace/mode/xml";
666
+ }).call(Mode.prototype);
667
+
668
+ exports.Mode = Mode;
669
+ });
670
+
671
+ define("ace/mode/doc_comment_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"], function(require, exports, module) {
672
+ "use strict";
673
+
674
+ var oop = require("../lib/oop");
675
+ var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
676
+
677
+ var DocCommentHighlightRules = function() {
678
+ this.$rules = {
679
+ "start" : [ {
680
+ token : "comment.doc.tag",
681
+ regex : "@[\\w\\d_]+" // TODO: fix email addresses
682
+ },
683
+ DocCommentHighlightRules.getTagRule(),
684
+ {
685
+ defaultToken : "comment.doc",
686
+ caseInsensitive: true
687
+ }]
688
+ };
689
+ };
690
+
691
+ oop.inherits(DocCommentHighlightRules, TextHighlightRules);
692
+
693
+ DocCommentHighlightRules.getTagRule = function(start) {
694
+ return {
695
+ token : "comment.doc.tag.storage.type",
696
+ regex : "\\b(?:TODO|FIXME|XXX|HACK)\\b"
697
+ };
698
+ };
699
+
700
+ DocCommentHighlightRules.getStartRule = function(start) {
701
+ return {
702
+ token : "comment.doc", // doc comment
703
+ regex : "\\/\\*(?=\\*)",
704
+ next : start
705
+ };
706
+ };
707
+
708
+ DocCommentHighlightRules.getEndRule = function (start) {
709
+ return {
710
+ token : "comment.doc", // closing comment
711
+ regex : "\\*\\/",
712
+ next : start
713
+ };
714
+ };
715
+
716
+
717
+ exports.DocCommentHighlightRules = DocCommentHighlightRules;
718
+
719
+ });
720
+
721
+ 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) {
722
+ "use strict";
723
+
724
+ var oop = require("../lib/oop");
725
+ var DocCommentHighlightRules = require("./doc_comment_highlight_rules").DocCommentHighlightRules;
726
+ var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
727
+ var identifierRe = "[a-zA-Z\\$_\u00a1-\uffff][a-zA-Z\\d\\$_\u00a1-\uffff]*";
728
+
729
+ var JavaScriptHighlightRules = function(options) {
730
+ var keywordMapper = this.createKeywordMapper({
731
+ "variable.language":
732
+ "Array|Boolean|Date|Function|Iterator|Number|Object|RegExp|String|Proxy|" + // Constructors
733
+ "Namespace|QName|XML|XMLList|" + // E4X
734
+ "ArrayBuffer|Float32Array|Float64Array|Int16Array|Int32Array|Int8Array|" +
735
+ "Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray|" +
736
+ "Error|EvalError|InternalError|RangeError|ReferenceError|StopIteration|" + // Errors
737
+ "SyntaxError|TypeError|URIError|" +
738
+ "decodeURI|decodeURIComponent|encodeURI|encodeURIComponent|eval|isFinite|" + // Non-constructor functions
739
+ "isNaN|parseFloat|parseInt|" +
740
+ "JSON|Math|" + // Other
741
+ "this|arguments|prototype|window|document" , // Pseudo
742
+ "keyword":
743
+ "const|yield|import|get|set|async|await|" +
744
+ "break|case|catch|continue|default|delete|do|else|finally|for|function|" +
745
+ "if|in|of|instanceof|new|return|switch|throw|try|typeof|let|var|while|with|debugger|" +
746
+ "__parent__|__count__|escape|unescape|with|__proto__|" +
747
+ "class|enum|extends|super|export|implements|private|public|interface|package|protected|static",
748
+ "storage.type":
749
+ "const|let|var|function",
750
+ "constant.language":
751
+ "null|Infinity|NaN|undefined",
752
+ "support.function":
753
+ "alert",
754
+ "constant.language.boolean": "true|false"
755
+ }, "identifier");
756
+ var kwBeforeRe = "case|do|else|finally|in|instanceof|return|throw|try|typeof|yield|void";
757
+
758
+ var escapedRe = "\\\\(?:x[0-9a-fA-F]{2}|" + // hex
759
+ "u[0-9a-fA-F]{4}|" + // unicode
760
+ "u{[0-9a-fA-F]{1,6}}|" + // es6 unicode
761
+ "[0-2][0-7]{0,2}|" + // oct
762
+ "3[0-7][0-7]?|" + // oct
763
+ "[4-7][0-7]?|" + //oct
764
+ ".)";
765
+ this.$rules = {
766
+ "no_regex" : [
767
+ DocCommentHighlightRules.getStartRule("doc-start"),
768
+ comments("no_regex"),
769
+ {
770
+ token : "string",
771
+ regex : "'(?=.)",
772
+ next : "qstring"
773
+ }, {
774
+ token : "string",
775
+ regex : '"(?=.)',
776
+ next : "qqstring"
777
+ }, {
778
+ token : "constant.numeric", // hexadecimal, octal and binary
779
+ regex : /0(?:[xX][0-9a-fA-F]+|[oO][0-7]+|[bB][01]+)\b/
780
+ }, {
781
+ token : "constant.numeric", // decimal integers and floats
782
+ regex : /(?:\d\d*(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+\b)?/
783
+ }, {
784
+ token : [
785
+ "storage.type", "punctuation.operator", "support.function",
786
+ "punctuation.operator", "entity.name.function", "text","keyword.operator"
787
+ ],
788
+ regex : "(" + identifierRe + ")(\\.)(prototype)(\\.)(" + identifierRe +")(\\s*)(=)",
789
+ next: "function_arguments"
790
+ }, {
791
+ token : [
792
+ "storage.type", "punctuation.operator", "entity.name.function", "text",
793
+ "keyword.operator", "text", "storage.type", "text", "paren.lparen"
794
+ ],
795
+ regex : "(" + identifierRe + ")(\\.)(" + identifierRe +")(\\s*)(=)(\\s*)(function)(\\s*)(\\()",
796
+ next: "function_arguments"
797
+ }, {
798
+ token : [
799
+ "entity.name.function", "text", "keyword.operator", "text", "storage.type",
800
+ "text", "paren.lparen"
801
+ ],
802
+ regex : "(" + identifierRe +")(\\s*)(=)(\\s*)(function)(\\s*)(\\()",
803
+ next: "function_arguments"
804
+ }, {
805
+ token : [
806
+ "storage.type", "punctuation.operator", "entity.name.function", "text",
807
+ "keyword.operator", "text",
808
+ "storage.type", "text", "entity.name.function", "text", "paren.lparen"
809
+ ],
810
+ regex : "(" + identifierRe + ")(\\.)(" + identifierRe +")(\\s*)(=)(\\s*)(function)(\\s+)(\\w+)(\\s*)(\\()",
811
+ next: "function_arguments"
812
+ }, {
813
+ token : [
814
+ "storage.type", "text", "entity.name.function", "text", "paren.lparen"
815
+ ],
816
+ regex : "(function)(\\s+)(" + identifierRe + ")(\\s*)(\\()",
817
+ next: "function_arguments"
818
+ }, {
819
+ token : [
820
+ "entity.name.function", "text", "punctuation.operator",
821
+ "text", "storage.type", "text", "paren.lparen"
822
+ ],
823
+ regex : "(" + identifierRe + ")(\\s*)(:)(\\s*)(function)(\\s*)(\\()",
824
+ next: "function_arguments"
825
+ }, {
826
+ token : [
827
+ "text", "text", "storage.type", "text", "paren.lparen"
828
+ ],
829
+ regex : "(:)(\\s*)(function)(\\s*)(\\()",
830
+ next: "function_arguments"
831
+ }, {
832
+ token : "keyword",
833
+ regex : "from(?=\\s*('|\"))"
834
+ }, {
835
+ token : "keyword",
836
+ regex : "(?:" + kwBeforeRe + ")\\b",
837
+ next : "start"
838
+ }, {
839
+ token : ["support.constant"],
840
+ regex : /that\b/
841
+ }, {
842
+ token : ["storage.type", "punctuation.operator", "support.function.firebug"],
843
+ regex : /(console)(\.)(warn|info|log|error|time|trace|timeEnd|assert)\b/
844
+ }, {
845
+ token : keywordMapper,
846
+ regex : identifierRe
847
+ }, {
848
+ token : "punctuation.operator",
849
+ regex : /[.](?![.])/,
850
+ next : "property"
851
+ }, {
852
+ token : "storage.type",
853
+ regex : /=>/,
854
+ next : "start"
855
+ }, {
856
+ token : "keyword.operator",
857
+ regex : /--|\+\+|\.{3}|===|==|=|!=|!==|<+=?|>+=?|!|&&|\|\||\?:|[!$%&*+\-~\/^]=?/,
858
+ next : "start"
859
+ }, {
860
+ token : "punctuation.operator",
861
+ regex : /[?:,;.]/,
862
+ next : "start"
863
+ }, {
864
+ token : "paren.lparen",
865
+ regex : /[\[({]/,
866
+ next : "start"
867
+ }, {
868
+ token : "paren.rparen",
869
+ regex : /[\])}]/
870
+ }, {
871
+ token: "comment",
872
+ regex: /^#!.*$/
873
+ }
874
+ ],
875
+ property: [{
876
+ token : "text",
877
+ regex : "\\s+"
878
+ }, {
879
+ token : [
880
+ "storage.type", "punctuation.operator", "entity.name.function", "text",
881
+ "keyword.operator", "text",
882
+ "storage.type", "text", "entity.name.function", "text", "paren.lparen"
883
+ ],
884
+ regex : "(" + identifierRe + ")(\\.)(" + identifierRe +")(\\s*)(=)(\\s*)(function)(?:(\\s+)(\\w+))?(\\s*)(\\()",
885
+ next: "function_arguments"
886
+ }, {
887
+ token : "punctuation.operator",
888
+ regex : /[.](?![.])/
889
+ }, {
890
+ token : "support.function",
891
+ 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(?=\()/
892
+ }, {
893
+ token : "support.function.dom",
894
+ 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(?=\()/
895
+ }, {
896
+ token : "support.constant",
897
+ 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/
898
+ }, {
899
+ token : "identifier",
900
+ regex : identifierRe
901
+ }, {
902
+ regex: "",
903
+ token: "empty",
904
+ next: "no_regex"
905
+ }
906
+ ],
907
+ "start": [
908
+ DocCommentHighlightRules.getStartRule("doc-start"),
909
+ comments("start"),
910
+ {
911
+ token: "string.regexp",
912
+ regex: "\\/",
913
+ next: "regex"
914
+ }, {
915
+ token : "text",
916
+ regex : "\\s+|^$",
917
+ next : "start"
918
+ }, {
919
+ token: "empty",
920
+ regex: "",
921
+ next: "no_regex"
922
+ }
923
+ ],
924
+ "regex": [
925
+ {
926
+ token: "regexp.keyword.operator",
927
+ regex: "\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"
928
+ }, {
929
+ token: "string.regexp",
930
+ regex: "/[sxngimy]*",
931
+ next: "no_regex"
932
+ }, {
933
+ token : "invalid",
934
+ regex: /\{\d+\b,?\d*\}[+*]|[+*$^?][+*]|[$^][?]|\?{3,}/
935
+ }, {
936
+ token : "constant.language.escape",
937
+ regex: /\(\?[:=!]|\)|\{\d+\b,?\d*\}|[+*]\?|[()$^+*?.]/
938
+ }, {
939
+ token : "constant.language.delimiter",
940
+ regex: /\|/
941
+ }, {
942
+ token: "constant.language.escape",
943
+ regex: /\[\^?/,
944
+ next: "regex_character_class"
945
+ }, {
946
+ token: "empty",
947
+ regex: "$",
948
+ next: "no_regex"
949
+ }, {
950
+ defaultToken: "string.regexp"
951
+ }
952
+ ],
953
+ "regex_character_class": [
954
+ {
955
+ token: "regexp.charclass.keyword.operator",
956
+ regex: "\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"
957
+ }, {
958
+ token: "constant.language.escape",
959
+ regex: "]",
960
+ next: "regex"
961
+ }, {
962
+ token: "constant.language.escape",
963
+ regex: "-"
964
+ }, {
965
+ token: "empty",
966
+ regex: "$",
967
+ next: "no_regex"
968
+ }, {
969
+ defaultToken: "string.regexp.charachterclass"
970
+ }
971
+ ],
972
+ "function_arguments": [
973
+ {
974
+ token: "variable.parameter",
975
+ regex: identifierRe
976
+ }, {
977
+ token: "punctuation.operator",
978
+ regex: "[, ]+"
979
+ }, {
980
+ token: "punctuation.operator",
981
+ regex: "$"
982
+ }, {
983
+ token: "empty",
984
+ regex: "",
985
+ next: "no_regex"
986
+ }
987
+ ],
988
+ "qqstring" : [
989
+ {
990
+ token : "constant.language.escape",
991
+ regex : escapedRe
992
+ }, {
993
+ token : "string",
994
+ regex : "\\\\$",
995
+ consumeLineEnd : true
996
+ }, {
997
+ token : "string",
998
+ regex : '"|$',
999
+ next : "no_regex"
1000
+ }, {
1001
+ defaultToken: "string"
1002
+ }
1003
+ ],
1004
+ "qstring" : [
1005
+ {
1006
+ token : "constant.language.escape",
1007
+ regex : escapedRe
1008
+ }, {
1009
+ token : "string",
1010
+ regex : "\\\\$",
1011
+ consumeLineEnd : true
1012
+ }, {
1013
+ token : "string",
1014
+ regex : "'|$",
1015
+ next : "no_regex"
1016
+ }, {
1017
+ defaultToken: "string"
1018
+ }
1019
+ ]
1020
+ };
1021
+
1022
+
1023
+ if (!options || !options.noES6) {
1024
+ this.$rules.no_regex.unshift({
1025
+ regex: "[{}]", onMatch: function(val, state, stack) {
1026
+ this.next = val == "{" ? this.nextState : "";
1027
+ if (val == "{" && stack.length) {
1028
+ stack.unshift("start", state);
1029
+ }
1030
+ else if (val == "}" && stack.length) {
1031
+ stack.shift();
1032
+ this.next = stack.shift();
1033
+ if (this.next.indexOf("string") != -1 || this.next.indexOf("jsx") != -1)
1034
+ return "paren.quasi.end";
1035
+ }
1036
+ return val == "{" ? "paren.lparen" : "paren.rparen";
1037
+ },
1038
+ nextState: "start"
1039
+ }, {
1040
+ token : "string.quasi.start",
1041
+ regex : /`/,
1042
+ push : [{
1043
+ token : "constant.language.escape",
1044
+ regex : escapedRe
1045
+ }, {
1046
+ token : "paren.quasi.start",
1047
+ regex : /\${/,
1048
+ push : "start"
1049
+ }, {
1050
+ token : "string.quasi.end",
1051
+ regex : /`/,
1052
+ next : "pop"
1053
+ }, {
1054
+ defaultToken: "string.quasi"
1055
+ }]
1056
+ });
1057
+
1058
+ if (!options || options.jsx != false)
1059
+ JSX.call(this);
1060
+ }
1061
+
1062
+ this.embedRules(DocCommentHighlightRules, "doc-",
1063
+ [ DocCommentHighlightRules.getEndRule("no_regex") ]);
1064
+
1065
+ this.normalizeRules();
1066
+ };
1067
+
1068
+ oop.inherits(JavaScriptHighlightRules, TextHighlightRules);
1069
+
1070
+ function JSX() {
1071
+ var tagRegex = identifierRe.replace("\\d", "\\d\\-");
1072
+ var jsxTag = {
1073
+ onMatch : function(val, state, stack) {
1074
+ var offset = val.charAt(1) == "/" ? 2 : 1;
1075
+ if (offset == 1) {
1076
+ if (state != this.nextState)
1077
+ stack.unshift(this.next, this.nextState, 0);
1078
+ else
1079
+ stack.unshift(this.next);
1080
+ stack[2]++;
1081
+ } else if (offset == 2) {
1082
+ if (state == this.nextState) {
1083
+ stack[1]--;
1084
+ if (!stack[1] || stack[1] < 0) {
1085
+ stack.shift();
1086
+ stack.shift();
1087
+ }
1088
+ }
1089
+ }
1090
+ return [{
1091
+ type: "meta.tag.punctuation." + (offset == 1 ? "" : "end-") + "tag-open.xml",
1092
+ value: val.slice(0, offset)
1093
+ }, {
1094
+ type: "meta.tag.tag-name.xml",
1095
+ value: val.substr(offset)
1096
+ }];
1097
+ },
1098
+ regex : "</?" + tagRegex + "",
1099
+ next: "jsxAttributes",
1100
+ nextState: "jsx"
1101
+ };
1102
+ this.$rules.start.unshift(jsxTag);
1103
+ var jsxJsRule = {
1104
+ regex: "{",
1105
+ token: "paren.quasi.start",
1106
+ push: "start"
1107
+ };
1108
+ this.$rules.jsx = [
1109
+ jsxJsRule,
1110
+ jsxTag,
1111
+ {include : "reference"},
1112
+ {defaultToken: "string"}
1113
+ ];
1114
+ this.$rules.jsxAttributes = [{
1115
+ token : "meta.tag.punctuation.tag-close.xml",
1116
+ regex : "/?>",
1117
+ onMatch : function(value, currentState, stack) {
1118
+ if (currentState == stack[0])
1119
+ stack.shift();
1120
+ if (value.length == 2) {
1121
+ if (stack[0] == this.nextState)
1122
+ stack[1]--;
1123
+ if (!stack[1] || stack[1] < 0) {
1124
+ stack.splice(0, 2);
1125
+ }
1126
+ }
1127
+ this.next = stack[0] || "start";
1128
+ return [{type: this.token, value: value}];
1129
+ },
1130
+ nextState: "jsx"
1131
+ },
1132
+ jsxJsRule,
1133
+ comments("jsxAttributes"),
1134
+ {
1135
+ token : "entity.other.attribute-name.xml",
1136
+ regex : tagRegex
1137
+ }, {
1138
+ token : "keyword.operator.attribute-equals.xml",
1139
+ regex : "="
1140
+ }, {
1141
+ token : "text.tag-whitespace.xml",
1142
+ regex : "\\s+"
1143
+ }, {
1144
+ token : "string.attribute-value.xml",
1145
+ regex : "'",
1146
+ stateName : "jsx_attr_q",
1147
+ push : [
1148
+ {token : "string.attribute-value.xml", regex: "'", next: "pop"},
1149
+ {include : "reference"},
1150
+ {defaultToken : "string.attribute-value.xml"}
1151
+ ]
1152
+ }, {
1153
+ token : "string.attribute-value.xml",
1154
+ regex : '"',
1155
+ stateName : "jsx_attr_qq",
1156
+ push : [
1157
+ {token : "string.attribute-value.xml", regex: '"', next: "pop"},
1158
+ {include : "reference"},
1159
+ {defaultToken : "string.attribute-value.xml"}
1160
+ ]
1161
+ },
1162
+ jsxTag
1163
+ ];
1164
+ this.$rules.reference = [{
1165
+ token : "constant.language.escape.reference.xml",
1166
+ regex : "(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"
1167
+ }];
1168
+ }
1169
+
1170
+ function comments(next) {
1171
+ return [
1172
+ {
1173
+ token : "comment", // multi line comment
1174
+ regex : /\/\*/,
1175
+ next: [
1176
+ DocCommentHighlightRules.getTagRule(),
1177
+ {token : "comment", regex : "\\*\\/", next : next || "pop"},
1178
+ {defaultToken : "comment", caseInsensitive: true}
1179
+ ]
1180
+ }, {
1181
+ token : "comment",
1182
+ regex : "\\/\\/",
1183
+ next: [
1184
+ DocCommentHighlightRules.getTagRule(),
1185
+ {token : "comment", regex : "$|^", next : next || "pop"},
1186
+ {defaultToken : "comment", caseInsensitive: true}
1187
+ ]
1188
+ }
1189
+ ];
1190
+ }
1191
+ exports.JavaScriptHighlightRules = JavaScriptHighlightRules;
1192
+ });
1193
+
1194
+ define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"], function(require, exports, module) {
1195
+ "use strict";
1196
+
1197
+ var Range = require("../range").Range;
1198
+
1199
+ var MatchingBraceOutdent = function() {};
1200
+
1201
+ (function() {
1202
+
1203
+ this.checkOutdent = function(line, input) {
1204
+ if (! /^\s+$/.test(line))
1205
+ return false;
1206
+
1207
+ return /^\s*\}/.test(input);
1208
+ };
1209
+
1210
+ this.autoOutdent = function(doc, row) {
1211
+ var line = doc.getLine(row);
1212
+ var match = line.match(/^(\s*\})/);
1213
+
1214
+ if (!match) return 0;
1215
+
1216
+ var column = match[1].length;
1217
+ var openBracePos = doc.findMatchingBracket({row: row, column: column});
1218
+
1219
+ if (!openBracePos || openBracePos.row == row) return 0;
1220
+
1221
+ var indent = this.$getIndent(doc.getLine(openBracePos.row));
1222
+ doc.replace(new Range(row, 0, row, column-1), indent);
1223
+ };
1224
+
1225
+ this.$getIndent = function(line) {
1226
+ return line.match(/^\s*/)[0];
1227
+ };
1228
+
1229
+ }).call(MatchingBraceOutdent.prototype);
1230
+
1231
+ exports.MatchingBraceOutdent = MatchingBraceOutdent;
1232
+ });
1233
+
1234
+ define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"], function(require, exports, module) {
1235
+ "use strict";
1236
+
1237
+ var oop = require("../../lib/oop");
1238
+ var Range = require("../../range").Range;
1239
+ var BaseFoldMode = require("./fold_mode").FoldMode;
1240
+
1241
+ var FoldMode = exports.FoldMode = function(commentRegex) {
1242
+ if (commentRegex) {
1243
+ this.foldingStartMarker = new RegExp(
1244
+ this.foldingStartMarker.source.replace(/\|[^|]*?$/, "|" + commentRegex.start)
1245
+ );
1246
+ this.foldingStopMarker = new RegExp(
1247
+ this.foldingStopMarker.source.replace(/\|[^|]*?$/, "|" + commentRegex.end)
1248
+ );
1249
+ }
1250
+ };
1251
+ oop.inherits(FoldMode, BaseFoldMode);
1252
+
1253
+ (function() {
1254
+
1255
+ this.foldingStartMarker = /([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/;
1256
+ this.foldingStopMarker = /^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/;
1257
+ this.singleLineBlockCommentRe= /^\s*(\/\*).*\*\/\s*$/;
1258
+ this.tripleStarBlockCommentRe = /^\s*(\/\*\*\*).*\*\/\s*$/;
1259
+ this.startRegionRe = /^\s*(\/\*|\/\/)#?region\b/;
1260
+ this._getFoldWidgetBase = this.getFoldWidget;
1261
+ this.getFoldWidget = function(session, foldStyle, row) {
1262
+ var line = session.getLine(row);
1263
+
1264
+ if (this.singleLineBlockCommentRe.test(line)) {
1265
+ if (!this.startRegionRe.test(line) && !this.tripleStarBlockCommentRe.test(line))
1266
+ return "";
1267
+ }
1268
+
1269
+ var fw = this._getFoldWidgetBase(session, foldStyle, row);
1270
+
1271
+ if (!fw && this.startRegionRe.test(line))
1272
+ return "start"; // lineCommentRegionStart
1273
+
1274
+ return fw;
1275
+ };
1276
+
1277
+ this.getFoldWidgetRange = function(session, foldStyle, row, forceMultiline) {
1278
+ var line = session.getLine(row);
1279
+
1280
+ if (this.startRegionRe.test(line))
1281
+ return this.getCommentRegionBlock(session, line, row);
1282
+
1283
+ var match = line.match(this.foldingStartMarker);
1284
+ if (match) {
1285
+ var i = match.index;
1286
+
1287
+ if (match[1])
1288
+ return this.openingBracketBlock(session, match[1], row, i);
1289
+
1290
+ var range = session.getCommentFoldRange(row, i + match[0].length, 1);
1291
+
1292
+ if (range && !range.isMultiLine()) {
1293
+ if (forceMultiline) {
1294
+ range = this.getSectionRange(session, row);
1295
+ } else if (foldStyle != "all")
1296
+ range = null;
1297
+ }
1298
+
1299
+ return range;
1300
+ }
1301
+
1302
+ if (foldStyle === "markbegin")
1303
+ return;
1304
+
1305
+ var match = line.match(this.foldingStopMarker);
1306
+ if (match) {
1307
+ var i = match.index + match[0].length;
1308
+
1309
+ if (match[1])
1310
+ return this.closingBracketBlock(session, match[1], row, i);
1311
+
1312
+ return session.getCommentFoldRange(row, i, -1);
1313
+ }
1314
+ };
1315
+
1316
+ this.getSectionRange = function(session, row) {
1317
+ var line = session.getLine(row);
1318
+ var startIndent = line.search(/\S/);
1319
+ var startRow = row;
1320
+ var startColumn = line.length;
1321
+ row = row + 1;
1322
+ var endRow = row;
1323
+ var maxRow = session.getLength();
1324
+ while (++row < maxRow) {
1325
+ line = session.getLine(row);
1326
+ var indent = line.search(/\S/);
1327
+ if (indent === -1)
1328
+ continue;
1329
+ if (startIndent > indent)
1330
+ break;
1331
+ var subRange = this.getFoldWidgetRange(session, "all", row);
1332
+
1333
+ if (subRange) {
1334
+ if (subRange.start.row <= startRow) {
1335
+ break;
1336
+ } else if (subRange.isMultiLine()) {
1337
+ row = subRange.end.row;
1338
+ } else if (startIndent == indent) {
1339
+ break;
1340
+ }
1341
+ }
1342
+ endRow = row;
1343
+ }
1344
+
1345
+ return new Range(startRow, startColumn, endRow, session.getLine(endRow).length);
1346
+ };
1347
+ this.getCommentRegionBlock = function(session, line, row) {
1348
+ var startColumn = line.search(/\s*$/);
1349
+ var maxRow = session.getLength();
1350
+ var startRow = row;
1351
+
1352
+ var re = /^\s*(?:\/\*|\/\/|--)#?(end)?region\b/;
1353
+ var depth = 1;
1354
+ while (++row < maxRow) {
1355
+ line = session.getLine(row);
1356
+ var m = re.exec(line);
1357
+ if (!m) continue;
1358
+ if (m[1]) depth--;
1359
+ else depth++;
1360
+
1361
+ if (!depth) break;
1362
+ }
1363
+
1364
+ var endRow = row;
1365
+ if (endRow > startRow) {
1366
+ return new Range(startRow, startColumn, endRow, line.length);
1367
+ }
1368
+ };
1369
+
1370
+ }).call(FoldMode.prototype);
1371
+
1372
+ });
1373
+
1374
+ define("ace/mode/javascript",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/javascript_highlight_rules","ace/mode/matching_brace_outdent","ace/worker/worker_client","ace/mode/behaviour/cstyle","ace/mode/folding/cstyle"], function(require, exports, module) {
1375
+ "use strict";
1376
+
1377
+ var oop = require("../lib/oop");
1378
+ var TextMode = require("./text").Mode;
1379
+ var JavaScriptHighlightRules = require("./javascript_highlight_rules").JavaScriptHighlightRules;
1380
+ var MatchingBraceOutdent = require("./matching_brace_outdent").MatchingBraceOutdent;
1381
+ var WorkerClient = require("../worker/worker_client").WorkerClient;
1382
+ var CstyleBehaviour = require("./behaviour/cstyle").CstyleBehaviour;
1383
+ var CStyleFoldMode = require("./folding/cstyle").FoldMode;
1384
+
1385
+ var Mode = function() {
1386
+ this.HighlightRules = JavaScriptHighlightRules;
1387
+
1388
+ this.$outdent = new MatchingBraceOutdent();
1389
+ this.$behaviour = new CstyleBehaviour();
1390
+ this.foldingRules = new CStyleFoldMode();
1391
+ };
1392
+ oop.inherits(Mode, TextMode);
1393
+
1394
+ (function() {
1395
+
1396
+ this.lineCommentStart = "//";
1397
+ this.blockComment = {start: "/*", end: "*/"};
1398
+ this.$quotes = {'"': '"', "'": "'", "`": "`"};
1399
+
1400
+ this.getNextLineIndent = function(state, line, tab) {
1401
+ var indent = this.$getIndent(line);
1402
+
1403
+ var tokenizedLine = this.getTokenizer().getLineTokens(line, state);
1404
+ var tokens = tokenizedLine.tokens;
1405
+ var endState = tokenizedLine.state;
1406
+
1407
+ if (tokens.length && tokens[tokens.length-1].type == "comment") {
1408
+ return indent;
1409
+ }
1410
+
1411
+ if (state == "start" || state == "no_regex") {
1412
+ var match = line.match(/^.*(?:\bcase\b.*:|[\{\(\[])\s*$/);
1413
+ if (match) {
1414
+ indent += tab;
1415
+ }
1416
+ } else if (state == "doc-start") {
1417
+ if (endState == "start" || endState == "no_regex") {
1418
+ return "";
1419
+ }
1420
+ var match = line.match(/^\s*(\/?)\*/);
1421
+ if (match) {
1422
+ if (match[1]) {
1423
+ indent += " ";
1424
+ }
1425
+ indent += "* ";
1426
+ }
1427
+ }
1428
+
1429
+ return indent;
1430
+ };
1431
+
1432
+ this.checkOutdent = function(state, line, input) {
1433
+ return this.$outdent.checkOutdent(line, input);
1434
+ };
1435
+
1436
+ this.autoOutdent = function(state, doc, row) {
1437
+ this.$outdent.autoOutdent(doc, row);
1438
+ };
1439
+
1440
+ this.createWorker = function(session) {
1441
+ var worker = new WorkerClient(["ace"], "ace/mode/javascript_worker", "JavaScriptWorker");
1442
+ worker.attachToDocument(session.getDocument());
1443
+
1444
+ worker.on("annotate", function(results) {
1445
+ session.setAnnotations(results.data);
1446
+ });
1447
+
1448
+ worker.on("terminate", function() {
1449
+ session.clearAnnotations();
1450
+ });
1451
+
1452
+ return worker;
1453
+ };
1454
+
1455
+ this.$id = "ace/mode/javascript";
1456
+ }).call(Mode.prototype);
1457
+
1458
+ exports.Mode = Mode;
1459
+ });
1460
+
1461
+ define("ace/mode/svg_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/javascript_highlight_rules","ace/mode/xml_highlight_rules"], function(require, exports, module) {
1462
+ "use strict";
1463
+
1464
+ var oop = require("../lib/oop");
1465
+ var JavaScriptHighlightRules = require("./javascript_highlight_rules").JavaScriptHighlightRules;
1466
+ var XmlHighlightRules = require("./xml_highlight_rules").XmlHighlightRules;
1467
+
1468
+ var SvgHighlightRules = function() {
1469
+ XmlHighlightRules.call(this);
1470
+
1471
+ this.embedTagRules(JavaScriptHighlightRules, "js-", "script");
1472
+
1473
+ this.normalizeRules();
1474
+ };
1475
+
1476
+ oop.inherits(SvgHighlightRules, XmlHighlightRules);
1477
+
1478
+ exports.SvgHighlightRules = SvgHighlightRules;
1479
+ });
1480
+
1481
+ define("ace/mode/folding/mixed",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode"], function(require, exports, module) {
1482
+ "use strict";
1483
+
1484
+ var oop = require("../../lib/oop");
1485
+ var BaseFoldMode = require("./fold_mode").FoldMode;
1486
+
1487
+ var FoldMode = exports.FoldMode = function(defaultMode, subModes) {
1488
+ this.defaultMode = defaultMode;
1489
+ this.subModes = subModes;
1490
+ };
1491
+ oop.inherits(FoldMode, BaseFoldMode);
1492
+
1493
+ (function() {
1494
+
1495
+
1496
+ this.$getMode = function(state) {
1497
+ if (typeof state != "string")
1498
+ state = state[0];
1499
+ for (var key in this.subModes) {
1500
+ if (state.indexOf(key) === 0)
1501
+ return this.subModes[key];
1502
+ }
1503
+ return null;
1504
+ };
1505
+
1506
+ this.$tryMode = function(state, session, foldStyle, row) {
1507
+ var mode = this.$getMode(state);
1508
+ return (mode ? mode.getFoldWidget(session, foldStyle, row) : "");
1509
+ };
1510
+
1511
+ this.getFoldWidget = function(session, foldStyle, row) {
1512
+ return (
1513
+ this.$tryMode(session.getState(row-1), session, foldStyle, row) ||
1514
+ this.$tryMode(session.getState(row), session, foldStyle, row) ||
1515
+ this.defaultMode.getFoldWidget(session, foldStyle, row)
1516
+ );
1517
+ };
1518
+
1519
+ this.getFoldWidgetRange = function(session, foldStyle, row) {
1520
+ var mode = this.$getMode(session.getState(row-1));
1521
+
1522
+ if (!mode || !mode.getFoldWidget(session, foldStyle, row))
1523
+ mode = this.$getMode(session.getState(row));
1524
+
1525
+ if (!mode || !mode.getFoldWidget(session, foldStyle, row))
1526
+ mode = this.defaultMode;
1527
+
1528
+ return mode.getFoldWidgetRange(session, foldStyle, row);
1529
+ };
1530
+
1531
+ }).call(FoldMode.prototype);
1532
+
1533
+ });
1534
+
1535
+ define("ace/mode/svg",["require","exports","module","ace/lib/oop","ace/mode/xml","ace/mode/javascript","ace/mode/svg_highlight_rules","ace/mode/folding/mixed","ace/mode/folding/xml","ace/mode/folding/cstyle"], function(require, exports, module) {
1536
+ "use strict";
1537
+
1538
+ var oop = require("../lib/oop");
1539
+ var XmlMode = require("./xml").Mode;
1540
+ var JavaScriptMode = require("./javascript").Mode;
1541
+ var SvgHighlightRules = require("./svg_highlight_rules").SvgHighlightRules;
1542
+ var MixedFoldMode = require("./folding/mixed").FoldMode;
1543
+ var XmlFoldMode = require("./folding/xml").FoldMode;
1544
+ var CStyleFoldMode = require("./folding/cstyle").FoldMode;
1545
+
1546
+ var Mode = function() {
1547
+ XmlMode.call(this);
1548
+
1549
+ this.HighlightRules = SvgHighlightRules;
1550
+
1551
+ this.createModeDelegates({
1552
+ "js-": JavaScriptMode
1553
+ });
1554
+
1555
+ this.foldingRules = new MixedFoldMode(new XmlFoldMode(), {
1556
+ "js-": new CStyleFoldMode()
1557
+ });
1558
+ };
1559
+
1560
+ oop.inherits(Mode, XmlMode);
1561
+
1562
+ (function() {
1563
+
1564
+ this.getNextLineIndent = function(state, line, tab) {
1565
+ return this.$getIndent(line);
1566
+ };
1567
+
1568
+
1569
+ this.$id = "ace/mode/svg";
1570
+ }).call(Mode.prototype);
1571
+
1572
+ exports.Mode = Mode;
1573
+ });
1574
+ (function() {
1575
+ window.require(["ace/mode/svg"], function(m) {
1576
+ if (typeof module == "object" && typeof exports == "object" && module) {
1577
+ module.exports = m;
1578
+ }
1579
+ });
1580
+ })();
1581
+