ace-oqc 1.4.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (401) hide show
  1. package/package.json +7 -0
  2. package/src-noconflict/ace.js +21402 -0
  3. package/src-noconflict/ext-beautify.js +331 -0
  4. package/src-noconflict/ext-elastic_tabstops_lite.js +277 -0
  5. package/src-noconflict/ext-emmet.js +1331 -0
  6. package/src-noconflict/ext-error_marker.js +9 -0
  7. package/src-noconflict/ext-keybinding_menu.js +193 -0
  8. package/src-noconflict/ext-language_tools.js +2166 -0
  9. package/src-noconflict/ext-linking.js +64 -0
  10. package/src-noconflict/ext-modelist.js +248 -0
  11. package/src-noconflict/ext-options.js +799 -0
  12. package/src-noconflict/ext-prompt.js +2806 -0
  13. package/src-noconflict/ext-rtl.js +122 -0
  14. package/src-noconflict/ext-searchbox.js +514 -0
  15. package/src-noconflict/ext-settings_menu.js +820 -0
  16. package/src-noconflict/ext-spellcheck.js +73 -0
  17. package/src-noconflict/ext-split.js +207 -0
  18. package/src-noconflict/ext-static_highlight.js +229 -0
  19. package/src-noconflict/ext-statusbar.js +56 -0
  20. package/src-noconflict/ext-textarea.js +430 -0
  21. package/src-noconflict/ext-themelist.js +67 -0
  22. package/src-noconflict/ext-whitespace.js +213 -0
  23. package/src-noconflict/keybinding-emacs.js +1169 -0
  24. package/src-noconflict/keybinding-sublime.js +422 -0
  25. package/src-noconflict/keybinding-vim.js +6198 -0
  26. package/src-noconflict/mode-abap.js +221 -0
  27. package/src-noconflict/mode-abc.js +271 -0
  28. package/src-noconflict/mode-actionscript.js +275 -0
  29. package/src-noconflict/mode-ada.js +137 -0
  30. package/src-noconflict/mode-apache_conf.js +363 -0
  31. package/src-noconflict/mode-apex.js +457 -0
  32. package/src-noconflict/mode-applescript.js +278 -0
  33. package/src-noconflict/mode-aql.js +102 -0
  34. package/src-noconflict/mode-asciidoc.js +349 -0
  35. package/src-noconflict/mode-asl.js +422 -0
  36. package/src-noconflict/mode-assembly_x86.js +193 -0
  37. package/src-noconflict/mode-autohotkey.js +244 -0
  38. package/src-noconflict/mode-batchfile.js +230 -0
  39. package/src-noconflict/mode-c9search.js +293 -0
  40. package/src-noconflict/mode-c_cpp.js +503 -0
  41. package/src-noconflict/mode-cirru.js +210 -0
  42. package/src-noconflict/mode-clojure.js +315 -0
  43. package/src-noconflict/mode-cobol.js +101 -0
  44. package/src-noconflict/mode-coffee.js +400 -0
  45. package/src-noconflict/mode-coldfusion.js +2596 -0
  46. package/src-noconflict/mode-crystal.js +642 -0
  47. package/src-noconflict/mode-csharp.js +502 -0
  48. package/src-noconflict/mode-csound_document.js +4105 -0
  49. package/src-noconflict/mode-csound_orchestra.js +3035 -0
  50. package/src-noconflict/mode-csound_score.js +462 -0
  51. package/src-noconflict/mode-csp.js +59 -0
  52. package/src-noconflict/mode-css.js +720 -0
  53. package/src-noconflict/mode-curly.js +2564 -0
  54. package/src-noconflict/mode-d.js +520 -0
  55. package/src-noconflict/mode-dart.js +715 -0
  56. package/src-noconflict/mode-diff.js +147 -0
  57. package/src-noconflict/mode-django.js +2595 -0
  58. package/src-noconflict/mode-dockerfile.js +500 -0
  59. package/src-noconflict/mode-dot.js +417 -0
  60. package/src-noconflict/mode-drools.js +498 -0
  61. package/src-noconflict/mode-edifact.js +166 -0
  62. package/src-noconflict/mode-eiffel.js +135 -0
  63. package/src-noconflict/mode-ejs.js +3533 -0
  64. package/src-noconflict/mode-elixir.js +501 -0
  65. package/src-noconflict/mode-elm.js +306 -0
  66. package/src-noconflict/mode-erlang.js +1010 -0
  67. package/src-noconflict/mode-forth.js +297 -0
  68. package/src-noconflict/mode-fortran.js +430 -0
  69. package/src-noconflict/mode-fsharp.js +316 -0
  70. package/src-noconflict/mode-fsl.js +259 -0
  71. package/src-noconflict/mode-ftl.js +1193 -0
  72. package/src-noconflict/mode-gcode.js +93 -0
  73. package/src-noconflict/mode-gherkin.js +168 -0
  74. package/src-noconflict/mode-gitignore.js +59 -0
  75. package/src-noconflict/mode-glsl.js +580 -0
  76. package/src-noconflict/mode-gobstones.js +1090 -0
  77. package/src-noconflict/mode-golang.js +413 -0
  78. package/src-noconflict/mode-graphqlschema.js +214 -0
  79. package/src-noconflict/mode-groovy.js +989 -0
  80. package/src-noconflict/mode-haml.js +1873 -0
  81. package/src-noconflict/mode-handlebars.js +2622 -0
  82. package/src-noconflict/mode-haskell.js +380 -0
  83. package/src-noconflict/mode-haskell_cabal.js +141 -0
  84. package/src-noconflict/mode-haxe.js +386 -0
  85. package/src-noconflict/mode-hjson.js +353 -0
  86. package/src-noconflict/mode-html.js +2509 -0
  87. package/src-noconflict/mode-html_elixir.js +3088 -0
  88. package/src-noconflict/mode-html_ruby.js +3550 -0
  89. package/src-noconflict/mode-ini.js +162 -0
  90. package/src-noconflict/mode-io.js +248 -0
  91. package/src-noconflict/mode-jack.js +346 -0
  92. package/src-noconflict/mode-jade.js +2025 -0
  93. package/src-noconflict/mode-java.js +1038 -0
  94. package/src-noconflict/mode-javascript.js +798 -0
  95. package/src-noconflict/mode-json.js +329 -0
  96. package/src-noconflict/mode-jsoniq.js +2632 -0
  97. package/src-noconflict/mode-jsp.js +1433 -0
  98. package/src-noconflict/mode-jssm.js +325 -0
  99. package/src-noconflict/mode-jsx.js +411 -0
  100. package/src-noconflict/mode-julia.js +303 -0
  101. package/src-noconflict/mode-kotlin.js +797 -0
  102. package/src-noconflict/mode-latex.js +296 -0
  103. package/src-noconflict/mode-less.js +839 -0
  104. package/src-noconflict/mode-liquid.js +2742 -0
  105. package/src-noconflict/mode-lisp.js +112 -0
  106. package/src-noconflict/mode-livescript.js +279 -0
  107. package/src-noconflict/mode-logiql.js +317 -0
  108. package/src-noconflict/mode-logtalk.js +352 -0
  109. package/src-noconflict/mode-lsl.js +343 -0
  110. package/src-noconflict/mode-lua.js +452 -0
  111. package/src-noconflict/mode-luapage.js +3028 -0
  112. package/src-noconflict/mode-lucene.js +154 -0
  113. package/src-noconflict/mode-makefile.js +412 -0
  114. package/src-noconflict/mode-markdown.js +3194 -0
  115. package/src-noconflict/mode-mask.js +1803 -0
  116. package/src-noconflict/mode-matlab.js +263 -0
  117. package/src-noconflict/mode-maze.js +292 -0
  118. package/src-noconflict/mode-mel.js +263 -0
  119. package/src-noconflict/mode-mixal.js +122 -0
  120. package/src-noconflict/mode-mushcode.js +681 -0
  121. package/src-noconflict/mode-mysql.js +167 -0
  122. package/src-noconflict/mode-nginx.js +298 -0
  123. package/src-noconflict/mode-nim.js +363 -0
  124. package/src-noconflict/mode-nix.js +647 -0
  125. package/src-noconflict/mode-nsis.js +312 -0
  126. package/src-noconflict/mode-objectivec.js +740 -0
  127. package/src-noconflict/mode-ocaml.js +421 -0
  128. package/src-noconflict/mode-pascal.js +223 -0
  129. package/src-noconflict/mode-perl.js +381 -0
  130. package/src-noconflict/mode-pgsql.js +1743 -0
  131. package/src-noconflict/mode-php.js +13110 -0
  132. package/src-noconflict/mode-php_laravel_blade.js +13311 -0
  133. package/src-noconflict/mode-pig.js +310 -0
  134. package/src-noconflict/mode-plain_text.js +32 -0
  135. package/src-noconflict/mode-powershell.js +418 -0
  136. package/src-noconflict/mode-praat.js +478 -0
  137. package/src-noconflict/mode-prolog.js +371 -0
  138. package/src-noconflict/mode-properties.js +80 -0
  139. package/src-noconflict/mode-protobuf.js +593 -0
  140. package/src-noconflict/mode-puppet.js +368 -0
  141. package/src-noconflict/mode-python.js +508 -0
  142. package/src-noconflict/mode-r.js +312 -0
  143. package/src-noconflict/mode-razor.js +2875 -0
  144. package/src-noconflict/mode-rdoc.js +243 -0
  145. package/src-noconflict/mode-red.js +450 -0
  146. package/src-noconflict/mode-redshift.js +360 -0
  147. package/src-noconflict/mode-rhtml.js +2808 -0
  148. package/src-noconflict/mode-rst.js +257 -0
  149. package/src-noconflict/mode-ruby.js +1003 -0
  150. package/src-noconflict/mode-rust.js +282 -0
  151. package/src-noconflict/mode-sass.js +529 -0
  152. package/src-noconflict/mode-scad.js +414 -0
  153. package/src-noconflict/mode-scala.js +984 -0
  154. package/src-noconflict/mode-scheme.js +232 -0
  155. package/src-noconflict/mode-scss.js +873 -0
  156. package/src-noconflict/mode-sh.js +449 -0
  157. package/src-noconflict/mode-sjs.js +1015 -0
  158. package/src-noconflict/mode-slim.js +5240 -0
  159. package/src-noconflict/mode-smarty.js +2635 -0
  160. package/src-noconflict/mode-snippets.js +207 -0
  161. package/src-noconflict/mode-soy_template.js +2848 -0
  162. package/src-noconflict/mode-space.js +167 -0
  163. package/src-noconflict/mode-sparql.js +320 -0
  164. package/src-noconflict/mode-sql.js +271 -0
  165. package/src-noconflict/mode-sqlserver.js +445 -0
  166. package/src-noconflict/mode-stylus.js +472 -0
  167. package/src-noconflict/mode-svg.js +1582 -0
  168. package/src-noconflict/mode-swift.js +395 -0
  169. package/src-noconflict/mode-tcl.js +387 -0
  170. package/src-noconflict/mode-terraform.js +400 -0
  171. package/src-noconflict/mode-tex.js +160 -0
  172. package/src-noconflict/mode-text.js +9 -0
  173. package/src-noconflict/mode-textile.js +150 -0
  174. package/src-noconflict/mode-toml.js +153 -0
  175. package/src-noconflict/mode-tsx.js +888 -0
  176. package/src-noconflict/mode-turtle.js +296 -0
  177. package/src-noconflict/mode-twig.js +2693 -0
  178. package/src-noconflict/mode-typescript.js +869 -0
  179. package/src-noconflict/mode-vala.js +677 -0
  180. package/src-noconflict/mode-vbscript.js +635 -0
  181. package/src-noconflict/mode-velocity.js +2792 -0
  182. package/src-noconflict/mode-verilog.js +118 -0
  183. package/src-noconflict/mode-vhdl.js +116 -0
  184. package/src-noconflict/mode-visualforce.js +2640 -0
  185. package/src-noconflict/mode-wollok.js +914 -0
  186. package/src-noconflict/mode-xml.js +676 -0
  187. package/src-noconflict/mode-xquery.js +2644 -0
  188. package/src-noconflict/mode-yaml.js +330 -0
  189. package/src-noconflict/mode-zeek.js +539 -0
  190. package/src-noconflict/qurator-mode.js +120 -0
  191. package/src-noconflict/qurator-worker.js +91 -0
  192. package/src-noconflict/snippets/abap.js +9 -0
  193. package/src-noconflict/snippets/abc.js +45 -0
  194. package/src-noconflict/snippets/actionscript.js +171 -0
  195. package/src-noconflict/snippets/ada.js +9 -0
  196. package/src-noconflict/snippets/apache_conf.js +9 -0
  197. package/src-noconflict/snippets/apex.js +9 -0
  198. package/src-noconflict/snippets/applescript.js +9 -0
  199. package/src-noconflict/snippets/aql.js +9 -0
  200. package/src-noconflict/snippets/asciidoc.js +9 -0
  201. package/src-noconflict/snippets/asl.js +9 -0
  202. package/src-noconflict/snippets/assembly_x86.js +9 -0
  203. package/src-noconflict/snippets/autohotkey.js +9 -0
  204. package/src-noconflict/snippets/batchfile.js +9 -0
  205. package/src-noconflict/snippets/c9search.js +9 -0
  206. package/src-noconflict/snippets/c_cpp.js +145 -0
  207. package/src-noconflict/snippets/cirru.js +9 -0
  208. package/src-noconflict/snippets/clojure.js +104 -0
  209. package/src-noconflict/snippets/cobol.js +9 -0
  210. package/src-noconflict/snippets/coffee.js +109 -0
  211. package/src-noconflict/snippets/coldfusion.js +9 -0
  212. package/src-noconflict/snippets/crystal.js +9 -0
  213. package/src-noconflict/snippets/csharp.js +9 -0
  214. package/src-noconflict/snippets/csound_document.js +24 -0
  215. package/src-noconflict/snippets/csound_orchestra.js +61 -0
  216. package/src-noconflict/snippets/csound_score.js +9 -0
  217. package/src-noconflict/snippets/csp.js +9 -0
  218. package/src-noconflict/snippets/css.js +981 -0
  219. package/src-noconflict/snippets/curly.js +9 -0
  220. package/src-noconflict/snippets/d.js +9 -0
  221. package/src-noconflict/snippets/dart.js +97 -0
  222. package/src-noconflict/snippets/diff.js +25 -0
  223. package/src-noconflict/snippets/django.js +122 -0
  224. package/src-noconflict/snippets/dockerfile.js +9 -0
  225. package/src-noconflict/snippets/dot.js +9 -0
  226. package/src-noconflict/snippets/drools.js +33 -0
  227. package/src-noconflict/snippets/edifact.js +254 -0
  228. package/src-noconflict/snippets/eiffel.js +9 -0
  229. package/src-noconflict/snippets/ejs.js +9 -0
  230. package/src-noconflict/snippets/elixir.js +9 -0
  231. package/src-noconflict/snippets/elm.js +9 -0
  232. package/src-noconflict/snippets/erlang.js +174 -0
  233. package/src-noconflict/snippets/forth.js +9 -0
  234. package/src-noconflict/snippets/fortran.js +9 -0
  235. package/src-noconflict/snippets/fsharp.js +9 -0
  236. package/src-noconflict/snippets/fsl.js +14 -0
  237. package/src-noconflict/snippets/ftl.js +9 -0
  238. package/src-noconflict/snippets/gcode.js +9 -0
  239. package/src-noconflict/snippets/gherkin.js +9 -0
  240. package/src-noconflict/snippets/gitignore.js +9 -0
  241. package/src-noconflict/snippets/glsl.js +9 -0
  242. package/src-noconflict/snippets/gobstones.js +1718 -0
  243. package/src-noconflict/snippets/golang.js +9 -0
  244. package/src-noconflict/snippets/graphqlschema.js +46 -0
  245. package/src-noconflict/snippets/groovy.js +9 -0
  246. package/src-noconflict/snippets/haml.js +34 -0
  247. package/src-noconflict/snippets/handlebars.js +9 -0
  248. package/src-noconflict/snippets/haskell.js +96 -0
  249. package/src-noconflict/snippets/haskell_cabal.js +9 -0
  250. package/src-noconflict/snippets/haxe.js +9 -0
  251. package/src-noconflict/snippets/hjson.js +9 -0
  252. package/src-noconflict/snippets/html.js +867 -0
  253. package/src-noconflict/snippets/html_elixir.js +9 -0
  254. package/src-noconflict/snippets/html_ruby.js +9 -0
  255. package/src-noconflict/snippets/ini.js +9 -0
  256. package/src-noconflict/snippets/io.js +76 -0
  257. package/src-noconflict/snippets/jack.js +9 -0
  258. package/src-noconflict/snippets/jade.js +9 -0
  259. package/src-noconflict/snippets/java.js +254 -0
  260. package/src-noconflict/snippets/javascript.js +209 -0
  261. package/src-noconflict/snippets/json.js +9 -0
  262. package/src-noconflict/snippets/jsoniq.js +75 -0
  263. package/src-noconflict/snippets/jsp.js +113 -0
  264. package/src-noconflict/snippets/jssm.js +9 -0
  265. package/src-noconflict/snippets/jsx.js +9 -0
  266. package/src-noconflict/snippets/julia.js +9 -0
  267. package/src-noconflict/snippets/kotlin.js +9 -0
  268. package/src-noconflict/snippets/latex.js +9 -0
  269. package/src-noconflict/snippets/less.js +9 -0
  270. package/src-noconflict/snippets/liquid.js +895 -0
  271. package/src-noconflict/snippets/lisp.js +9 -0
  272. package/src-noconflict/snippets/livescript.js +9 -0
  273. package/src-noconflict/snippets/logiql.js +9 -0
  274. package/src-noconflict/snippets/logtalk.js +9 -0
  275. package/src-noconflict/snippets/lsl.js +1246 -0
  276. package/src-noconflict/snippets/lua.js +35 -0
  277. package/src-noconflict/snippets/luapage.js +9 -0
  278. package/src-noconflict/snippets/lucene.js +9 -0
  279. package/src-noconflict/snippets/makefile.js +18 -0
  280. package/src-noconflict/snippets/markdown.js +102 -0
  281. package/src-noconflict/snippets/mask.js +9 -0
  282. package/src-noconflict/snippets/matlab.js +9 -0
  283. package/src-noconflict/snippets/maze.js +23 -0
  284. package/src-noconflict/snippets/mel.js +9 -0
  285. package/src-noconflict/snippets/mixal.js +9 -0
  286. package/src-noconflict/snippets/mushcode.js +9 -0
  287. package/src-noconflict/snippets/mysql.js +9 -0
  288. package/src-noconflict/snippets/nginx.js +9 -0
  289. package/src-noconflict/snippets/nim.js +9 -0
  290. package/src-noconflict/snippets/nix.js +9 -0
  291. package/src-noconflict/snippets/nsis.js +9 -0
  292. package/src-noconflict/snippets/objectivec.js +9 -0
  293. package/src-noconflict/snippets/ocaml.js +9 -0
  294. package/src-noconflict/snippets/pascal.js +9 -0
  295. package/src-noconflict/snippets/perl.js +361 -0
  296. package/src-noconflict/snippets/pgsql.js +9 -0
  297. package/src-noconflict/snippets/php.js +397 -0
  298. package/src-noconflict/snippets/php_laravel_blade.js +9 -0
  299. package/src-noconflict/snippets/pig.js +9 -0
  300. package/src-noconflict/snippets/plain_text.js +9 -0
  301. package/src-noconflict/snippets/powershell.js +9 -0
  302. package/src-noconflict/snippets/praat.js +9 -0
  303. package/src-noconflict/snippets/prolog.js +9 -0
  304. package/src-noconflict/snippets/properties.js +9 -0
  305. package/src-noconflict/snippets/protobuf.js +9 -0
  306. package/src-noconflict/snippets/puppet.js +9 -0
  307. package/src-noconflict/snippets/python.js +172 -0
  308. package/src-noconflict/snippets/r.js +135 -0
  309. package/src-noconflict/snippets/razor.js +17 -0
  310. package/src-noconflict/snippets/rdoc.js +9 -0
  311. package/src-noconflict/snippets/red.js +9 -0
  312. package/src-noconflict/snippets/redshift.js +9 -0
  313. package/src-noconflict/snippets/rhtml.js +9 -0
  314. package/src-noconflict/snippets/rst.js +36 -0
  315. package/src-noconflict/snippets/ruby.js +942 -0
  316. package/src-noconflict/snippets/rust.js +9 -0
  317. package/src-noconflict/snippets/sass.js +9 -0
  318. package/src-noconflict/snippets/scad.js +9 -0
  319. package/src-noconflict/snippets/scala.js +9 -0
  320. package/src-noconflict/snippets/scheme.js +9 -0
  321. package/src-noconflict/snippets/scss.js +9 -0
  322. package/src-noconflict/snippets/sh.js +97 -0
  323. package/src-noconflict/snippets/sjs.js +9 -0
  324. package/src-noconflict/snippets/slim.js +9 -0
  325. package/src-noconflict/snippets/smarty.js +9 -0
  326. package/src-noconflict/snippets/snippets.js +23 -0
  327. package/src-noconflict/snippets/soy_template.js +9 -0
  328. package/src-noconflict/snippets/space.js +9 -0
  329. package/src-noconflict/snippets/sparql.js +9 -0
  330. package/src-noconflict/snippets/sql.js +40 -0
  331. package/src-noconflict/snippets/sqlserver.js +83 -0
  332. package/src-noconflict/snippets/stylus.js +9 -0
  333. package/src-noconflict/snippets/svg.js +9 -0
  334. package/src-noconflict/snippets/swift.js +9 -0
  335. package/src-noconflict/snippets/tcl.js +106 -0
  336. package/src-noconflict/snippets/terraform.js +9 -0
  337. package/src-noconflict/snippets/tex.js +204 -0
  338. package/src-noconflict/snippets/text.js +9 -0
  339. package/src-noconflict/snippets/textile.js +44 -0
  340. package/src-noconflict/snippets/toml.js +9 -0
  341. package/src-noconflict/snippets/tsx.js +9 -0
  342. package/src-noconflict/snippets/turtle.js +9 -0
  343. package/src-noconflict/snippets/twig.js +9 -0
  344. package/src-noconflict/snippets/typescript.js +9 -0
  345. package/src-noconflict/snippets/vala.js +200 -0
  346. package/src-noconflict/snippets/vbscript.js +9 -0
  347. package/src-noconflict/snippets/velocity.js +43 -0
  348. package/src-noconflict/snippets/verilog.js +9 -0
  349. package/src-noconflict/snippets/vhdl.js +9 -0
  350. package/src-noconflict/snippets/visualforce.js +9 -0
  351. package/src-noconflict/snippets/wollok.js +98 -0
  352. package/src-noconflict/snippets/xml.js +9 -0
  353. package/src-noconflict/snippets/xquery.js +75 -0
  354. package/src-noconflict/snippets/yaml.js +9 -0
  355. package/src-noconflict/snippets/zeek.js +9 -0
  356. package/src-noconflict/theme-ambiance.js +185 -0
  357. package/src-noconflict/theme-chaos.js +163 -0
  358. package/src-noconflict/theme-chrome.js +135 -0
  359. package/src-noconflict/theme-clouds.js +102 -0
  360. package/src-noconflict/theme-clouds_midnight.js +103 -0
  361. package/src-noconflict/theme-cobalt.js +120 -0
  362. package/src-noconflict/theme-crimson_editor.js +125 -0
  363. package/src-noconflict/theme-dawn.js +115 -0
  364. package/src-noconflict/theme-dracula.js +135 -0
  365. package/src-noconflict/theme-dreamweaver.js +148 -0
  366. package/src-noconflict/theme-eclipse.js +105 -0
  367. package/src-noconflict/theme-github.js +110 -0
  368. package/src-noconflict/theme-gob.js +119 -0
  369. package/src-noconflict/theme-gruvbox.js +89 -0
  370. package/src-noconflict/theme-idle_fingers.js +103 -0
  371. package/src-noconflict/theme-iplastic.js +128 -0
  372. package/src-noconflict/theme-katzenmilch.js +128 -0
  373. package/src-noconflict/theme-kr_theme.js +111 -0
  374. package/src-noconflict/theme-kuroir.js +68 -0
  375. package/src-noconflict/theme-merbivore.js +102 -0
  376. package/src-noconflict/theme-merbivore_soft.js +103 -0
  377. package/src-noconflict/theme-mono_industrial.js +114 -0
  378. package/src-noconflict/theme-monokai.js +112 -0
  379. package/src-noconflict/theme-pastel_on_dark.js +115 -0
  380. package/src-noconflict/theme-solarized_dark.js +95 -0
  381. package/src-noconflict/theme-solarized_light.js +98 -0
  382. package/src-noconflict/theme-sqlserver.js +145 -0
  383. package/src-noconflict/theme-terminal.js +121 -0
  384. package/src-noconflict/theme-textmate.js +137 -0
  385. package/src-noconflict/theme-tomorrow.js +115 -0
  386. package/src-noconflict/theme-tomorrow_night.js +115 -0
  387. package/src-noconflict/theme-tomorrow_night_blue.js +113 -0
  388. package/src-noconflict/theme-tomorrow_night_bright.js +128 -0
  389. package/src-noconflict/theme-tomorrow_night_eighties.js +115 -0
  390. package/src-noconflict/theme-twilight.js +116 -0
  391. package/src-noconflict/theme-vibrant_ink.js +101 -0
  392. package/src-noconflict/theme-xcode.js +95 -0
  393. package/src-noconflict/worker-coffee.js +1470 -0
  394. package/src-noconflict/worker-css.js +9000 -0
  395. package/src-noconflict/worker-html.js +10922 -0
  396. package/src-noconflict/worker-javascript.js +15001 -0
  397. package/src-noconflict/worker-json.js +1715 -0
  398. package/src-noconflict/worker-lua.js +3608 -0
  399. package/src-noconflict/worker-php.js +3687 -0
  400. package/src-noconflict/worker-xml.js +3208 -0
  401. package/src-noconflict/worker-xquery.js +57668 -0
@@ -0,0 +1,2025 @@
1
+ ace.define("ace/mode/css_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text_highlight_rules"], function(require, exports, module) {
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
+
196
+ ace.define("ace/mode/doc_comment_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"], function(require, exports, module) {
197
+ "use strict";
198
+
199
+ var oop = require("../lib/oop");
200
+ var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
201
+
202
+ var DocCommentHighlightRules = function() {
203
+ this.$rules = {
204
+ "start" : [ {
205
+ token : "comment.doc.tag",
206
+ regex : "@[\\w\\d_]+" // TODO: fix email addresses
207
+ },
208
+ DocCommentHighlightRules.getTagRule(),
209
+ {
210
+ defaultToken : "comment.doc",
211
+ caseInsensitive: true
212
+ }]
213
+ };
214
+ };
215
+
216
+ oop.inherits(DocCommentHighlightRules, TextHighlightRules);
217
+
218
+ DocCommentHighlightRules.getTagRule = function(start) {
219
+ return {
220
+ token : "comment.doc.tag.storage.type",
221
+ regex : "\\b(?:TODO|FIXME|XXX|HACK)\\b"
222
+ };
223
+ };
224
+
225
+ DocCommentHighlightRules.getStartRule = function(start) {
226
+ return {
227
+ token : "comment.doc", // doc comment
228
+ regex : "\\/\\*(?=\\*)",
229
+ next : start
230
+ };
231
+ };
232
+
233
+ DocCommentHighlightRules.getEndRule = function (start) {
234
+ return {
235
+ token : "comment.doc", // closing comment
236
+ regex : "\\*\\/",
237
+ next : start
238
+ };
239
+ };
240
+
241
+
242
+ exports.DocCommentHighlightRules = DocCommentHighlightRules;
243
+
244
+ });
245
+
246
+ ace.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) {
247
+ "use strict";
248
+
249
+ var oop = require("../lib/oop");
250
+ var DocCommentHighlightRules = require("./doc_comment_highlight_rules").DocCommentHighlightRules;
251
+ var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
252
+ var identifierRe = "[a-zA-Z\\$_\u00a1-\uffff][a-zA-Z\\d\\$_\u00a1-\uffff]*";
253
+
254
+ var JavaScriptHighlightRules = function(options) {
255
+ var keywordMapper = this.createKeywordMapper({
256
+ "variable.language":
257
+ "Array|Boolean|Date|Function|Iterator|Number|Object|RegExp|String|Proxy|" + // Constructors
258
+ "Namespace|QName|XML|XMLList|" + // E4X
259
+ "ArrayBuffer|Float32Array|Float64Array|Int16Array|Int32Array|Int8Array|" +
260
+ "Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray|" +
261
+ "Error|EvalError|InternalError|RangeError|ReferenceError|StopIteration|" + // Errors
262
+ "SyntaxError|TypeError|URIError|" +
263
+ "decodeURI|decodeURIComponent|encodeURI|encodeURIComponent|eval|isFinite|" + // Non-constructor functions
264
+ "isNaN|parseFloat|parseInt|" +
265
+ "JSON|Math|" + // Other
266
+ "this|arguments|prototype|window|document" , // Pseudo
267
+ "keyword":
268
+ "const|yield|import|get|set|async|await|" +
269
+ "break|case|catch|continue|default|delete|do|else|finally|for|function|" +
270
+ "if|in|of|instanceof|new|return|switch|throw|try|typeof|let|var|while|with|debugger|" +
271
+ "__parent__|__count__|escape|unescape|with|__proto__|" +
272
+ "class|enum|extends|super|export|implements|private|public|interface|package|protected|static",
273
+ "storage.type":
274
+ "const|let|var|function",
275
+ "constant.language":
276
+ "null|Infinity|NaN|undefined",
277
+ "support.function":
278
+ "alert",
279
+ "constant.language.boolean": "true|false"
280
+ }, "identifier");
281
+ var kwBeforeRe = "case|do|else|finally|in|instanceof|return|throw|try|typeof|yield|void";
282
+
283
+ var escapedRe = "\\\\(?:x[0-9a-fA-F]{2}|" + // hex
284
+ "u[0-9a-fA-F]{4}|" + // unicode
285
+ "u{[0-9a-fA-F]{1,6}}|" + // es6 unicode
286
+ "[0-2][0-7]{0,2}|" + // oct
287
+ "3[0-7][0-7]?|" + // oct
288
+ "[4-7][0-7]?|" + //oct
289
+ ".)";
290
+
291
+ this.$rules = {
292
+ "no_regex" : [
293
+ DocCommentHighlightRules.getStartRule("doc-start"),
294
+ comments("no_regex"),
295
+ {
296
+ token : "string",
297
+ regex : "'(?=.)",
298
+ next : "qstring"
299
+ }, {
300
+ token : "string",
301
+ regex : '"(?=.)',
302
+ next : "qqstring"
303
+ }, {
304
+ token : "constant.numeric", // hexadecimal, octal and binary
305
+ regex : /0(?:[xX][0-9a-fA-F]+|[oO][0-7]+|[bB][01]+)\b/
306
+ }, {
307
+ token : "constant.numeric", // decimal integers and floats
308
+ regex : /(?:\d\d*(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+\b)?/
309
+ }, {
310
+ token : [
311
+ "storage.type", "punctuation.operator", "support.function",
312
+ "punctuation.operator", "entity.name.function", "text","keyword.operator"
313
+ ],
314
+ regex : "(" + identifierRe + ")(\\.)(prototype)(\\.)(" + identifierRe +")(\\s*)(=)",
315
+ next: "function_arguments"
316
+ }, {
317
+ token : [
318
+ "storage.type", "punctuation.operator", "entity.name.function", "text",
319
+ "keyword.operator", "text", "storage.type", "text", "paren.lparen"
320
+ ],
321
+ regex : "(" + identifierRe + ")(\\.)(" + identifierRe +")(\\s*)(=)(\\s*)(function)(\\s*)(\\()",
322
+ next: "function_arguments"
323
+ }, {
324
+ token : [
325
+ "entity.name.function", "text", "keyword.operator", "text", "storage.type",
326
+ "text", "paren.lparen"
327
+ ],
328
+ regex : "(" + identifierRe +")(\\s*)(=)(\\s*)(function)(\\s*)(\\()",
329
+ next: "function_arguments"
330
+ }, {
331
+ token : [
332
+ "storage.type", "punctuation.operator", "entity.name.function", "text",
333
+ "keyword.operator", "text",
334
+ "storage.type", "text", "entity.name.function", "text", "paren.lparen"
335
+ ],
336
+ regex : "(" + identifierRe + ")(\\.)(" + identifierRe +")(\\s*)(=)(\\s*)(function)(\\s+)(\\w+)(\\s*)(\\()",
337
+ next: "function_arguments"
338
+ }, {
339
+ token : [
340
+ "storage.type", "text", "entity.name.function", "text", "paren.lparen"
341
+ ],
342
+ regex : "(function)(\\s+)(" + identifierRe + ")(\\s*)(\\()",
343
+ next: "function_arguments"
344
+ }, {
345
+ token : [
346
+ "entity.name.function", "text", "punctuation.operator",
347
+ "text", "storage.type", "text", "paren.lparen"
348
+ ],
349
+ regex : "(" + identifierRe + ")(\\s*)(:)(\\s*)(function)(\\s*)(\\()",
350
+ next: "function_arguments"
351
+ }, {
352
+ token : [
353
+ "text", "text", "storage.type", "text", "paren.lparen"
354
+ ],
355
+ regex : "(:)(\\s*)(function)(\\s*)(\\()",
356
+ next: "function_arguments"
357
+ }, {
358
+ token : "keyword",
359
+ regex : "from(?=\\s*('|\"))"
360
+ }, {
361
+ token : "keyword",
362
+ regex : "(?:" + kwBeforeRe + ")\\b",
363
+ next : "start"
364
+ }, {
365
+ token : ["support.constant"],
366
+ regex : /that\b/
367
+ }, {
368
+ token : ["storage.type", "punctuation.operator", "support.function.firebug"],
369
+ regex : /(console)(\.)(warn|info|log|error|time|trace|timeEnd|assert)\b/
370
+ }, {
371
+ token : keywordMapper,
372
+ regex : identifierRe
373
+ }, {
374
+ token : "punctuation.operator",
375
+ regex : /[.](?![.])/,
376
+ next : "property"
377
+ }, {
378
+ token : "storage.type",
379
+ regex : /=>/,
380
+ next : "start"
381
+ }, {
382
+ token : "keyword.operator",
383
+ regex : /--|\+\+|\.{3}|===|==|=|!=|!==|<+=?|>+=?|!|&&|\|\||\?:|[!$%&*+\-~\/^]=?/,
384
+ next : "start"
385
+ }, {
386
+ token : "punctuation.operator",
387
+ regex : /[?:,;.]/,
388
+ next : "start"
389
+ }, {
390
+ token : "paren.lparen",
391
+ regex : /[\[({]/,
392
+ next : "start"
393
+ }, {
394
+ token : "paren.rparen",
395
+ regex : /[\])}]/
396
+ }, {
397
+ token: "comment",
398
+ regex: /^#!.*$/
399
+ }
400
+ ],
401
+ property: [{
402
+ token : "text",
403
+ regex : "\\s+"
404
+ }, {
405
+ token : [
406
+ "storage.type", "punctuation.operator", "entity.name.function", "text",
407
+ "keyword.operator", "text",
408
+ "storage.type", "text", "entity.name.function", "text", "paren.lparen"
409
+ ],
410
+ regex : "(" + identifierRe + ")(\\.)(" + identifierRe +")(\\s*)(=)(\\s*)(function)(?:(\\s+)(\\w+))?(\\s*)(\\()",
411
+ next: "function_arguments"
412
+ }, {
413
+ token : "punctuation.operator",
414
+ regex : /[.](?![.])/
415
+ }, {
416
+ token : "support.function",
417
+ 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(?=\()/
418
+ }, {
419
+ token : "support.function.dom",
420
+ 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(?=\()/
421
+ }, {
422
+ token : "support.constant",
423
+ 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/
424
+ }, {
425
+ token : "identifier",
426
+ regex : identifierRe
427
+ }, {
428
+ regex: "",
429
+ token: "empty",
430
+ next: "no_regex"
431
+ }
432
+ ],
433
+ "start": [
434
+ DocCommentHighlightRules.getStartRule("doc-start"),
435
+ comments("start"),
436
+ {
437
+ token: "string.regexp",
438
+ regex: "\\/",
439
+ next: "regex"
440
+ }, {
441
+ token : "text",
442
+ regex : "\\s+|^$",
443
+ next : "start"
444
+ }, {
445
+ token: "empty",
446
+ regex: "",
447
+ next: "no_regex"
448
+ }
449
+ ],
450
+ "regex": [
451
+ {
452
+ token: "regexp.keyword.operator",
453
+ regex: "\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"
454
+ }, {
455
+ token: "string.regexp",
456
+ regex: "/[sxngimy]*",
457
+ next: "no_regex"
458
+ }, {
459
+ token : "invalid",
460
+ regex: /\{\d+\b,?\d*\}[+*]|[+*$^?][+*]|[$^][?]|\?{3,}/
461
+ }, {
462
+ token : "constant.language.escape",
463
+ regex: /\(\?[:=!]|\)|\{\d+\b,?\d*\}|[+*]\?|[()$^+*?.]/
464
+ }, {
465
+ token : "constant.language.delimiter",
466
+ regex: /\|/
467
+ }, {
468
+ token: "constant.language.escape",
469
+ regex: /\[\^?/,
470
+ next: "regex_character_class"
471
+ }, {
472
+ token: "empty",
473
+ regex: "$",
474
+ next: "no_regex"
475
+ }, {
476
+ defaultToken: "string.regexp"
477
+ }
478
+ ],
479
+ "regex_character_class": [
480
+ {
481
+ token: "regexp.charclass.keyword.operator",
482
+ regex: "\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"
483
+ }, {
484
+ token: "constant.language.escape",
485
+ regex: "]",
486
+ next: "regex"
487
+ }, {
488
+ token: "constant.language.escape",
489
+ regex: "-"
490
+ }, {
491
+ token: "empty",
492
+ regex: "$",
493
+ next: "no_regex"
494
+ }, {
495
+ defaultToken: "string.regexp.charachterclass"
496
+ }
497
+ ],
498
+ "function_arguments": [
499
+ {
500
+ token: "variable.parameter",
501
+ regex: identifierRe
502
+ }, {
503
+ token: "punctuation.operator",
504
+ regex: "[, ]+"
505
+ }, {
506
+ token: "punctuation.operator",
507
+ regex: "$"
508
+ }, {
509
+ token: "empty",
510
+ regex: "",
511
+ next: "no_regex"
512
+ }
513
+ ],
514
+ "qqstring" : [
515
+ {
516
+ token : "constant.language.escape",
517
+ regex : escapedRe
518
+ }, {
519
+ token : "string",
520
+ regex : "\\\\$",
521
+ consumeLineEnd : true
522
+ }, {
523
+ token : "string",
524
+ regex : '"|$',
525
+ next : "no_regex"
526
+ }, {
527
+ defaultToken: "string"
528
+ }
529
+ ],
530
+ "qstring" : [
531
+ {
532
+ token : "constant.language.escape",
533
+ regex : escapedRe
534
+ }, {
535
+ token : "string",
536
+ regex : "\\\\$",
537
+ consumeLineEnd : true
538
+ }, {
539
+ token : "string",
540
+ regex : "'|$",
541
+ next : "no_regex"
542
+ }, {
543
+ defaultToken: "string"
544
+ }
545
+ ]
546
+ };
547
+
548
+
549
+ if (!options || !options.noES6) {
550
+ this.$rules.no_regex.unshift({
551
+ regex: "[{}]", onMatch: function(val, state, stack) {
552
+ this.next = val == "{" ? this.nextState : "";
553
+ if (val == "{" && stack.length) {
554
+ stack.unshift("start", state);
555
+ }
556
+ else if (val == "}" && stack.length) {
557
+ stack.shift();
558
+ this.next = stack.shift();
559
+ if (this.next.indexOf("string") != -1 || this.next.indexOf("jsx") != -1)
560
+ return "paren.quasi.end";
561
+ }
562
+ return val == "{" ? "paren.lparen" : "paren.rparen";
563
+ },
564
+ nextState: "start"
565
+ }, {
566
+ token : "string.quasi.start",
567
+ regex : /`/,
568
+ push : [{
569
+ token : "constant.language.escape",
570
+ regex : escapedRe
571
+ }, {
572
+ token : "paren.quasi.start",
573
+ regex : /\${/,
574
+ push : "start"
575
+ }, {
576
+ token : "string.quasi.end",
577
+ regex : /`/,
578
+ next : "pop"
579
+ }, {
580
+ defaultToken: "string.quasi"
581
+ }]
582
+ });
583
+
584
+ if (!options || options.jsx != false)
585
+ JSX.call(this);
586
+ }
587
+
588
+ this.embedRules(DocCommentHighlightRules, "doc-",
589
+ [ DocCommentHighlightRules.getEndRule("no_regex") ]);
590
+
591
+ this.normalizeRules();
592
+ };
593
+
594
+ oop.inherits(JavaScriptHighlightRules, TextHighlightRules);
595
+
596
+ function JSX() {
597
+ var tagRegex = identifierRe.replace("\\d", "\\d\\-");
598
+ var jsxTag = {
599
+ onMatch : function(val, state, stack) {
600
+ var offset = val.charAt(1) == "/" ? 2 : 1;
601
+ if (offset == 1) {
602
+ if (state != this.nextState)
603
+ stack.unshift(this.next, this.nextState, 0);
604
+ else
605
+ stack.unshift(this.next);
606
+ stack[2]++;
607
+ } else if (offset == 2) {
608
+ if (state == this.nextState) {
609
+ stack[1]--;
610
+ if (!stack[1] || stack[1] < 0) {
611
+ stack.shift();
612
+ stack.shift();
613
+ }
614
+ }
615
+ }
616
+ return [{
617
+ type: "meta.tag.punctuation." + (offset == 1 ? "" : "end-") + "tag-open.xml",
618
+ value: val.slice(0, offset)
619
+ }, {
620
+ type: "meta.tag.tag-name.xml",
621
+ value: val.substr(offset)
622
+ }];
623
+ },
624
+ regex : "</?" + tagRegex + "",
625
+ next: "jsxAttributes",
626
+ nextState: "jsx"
627
+ };
628
+ this.$rules.start.unshift(jsxTag);
629
+ var jsxJsRule = {
630
+ regex: "{",
631
+ token: "paren.quasi.start",
632
+ push: "start"
633
+ };
634
+ this.$rules.jsx = [
635
+ jsxJsRule,
636
+ jsxTag,
637
+ {include : "reference"},
638
+ {defaultToken: "string"}
639
+ ];
640
+ this.$rules.jsxAttributes = [{
641
+ token : "meta.tag.punctuation.tag-close.xml",
642
+ regex : "/?>",
643
+ onMatch : function(value, currentState, stack) {
644
+ if (currentState == stack[0])
645
+ stack.shift();
646
+ if (value.length == 2) {
647
+ if (stack[0] == this.nextState)
648
+ stack[1]--;
649
+ if (!stack[1] || stack[1] < 0) {
650
+ stack.splice(0, 2);
651
+ }
652
+ }
653
+ this.next = stack[0] || "start";
654
+ return [{type: this.token, value: value}];
655
+ },
656
+ nextState: "jsx"
657
+ },
658
+ jsxJsRule,
659
+ comments("jsxAttributes"),
660
+ {
661
+ token : "entity.other.attribute-name.xml",
662
+ regex : tagRegex
663
+ }, {
664
+ token : "keyword.operator.attribute-equals.xml",
665
+ regex : "="
666
+ }, {
667
+ token : "text.tag-whitespace.xml",
668
+ regex : "\\s+"
669
+ }, {
670
+ token : "string.attribute-value.xml",
671
+ regex : "'",
672
+ stateName : "jsx_attr_q",
673
+ push : [
674
+ {token : "string.attribute-value.xml", regex: "'", next: "pop"},
675
+ {include : "reference"},
676
+ {defaultToken : "string.attribute-value.xml"}
677
+ ]
678
+ }, {
679
+ token : "string.attribute-value.xml",
680
+ regex : '"',
681
+ stateName : "jsx_attr_qq",
682
+ push : [
683
+ {token : "string.attribute-value.xml", regex: '"', next: "pop"},
684
+ {include : "reference"},
685
+ {defaultToken : "string.attribute-value.xml"}
686
+ ]
687
+ },
688
+ jsxTag
689
+ ];
690
+ this.$rules.reference = [{
691
+ token : "constant.language.escape.reference.xml",
692
+ regex : "(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"
693
+ }];
694
+ }
695
+
696
+ function comments(next) {
697
+ return [
698
+ {
699
+ token : "comment", // multi line comment
700
+ regex : /\/\*/,
701
+ next: [
702
+ DocCommentHighlightRules.getTagRule(),
703
+ {token : "comment", regex : "\\*\\/", next : next || "pop"},
704
+ {defaultToken : "comment", caseInsensitive: true}
705
+ ]
706
+ }, {
707
+ token : "comment",
708
+ regex : "\\/\\/",
709
+ next: [
710
+ DocCommentHighlightRules.getTagRule(),
711
+ {token : "comment", regex : "$|^", next : next || "pop"},
712
+ {defaultToken : "comment", caseInsensitive: true}
713
+ ]
714
+ }
715
+ ];
716
+ }
717
+ exports.JavaScriptHighlightRules = JavaScriptHighlightRules;
718
+ });
719
+
720
+ ace.define("ace/mode/xml_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"], function(require, exports, module) {
721
+ "use strict";
722
+
723
+ var oop = require("../lib/oop");
724
+ var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
725
+
726
+ var XmlHighlightRules = function(normalize) {
727
+ var tagRegex = "[_:a-zA-Z\xc0-\uffff][-_:.a-zA-Z0-9\xc0-\uffff]*";
728
+
729
+ this.$rules = {
730
+ start : [
731
+ {token : "string.cdata.xml", regex : "<\\!\\[CDATA\\[", next : "cdata"},
732
+ {
733
+ token : ["punctuation.instruction.xml", "keyword.instruction.xml"],
734
+ regex : "(<\\?)(" + tagRegex + ")", next : "processing_instruction"
735
+ },
736
+ {token : "comment.start.xml", regex : "<\\!--", next : "comment"},
737
+ {
738
+ token : ["xml-pe.doctype.xml", "xml-pe.doctype.xml"],
739
+ regex : "(<\\!)(DOCTYPE)(?=[\\s])", next : "doctype", caseInsensitive: true
740
+ },
741
+ {include : "tag"},
742
+ {token : "text.end-tag-open.xml", regex: "</"},
743
+ {token : "text.tag-open.xml", regex: "<"},
744
+ {include : "reference"},
745
+ {defaultToken : "text.xml"}
746
+ ],
747
+
748
+ processing_instruction : [{
749
+ token : "entity.other.attribute-name.decl-attribute-name.xml",
750
+ regex : tagRegex
751
+ }, {
752
+ token : "keyword.operator.decl-attribute-equals.xml",
753
+ regex : "="
754
+ }, {
755
+ include: "whitespace"
756
+ }, {
757
+ include: "string"
758
+ }, {
759
+ token : "punctuation.xml-decl.xml",
760
+ regex : "\\?>",
761
+ next : "start"
762
+ }],
763
+
764
+ doctype : [
765
+ {include : "whitespace"},
766
+ {include : "string"},
767
+ {token : "xml-pe.doctype.xml", regex : ">", next : "start"},
768
+ {token : "xml-pe.xml", regex : "[-_a-zA-Z0-9:]+"},
769
+ {token : "punctuation.int-subset", regex : "\\[", push : "int_subset"}
770
+ ],
771
+
772
+ int_subset : [{
773
+ token : "text.xml",
774
+ regex : "\\s+"
775
+ }, {
776
+ token: "punctuation.int-subset.xml",
777
+ regex: "]",
778
+ next: "pop"
779
+ }, {
780
+ token : ["punctuation.markup-decl.xml", "keyword.markup-decl.xml"],
781
+ regex : "(<\\!)(" + tagRegex + ")",
782
+ push : [{
783
+ token : "text",
784
+ regex : "\\s+"
785
+ },
786
+ {
787
+ token : "punctuation.markup-decl.xml",
788
+ regex : ">",
789
+ next : "pop"
790
+ },
791
+ {include : "string"}]
792
+ }],
793
+
794
+ cdata : [
795
+ {token : "string.cdata.xml", regex : "\\]\\]>", next : "start"},
796
+ {token : "text.xml", regex : "\\s+"},
797
+ {token : "text.xml", regex : "(?:[^\\]]|\\](?!\\]>))+"}
798
+ ],
799
+
800
+ comment : [
801
+ {token : "comment.end.xml", regex : "-->", next : "start"},
802
+ {defaultToken : "comment.xml"}
803
+ ],
804
+
805
+ reference : [{
806
+ token : "constant.language.escape.reference.xml",
807
+ regex : "(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"
808
+ }],
809
+
810
+ attr_reference : [{
811
+ token : "constant.language.escape.reference.attribute-value.xml",
812
+ regex : "(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"
813
+ }],
814
+
815
+ tag : [{
816
+ token : ["meta.tag.punctuation.tag-open.xml", "meta.tag.punctuation.end-tag-open.xml", "meta.tag.tag-name.xml"],
817
+ regex : "(?:(<)|(</))((?:" + tagRegex + ":)?" + tagRegex + ")",
818
+ next: [
819
+ {include : "attributes"},
820
+ {token : "meta.tag.punctuation.tag-close.xml", regex : "/?>", next : "start"}
821
+ ]
822
+ }],
823
+
824
+ tag_whitespace : [
825
+ {token : "text.tag-whitespace.xml", regex : "\\s+"}
826
+ ],
827
+ whitespace : [
828
+ {token : "text.whitespace.xml", regex : "\\s+"}
829
+ ],
830
+ string: [{
831
+ token : "string.xml",
832
+ regex : "'",
833
+ push : [
834
+ {token : "string.xml", regex: "'", next: "pop"},
835
+ {defaultToken : "string.xml"}
836
+ ]
837
+ }, {
838
+ token : "string.xml",
839
+ regex : '"',
840
+ push : [
841
+ {token : "string.xml", regex: '"', next: "pop"},
842
+ {defaultToken : "string.xml"}
843
+ ]
844
+ }],
845
+
846
+ attributes: [{
847
+ token : "entity.other.attribute-name.xml",
848
+ regex : tagRegex
849
+ }, {
850
+ token : "keyword.operator.attribute-equals.xml",
851
+ regex : "="
852
+ }, {
853
+ include: "tag_whitespace"
854
+ }, {
855
+ include: "attribute_value"
856
+ }],
857
+
858
+ attribute_value: [{
859
+ token : "string.attribute-value.xml",
860
+ regex : "'",
861
+ push : [
862
+ {token : "string.attribute-value.xml", regex: "'", next: "pop"},
863
+ {include : "attr_reference"},
864
+ {defaultToken : "string.attribute-value.xml"}
865
+ ]
866
+ }, {
867
+ token : "string.attribute-value.xml",
868
+ regex : '"',
869
+ push : [
870
+ {token : "string.attribute-value.xml", regex: '"', next: "pop"},
871
+ {include : "attr_reference"},
872
+ {defaultToken : "string.attribute-value.xml"}
873
+ ]
874
+ }]
875
+ };
876
+
877
+ if (this.constructor === XmlHighlightRules)
878
+ this.normalizeRules();
879
+ };
880
+
881
+
882
+ (function() {
883
+
884
+ this.embedTagRules = function(HighlightRules, prefix, tag){
885
+ this.$rules.tag.unshift({
886
+ token : ["meta.tag.punctuation.tag-open.xml", "meta.tag." + tag + ".tag-name.xml"],
887
+ regex : "(<)(" + tag + "(?=\\s|>|$))",
888
+ next: [
889
+ {include : "attributes"},
890
+ {token : "meta.tag.punctuation.tag-close.xml", regex : "/?>", next : prefix + "start"}
891
+ ]
892
+ });
893
+
894
+ this.$rules[tag + "-end"] = [
895
+ {include : "attributes"},
896
+ {token : "meta.tag.punctuation.tag-close.xml", regex : "/?>", next: "start",
897
+ onMatch : function(value, currentState, stack) {
898
+ stack.splice(0);
899
+ return this.token;
900
+ }}
901
+ ];
902
+
903
+ this.embedRules(HighlightRules, prefix, [{
904
+ token: ["meta.tag.punctuation.end-tag-open.xml", "meta.tag." + tag + ".tag-name.xml"],
905
+ regex : "(</)(" + tag + "(?=\\s|>|$))",
906
+ next: tag + "-end"
907
+ }, {
908
+ token: "string.cdata.xml",
909
+ regex : "<\\!\\[CDATA\\["
910
+ }, {
911
+ token: "string.cdata.xml",
912
+ regex : "\\]\\]>"
913
+ }]);
914
+ };
915
+
916
+ }).call(TextHighlightRules.prototype);
917
+
918
+ oop.inherits(XmlHighlightRules, TextHighlightRules);
919
+
920
+ exports.XmlHighlightRules = XmlHighlightRules;
921
+ });
922
+
923
+ ace.define("ace/mode/html_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/css_highlight_rules","ace/mode/javascript_highlight_rules","ace/mode/xml_highlight_rules"], function(require, exports, module) {
924
+ "use strict";
925
+
926
+ var oop = require("../lib/oop");
927
+ var lang = require("../lib/lang");
928
+ var CssHighlightRules = require("./css_highlight_rules").CssHighlightRules;
929
+ var JavaScriptHighlightRules = require("./javascript_highlight_rules").JavaScriptHighlightRules;
930
+ var XmlHighlightRules = require("./xml_highlight_rules").XmlHighlightRules;
931
+
932
+ var tagMap = lang.createMap({
933
+ a : 'anchor',
934
+ button : 'form',
935
+ form : 'form',
936
+ img : 'image',
937
+ input : 'form',
938
+ label : 'form',
939
+ option : 'form',
940
+ script : 'script',
941
+ select : 'form',
942
+ textarea : 'form',
943
+ style : 'style',
944
+ table : 'table',
945
+ tbody : 'table',
946
+ td : 'table',
947
+ tfoot : 'table',
948
+ th : 'table',
949
+ tr : 'table'
950
+ });
951
+
952
+ var HtmlHighlightRules = function() {
953
+ XmlHighlightRules.call(this);
954
+
955
+ this.addRules({
956
+ attributes: [{
957
+ include : "tag_whitespace"
958
+ }, {
959
+ token : "entity.other.attribute-name.xml",
960
+ regex : "[-_a-zA-Z0-9:.]+"
961
+ }, {
962
+ token : "keyword.operator.attribute-equals.xml",
963
+ regex : "=",
964
+ push : [{
965
+ include: "tag_whitespace"
966
+ }, {
967
+ token : "string.unquoted.attribute-value.html",
968
+ regex : "[^<>='\"`\\s]+",
969
+ next : "pop"
970
+ }, {
971
+ token : "empty",
972
+ regex : "",
973
+ next : "pop"
974
+ }]
975
+ }, {
976
+ include : "attribute_value"
977
+ }],
978
+ tag: [{
979
+ token : function(start, tag) {
980
+ var group = tagMap[tag];
981
+ return ["meta.tag.punctuation." + (start == "<" ? "" : "end-") + "tag-open.xml",
982
+ "meta.tag" + (group ? "." + group : "") + ".tag-name.xml"];
983
+ },
984
+ regex : "(</?)([-_a-zA-Z0-9:.]+)",
985
+ next: "tag_stuff"
986
+ }],
987
+ tag_stuff: [
988
+ {include : "attributes"},
989
+ {token : "meta.tag.punctuation.tag-close.xml", regex : "/?>", next : "start"}
990
+ ]
991
+ });
992
+
993
+ this.embedTagRules(CssHighlightRules, "css-", "style");
994
+ this.embedTagRules(new JavaScriptHighlightRules({jsx: false}).getRules(), "js-", "script");
995
+
996
+ if (this.constructor === HtmlHighlightRules)
997
+ this.normalizeRules();
998
+ };
999
+
1000
+ oop.inherits(HtmlHighlightRules, XmlHighlightRules);
1001
+
1002
+ exports.HtmlHighlightRules = HtmlHighlightRules;
1003
+ });
1004
+
1005
+ ace.define("ace/mode/markdown_highlight_rules",["require","exports","module","ace/config","ace/lib/oop","ace/lib/lang","ace/mode/text_highlight_rules","ace/mode/html_highlight_rules"], function(require, exports, module) {
1006
+ "use strict";
1007
+
1008
+ var modes = require("../config").$modes;
1009
+
1010
+ var oop = require("../lib/oop");
1011
+ var lang = require("../lib/lang");
1012
+ var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
1013
+ var HtmlHighlightRules = require("./html_highlight_rules").HtmlHighlightRules;
1014
+
1015
+ var escaped = function(ch) {
1016
+ return "(?:[^" + lang.escapeRegExp(ch) + "\\\\]|\\\\.)*";
1017
+ };
1018
+
1019
+ var MarkdownHighlightRules = function() {
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
+ }];
1061
+
1062
+ this.$rules["start"].unshift({
1063
+ token : "empty_line",
1064
+ regex : '^$',
1065
+ next: "allowBlock"
1066
+ }, { // h1
1067
+ token: "markup.heading.1",
1068
+ regex: "^=+(?=\\s*$)"
1069
+ }, { // h2
1070
+ token: "markup.heading.2",
1071
+ regex: "^\\-+(?=\\s*$)"
1072
+ }, {
1073
+ token : function(value) {
1074
+ return "markup.heading." + value.length;
1075
+ },
1076
+ regex : /^#{1,6}(?=\s|$)/,
1077
+ next : "header"
1078
+ },
1079
+ codeBlockStartRule,
1080
+ { // block quote
1081
+ token : "string.blockquote",
1082
+ regex : "^\\s*>\\s*(?:[*+-]|\\d+\\.)?\\s+",
1083
+ next : "blockquote"
1084
+ }, { // HR * - _
1085
+ token : "constant",
1086
+ regex : "^ {0,3}(?:(?:\\* ?){3,}|(?:\\- ?){3,}|(?:\\_ ?){3,})\\s*$",
1087
+ next: "allowBlock"
1088
+ }, { // list
1089
+ token : "markup.list",
1090
+ regex : "^\\s{0,3}(?:[*+-]|\\d+\\.)\\s+",
1091
+ next : "listblock-start"
1092
+ }, {
1093
+ include : "basic"
1094
+ });
1095
+
1096
+ this.addRules({
1097
+ "basic" : [{
1098
+ token : "constant.language.escape",
1099
+ regex : /\\[\\`*_{}\[\]()#+\-.!]/
1100
+ }, { // code span `
1101
+ token : "support.function",
1102
+ regex : "(`+)(.*?[^`])(\\1)"
1103
+ }, { // reference
1104
+ token : ["text", "constant", "text", "url", "string", "text"],
1105
+ regex : "^([ ]{0,3}\\[)([^\\]]+)(\\]:\\s*)([^ ]+)(\\s*(?:[\"][^\"]+[\"])?(\\s*))$"
1106
+ }, { // link by reference
1107
+ token : ["text", "string", "text", "constant", "text"],
1108
+ regex : "(\\[)(" + escaped("]") + ")(\\]\\s*\\[)("+ escaped("]") + ")(\\])"
1109
+ }, { // link by url
1110
+ token : ["text", "string", "text", "markup.underline", "string", "text"],
1111
+ regex : "(\\!?\\[)(" + // [
1112
+ escaped("]") + // link text or alt text
1113
+ ")(\\]\\()"+ // ](
1114
+ '((?:[^\\)\\s\\\\]|\\\\.|\\s(?=[^"]))*)' + // href or image
1115
+ '(\\s*"' + escaped('"') + '"\\s*)?' + // "title"
1116
+ "(\\))" // )
1117
+ }, { // strong ** __
1118
+ token : "string.strong",
1119
+ regex : "([*]{2}|[_]{2}(?=\\S))(.*?\\S[*_]*)(\\1)"
1120
+ }, { // emphasis * _
1121
+ token : "string.emphasis",
1122
+ regex : "([*]|[_](?=\\S))(.*?\\S[*_]*)(\\1)"
1123
+ }, { //
1124
+ token : ["text", "url", "text"],
1125
+ regex : "(<)("+
1126
+ "(?:https?|ftp|dict):[^'\">\\s]+"+
1127
+ "|"+
1128
+ "(?:mailto:)?[-.\\w]+\\@[-a-z0-9]+(?:\\.[-a-z0-9]+)*\\.[a-z]+"+
1129
+ ")(>)"
1130
+ }],
1131
+ "allowBlock": [
1132
+ {token : "support.function", regex : "^ {4}.+", next : "allowBlock"},
1133
+ {token : "empty_line", regex : '^$', next: "allowBlock"},
1134
+ {token : "empty", regex : "", next : "start"}
1135
+ ],
1136
+
1137
+ "header" : [{
1138
+ regex: "$",
1139
+ next : "start"
1140
+ }, {
1141
+ include: "basic"
1142
+ }, {
1143
+ defaultToken : "heading"
1144
+ } ],
1145
+
1146
+ "listblock-start" : [{
1147
+ token : "support.variable",
1148
+ regex : /(?:\[[ x]\])?/,
1149
+ next : "listblock"
1150
+ }],
1151
+
1152
+ "listblock" : [ { // Lists only escape on completely blank lines.
1153
+ token : "empty_line",
1154
+ regex : "^$",
1155
+ next : "start"
1156
+ }, { // list
1157
+ token : "markup.list",
1158
+ regex : "^\\s{0,3}(?:[*+-]|\\d+\\.)\\s+",
1159
+ next : "listblock-start"
1160
+ }, {
1161
+ include : "basic", noEscape: true
1162
+ },
1163
+ codeBlockStartRule,
1164
+ {
1165
+ defaultToken : "list" //do not use markup.list to allow stling leading `*` differntly
1166
+ } ],
1167
+
1168
+ "blockquote" : [ { // Blockquotes only escape on blank lines.
1169
+ token : "empty_line",
1170
+ regex : "^\\s*$",
1171
+ next : "start"
1172
+ }, { // block quote
1173
+ token : "string.blockquote",
1174
+ regex : "^\\s*>\\s*(?:[*+-]|\\d+\\.)?\\s+",
1175
+ next : "blockquote"
1176
+ }, {
1177
+ include : "basic", noEscape: true
1178
+ }, {
1179
+ defaultToken : "string.blockquote"
1180
+ } ],
1181
+
1182
+ "githubblock" : codeBlockRules
1183
+ });
1184
+
1185
+ this.normalizeRules();
1186
+ };
1187
+ oop.inherits(MarkdownHighlightRules, TextHighlightRules);
1188
+
1189
+ exports.MarkdownHighlightRules = MarkdownHighlightRules;
1190
+ });
1191
+
1192
+ ace.define("ace/mode/scss_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text_highlight_rules","ace/mode/css_highlight_rules"], function(require, exports, module) {
1193
+ "use strict";
1194
+
1195
+ var oop = require("../lib/oop");
1196
+ var lang = require("../lib/lang");
1197
+ var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
1198
+ var CssHighlightRules = require("./css_highlight_rules");
1199
+
1200
+ var ScssHighlightRules = function() {
1201
+
1202
+ var properties = lang.arrayToMap(CssHighlightRules.supportType.split("|"));
1203
+
1204
+ var functions = lang.arrayToMap(
1205
+ ("hsl|hsla|rgb|rgba|url|attr|counter|counters|abs|adjust_color|adjust_hue|" +
1206
+ "alpha|join|blue|ceil|change_color|comparable|complement|darken|desaturate|" +
1207
+ "floor|grayscale|green|hue|if|invert|join|length|lighten|lightness|mix|" +
1208
+ "nth|opacify|opacity|percentage|quote|red|round|saturate|saturation|" +
1209
+ "scale_color|transparentize|type_of|unit|unitless|unquote").split("|")
1210
+ );
1211
+
1212
+ var constants = lang.arrayToMap(CssHighlightRules.supportConstant.split("|"));
1213
+
1214
+ var colors = lang.arrayToMap(CssHighlightRules.supportConstantColor.split("|"));
1215
+
1216
+ var keywords = lang.arrayToMap(
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("|")
1218
+ );
1219
+
1220
+ var tags = lang.arrayToMap(
1221
+ ("a|abbr|acronym|address|applet|area|article|aside|audio|b|base|basefont|bdo|" +
1222
+ "big|blockquote|body|br|button|canvas|caption|center|cite|code|col|colgroup|" +
1223
+ "command|datalist|dd|del|details|dfn|dir|div|dl|dt|em|embed|fieldset|" +
1224
+ "figcaption|figure|font|footer|form|frame|frameset|h1|h2|h3|h4|h5|h6|head|" +
1225
+ "header|hgroup|hr|html|i|iframe|img|input|ins|keygen|kbd|label|legend|li|" +
1226
+ "link|map|mark|menu|meta|meter|nav|noframes|noscript|object|ol|optgroup|" +
1227
+ "option|output|p|param|pre|progress|q|rp|rt|ruby|s|samp|script|section|select|" +
1228
+ "small|source|span|strike|strong|style|sub|summary|sup|table|tbody|td|" +
1229
+ "textarea|tfoot|th|thead|time|title|tr|tt|u|ul|var|video|wbr|xmp").split("|")
1230
+ );
1231
+
1232
+ var numRe = "\\-?(?:(?:[0-9]+)|(?:[0-9]*\\.[0-9]+))";
1233
+
1234
+ this.$rules = {
1235
+ "start" : [
1236
+ {
1237
+ token : "comment",
1238
+ regex : "\\/\\/.*$"
1239
+ },
1240
+ {
1241
+ token : "comment", // multi line comment
1242
+ regex : "\\/\\*",
1243
+ next : "comment"
1244
+ }, {
1245
+ token : "string", // single line
1246
+ regex : '["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]'
1247
+ }, {
1248
+ token : "string", // multi line string start
1249
+ regex : '["].*\\\\$',
1250
+ next : "qqstring"
1251
+ }, {
1252
+ token : "string", // single line
1253
+ regex : "['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"
1254
+ }, {
1255
+ token : "string", // multi line string start
1256
+ regex : "['].*\\\\$",
1257
+ next : "qstring"
1258
+ }, {
1259
+ token : "constant.numeric",
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|%)"
1261
+ }, {
1262
+ token : "constant.numeric", // hex6 color
1263
+ regex : "#[a-f0-9]{6}"
1264
+ }, {
1265
+ token : "constant.numeric", // hex3 color
1266
+ regex : "#[a-f0-9]{3}"
1267
+ }, {
1268
+ token : "constant.numeric",
1269
+ regex : numRe
1270
+ }, {
1271
+ token : ["support.function", "string", "support.function"],
1272
+ regex : "(url\\()(.*)(\\))"
1273
+ }, {
1274
+ token : function(value) {
1275
+ if (properties.hasOwnProperty(value.toLowerCase()))
1276
+ return "support.type";
1277
+ if (keywords.hasOwnProperty(value))
1278
+ return "keyword";
1279
+ else if (constants.hasOwnProperty(value))
1280
+ return "constant.language";
1281
+ else if (functions.hasOwnProperty(value))
1282
+ return "support.function";
1283
+ else if (colors.hasOwnProperty(value.toLowerCase()))
1284
+ return "support.constant.color";
1285
+ else if (tags.hasOwnProperty(value.toLowerCase()))
1286
+ return "variable.language";
1287
+ else
1288
+ return "text";
1289
+ },
1290
+ regex : "\\-?[@a-z_][@a-z0-9_\\-]*"
1291
+ }, {
1292
+ token : "variable",
1293
+ regex : "[a-z_\\-$][a-z0-9_\\-$]*\\b"
1294
+ }, {
1295
+ token: "variable.language",
1296
+ regex: "#[a-z0-9-_]+"
1297
+ }, {
1298
+ token: "variable.language",
1299
+ regex: "\\.[a-z0-9-_]+"
1300
+ }, {
1301
+ token: "variable.language",
1302
+ regex: ":[a-z0-9-_]+"
1303
+ }, {
1304
+ token: "constant",
1305
+ regex: "[a-z0-9-_]+"
1306
+ }, {
1307
+ token : "keyword.operator",
1308
+ regex : "<|>|<=|>=|==|!=|-|%|#|\\+|\\$|\\+|\\*"
1309
+ }, {
1310
+ token : "paren.lparen",
1311
+ regex : "[[({]"
1312
+ }, {
1313
+ token : "paren.rparen",
1314
+ regex : "[\\])}]"
1315
+ }, {
1316
+ token : "text",
1317
+ regex : "\\s+"
1318
+ }, {
1319
+ caseInsensitive: true
1320
+ }
1321
+ ],
1322
+ "comment" : [
1323
+ {
1324
+ token : "comment", // closing comment
1325
+ regex : "\\*\\/",
1326
+ next : "start"
1327
+ }, {
1328
+ defaultToken : "comment"
1329
+ }
1330
+ ],
1331
+ "qqstring" : [
1332
+ {
1333
+ token : "string",
1334
+ regex : '(?:(?:\\\\.)|(?:[^"\\\\]))*?"',
1335
+ next : "start"
1336
+ }, {
1337
+ token : "string",
1338
+ regex : '.+'
1339
+ }
1340
+ ],
1341
+ "qstring" : [
1342
+ {
1343
+ token : "string",
1344
+ regex : "(?:(?:\\\\.)|(?:[^'\\\\]))*?'",
1345
+ next : "start"
1346
+ }, {
1347
+ token : "string",
1348
+ regex : '.+'
1349
+ }
1350
+ ]
1351
+ };
1352
+ };
1353
+
1354
+ oop.inherits(ScssHighlightRules, TextHighlightRules);
1355
+
1356
+ exports.ScssHighlightRules = ScssHighlightRules;
1357
+
1358
+ });
1359
+
1360
+ ace.define("ace/mode/less_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules","ace/mode/css_highlight_rules"], function(require, exports, module) {
1361
+ "use strict";
1362
+
1363
+ var oop = require("../lib/oop");
1364
+ var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
1365
+ var CssHighlightRules = require('./css_highlight_rules');
1366
+
1367
+ var LessHighlightRules = function() {
1368
+
1369
+
1370
+ var keywordList = "@import|@media|@font-face|@keyframes|@-webkit-keyframes|@supports|" +
1371
+ "@charset|@plugin|@namespace|@document|@page|@viewport|@-ms-viewport|" +
1372
+ "or|and|when|not";
1373
+
1374
+ var keywords = keywordList.split('|');
1375
+
1376
+ var properties = CssHighlightRules.supportType.split('|');
1377
+
1378
+ var keywordMapper = this.createKeywordMapper({
1379
+ "support.constant": CssHighlightRules.supportConstant,
1380
+ "keyword": keywordList,
1381
+ "support.constant.color": CssHighlightRules.supportConstantColor,
1382
+ "support.constant.fonts": CssHighlightRules.supportConstantFonts
1383
+ }, "identifier", true);
1384
+
1385
+ var numRe = "\\-?(?:(?:[0-9]+)|(?:[0-9]*\\.[0-9]+))";
1386
+
1387
+ this.$rules = {
1388
+ "start" : [
1389
+ {
1390
+ token : "comment",
1391
+ regex : "\\/\\/.*$"
1392
+ },
1393
+ {
1394
+ token : "comment", // multi line comment
1395
+ regex : "\\/\\*",
1396
+ next : "comment"
1397
+ }, {
1398
+ token : "string", // single line
1399
+ regex : '["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]'
1400
+ }, {
1401
+ token : "string", // single line
1402
+ regex : "['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"
1403
+ }, {
1404
+ token : ["constant.numeric", "keyword"],
1405
+ 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|%)"
1406
+ }, {
1407
+ token : "constant.numeric", // hex6 color
1408
+ regex : "#[a-f0-9]{6}"
1409
+ }, {
1410
+ token : "constant.numeric", // hex3 color
1411
+ regex : "#[a-f0-9]{3}"
1412
+ }, {
1413
+ token : "constant.numeric",
1414
+ regex : numRe
1415
+ }, {
1416
+ token : ["support.function", "paren.lparen", "string", "paren.rparen"],
1417
+ regex : "(url)(\\()(.*)(\\))"
1418
+ }, {
1419
+ token : ["support.function", "paren.lparen"],
1420
+ regex : "(:extend|[a-z0-9_\\-]+)(\\()"
1421
+ }, {
1422
+ token : function(value) {
1423
+ if (keywords.indexOf(value.toLowerCase()) > -1)
1424
+ return "keyword";
1425
+ else
1426
+ return "variable";
1427
+ },
1428
+ regex : "[@\\$][a-z0-9_\\-@\\$]*\\b"
1429
+ }, {
1430
+ token : "variable",
1431
+ regex : "[@\\$]\\{[a-z0-9_\\-@\\$]*\\}"
1432
+ }, {
1433
+ token : function(first, second) {
1434
+ if(properties.indexOf(first.toLowerCase()) > -1) {
1435
+ return ["support.type.property", "text"];
1436
+ }
1437
+ else {
1438
+ return ["support.type.unknownProperty", "text"];
1439
+ }
1440
+ },
1441
+ regex : "([a-z0-9-_]+)(\\s*:)"
1442
+ }, {
1443
+ token : "keyword",
1444
+ regex : "&" // special case - always treat as keyword
1445
+ }, {
1446
+ token : keywordMapper,
1447
+ regex : "\\-?[@a-z_][@a-z0-9_\\-]*"
1448
+ }, {
1449
+ token: "variable.language",
1450
+ regex: "#[a-z0-9-_]+"
1451
+ }, {
1452
+ token: "variable.language",
1453
+ regex: "\\.[a-z0-9-_]+"
1454
+ }, {
1455
+ token: "variable.language",
1456
+ regex: ":[a-z_][a-z0-9-_]*"
1457
+ }, {
1458
+ token: "constant",
1459
+ regex: "[a-z0-9-_]+"
1460
+ }, {
1461
+ token : "keyword.operator",
1462
+ regex : "<|>|<=|>=|=|!=|-|%|\\+|\\*"
1463
+ }, {
1464
+ token : "paren.lparen",
1465
+ regex : "[[({]"
1466
+ }, {
1467
+ token : "paren.rparen",
1468
+ regex : "[\\])}]"
1469
+ }, {
1470
+ token : "text",
1471
+ regex : "\\s+"
1472
+ }, {
1473
+ caseInsensitive: true
1474
+ }
1475
+ ],
1476
+ "comment" : [
1477
+ {
1478
+ token : "comment", // closing comment
1479
+ regex : "\\*\\/",
1480
+ next : "start"
1481
+ }, {
1482
+ defaultToken : "comment"
1483
+ }
1484
+ ]
1485
+ };
1486
+ this.normalizeRules();
1487
+ };
1488
+
1489
+ oop.inherits(LessHighlightRules, TextHighlightRules);
1490
+
1491
+ exports.LessHighlightRules = LessHighlightRules;
1492
+
1493
+ });
1494
+
1495
+ ace.define("ace/mode/coffee_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"], function(require, exports, module) {
1496
+ "use strict";
1497
+
1498
+ var oop = require("../lib/oop");
1499
+ var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
1500
+
1501
+ oop.inherits(CoffeeHighlightRules, TextHighlightRules);
1502
+
1503
+ function CoffeeHighlightRules() {
1504
+ var identifier = "[$A-Za-z_\\x7f-\\uffff][$\\w\\x7f-\\uffff]*";
1505
+
1506
+ var keywords = (
1507
+ "this|throw|then|try|typeof|super|switch|return|break|by|continue|" +
1508
+ "catch|class|in|instanceof|is|isnt|if|else|extends|for|own|" +
1509
+ "finally|function|while|when|new|no|not|delete|debugger|do|loop|of|off|" +
1510
+ "or|on|unless|until|and|yes|yield|export|import|default"
1511
+ );
1512
+
1513
+ var langConstant = (
1514
+ "true|false|null|undefined|NaN|Infinity"
1515
+ );
1516
+
1517
+ var illegal = (
1518
+ "case|const|function|var|void|with|enum|implements|" +
1519
+ "interface|let|package|private|protected|public|static"
1520
+ );
1521
+
1522
+ var supportClass = (
1523
+ "Array|Boolean|Date|Function|Number|Object|RegExp|ReferenceError|String|" +
1524
+ "Error|EvalError|InternalError|RangeError|ReferenceError|StopIteration|" +
1525
+ "SyntaxError|TypeError|URIError|" +
1526
+ "ArrayBuffer|Float32Array|Float64Array|Int16Array|Int32Array|Int8Array|" +
1527
+ "Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray"
1528
+ );
1529
+
1530
+ var supportFunction = (
1531
+ "Math|JSON|isNaN|isFinite|parseInt|parseFloat|encodeURI|" +
1532
+ "encodeURIComponent|decodeURI|decodeURIComponent|String|"
1533
+ );
1534
+
1535
+ var variableLanguage = (
1536
+ "window|arguments|prototype|document"
1537
+ );
1538
+
1539
+ var keywordMapper = this.createKeywordMapper({
1540
+ "keyword": keywords,
1541
+ "constant.language": langConstant,
1542
+ "invalid.illegal": illegal,
1543
+ "language.support.class": supportClass,
1544
+ "language.support.function": supportFunction,
1545
+ "variable.language": variableLanguage
1546
+ }, "identifier");
1547
+
1548
+ var functionRule = {
1549
+ token: ["paren.lparen", "variable.parameter", "paren.rparen", "text", "storage.type"],
1550
+ regex: /(?:(\()((?:"[^")]*?"|'[^')]*?'|\/[^\/)]*?\/|[^()"'\/])*?)(\))(\s*))?([\-=]>)/.source
1551
+ };
1552
+
1553
+ var stringEscape = /\\(?:x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|[0-2][0-7]{0,2}|3[0-6][0-7]?|37[0-7]?|[4-7][0-7]?|.)/;
1554
+
1555
+ this.$rules = {
1556
+ start : [
1557
+ {
1558
+ token : "constant.numeric",
1559
+ regex : "(?:0x[\\da-fA-F]+|(?:\\d+(?:\\.\\d+)?|\\.\\d+)(?:[eE][+-]?\\d+)?)"
1560
+ }, {
1561
+ stateName: "qdoc",
1562
+ token : "string", regex : "'''", next : [
1563
+ {token : "string", regex : "'''", next : "start"},
1564
+ {token : "constant.language.escape", regex : stringEscape},
1565
+ {defaultToken: "string"}
1566
+ ]
1567
+ }, {
1568
+ stateName: "qqdoc",
1569
+ token : "string",
1570
+ regex : '"""',
1571
+ next : [
1572
+ {token : "string", regex : '"""', next : "start"},
1573
+ {token : "paren.string", regex : '#{', push : "start"},
1574
+ {token : "constant.language.escape", regex : stringEscape},
1575
+ {defaultToken: "string"}
1576
+ ]
1577
+ }, {
1578
+ stateName: "qstring",
1579
+ token : "string", regex : "'", next : [
1580
+ {token : "string", regex : "'", next : "start"},
1581
+ {token : "constant.language.escape", regex : stringEscape},
1582
+ {defaultToken: "string"}
1583
+ ]
1584
+ }, {
1585
+ stateName: "qqstring",
1586
+ token : "string.start", regex : '"', next : [
1587
+ {token : "string.end", regex : '"', next : "start"},
1588
+ {token : "paren.string", regex : '#{', push : "start"},
1589
+ {token : "constant.language.escape", regex : stringEscape},
1590
+ {defaultToken: "string"}
1591
+ ]
1592
+ }, {
1593
+ stateName: "js",
1594
+ token : "string", regex : "`", next : [
1595
+ {token : "string", regex : "`", next : "start"},
1596
+ {token : "constant.language.escape", regex : stringEscape},
1597
+ {defaultToken: "string"}
1598
+ ]
1599
+ }, {
1600
+ regex: "[{}]", onMatch: function(val, state, stack) {
1601
+ this.next = "";
1602
+ if (val == "{" && stack.length) {
1603
+ stack.unshift("start", state);
1604
+ return "paren";
1605
+ }
1606
+ if (val == "}" && stack.length) {
1607
+ stack.shift();
1608
+ this.next = stack.shift() || "";
1609
+ if (this.next.indexOf("string") != -1)
1610
+ return "paren.string";
1611
+ }
1612
+ return "paren";
1613
+ }
1614
+ }, {
1615
+ token : "string.regex",
1616
+ regex : "///",
1617
+ next : "heregex"
1618
+ }, {
1619
+ token : "string.regex",
1620
+ regex : /(?:\/(?![\s=])[^[\/\n\\]*(?:(?:\\[\s\S]|\[[^\]\n\\]*(?:\\[\s\S][^\]\n\\]*)*])[^[\/\n\\]*)*\/)(?:[imgy]{0,4})(?!\w)/
1621
+ }, {
1622
+ token : "comment",
1623
+ regex : "###(?!#)",
1624
+ next : "comment"
1625
+ }, {
1626
+ token : "comment",
1627
+ regex : "#.*"
1628
+ }, {
1629
+ token : ["punctuation.operator", "text", "identifier"],
1630
+ regex : "(\\.)(\\s*)(" + illegal + ")"
1631
+ }, {
1632
+ token : "punctuation.operator",
1633
+ regex : "\\.{1,3}"
1634
+ }, {
1635
+ token : ["keyword", "text", "language.support.class",
1636
+ "text", "keyword", "text", "language.support.class"],
1637
+ regex : "(class)(\\s+)(" + identifier + ")(?:(\\s+)(extends)(\\s+)(" + identifier + "))?"
1638
+ }, {
1639
+ token : ["entity.name.function", "text", "keyword.operator", "text"].concat(functionRule.token),
1640
+ regex : "(" + identifier + ")(\\s*)([=:])(\\s*)" + functionRule.regex
1641
+ },
1642
+ functionRule,
1643
+ {
1644
+ token : "variable",
1645
+ regex : "@(?:" + identifier + ")?"
1646
+ }, {
1647
+ token: keywordMapper,
1648
+ regex : identifier
1649
+ }, {
1650
+ token : "punctuation.operator",
1651
+ regex : "\\,|\\."
1652
+ }, {
1653
+ token : "storage.type",
1654
+ regex : "[\\-=]>"
1655
+ }, {
1656
+ token : "keyword.operator",
1657
+ regex : "(?:[-+*/%<>&|^!?=]=|>>>=?|\\-\\-|\\+\\+|::|&&=|\\|\\|=|<<=|>>=|\\?\\.|\\.{2,3}|[!*+-=><])"
1658
+ }, {
1659
+ token : "paren.lparen",
1660
+ regex : "[({[]"
1661
+ }, {
1662
+ token : "paren.rparen",
1663
+ regex : "[\\]})]"
1664
+ }, {
1665
+ token : "text",
1666
+ regex : "\\s+"
1667
+ }],
1668
+
1669
+
1670
+ heregex : [{
1671
+ token : "string.regex",
1672
+ regex : '.*?///[imgy]{0,4}',
1673
+ next : "start"
1674
+ }, {
1675
+ token : "comment.regex",
1676
+ regex : "\\s+(?:#.*)?"
1677
+ }, {
1678
+ token : "string.regex",
1679
+ regex : "\\S+"
1680
+ }],
1681
+
1682
+ comment : [{
1683
+ token : "comment",
1684
+ regex : '###',
1685
+ next : "start"
1686
+ }, {
1687
+ defaultToken : "comment"
1688
+ }]
1689
+ };
1690
+ this.normalizeRules();
1691
+ }
1692
+
1693
+ exports.CoffeeHighlightRules = CoffeeHighlightRules;
1694
+ });
1695
+
1696
+ ace.define("ace/mode/jade_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules","ace/mode/markdown_highlight_rules","ace/mode/scss_highlight_rules","ace/mode/less_highlight_rules","ace/mode/coffee_highlight_rules","ace/mode/javascript_highlight_rules"], function(require, exports, module) {
1697
+ "use strict";
1698
+
1699
+ var oop = require("../lib/oop");
1700
+ var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
1701
+ var MarkdownHighlightRules = require("./markdown_highlight_rules").MarkdownHighlightRules;
1702
+ var SassHighlightRules = require("./scss_highlight_rules").ScssHighlightRules;
1703
+ var LessHighlightRules = require("./less_highlight_rules").LessHighlightRules;
1704
+ var CoffeeHighlightRules = require("./coffee_highlight_rules").CoffeeHighlightRules;
1705
+ var JavaScriptHighlightRules = require("./javascript_highlight_rules").JavaScriptHighlightRules;
1706
+
1707
+ function mixin_embed(tag, prefix) {
1708
+ return {
1709
+ token : "entity.name.function.jade",
1710
+ regex : "^\\s*\\:" + tag,
1711
+ next : prefix + "start"
1712
+ };
1713
+ }
1714
+
1715
+ var JadeHighlightRules = function() {
1716
+
1717
+ var escapedRe = "\\\\(?:x[0-9a-fA-F]{2}|" + // hex
1718
+ "u[0-9a-fA-F]{4}|" + // unicode
1719
+ "[0-2][0-7]{0,2}|" + // oct
1720
+ "3[0-6][0-7]?|" + // oct
1721
+ "37[0-7]?|" + // oct
1722
+ "[4-7][0-7]?|" + //oct
1723
+ ".)";
1724
+
1725
+ this.$rules =
1726
+ {
1727
+ "start": [
1728
+ {
1729
+ token: "keyword.control.import.include.jade",
1730
+ regex: "\\s*\\binclude\\b"
1731
+ },
1732
+ {
1733
+ token: "keyword.other.doctype.jade",
1734
+ regex: "^!!!\\s*(?:[a-zA-Z0-9-_]+)?"
1735
+ },
1736
+ {
1737
+ onMatch: function(value, currentState, stack) {
1738
+ stack.unshift(this.next, value.length - 2, currentState);
1739
+ return "comment";
1740
+ },
1741
+ regex: /^\s*\/\//,
1742
+ next: "comment_block"
1743
+ },
1744
+ mixin_embed("markdown", "markdown-"),
1745
+ mixin_embed("sass", "sass-"),
1746
+ mixin_embed("less", "less-"),
1747
+ mixin_embed("coffee", "coffee-"),
1748
+ {
1749
+ token: [ "storage.type.function.jade",
1750
+ "entity.name.function.jade",
1751
+ "punctuation.definition.parameters.begin.jade",
1752
+ "variable.parameter.function.jade",
1753
+ "punctuation.definition.parameters.end.jade"
1754
+ ],
1755
+ regex: "^(\\s*mixin)( [\\w\\-]+)(\\s*\\()(.*?)(\\))"
1756
+ },
1757
+ {
1758
+ token: [ "storage.type.function.jade", "entity.name.function.jade"],
1759
+ regex: "^(\\s*mixin)( [\\w\\-]+)"
1760
+ },
1761
+ {
1762
+ token: "source.js.embedded.jade",
1763
+ regex: "^\\s*(?:-|=|!=)",
1764
+ next: "js-start"
1765
+ },
1766
+ {
1767
+ token: "string.interpolated.jade",
1768
+ regex: "[#!]\\{[^\\}]+\\}"
1769
+ },
1770
+ {
1771
+ token: "meta.tag.any.jade",
1772
+ regex: /^\s*(?!\w+:)(?:[\w-]+|(?=\.|#)])/,
1773
+ next: "tag_single"
1774
+ },
1775
+ {
1776
+ token: "suport.type.attribute.id.jade",
1777
+ regex: "#\\w+"
1778
+ },
1779
+ {
1780
+ token: "suport.type.attribute.class.jade",
1781
+ regex: "\\.\\w+"
1782
+ },
1783
+ {
1784
+ token: "punctuation",
1785
+ regex: "\\s*(?:\\()",
1786
+ next: "tag_attributes"
1787
+ }
1788
+ ],
1789
+ "comment_block": [
1790
+ {regex: /^\s*(?:\/\/)?/, onMatch: function(value, currentState, stack) {
1791
+ if (value.length <= stack[1]) {
1792
+ if (value.slice(-1) == "/") {
1793
+ stack[1] = value.length - 2;
1794
+ this.next = "";
1795
+ return "comment";
1796
+ }
1797
+ stack.shift();
1798
+ stack.shift();
1799
+ this.next = stack.shift();
1800
+ return "text";
1801
+ } else {
1802
+ this.next = "";
1803
+ return "comment";
1804
+ }
1805
+ }, next: "start"},
1806
+ {defaultToken: "comment"}
1807
+ ],
1808
+ "tag_single": [
1809
+ {
1810
+ token: "entity.other.attribute-name.class.jade",
1811
+ regex: "\\.[\\w-]+"
1812
+ },
1813
+ {
1814
+ token: "entity.other.attribute-name.id.jade",
1815
+ regex: "#[\\w-]+"
1816
+ },
1817
+ {
1818
+ token: ["text", "punctuation"],
1819
+ regex: "($)|((?!\\.|#|=|-))",
1820
+ next: "start"
1821
+ }
1822
+ ],
1823
+ "tag_attributes": [
1824
+ {
1825
+ token : "string",
1826
+ regex : "'(?=.)",
1827
+ next : "qstring"
1828
+ },
1829
+ {
1830
+ token : "string",
1831
+ regex : '"(?=.)',
1832
+ next : "qqstring"
1833
+ },
1834
+ {
1835
+ token: ["entity.other.attribute-name.jade", "punctuation"],
1836
+ regex: "([a-zA-Z:\\.-]+)(=)?",
1837
+ next: "attribute_strings"
1838
+ },
1839
+ {
1840
+ token: "punctuation",
1841
+ regex: "\\)",
1842
+ next: "start"
1843
+ }
1844
+ ],
1845
+ "attribute_strings": [
1846
+ {
1847
+ token : "string",
1848
+ regex : "'(?=.)",
1849
+ next : "qstring"
1850
+ },
1851
+ {
1852
+ token : "string",
1853
+ regex : '"(?=.)',
1854
+ next : "qqstring"
1855
+ },
1856
+ {
1857
+ token : "string",
1858
+ regex : '(?=\\S)',
1859
+ next : "tag_attributes"
1860
+ }
1861
+ ],
1862
+ "qqstring" : [
1863
+ {
1864
+ token : "constant.language.escape",
1865
+ regex : escapedRe
1866
+ }, {
1867
+ token : "string",
1868
+ regex : '[^"\\\\]+'
1869
+ }, {
1870
+ token : "string",
1871
+ regex : "\\\\$",
1872
+ next : "qqstring"
1873
+ }, {
1874
+ token : "string",
1875
+ regex : '"|$',
1876
+ next : "tag_attributes"
1877
+ }
1878
+ ],
1879
+ "qstring" : [
1880
+ {
1881
+ token : "constant.language.escape",
1882
+ regex : escapedRe
1883
+ }, {
1884
+ token : "string",
1885
+ regex : "[^'\\\\]+"
1886
+ }, {
1887
+ token : "string",
1888
+ regex : "\\\\$",
1889
+ next : "qstring"
1890
+ }, {
1891
+ token : "string",
1892
+ regex : "'|$",
1893
+ next : "tag_attributes"
1894
+ }
1895
+ ]
1896
+ };
1897
+
1898
+ this.embedRules(JavaScriptHighlightRules, "js-", [{
1899
+ token: "text",
1900
+ regex: ".$",
1901
+ next: "start"
1902
+ }]);
1903
+ };
1904
+
1905
+ oop.inherits(JadeHighlightRules, TextHighlightRules);
1906
+
1907
+ exports.JadeHighlightRules = JadeHighlightRules;
1908
+ });
1909
+
1910
+ ace.define("ace/mode/folding/coffee",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode","ace/range"], function(require, exports, module) {
1911
+ "use strict";
1912
+
1913
+ var oop = require("../../lib/oop");
1914
+ var BaseFoldMode = require("./fold_mode").FoldMode;
1915
+ var Range = require("../../range").Range;
1916
+
1917
+ var FoldMode = exports.FoldMode = function() {};
1918
+ oop.inherits(FoldMode, BaseFoldMode);
1919
+
1920
+ (function() {
1921
+
1922
+ this.getFoldWidgetRange = function(session, foldStyle, row) {
1923
+ var range = this.indentationBlock(session, row);
1924
+ if (range)
1925
+ return range;
1926
+
1927
+ var re = /\S/;
1928
+ var line = session.getLine(row);
1929
+ var startLevel = line.search(re);
1930
+ if (startLevel == -1 || line[startLevel] != "#")
1931
+ return;
1932
+
1933
+ var startColumn = line.length;
1934
+ var maxRow = session.getLength();
1935
+ var startRow = row;
1936
+ var endRow = row;
1937
+
1938
+ while (++row < maxRow) {
1939
+ line = session.getLine(row);
1940
+ var level = line.search(re);
1941
+
1942
+ if (level == -1)
1943
+ continue;
1944
+
1945
+ if (line[level] != "#")
1946
+ break;
1947
+
1948
+ endRow = row;
1949
+ }
1950
+
1951
+ if (endRow > startRow) {
1952
+ var endColumn = session.getLine(endRow).length;
1953
+ return new Range(startRow, startColumn, endRow, endColumn);
1954
+ }
1955
+ };
1956
+ this.getFoldWidget = function(session, foldStyle, row) {
1957
+ var line = session.getLine(row);
1958
+ var indent = line.search(/\S/);
1959
+ var next = session.getLine(row + 1);
1960
+ var prev = session.getLine(row - 1);
1961
+ var prevIndent = prev.search(/\S/);
1962
+ var nextIndent = next.search(/\S/);
1963
+
1964
+ if (indent == -1) {
1965
+ session.foldWidgets[row - 1] = prevIndent!= -1 && prevIndent < nextIndent ? "start" : "";
1966
+ return "";
1967
+ }
1968
+ if (prevIndent == -1) {
1969
+ if (indent == nextIndent && line[indent] == "#" && next[indent] == "#") {
1970
+ session.foldWidgets[row - 1] = "";
1971
+ session.foldWidgets[row + 1] = "";
1972
+ return "start";
1973
+ }
1974
+ } else if (prevIndent == indent && line[indent] == "#" && prev[indent] == "#") {
1975
+ if (session.getLine(row - 2).search(/\S/) == -1) {
1976
+ session.foldWidgets[row - 1] = "start";
1977
+ session.foldWidgets[row + 1] = "";
1978
+ return "";
1979
+ }
1980
+ }
1981
+
1982
+ if (prevIndent!= -1 && prevIndent < indent)
1983
+ session.foldWidgets[row - 1] = "start";
1984
+ else
1985
+ session.foldWidgets[row - 1] = "";
1986
+
1987
+ if (indent < nextIndent)
1988
+ return "start";
1989
+ else
1990
+ return "";
1991
+ };
1992
+
1993
+ }).call(FoldMode.prototype);
1994
+
1995
+ });
1996
+
1997
+ ace.define("ace/mode/jade",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/jade_highlight_rules","ace/mode/folding/coffee"], function(require, exports, module) {
1998
+ "use strict";
1999
+
2000
+ var oop = require("../lib/oop");
2001
+ var TextMode = require("./text").Mode;
2002
+ var JadeHighlightRules = require("./jade_highlight_rules").JadeHighlightRules;
2003
+ var FoldMode = require("./folding/coffee").FoldMode;
2004
+
2005
+ var Mode = function() {
2006
+ this.HighlightRules = JadeHighlightRules;
2007
+ this.foldingRules = new FoldMode();
2008
+ this.$behaviour = this.$defaultBehaviour;
2009
+ };
2010
+ oop.inherits(Mode, TextMode);
2011
+
2012
+ (function() {
2013
+ this.lineCommentStart = "//";
2014
+ this.$id = "ace/mode/jade";
2015
+ }).call(Mode.prototype);
2016
+
2017
+ exports.Mode = Mode;
2018
+ }); (function() {
2019
+ ace.require(["ace/mode/jade"], function(m) {
2020
+ if (typeof module == "object" && typeof exports == "object" && module) {
2021
+ module.exports = m;
2022
+ }
2023
+ });
2024
+ })();
2025
+