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,1003 @@
1
+ ace.define("ace/mode/ruby_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"], function(require, exports, module) {
2
+ "use strict";
3
+
4
+ var oop = require("../lib/oop");
5
+ var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
6
+ var constantOtherSymbol = exports.constantOtherSymbol = {
7
+ token : "constant.other.symbol.ruby", // symbol
8
+ regex : "[:](?:[A-Za-z_]|[@$](?=[a-zA-Z0-9_]))[a-zA-Z0-9_]*[!=?]?"
9
+ };
10
+
11
+ exports.qString = {
12
+ token : "string", // single line
13
+ regex : "['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"
14
+ };
15
+
16
+ exports.qqString = {
17
+ token : "string", // single line
18
+ regex : '["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]'
19
+ };
20
+
21
+ exports.tString = {
22
+ token : "string", // backtick string
23
+ regex : "[`](?:(?:\\\\.)|(?:[^'\\\\]))*?[`]"
24
+ };
25
+
26
+ var constantNumericHex = exports.constantNumericHex = {
27
+ token : "constant.numeric", // hex
28
+ regex : "0[xX][0-9a-fA-F](?:[0-9a-fA-F]|_(?=[0-9a-fA-F]))*\\b"
29
+ };
30
+
31
+ var constantNumericBinary = exports.constantNumericBinary = {
32
+ token: "constant.numeric",
33
+ regex: /\b(0[bB][01](?:[01]|_(?=[01]))*)\b/
34
+ };
35
+
36
+ var constantNumericDecimal = exports.constantNumericDecimal = {
37
+ token: "constant.numeric",
38
+ regex: /\b(0[dD](?:[1-9](?:[\d]|_(?=[\d]))*|0))\b/
39
+ };
40
+
41
+ var constantNumericOctal = exports.constantNumericDecimal = {
42
+ token: "constant.numeric",
43
+ regex: /\b(0[oO]?(?:[1-7](?:[0-7]|_(?=[0-7]))*|0))\b/
44
+ };
45
+
46
+ var constantNumericRational = exports.constantNumericRational = {
47
+ token: "constant.numeric", //rational + complex
48
+ regex: /\b([\d]+(?:[./][\d]+)?ri?)\b/
49
+ };
50
+
51
+ var constantNumericComplex = exports.constantNumericComplex = {
52
+ token: "constant.numeric", //simple complex numbers
53
+ regex: /\b([\d]i)\b/
54
+ };
55
+
56
+ var constantNumericFloat = exports.constantNumericFloat = {
57
+ token : "constant.numeric", // float + complex
58
+ regex : "[+-]?\\d(?:\\d|_(?=\\d))*(?:(?:\\.\\d(?:\\d|_(?=\\d))*)?(?:[eE][+-]?\\d+)?)?i?\\b"
59
+ };
60
+
61
+ var instanceVariable = exports.instanceVariable = {
62
+ token : "variable.instance", // instance variable
63
+ regex : "@{1,2}[a-zA-Z_\\d]+"
64
+ };
65
+
66
+ var RubyHighlightRules = function() {
67
+
68
+ var builtinFunctions = (
69
+ "abort|Array|assert|assert_equal|assert_not_equal|assert_same|assert_not_same|" +
70
+ "assert_nil|assert_not_nil|assert_match|assert_no_match|assert_in_delta|assert_throws|" +
71
+ "assert_raise|assert_nothing_raised|assert_instance_of|assert_kind_of|assert_respond_to|" +
72
+ "assert_operator|assert_send|assert_difference|assert_no_difference|assert_recognizes|" +
73
+ "assert_generates|assert_response|assert_redirected_to|assert_template|assert_select|" +
74
+ "assert_select_email|assert_select_rjs|assert_select_encoded|css_select|at_exit|" +
75
+ "attr|attr_writer|attr_reader|attr_accessor|attr_accessible|autoload|binding|block_given?|callcc|" +
76
+ "caller|catch|chomp|chomp!|chop|chop!|defined?|delete_via_redirect|eval|exec|exit|" +
77
+ "exit!|fail|Float|flunk|follow_redirect!|fork|form_for|form_tag|format|gets|global_variables|gsub|" +
78
+ "gsub!|get_via_redirect|host!|https?|https!|include|Integer|lambda|link_to|" +
79
+ "link_to_unless_current|link_to_function|link_to_remote|load|local_variables|loop|open|open_session|" +
80
+ "p|print|printf|proc|putc|puts|post_via_redirect|put_via_redirect|raise|rand|" +
81
+ "raw|readline|readlines|redirect?|request_via_redirect|require|scan|select|" +
82
+ "set_trace_func|sleep|split|sprintf|srand|String|stylesheet_link_tag|syscall|system|sub|sub!|test|" +
83
+ "throw|trace_var|trap|untrace_var|atan2|cos|exp|frexp|ldexp|log|log10|sin|sqrt|tan|" +
84
+ "render|javascript_include_tag|csrf_meta_tag|label_tag|text_field_tag|submit_tag|check_box_tag|" +
85
+ "content_tag|radio_button_tag|text_area_tag|password_field_tag|hidden_field_tag|" +
86
+ "fields_for|select_tag|options_for_select|options_from_collection_for_select|collection_select|" +
87
+ "time_zone_select|select_date|select_time|select_datetime|date_select|time_select|datetime_select|" +
88
+ "select_year|select_month|select_day|select_hour|select_minute|select_second|file_field_tag|" +
89
+ "file_field|respond_to|skip_before_filter|around_filter|after_filter|verify|" +
90
+ "protect_from_forgery|rescue_from|helper_method|redirect_to|before_filter|" +
91
+ "send_data|send_file|validates_presence_of|validates_uniqueness_of|validates_length_of|" +
92
+ "validates_format_of|validates_acceptance_of|validates_associated|validates_exclusion_of|" +
93
+ "validates_inclusion_of|validates_numericality_of|validates_with|validates_each|" +
94
+ "authenticate_or_request_with_http_basic|authenticate_or_request_with_http_digest|" +
95
+ "filter_parameter_logging|match|get|post|resources|redirect|scope|assert_routing|" +
96
+ "translate|localize|extract_locale_from_tld|caches_page|expire_page|caches_action|expire_action|" +
97
+ "cache|expire_fragment|expire_cache_for|observe|cache_sweeper|" +
98
+ "has_many|has_one|belongs_to|has_and_belongs_to_many|p|warn|refine|using|module_function|extend|alias_method|" +
99
+ "private_class_method|remove_method|undef_method"
100
+ );
101
+
102
+ var keywords = (
103
+ "alias|and|BEGIN|begin|break|case|class|def|defined|do|else|elsif|END|end|ensure|" +
104
+ "__FILE__|finally|for|gem|if|in|__LINE__|module|next|not|or|private|protected|public|" +
105
+ "redo|rescue|retry|return|super|then|undef|unless|until|when|while|yield|__ENCODING__|prepend"
106
+ );
107
+
108
+ var buildinConstants = (
109
+ "true|TRUE|false|FALSE|nil|NIL|ARGF|ARGV|DATA|ENV|RUBY_PLATFORM|RUBY_RELEASE_DATE|" +
110
+ "RUBY_VERSION|STDERR|STDIN|STDOUT|TOPLEVEL_BINDING|RUBY_PATCHLEVEL|RUBY_REVISION|RUBY_COPYRIGHT|RUBY_ENGINE|RUBY_ENGINE_VERSION|RUBY_DESCRIPTION"
111
+ );
112
+
113
+ var builtinVariables = (
114
+ "$DEBUG|$defout|$FILENAME|$LOAD_PATH|$SAFE|$stdin|$stdout|$stderr|$VERBOSE|" +
115
+ "$!|root_url|flash|session|cookies|params|request|response|logger|self"
116
+ );
117
+
118
+ var keywordMapper = this.$keywords = this.createKeywordMapper({
119
+ "keyword": keywords,
120
+ "constant.language": buildinConstants,
121
+ "variable.language": builtinVariables,
122
+ "support.function": builtinFunctions,
123
+ "invalid.deprecated": "debugger" // TODO is this a remnant from js mode?
124
+ }, "identifier");
125
+
126
+ var escapedChars = "\\\\(?:n(?:[1-7][0-7]{0,2}|0)|[nsrtvfbae'\"\\\\]|c(?:\\\\M-)?.|M-(?:\\\\C-|\\\\c)?.|C-(?:\\\\M-)?.|[0-7]{3}|x[\\da-fA-F]{2}|u[\\da-fA-F]{4}|u{[\\da-fA-F]{1,6}(?:\\s[\\da-fA-F]{1,6})*})";
127
+
128
+ var closeParen = {
129
+ "(": ")",
130
+ "[": "]",
131
+ "{": "}",
132
+ "<": ">",
133
+ "^": "^",
134
+ "|": "|",
135
+ "%": "%"
136
+ };
137
+
138
+ this.$rules = {
139
+ "start": [
140
+ {
141
+ token: "comment",
142
+ regex: "#.*$"
143
+ }, {
144
+ token: "comment.multiline", // multi line comment
145
+ regex: "^=begin(?=$|\\s.*$)",
146
+ next: "comment"
147
+ }, {
148
+ token: "string.regexp",
149
+ regex: /[/](?=.*\/)/,
150
+ next: "regex"
151
+ },
152
+
153
+ [{
154
+ token: ["constant.other.symbol.ruby", "string.start"],
155
+ regex: /(:)?(")/,
156
+ push: [{
157
+ token: "constant.language.escape",
158
+ regex: escapedChars
159
+ }, {
160
+ token: "paren.start",
161
+ regex: /#{/,
162
+ push: "start"
163
+ }, {
164
+ token: "string.end",
165
+ regex: /"/,
166
+ next: "pop"
167
+ }, {
168
+ defaultToken: "string"
169
+ }]
170
+ }, {
171
+ token: "string.start",
172
+ regex: /`/,
173
+ push: [{
174
+ token: "constant.language.escape",
175
+ regex: escapedChars
176
+ }, {
177
+ token: "paren.start",
178
+ regex: /#{/,
179
+ push: "start"
180
+ }, {
181
+ token: "string.end",
182
+ regex: /`/,
183
+ next: "pop"
184
+ }, {
185
+ defaultToken: "string"
186
+ }]
187
+ }, {
188
+ token: ["constant.other.symbol.ruby", "string.start"],
189
+ regex: /(:)?(')/,
190
+ push: [{
191
+ token: "constant.language.escape",
192
+ regex: /\\['\\]/
193
+ }, {
194
+ token: "string.end",
195
+ regex: /'/,
196
+ next: "pop"
197
+ }, {
198
+ defaultToken: "string"
199
+ }]
200
+ }, {
201
+ token: "string.start",//doesn't see any differences between strings and array of strings in highlighting
202
+ regex: /%[qwx]([(\[<{^|%])/, onMatch: function (val, state, stack) {
203
+ if (stack.length)
204
+ stack = [];
205
+ var paren = val[val.length - 1];
206
+ stack.unshift(paren, state);
207
+ this.next = "qStateWithoutInterpolation";
208
+ return this.token;
209
+ }
210
+ }, {
211
+ token: "string.start", //doesn't see any differences between strings and array of strings in highlighting
212
+ regex: /%[QWX]?([(\[<{^|%])/, onMatch: function (val, state, stack) {
213
+ if (stack.length)
214
+ stack = [];
215
+ var paren = val[val.length - 1];
216
+ stack.unshift(paren, state);
217
+ this.next = "qStateWithInterpolation";
218
+ return this.token;
219
+ }
220
+ }, {
221
+ token: "constant.other.symbol.ruby", //doesn't see any differences between symbols and array of symbols in highlighting
222
+ regex: /%[si]([(\[<{^|%])/, onMatch: function (val, state, stack) {
223
+ if (stack.length)
224
+ stack = [];
225
+ var paren = val[val.length - 1];
226
+ stack.unshift(paren, state);
227
+ this.next = "sStateWithoutInterpolation";
228
+ return this.token;
229
+ }
230
+ }, {
231
+ token: "constant.other.symbol.ruby", //doesn't see any differences between symbols and array of symbols in highlighting
232
+ regex: /%[SI]([(\[<{^|%])/, onMatch: function (val, state, stack) {
233
+ if (stack.length)
234
+ stack = [];
235
+ var paren = val[val.length - 1];
236
+ stack.unshift(paren, state);
237
+ this.next = "sStateWithInterpolation";
238
+ return this.token;
239
+ }
240
+ }, {
241
+ token: "string.regexp",
242
+ regex: /%[r]([(\[<{^|%])/, onMatch: function (val, state, stack) {
243
+ if (stack.length)
244
+ stack = [];
245
+ var paren = val[val.length - 1];
246
+ stack.unshift(paren, state);
247
+ this.next = "rState";
248
+ return this.token;
249
+ }
250
+ }],
251
+
252
+ {
253
+ token: "punctuation", // namespaces aren't symbols
254
+ regex: "::"
255
+ },
256
+ instanceVariable,
257
+ {
258
+ token: "variable.global", // global variable
259
+ regex: "[$][a-zA-Z_\\d]+"
260
+ }, {
261
+ token: "support.class", // class name
262
+ regex: "[A-Z][a-zA-Z_\\d]*"
263
+ }, {
264
+ token: ["punctuation.operator", "support.function"],
265
+ regex: /(\.)([a-zA-Z_\d]+)(?=\()/
266
+ }, {
267
+ token: ["punctuation.operator", "identifier"],
268
+ regex: /(\.)([a-zA-Z_][a-zA-Z_\d]*)/
269
+ }, {
270
+ token: "string.character",
271
+ regex: "\\B\\?(?:" + escapedChars + "|\\S)"
272
+ }, {
273
+ token: "punctuation.operator",
274
+ regex: /\?(?=.+:)/
275
+ },
276
+
277
+ constantNumericRational,
278
+ constantNumericComplex,
279
+ constantOtherSymbol,
280
+ constantNumericHex,
281
+ constantNumericFloat,
282
+ constantNumericBinary,
283
+ constantNumericDecimal,
284
+ constantNumericOctal,
285
+ {
286
+ token: "constant.language.boolean",
287
+ regex: "(?:true|false)\\b"
288
+ }, {
289
+ token: keywordMapper,
290
+ regex: "[a-zA-Z_$][a-zA-Z0-9_$]*\\b"
291
+ }, {
292
+ token: "punctuation.separator.key-value",
293
+ regex: "=>"
294
+ }, {
295
+ stateName: "heredoc",
296
+ onMatch: function (value, currentState, stack) {
297
+ var next = (value[2] == '-' || value[2] == '~') ? "indentedHeredoc" : "heredoc";
298
+ var tokens = value.split(this.splitRegex);
299
+ stack.push(next, tokens[3]);
300
+ return [
301
+ {type: "constant", value: tokens[1]},
302
+ {type: "string", value: tokens[2]},
303
+ {type: "support.class", value: tokens[3]},
304
+ {type: "string", value: tokens[4]}
305
+ ];
306
+ },
307
+ regex: "(<<[-~]?)(['\"`]?)([\\w]+)(['\"`]?)",
308
+ rules: {
309
+ heredoc: [{
310
+ onMatch: function(value, currentState, stack) {
311
+ if (value === stack[1]) {
312
+ stack.shift();
313
+ stack.shift();
314
+ this.next = stack[0] || "start";
315
+ return "support.class";
316
+ }
317
+ this.next = "";
318
+ return "string";
319
+ },
320
+ regex: ".*$",
321
+ next: "start"
322
+ }],
323
+ indentedHeredoc: [{
324
+ token: "string",
325
+ regex: "^ +"
326
+ }, {
327
+ onMatch: function(value, currentState, stack) {
328
+ if (value === stack[1]) {
329
+ stack.shift();
330
+ stack.shift();
331
+ this.next = stack[0] || "start";
332
+ return "support.class";
333
+ }
334
+ this.next = "";
335
+ return "string";
336
+ },
337
+ regex: ".*$",
338
+ next: "start"
339
+ }]
340
+ }
341
+ }, {
342
+ regex: "$",
343
+ token: "empty",
344
+ next: function(currentState, stack) {
345
+ if (stack[0] === "heredoc" || stack[0] === "indentedHeredoc")
346
+ return stack[0];
347
+ return currentState;
348
+ }
349
+ }, {
350
+ token: "keyword.operator",
351
+ regex: "!|\\$|%|&|\\*|/|\\-\\-|\\-|\\+\\+|\\+|~|===|==|=|!=|!==|<=|>=|<<=|>>=|>>>=|<>|<|>|!|&&|\\|\\||\\?\\:|\\*=|%=|\\+=|\\-=|&=|\\^=|\\||\\b(?:in|instanceof|new|delete|typeof|void)"
352
+ }, {
353
+ token: "paren.lparen",
354
+ regex: "[[({]"
355
+ }, {
356
+ token: "paren.rparen",
357
+ regex: "[\\])}]",
358
+ onMatch: function(value, currentState, stack) {
359
+ this.next = '';
360
+ if (value == "}" && stack.length > 1 && stack[1] != "start") {
361
+ stack.shift();
362
+ this.next = stack.shift();
363
+ }
364
+ return this.token;
365
+ }
366
+ }, {
367
+ token: "text",
368
+ regex: "\\s+"
369
+ }, {
370
+ token: "punctuation.operator",
371
+ regex: /[?:,;.]/
372
+ }
373
+ ],
374
+ "comment": [
375
+ {
376
+ token: "comment.multiline", // closing comment
377
+ regex: "^=end(?=$|\\s.*$)",
378
+ next: "start"
379
+ }, {
380
+ token: "comment", // comment spanning whole line
381
+ regex: ".+"
382
+ }
383
+ ],
384
+ "qStateWithInterpolation": [{
385
+ token: "string.start",// excluded nested |^% due to difficulty in realization
386
+ regex: /[(\[<{]/, onMatch: function (val, state, stack) {
387
+ if (stack.length && val === stack[0]) {
388
+ stack.unshift(val, state);
389
+ return this.token;
390
+ }
391
+ return "string";
392
+ }
393
+ }, {
394
+ token: "constant.language.escape",
395
+ regex: escapedChars
396
+ }, {
397
+ token: "constant.language.escape",
398
+ regex: /\\./
399
+ }, {
400
+ token: "paren.start",
401
+ regex: /#{/,
402
+ push: "start"
403
+ }, {
404
+ token: "string.end",
405
+ regex: /[)\]>}^|%]/, onMatch: function (val, state, stack) {
406
+ if (stack.length && val === closeParen[stack[0]]) {
407
+ stack.shift();
408
+ this.next = stack.shift();
409
+ return this.token;
410
+ }
411
+ this.next = '';
412
+ return "string";
413
+ }
414
+ }, {
415
+ defaultToken: "string"
416
+ }],
417
+ "qStateWithoutInterpolation": [{
418
+ token: "string.start",// excluded nested |^% due to difficulty in realization
419
+ regex: /[(\[<{]/, onMatch: function (val, state, stack) {
420
+ if (stack.length && val === stack[0]) {
421
+ stack.unshift(val, state);
422
+ return this.token;
423
+ }
424
+ return "string";
425
+ }
426
+ }, {
427
+ token: "constant.language.escape",
428
+ regex: /\\['\\]/
429
+ }, {
430
+ token: "constant.language.escape",
431
+ regex: /\\./
432
+ }, {
433
+ token: "string.end",
434
+ regex: /[)\]>}^|%]/, onMatch: function (val, state, stack) {
435
+ if (stack.length && val === closeParen[stack[0]]) {
436
+ stack.shift();
437
+ this.next = stack.shift();
438
+ return this.token;
439
+ }
440
+ this.next = '';
441
+ return "string";
442
+ }
443
+ }, {
444
+ defaultToken: "string"
445
+ }],
446
+ "sStateWithoutInterpolation": [{
447
+ token: "constant.other.symbol.ruby",// excluded nested |^% due to difficulty in realization
448
+ regex: /[(\[<{]/, onMatch: function (val, state, stack) {
449
+ if (stack.length && val === stack[0]) {
450
+ stack.unshift(val, state);
451
+ return this.token;
452
+ }
453
+ return "constant.other.symbol.ruby";
454
+ }
455
+ }, {
456
+ token: "constant.other.symbol.ruby",
457
+ regex: /[)\]>}^|%]/, onMatch: function (val, state, stack) {
458
+ if (stack.length && val === closeParen[stack[0]]) {
459
+ stack.shift();
460
+ this.next = stack.shift();
461
+ return this.token;
462
+ }
463
+ this.next = '';
464
+ return "constant.other.symbol.ruby";
465
+ }
466
+ }, {
467
+ defaultToken: "constant.other.symbol.ruby"
468
+ }],
469
+ "sStateWithInterpolation": [{
470
+ token: "constant.other.symbol.ruby",// excluded nested |^% due to difficulty in realization
471
+ regex: /[(\[<{]/, onMatch: function (val, state, stack) {
472
+ if (stack.length && val === stack[0]) {
473
+ stack.unshift(val, state);
474
+ return this.token;
475
+ }
476
+ return "constant.other.symbol.ruby";
477
+ }
478
+ }, {
479
+ token: "constant.language.escape",
480
+ regex: escapedChars
481
+ }, {
482
+ token: "constant.language.escape",
483
+ regex: /\\./
484
+ }, {
485
+ token: "paren.start",
486
+ regex: /#{/,
487
+ push: "start"
488
+ }, {
489
+ token: "constant.other.symbol.ruby",
490
+ regex: /[)\]>}^|%]/, onMatch: function (val, state, stack) {
491
+ if (stack.length && val === closeParen[stack[0]]) {
492
+ stack.shift();
493
+ this.next = stack.shift();
494
+ return this.token;
495
+ }
496
+ this.next = '';
497
+ return "constant.other.symbol.ruby";
498
+ }
499
+ }, {
500
+ defaultToken: "constant.other.symbol.ruby"
501
+ }],
502
+ "rState": [{
503
+ token: "string.regexp",// excluded nested |^% due to difficulty in realization
504
+ regex: /[(\[<{]/, onMatch: function (val, state, stack) {
505
+ if (stack.length && val === stack[0]) {
506
+ stack.unshift(val, state);
507
+ return this.token;
508
+ }
509
+ return "constant.language.escape";
510
+ }
511
+ }, {
512
+ token: "paren.start",
513
+ regex: /#{/,
514
+ push: "start"
515
+ }, {
516
+ token: "string.regexp",
517
+ regex: /\//
518
+ }, {
519
+ token: "string.regexp",
520
+ regex: /[)\]>}^|%][imxouesn]*/, onMatch: function (val, state, stack) {
521
+ if (stack.length && val[0] === closeParen[stack[0]]) {
522
+ stack.shift();
523
+ this.next = stack.shift();
524
+ return this.token;
525
+ }
526
+ this.next = '';
527
+ return "constant.language.escape";
528
+ }
529
+ },
530
+ {include: "regex"},
531
+ {
532
+ defaultToken: "string.regexp"
533
+ }],
534
+ "regex": [
535
+ {// character classes
536
+ token: "regexp.keyword",
537
+ regex: /\\[wWdDhHsS]/
538
+ }, {
539
+ token: "constant.language.escape",
540
+ regex: /\\[AGbBzZ]/
541
+ }, {
542
+ token: "constant.language.escape",
543
+ regex: /\\g<[a-zA-Z0-9]*>/
544
+ }, {
545
+ token: ["constant.language.escape", "regexp.keyword", "constant.language.escape"],
546
+ regex: /(\\p{\^?)(Alnum|Alpha|Blank|Cntrl|Digit|Graph|Lower|Print|Punct|Space|Upper|XDigit|Word|ASCII|Any|Assigned|Arabic|Armenian|Balinese|Bengali|Bopomofo|Braille|Buginese|Buhid|Canadian_Aboriginal|Carian|Cham|Cherokee|Common|Coptic|Cuneiform|Cypriot|Cyrillic|Deseret|Devanagari|Ethiopic|Georgian|Glagolitic|Gothic|Greek|Gujarati|Gurmukhi|Han|Hangul|Hanunoo|Hebrew|Hiragana|Inherited|Kannada|Katakana|Kayah_Li|Kharoshthi|Khmer|Lao|Latin|Lepcha|Limbu|Linear_B|Lycian|Lydian|Malayalam|Mongolian|Myanmar|New_Tai_Lue|Nko|Ogham|Ol_Chiki|Old_Italic|Old_Persian|Oriya|Osmanya|Phags_Pa|Phoenician|Rejang|Runic|Saurashtra|Shavian|Sinhala|Sundanese|Syloti_Nagri|Syriac|Tagalog|Tagbanwa|Tai_Le|Tamil|Telugu|Thaana|Thai|Tibetan|Tifinagh|Ugaritic|Vai|Yi|Ll|Lm|Lt|Lu|Lo|Mn|Mc|Me|Nd|Nl|Pc|Pd|Ps|Pe|Pi|Pf|Po|No|Sm|Sc|Sk|So|Zs|Zl|Zp|Cc|Cf|Cn|Co|Cs|N|L|M|P|S|Z|C)(})/
547
+ }, {
548
+ token: ["constant.language.escape", "invalid", "constant.language.escape"],
549
+ regex: /(\\p{\^?)([^/]*)(})/
550
+ }, {// escapes
551
+ token: "regexp.keyword.operator",
552
+ regex: "\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"
553
+ }, {// flag
554
+ token: "string.regexp",
555
+ regex: /[/][imxouesn]*/,
556
+ next: "start"
557
+ }, {// invalid operators
558
+ token: "invalid",
559
+ regex: /\{\d+\b,?\d*\}[+*]|[+*$^?][+*]|[$^][?]|\?{3,}/
560
+ }, {// operators
561
+ token: "constant.language.escape",
562
+ regex: /\(\?(?:[:=!>]|<'?[a-zA-Z]*'?>|<[=!])|\)|\{\d+\b,?\d*\}|[+*]\?|[()$^+*?.]/
563
+ }, {
564
+ token: "constant.language.delimiter",
565
+ regex: /\|/
566
+ }, {
567
+ token: "regexp.keyword",
568
+ regex: /\[\[:(?:alnum|alpha|blank|cntrl|digit|graph|lower|print|punct|space|upper|xdigit|word|ascii):\]\]/
569
+ }, {
570
+ token: "constant.language.escape",
571
+ regex: /\[\^?/,
572
+ push: "regex_character_class"
573
+ }, {
574
+ defaultToken: "string.regexp"
575
+ }
576
+ ],
577
+ "regex_character_class": [
578
+ {
579
+ token: "regexp.keyword",
580
+ regex: /\\[wWdDhHsS]/
581
+ }, {
582
+ token: "regexp.charclass.keyword.operator",
583
+ regex: "\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"
584
+ }, {
585
+ token: "constant.language.escape",
586
+ regex: /&?&?\[\^?/,
587
+ push: "regex_character_class"
588
+ }, {
589
+ token: "constant.language.escape",
590
+ regex: "]",
591
+ next: "pop"
592
+ }, {
593
+ token: "constant.language.escape",
594
+ regex: "-"
595
+ }, {
596
+ defaultToken: "string.regexp.characterclass"
597
+ }
598
+ ]
599
+ };
600
+
601
+ this.normalizeRules();
602
+ };
603
+
604
+ oop.inherits(RubyHighlightRules, TextHighlightRules);
605
+
606
+ exports.RubyHighlightRules = RubyHighlightRules;
607
+ });
608
+
609
+ ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"], function(require, exports, module) {
610
+ "use strict";
611
+
612
+ var Range = require("../range").Range;
613
+
614
+ var MatchingBraceOutdent = function() {};
615
+
616
+ (function() {
617
+
618
+ this.checkOutdent = function(line, input) {
619
+ if (! /^\s+$/.test(line))
620
+ return false;
621
+
622
+ return /^\s*\}/.test(input);
623
+ };
624
+
625
+ this.autoOutdent = function(doc, row) {
626
+ var line = doc.getLine(row);
627
+ var match = line.match(/^(\s*\})/);
628
+
629
+ if (!match) return 0;
630
+
631
+ var column = match[1].length;
632
+ var openBracePos = doc.findMatchingBracket({row: row, column: column});
633
+
634
+ if (!openBracePos || openBracePos.row == row) return 0;
635
+
636
+ var indent = this.$getIndent(doc.getLine(openBracePos.row));
637
+ doc.replace(new Range(row, 0, row, column-1), indent);
638
+ };
639
+
640
+ this.$getIndent = function(line) {
641
+ return line.match(/^\s*/)[0];
642
+ };
643
+
644
+ }).call(MatchingBraceOutdent.prototype);
645
+
646
+ exports.MatchingBraceOutdent = MatchingBraceOutdent;
647
+ });
648
+
649
+ ace.define("ace/mode/folding/ruby",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode","ace/range","ace/token_iterator"], function (require, exports, module) {
650
+ "use strict";
651
+
652
+ var oop = require("../../lib/oop");
653
+ var BaseFoldMode = require("./fold_mode").FoldMode;
654
+ var Range = require("../../range").Range;
655
+ var TokenIterator = require("../../token_iterator").TokenIterator;
656
+
657
+
658
+ var FoldMode = exports.FoldMode = function () {
659
+ };
660
+
661
+ oop.inherits(FoldMode, BaseFoldMode);
662
+
663
+ (function () {
664
+ this.indentKeywords = {
665
+ "class": 1,
666
+ "def": 1,
667
+ "module": 1,
668
+ "do": 1,
669
+ "unless": 1,
670
+ "if": 1,
671
+ "while": 1,
672
+ "for": 1,
673
+ "until": 1,
674
+ "begin": 1,
675
+ "else": 0,
676
+ "elsif": 0,
677
+ "rescue": 0,
678
+ "ensure": 0,
679
+ "when": 0,
680
+ "end": -1,
681
+ "case": 1,
682
+ "=begin": 1,
683
+ "=end": -1
684
+ };
685
+
686
+ this.foldingStartMarker = /(?:\s|^)(def|do|while|class|unless|module|if|for|until|begin|else|elsif|case|rescue|ensure|when)\b|({\s*$)|(=begin)/;
687
+ this.foldingStopMarker = /(=end(?=$|\s.*$))|(^\s*})|\b(end)\b/;
688
+
689
+ this.getFoldWidget = function (session, foldStyle, row) {
690
+ var line = session.getLine(row);
691
+ var isStart = this.foldingStartMarker.test(line);
692
+ var isEnd = this.foldingStopMarker.test(line);
693
+
694
+ if (isStart && !isEnd) {
695
+ var match = line.match(this.foldingStartMarker);
696
+ if (match[1]) {
697
+ if (match[1] == "if" || match[1] == "else" || match[1] == "while" || match[1] == "until" || match[1] == "unless") {
698
+ if (match[1] == "else" && /^\s*else\s*$/.test(line) === false) {
699
+ return;
700
+ }
701
+ if (/^\s*(?:if|else|while|until|unless)\s*/.test(line) === false) {
702
+ return;
703
+ }
704
+ }
705
+
706
+ if (match[1] == "when") {
707
+ if (/\sthen\s/.test(line) === true) {
708
+ return;
709
+ }
710
+ }
711
+ if (session.getTokenAt(row, match.index + 2).type === "keyword")
712
+ return "start";
713
+ } else if (match[3]) {
714
+ if (session.getTokenAt(row, match.index + 1).type === "comment.multiline")
715
+ return "start";
716
+ } else {
717
+ return "start";
718
+ }
719
+ }
720
+ if (foldStyle != "markbeginend" || !isEnd || isStart && isEnd)
721
+ return "";
722
+
723
+ var match = line.match(this.foldingStopMarker);
724
+ if (match[3] === "end") {
725
+ if (session.getTokenAt(row, match.index + 1).type === "keyword")
726
+ return "end";
727
+ } else if (match[1]) {
728
+ if (session.getTokenAt(row, match.index + 1).type === "comment.multiline")
729
+ return "end";
730
+ } else
731
+ return "end";
732
+ };
733
+
734
+ this.getFoldWidgetRange = function (session, foldStyle, row) {
735
+ var line = session.doc.getLine(row);
736
+ var match = this.foldingStartMarker.exec(line);
737
+ if (match) {
738
+ if (match[1] || match[3])
739
+ return this.rubyBlock(session, row, match.index + 2);
740
+
741
+ return this.openingBracketBlock(session, "{", row, match.index);
742
+ }
743
+
744
+ var match = this.foldingStopMarker.exec(line);
745
+ if (match) {
746
+ if (match[3] === "end") {
747
+ if (session.getTokenAt(row, match.index + 1).type === "keyword")
748
+ return this.rubyBlock(session, row, match.index + 1);
749
+ }
750
+
751
+ if (match[1] === "=end") {
752
+ if (session.getTokenAt(row, match.index + 1).type === "comment.multiline")
753
+ return this.rubyBlock(session, row, match.index + 1);
754
+ }
755
+
756
+ return this.closingBracketBlock(session, "}", row, match.index + match[0].length);
757
+ }
758
+ };
759
+
760
+ this.rubyBlock = function (session, row, column, tokenRange) {
761
+ var stream = new TokenIterator(session, row, column);
762
+
763
+ var token = stream.getCurrentToken();
764
+ if (!token || (token.type != "keyword" && token.type != "comment.multiline"))
765
+ return;
766
+
767
+ var val = token.value;
768
+ var line = session.getLine(row);
769
+ switch (token.value) {
770
+ case "if":
771
+ case "unless":
772
+ case "while":
773
+ case "until":
774
+ var checkToken = new RegExp("^\\s*" + token.value);
775
+ if (!checkToken.test(line)) {
776
+ return;
777
+ }
778
+ var dir = this.indentKeywords[val];
779
+ break;
780
+ case "when":
781
+ if (/\sthen\s/.test(line)) {
782
+ return;
783
+ }
784
+ case "elsif":
785
+ case "rescue":
786
+ case "ensure":
787
+ var dir = 1;
788
+ break;
789
+ case "else":
790
+ var checkToken = new RegExp("^\\s*" + token.value + "\\s*$");
791
+ if (!checkToken.test(line)) {
792
+ return;
793
+ }
794
+ var dir = 1;
795
+ break;
796
+ default:
797
+ var dir = this.indentKeywords[val];
798
+ break;
799
+ }
800
+
801
+ var stack = [val];
802
+ if (!dir)
803
+ return;
804
+
805
+ var startColumn = dir === -1 ? session.getLine(row - 1).length : session.getLine(row).length;
806
+ var startRow = row;
807
+ var ranges = [];
808
+ ranges.push(stream.getCurrentTokenRange());
809
+
810
+ stream.step = dir === -1 ? stream.stepBackward : stream.stepForward;
811
+ if (token.type == "comment.multiline") {
812
+ while (token = stream.step()) {
813
+ if (token.type !== "comment.multiline")
814
+ continue;
815
+ if (dir == 1) {
816
+ startColumn = 6;
817
+ if (token.value == "=end") {
818
+ break;
819
+ }
820
+ } else {
821
+ if (token.value == "=begin") {
822
+ break;
823
+ }
824
+ }
825
+ }
826
+ } else {
827
+ while (token = stream.step()) {
828
+ var ignore = false;
829
+ if (token.type !== "keyword")
830
+ continue;
831
+ var level = dir * this.indentKeywords[token.value];
832
+ line = session.getLine(stream.getCurrentTokenRow());
833
+ switch (token.value) {
834
+ case "do":
835
+ for (var i = stream.$tokenIndex - 1; i >= 0; i--) {
836
+ var prevToken = stream.$rowTokens[i];
837
+ if (prevToken && (prevToken.value == "while" || prevToken.value == "until" || prevToken.value == "for")) {
838
+ level = 0;
839
+ break;
840
+ }
841
+ }
842
+ break;
843
+ case "else":
844
+ var checkToken = new RegExp("^\\s*" + token.value + "\\s*$");
845
+ if (!checkToken.test(line) || val == "case") {
846
+ level = 0;
847
+ ignore = true;
848
+ }
849
+ break;
850
+ case "if":
851
+ case "unless":
852
+ case "while":
853
+ case "until":
854
+ var checkToken = new RegExp("^\\s*" + token.value);
855
+ if (!checkToken.test(line)) {
856
+ level = 0;
857
+ ignore = true;
858
+ }
859
+ break;
860
+ case "when":
861
+ if (/\sthen\s/.test(line) || val == "case") {
862
+ level = 0;
863
+ ignore = true;
864
+ }
865
+ break;
866
+ }
867
+
868
+ if (level > 0) {
869
+ stack.unshift(token.value);
870
+ } else if (level <= 0 && ignore === false) {
871
+ stack.shift();
872
+ if (!stack.length) {
873
+ if ((val == "while" || val == "until" || val == "for") && token.value != "do") {
874
+ break;
875
+ }
876
+ if (token.value == "do" && dir == -1 && level != 0)
877
+ break;
878
+ if (token.value != "do")
879
+ break;
880
+ }
881
+
882
+ if (level === 0) {
883
+ stack.unshift(token.value);
884
+ }
885
+ }
886
+ }
887
+ }
888
+
889
+ if (!token)
890
+ return null;
891
+
892
+ if (tokenRange) {
893
+ ranges.push(stream.getCurrentTokenRange());
894
+ return ranges;
895
+ }
896
+
897
+ var row = stream.getCurrentTokenRow();
898
+ if (dir === -1) {
899
+ if (token.type === "comment.multiline") {
900
+ var endColumn = 6;
901
+ } else {
902
+ var endColumn = session.getLine(row).length;
903
+ }
904
+ return new Range(row, endColumn, startRow - 1, startColumn);
905
+ } else
906
+ return new Range(startRow, startColumn, row - 1, session.getLine(row - 1).length);
907
+ };
908
+
909
+ }).call(FoldMode.prototype);
910
+
911
+ });
912
+
913
+ ace.define("ace/mode/ruby",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/ruby_highlight_rules","ace/mode/matching_brace_outdent","ace/range","ace/mode/behaviour/cstyle","ace/mode/folding/ruby"], function(require, exports, module) {
914
+ "use strict";
915
+
916
+ var oop = require("../lib/oop");
917
+ var TextMode = require("./text").Mode;
918
+ var RubyHighlightRules = require("./ruby_highlight_rules").RubyHighlightRules;
919
+ var MatchingBraceOutdent = require("./matching_brace_outdent").MatchingBraceOutdent;
920
+ var Range = require("../range").Range;
921
+ var CstyleBehaviour = require("./behaviour/cstyle").CstyleBehaviour;
922
+ var FoldMode = require("./folding/ruby").FoldMode;
923
+
924
+ var Mode = function() {
925
+ this.HighlightRules = RubyHighlightRules;
926
+ this.$outdent = new MatchingBraceOutdent();
927
+ this.$behaviour = new CstyleBehaviour();
928
+ this.foldingRules = new FoldMode();
929
+ this.indentKeywords = this.foldingRules.indentKeywords;
930
+ };
931
+ oop.inherits(Mode, TextMode);
932
+
933
+ (function() {
934
+
935
+
936
+ this.lineCommentStart = "#";
937
+
938
+ this.getNextLineIndent = function(state, line, tab) {
939
+ var indent = this.$getIndent(line);
940
+
941
+ var tokenizedLine = this.getTokenizer().getLineTokens(line, state);
942
+ var tokens = tokenizedLine.tokens;
943
+
944
+ if (tokens.length && tokens[tokens.length - 1].type == "comment") {
945
+ return indent;
946
+ }
947
+
948
+ if (state == "start") {
949
+ var match = line.match(/^.*[\{\(\[]\s*$/);
950
+ var startingClassOrMethod = line.match(/^\s*(class|def|module)\s.*$/);
951
+ var startingDoBlock = line.match(/.*do(\s*|\s+\|.*\|\s*)$/);
952
+ var startingConditional = line.match(/^\s*(if|else|when|elsif|unless|while|for|begin|rescue|ensure)\s*/);
953
+ if (match || startingClassOrMethod || startingDoBlock || startingConditional) {
954
+ indent += tab;
955
+ }
956
+ }
957
+
958
+ return indent;
959
+ };
960
+
961
+ this.checkOutdent = function(state, line, input) {
962
+ return /^\s+(end|else|rescue|ensure)$/.test(line + input) || this.$outdent.checkOutdent(line, input);
963
+ };
964
+
965
+ this.autoOutdent = function(state, session, row) {
966
+ var line = session.getLine(row);
967
+ if (/}/.test(line))
968
+ return this.$outdent.autoOutdent(session, row);
969
+ var indent = this.$getIndent(line);
970
+ var prevLine = session.getLine(row - 1);
971
+ var prevIndent = this.$getIndent(prevLine);
972
+ var tab = session.getTabString();
973
+ if (prevIndent.length <= indent.length) {
974
+ if (indent.slice(-tab.length) == tab)
975
+ session.remove(new Range(row, indent.length - tab.length, row, indent.length));
976
+ }
977
+ };
978
+
979
+ this.getMatching = function(session, row, column) {
980
+ if (row == undefined) {
981
+ var pos = session.selection.lead;
982
+ column = pos.column;
983
+ row = pos.row;
984
+ }
985
+
986
+ var startToken = session.getTokenAt(row, column);
987
+ if (startToken && startToken.value in this.indentKeywords)
988
+ return this.foldingRules.rubyBlock(session, row, column, true);
989
+ };
990
+
991
+ this.$id = "ace/mode/ruby";
992
+ this.snippetFileId = "ace/snippets/ruby";
993
+ }).call(Mode.prototype);
994
+
995
+ exports.Mode = Mode;
996
+ }); (function() {
997
+ ace.require(["ace/mode/ruby"], function(m) {
998
+ if (typeof module == "object" && typeof exports == "object" && module) {
999
+ module.exports = m;
1000
+ }
1001
+ });
1002
+ })();
1003
+