ace-oqc 1.4.13 → 1.4.14

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 (402) hide show
  1. package/index.js +71 -0
  2. package/package.json +3 -3
  3. package/src-noconflict/ace.js +0 -21402
  4. package/src-noconflict/ext-beautify.js +0 -331
  5. package/src-noconflict/ext-elastic_tabstops_lite.js +0 -277
  6. package/src-noconflict/ext-emmet.js +0 -1331
  7. package/src-noconflict/ext-error_marker.js +0 -9
  8. package/src-noconflict/ext-keybinding_menu.js +0 -193
  9. package/src-noconflict/ext-language_tools.js +0 -2166
  10. package/src-noconflict/ext-linking.js +0 -64
  11. package/src-noconflict/ext-modelist.js +0 -248
  12. package/src-noconflict/ext-options.js +0 -799
  13. package/src-noconflict/ext-prompt.js +0 -2806
  14. package/src-noconflict/ext-rtl.js +0 -122
  15. package/src-noconflict/ext-searchbox.js +0 -514
  16. package/src-noconflict/ext-settings_menu.js +0 -820
  17. package/src-noconflict/ext-spellcheck.js +0 -73
  18. package/src-noconflict/ext-split.js +0 -207
  19. package/src-noconflict/ext-static_highlight.js +0 -229
  20. package/src-noconflict/ext-statusbar.js +0 -56
  21. package/src-noconflict/ext-textarea.js +0 -430
  22. package/src-noconflict/ext-themelist.js +0 -67
  23. package/src-noconflict/ext-whitespace.js +0 -213
  24. package/src-noconflict/keybinding-emacs.js +0 -1169
  25. package/src-noconflict/keybinding-sublime.js +0 -422
  26. package/src-noconflict/keybinding-vim.js +0 -6198
  27. package/src-noconflict/mode-abap.js +0 -221
  28. package/src-noconflict/mode-abc.js +0 -271
  29. package/src-noconflict/mode-actionscript.js +0 -275
  30. package/src-noconflict/mode-ada.js +0 -137
  31. package/src-noconflict/mode-apache_conf.js +0 -363
  32. package/src-noconflict/mode-apex.js +0 -457
  33. package/src-noconflict/mode-applescript.js +0 -278
  34. package/src-noconflict/mode-aql.js +0 -102
  35. package/src-noconflict/mode-asciidoc.js +0 -349
  36. package/src-noconflict/mode-asl.js +0 -422
  37. package/src-noconflict/mode-assembly_x86.js +0 -193
  38. package/src-noconflict/mode-autohotkey.js +0 -244
  39. package/src-noconflict/mode-batchfile.js +0 -230
  40. package/src-noconflict/mode-c9search.js +0 -293
  41. package/src-noconflict/mode-c_cpp.js +0 -503
  42. package/src-noconflict/mode-cirru.js +0 -210
  43. package/src-noconflict/mode-clojure.js +0 -315
  44. package/src-noconflict/mode-cobol.js +0 -101
  45. package/src-noconflict/mode-coffee.js +0 -400
  46. package/src-noconflict/mode-coldfusion.js +0 -2596
  47. package/src-noconflict/mode-crystal.js +0 -642
  48. package/src-noconflict/mode-csharp.js +0 -502
  49. package/src-noconflict/mode-csound_document.js +0 -4105
  50. package/src-noconflict/mode-csound_orchestra.js +0 -3035
  51. package/src-noconflict/mode-csound_score.js +0 -462
  52. package/src-noconflict/mode-csp.js +0 -59
  53. package/src-noconflict/mode-css.js +0 -720
  54. package/src-noconflict/mode-curly.js +0 -2564
  55. package/src-noconflict/mode-d.js +0 -520
  56. package/src-noconflict/mode-dart.js +0 -715
  57. package/src-noconflict/mode-diff.js +0 -147
  58. package/src-noconflict/mode-django.js +0 -2595
  59. package/src-noconflict/mode-dockerfile.js +0 -500
  60. package/src-noconflict/mode-dot.js +0 -417
  61. package/src-noconflict/mode-drools.js +0 -498
  62. package/src-noconflict/mode-edifact.js +0 -166
  63. package/src-noconflict/mode-eiffel.js +0 -135
  64. package/src-noconflict/mode-ejs.js +0 -3533
  65. package/src-noconflict/mode-elixir.js +0 -501
  66. package/src-noconflict/mode-elm.js +0 -306
  67. package/src-noconflict/mode-erlang.js +0 -1010
  68. package/src-noconflict/mode-forth.js +0 -297
  69. package/src-noconflict/mode-fortran.js +0 -430
  70. package/src-noconflict/mode-fsharp.js +0 -316
  71. package/src-noconflict/mode-fsl.js +0 -259
  72. package/src-noconflict/mode-ftl.js +0 -1193
  73. package/src-noconflict/mode-gcode.js +0 -93
  74. package/src-noconflict/mode-gherkin.js +0 -168
  75. package/src-noconflict/mode-gitignore.js +0 -59
  76. package/src-noconflict/mode-glsl.js +0 -580
  77. package/src-noconflict/mode-gobstones.js +0 -1090
  78. package/src-noconflict/mode-golang.js +0 -413
  79. package/src-noconflict/mode-graphqlschema.js +0 -214
  80. package/src-noconflict/mode-groovy.js +0 -989
  81. package/src-noconflict/mode-haml.js +0 -1873
  82. package/src-noconflict/mode-handlebars.js +0 -2622
  83. package/src-noconflict/mode-haskell.js +0 -380
  84. package/src-noconflict/mode-haskell_cabal.js +0 -141
  85. package/src-noconflict/mode-haxe.js +0 -386
  86. package/src-noconflict/mode-hjson.js +0 -353
  87. package/src-noconflict/mode-html.js +0 -2509
  88. package/src-noconflict/mode-html_elixir.js +0 -3088
  89. package/src-noconflict/mode-html_ruby.js +0 -3550
  90. package/src-noconflict/mode-ini.js +0 -162
  91. package/src-noconflict/mode-io.js +0 -248
  92. package/src-noconflict/mode-jack.js +0 -346
  93. package/src-noconflict/mode-jade.js +0 -2025
  94. package/src-noconflict/mode-java.js +0 -1038
  95. package/src-noconflict/mode-javascript.js +0 -798
  96. package/src-noconflict/mode-json.js +0 -329
  97. package/src-noconflict/mode-jsoniq.js +0 -2632
  98. package/src-noconflict/mode-jsp.js +0 -1433
  99. package/src-noconflict/mode-jssm.js +0 -325
  100. package/src-noconflict/mode-jsx.js +0 -411
  101. package/src-noconflict/mode-julia.js +0 -303
  102. package/src-noconflict/mode-kotlin.js +0 -797
  103. package/src-noconflict/mode-latex.js +0 -296
  104. package/src-noconflict/mode-less.js +0 -839
  105. package/src-noconflict/mode-liquid.js +0 -2742
  106. package/src-noconflict/mode-lisp.js +0 -112
  107. package/src-noconflict/mode-livescript.js +0 -279
  108. package/src-noconflict/mode-logiql.js +0 -317
  109. package/src-noconflict/mode-logtalk.js +0 -352
  110. package/src-noconflict/mode-lsl.js +0 -343
  111. package/src-noconflict/mode-lua.js +0 -452
  112. package/src-noconflict/mode-luapage.js +0 -3028
  113. package/src-noconflict/mode-lucene.js +0 -154
  114. package/src-noconflict/mode-makefile.js +0 -412
  115. package/src-noconflict/mode-markdown.js +0 -3194
  116. package/src-noconflict/mode-mask.js +0 -1803
  117. package/src-noconflict/mode-matlab.js +0 -263
  118. package/src-noconflict/mode-maze.js +0 -292
  119. package/src-noconflict/mode-mel.js +0 -263
  120. package/src-noconflict/mode-mixal.js +0 -122
  121. package/src-noconflict/mode-mushcode.js +0 -681
  122. package/src-noconflict/mode-mysql.js +0 -167
  123. package/src-noconflict/mode-nginx.js +0 -298
  124. package/src-noconflict/mode-nim.js +0 -363
  125. package/src-noconflict/mode-nix.js +0 -647
  126. package/src-noconflict/mode-nsis.js +0 -312
  127. package/src-noconflict/mode-objectivec.js +0 -740
  128. package/src-noconflict/mode-ocaml.js +0 -421
  129. package/src-noconflict/mode-pascal.js +0 -223
  130. package/src-noconflict/mode-perl.js +0 -381
  131. package/src-noconflict/mode-pgsql.js +0 -1743
  132. package/src-noconflict/mode-php.js +0 -13110
  133. package/src-noconflict/mode-php_laravel_blade.js +0 -13311
  134. package/src-noconflict/mode-pig.js +0 -310
  135. package/src-noconflict/mode-plain_text.js +0 -32
  136. package/src-noconflict/mode-powershell.js +0 -418
  137. package/src-noconflict/mode-praat.js +0 -478
  138. package/src-noconflict/mode-prolog.js +0 -371
  139. package/src-noconflict/mode-properties.js +0 -80
  140. package/src-noconflict/mode-protobuf.js +0 -593
  141. package/src-noconflict/mode-puppet.js +0 -368
  142. package/src-noconflict/mode-python.js +0 -508
  143. package/src-noconflict/mode-r.js +0 -312
  144. package/src-noconflict/mode-razor.js +0 -2875
  145. package/src-noconflict/mode-rdoc.js +0 -243
  146. package/src-noconflict/mode-red.js +0 -450
  147. package/src-noconflict/mode-redshift.js +0 -360
  148. package/src-noconflict/mode-rhtml.js +0 -2808
  149. package/src-noconflict/mode-rst.js +0 -257
  150. package/src-noconflict/mode-ruby.js +0 -1003
  151. package/src-noconflict/mode-rust.js +0 -282
  152. package/src-noconflict/mode-sass.js +0 -529
  153. package/src-noconflict/mode-scad.js +0 -414
  154. package/src-noconflict/mode-scala.js +0 -984
  155. package/src-noconflict/mode-scheme.js +0 -232
  156. package/src-noconflict/mode-scss.js +0 -873
  157. package/src-noconflict/mode-sh.js +0 -449
  158. package/src-noconflict/mode-sjs.js +0 -1015
  159. package/src-noconflict/mode-slim.js +0 -5240
  160. package/src-noconflict/mode-smarty.js +0 -2635
  161. package/src-noconflict/mode-snippets.js +0 -207
  162. package/src-noconflict/mode-soy_template.js +0 -2848
  163. package/src-noconflict/mode-space.js +0 -167
  164. package/src-noconflict/mode-sparql.js +0 -320
  165. package/src-noconflict/mode-sql.js +0 -271
  166. package/src-noconflict/mode-sqlserver.js +0 -445
  167. package/src-noconflict/mode-stylus.js +0 -472
  168. package/src-noconflict/mode-svg.js +0 -1582
  169. package/src-noconflict/mode-swift.js +0 -395
  170. package/src-noconflict/mode-tcl.js +0 -387
  171. package/src-noconflict/mode-terraform.js +0 -400
  172. package/src-noconflict/mode-tex.js +0 -160
  173. package/src-noconflict/mode-text.js +0 -9
  174. package/src-noconflict/mode-textile.js +0 -150
  175. package/src-noconflict/mode-toml.js +0 -153
  176. package/src-noconflict/mode-tsx.js +0 -888
  177. package/src-noconflict/mode-turtle.js +0 -296
  178. package/src-noconflict/mode-twig.js +0 -2693
  179. package/src-noconflict/mode-typescript.js +0 -869
  180. package/src-noconflict/mode-vala.js +0 -677
  181. package/src-noconflict/mode-vbscript.js +0 -635
  182. package/src-noconflict/mode-velocity.js +0 -2792
  183. package/src-noconflict/mode-verilog.js +0 -118
  184. package/src-noconflict/mode-vhdl.js +0 -116
  185. package/src-noconflict/mode-visualforce.js +0 -2640
  186. package/src-noconflict/mode-wollok.js +0 -914
  187. package/src-noconflict/mode-xml.js +0 -676
  188. package/src-noconflict/mode-xquery.js +0 -2644
  189. package/src-noconflict/mode-yaml.js +0 -330
  190. package/src-noconflict/mode-zeek.js +0 -539
  191. package/src-noconflict/qurator-mode.js +0 -120
  192. package/src-noconflict/qurator-worker.js +0 -91
  193. package/src-noconflict/snippets/abap.js +0 -9
  194. package/src-noconflict/snippets/abc.js +0 -45
  195. package/src-noconflict/snippets/actionscript.js +0 -171
  196. package/src-noconflict/snippets/ada.js +0 -9
  197. package/src-noconflict/snippets/apache_conf.js +0 -9
  198. package/src-noconflict/snippets/apex.js +0 -9
  199. package/src-noconflict/snippets/applescript.js +0 -9
  200. package/src-noconflict/snippets/aql.js +0 -9
  201. package/src-noconflict/snippets/asciidoc.js +0 -9
  202. package/src-noconflict/snippets/asl.js +0 -9
  203. package/src-noconflict/snippets/assembly_x86.js +0 -9
  204. package/src-noconflict/snippets/autohotkey.js +0 -9
  205. package/src-noconflict/snippets/batchfile.js +0 -9
  206. package/src-noconflict/snippets/c9search.js +0 -9
  207. package/src-noconflict/snippets/c_cpp.js +0 -145
  208. package/src-noconflict/snippets/cirru.js +0 -9
  209. package/src-noconflict/snippets/clojure.js +0 -104
  210. package/src-noconflict/snippets/cobol.js +0 -9
  211. package/src-noconflict/snippets/coffee.js +0 -109
  212. package/src-noconflict/snippets/coldfusion.js +0 -9
  213. package/src-noconflict/snippets/crystal.js +0 -9
  214. package/src-noconflict/snippets/csharp.js +0 -9
  215. package/src-noconflict/snippets/csound_document.js +0 -24
  216. package/src-noconflict/snippets/csound_orchestra.js +0 -61
  217. package/src-noconflict/snippets/csound_score.js +0 -9
  218. package/src-noconflict/snippets/csp.js +0 -9
  219. package/src-noconflict/snippets/css.js +0 -981
  220. package/src-noconflict/snippets/curly.js +0 -9
  221. package/src-noconflict/snippets/d.js +0 -9
  222. package/src-noconflict/snippets/dart.js +0 -97
  223. package/src-noconflict/snippets/diff.js +0 -25
  224. package/src-noconflict/snippets/django.js +0 -122
  225. package/src-noconflict/snippets/dockerfile.js +0 -9
  226. package/src-noconflict/snippets/dot.js +0 -9
  227. package/src-noconflict/snippets/drools.js +0 -33
  228. package/src-noconflict/snippets/edifact.js +0 -254
  229. package/src-noconflict/snippets/eiffel.js +0 -9
  230. package/src-noconflict/snippets/ejs.js +0 -9
  231. package/src-noconflict/snippets/elixir.js +0 -9
  232. package/src-noconflict/snippets/elm.js +0 -9
  233. package/src-noconflict/snippets/erlang.js +0 -174
  234. package/src-noconflict/snippets/forth.js +0 -9
  235. package/src-noconflict/snippets/fortran.js +0 -9
  236. package/src-noconflict/snippets/fsharp.js +0 -9
  237. package/src-noconflict/snippets/fsl.js +0 -14
  238. package/src-noconflict/snippets/ftl.js +0 -9
  239. package/src-noconflict/snippets/gcode.js +0 -9
  240. package/src-noconflict/snippets/gherkin.js +0 -9
  241. package/src-noconflict/snippets/gitignore.js +0 -9
  242. package/src-noconflict/snippets/glsl.js +0 -9
  243. package/src-noconflict/snippets/gobstones.js +0 -1718
  244. package/src-noconflict/snippets/golang.js +0 -9
  245. package/src-noconflict/snippets/graphqlschema.js +0 -46
  246. package/src-noconflict/snippets/groovy.js +0 -9
  247. package/src-noconflict/snippets/haml.js +0 -34
  248. package/src-noconflict/snippets/handlebars.js +0 -9
  249. package/src-noconflict/snippets/haskell.js +0 -96
  250. package/src-noconflict/snippets/haskell_cabal.js +0 -9
  251. package/src-noconflict/snippets/haxe.js +0 -9
  252. package/src-noconflict/snippets/hjson.js +0 -9
  253. package/src-noconflict/snippets/html.js +0 -867
  254. package/src-noconflict/snippets/html_elixir.js +0 -9
  255. package/src-noconflict/snippets/html_ruby.js +0 -9
  256. package/src-noconflict/snippets/ini.js +0 -9
  257. package/src-noconflict/snippets/io.js +0 -76
  258. package/src-noconflict/snippets/jack.js +0 -9
  259. package/src-noconflict/snippets/jade.js +0 -9
  260. package/src-noconflict/snippets/java.js +0 -254
  261. package/src-noconflict/snippets/javascript.js +0 -209
  262. package/src-noconflict/snippets/json.js +0 -9
  263. package/src-noconflict/snippets/jsoniq.js +0 -75
  264. package/src-noconflict/snippets/jsp.js +0 -113
  265. package/src-noconflict/snippets/jssm.js +0 -9
  266. package/src-noconflict/snippets/jsx.js +0 -9
  267. package/src-noconflict/snippets/julia.js +0 -9
  268. package/src-noconflict/snippets/kotlin.js +0 -9
  269. package/src-noconflict/snippets/latex.js +0 -9
  270. package/src-noconflict/snippets/less.js +0 -9
  271. package/src-noconflict/snippets/liquid.js +0 -895
  272. package/src-noconflict/snippets/lisp.js +0 -9
  273. package/src-noconflict/snippets/livescript.js +0 -9
  274. package/src-noconflict/snippets/logiql.js +0 -9
  275. package/src-noconflict/snippets/logtalk.js +0 -9
  276. package/src-noconflict/snippets/lsl.js +0 -1246
  277. package/src-noconflict/snippets/lua.js +0 -35
  278. package/src-noconflict/snippets/luapage.js +0 -9
  279. package/src-noconflict/snippets/lucene.js +0 -9
  280. package/src-noconflict/snippets/makefile.js +0 -18
  281. package/src-noconflict/snippets/markdown.js +0 -102
  282. package/src-noconflict/snippets/mask.js +0 -9
  283. package/src-noconflict/snippets/matlab.js +0 -9
  284. package/src-noconflict/snippets/maze.js +0 -23
  285. package/src-noconflict/snippets/mel.js +0 -9
  286. package/src-noconflict/snippets/mixal.js +0 -9
  287. package/src-noconflict/snippets/mushcode.js +0 -9
  288. package/src-noconflict/snippets/mysql.js +0 -9
  289. package/src-noconflict/snippets/nginx.js +0 -9
  290. package/src-noconflict/snippets/nim.js +0 -9
  291. package/src-noconflict/snippets/nix.js +0 -9
  292. package/src-noconflict/snippets/nsis.js +0 -9
  293. package/src-noconflict/snippets/objectivec.js +0 -9
  294. package/src-noconflict/snippets/ocaml.js +0 -9
  295. package/src-noconflict/snippets/pascal.js +0 -9
  296. package/src-noconflict/snippets/perl.js +0 -361
  297. package/src-noconflict/snippets/pgsql.js +0 -9
  298. package/src-noconflict/snippets/php.js +0 -397
  299. package/src-noconflict/snippets/php_laravel_blade.js +0 -9
  300. package/src-noconflict/snippets/pig.js +0 -9
  301. package/src-noconflict/snippets/plain_text.js +0 -9
  302. package/src-noconflict/snippets/powershell.js +0 -9
  303. package/src-noconflict/snippets/praat.js +0 -9
  304. package/src-noconflict/snippets/prolog.js +0 -9
  305. package/src-noconflict/snippets/properties.js +0 -9
  306. package/src-noconflict/snippets/protobuf.js +0 -9
  307. package/src-noconflict/snippets/puppet.js +0 -9
  308. package/src-noconflict/snippets/python.js +0 -172
  309. package/src-noconflict/snippets/r.js +0 -135
  310. package/src-noconflict/snippets/razor.js +0 -17
  311. package/src-noconflict/snippets/rdoc.js +0 -9
  312. package/src-noconflict/snippets/red.js +0 -9
  313. package/src-noconflict/snippets/redshift.js +0 -9
  314. package/src-noconflict/snippets/rhtml.js +0 -9
  315. package/src-noconflict/snippets/rst.js +0 -36
  316. package/src-noconflict/snippets/ruby.js +0 -942
  317. package/src-noconflict/snippets/rust.js +0 -9
  318. package/src-noconflict/snippets/sass.js +0 -9
  319. package/src-noconflict/snippets/scad.js +0 -9
  320. package/src-noconflict/snippets/scala.js +0 -9
  321. package/src-noconflict/snippets/scheme.js +0 -9
  322. package/src-noconflict/snippets/scss.js +0 -9
  323. package/src-noconflict/snippets/sh.js +0 -97
  324. package/src-noconflict/snippets/sjs.js +0 -9
  325. package/src-noconflict/snippets/slim.js +0 -9
  326. package/src-noconflict/snippets/smarty.js +0 -9
  327. package/src-noconflict/snippets/snippets.js +0 -23
  328. package/src-noconflict/snippets/soy_template.js +0 -9
  329. package/src-noconflict/snippets/space.js +0 -9
  330. package/src-noconflict/snippets/sparql.js +0 -9
  331. package/src-noconflict/snippets/sql.js +0 -40
  332. package/src-noconflict/snippets/sqlserver.js +0 -83
  333. package/src-noconflict/snippets/stylus.js +0 -9
  334. package/src-noconflict/snippets/svg.js +0 -9
  335. package/src-noconflict/snippets/swift.js +0 -9
  336. package/src-noconflict/snippets/tcl.js +0 -106
  337. package/src-noconflict/snippets/terraform.js +0 -9
  338. package/src-noconflict/snippets/tex.js +0 -204
  339. package/src-noconflict/snippets/text.js +0 -9
  340. package/src-noconflict/snippets/textile.js +0 -44
  341. package/src-noconflict/snippets/toml.js +0 -9
  342. package/src-noconflict/snippets/tsx.js +0 -9
  343. package/src-noconflict/snippets/turtle.js +0 -9
  344. package/src-noconflict/snippets/twig.js +0 -9
  345. package/src-noconflict/snippets/typescript.js +0 -9
  346. package/src-noconflict/snippets/vala.js +0 -200
  347. package/src-noconflict/snippets/vbscript.js +0 -9
  348. package/src-noconflict/snippets/velocity.js +0 -43
  349. package/src-noconflict/snippets/verilog.js +0 -9
  350. package/src-noconflict/snippets/vhdl.js +0 -9
  351. package/src-noconflict/snippets/visualforce.js +0 -9
  352. package/src-noconflict/snippets/wollok.js +0 -98
  353. package/src-noconflict/snippets/xml.js +0 -9
  354. package/src-noconflict/snippets/xquery.js +0 -75
  355. package/src-noconflict/snippets/yaml.js +0 -9
  356. package/src-noconflict/snippets/zeek.js +0 -9
  357. package/src-noconflict/theme-ambiance.js +0 -185
  358. package/src-noconflict/theme-chaos.js +0 -163
  359. package/src-noconflict/theme-chrome.js +0 -135
  360. package/src-noconflict/theme-clouds.js +0 -102
  361. package/src-noconflict/theme-clouds_midnight.js +0 -103
  362. package/src-noconflict/theme-cobalt.js +0 -120
  363. package/src-noconflict/theme-crimson_editor.js +0 -125
  364. package/src-noconflict/theme-dawn.js +0 -115
  365. package/src-noconflict/theme-dracula.js +0 -135
  366. package/src-noconflict/theme-dreamweaver.js +0 -148
  367. package/src-noconflict/theme-eclipse.js +0 -105
  368. package/src-noconflict/theme-github.js +0 -110
  369. package/src-noconflict/theme-gob.js +0 -119
  370. package/src-noconflict/theme-gruvbox.js +0 -89
  371. package/src-noconflict/theme-idle_fingers.js +0 -103
  372. package/src-noconflict/theme-iplastic.js +0 -128
  373. package/src-noconflict/theme-katzenmilch.js +0 -128
  374. package/src-noconflict/theme-kr_theme.js +0 -111
  375. package/src-noconflict/theme-kuroir.js +0 -68
  376. package/src-noconflict/theme-merbivore.js +0 -102
  377. package/src-noconflict/theme-merbivore_soft.js +0 -103
  378. package/src-noconflict/theme-mono_industrial.js +0 -114
  379. package/src-noconflict/theme-monokai.js +0 -112
  380. package/src-noconflict/theme-pastel_on_dark.js +0 -115
  381. package/src-noconflict/theme-solarized_dark.js +0 -95
  382. package/src-noconflict/theme-solarized_light.js +0 -98
  383. package/src-noconflict/theme-sqlserver.js +0 -145
  384. package/src-noconflict/theme-terminal.js +0 -121
  385. package/src-noconflict/theme-textmate.js +0 -137
  386. package/src-noconflict/theme-tomorrow.js +0 -115
  387. package/src-noconflict/theme-tomorrow_night.js +0 -115
  388. package/src-noconflict/theme-tomorrow_night_blue.js +0 -113
  389. package/src-noconflict/theme-tomorrow_night_bright.js +0 -128
  390. package/src-noconflict/theme-tomorrow_night_eighties.js +0 -115
  391. package/src-noconflict/theme-twilight.js +0 -116
  392. package/src-noconflict/theme-vibrant_ink.js +0 -101
  393. package/src-noconflict/theme-xcode.js +0 -95
  394. package/src-noconflict/worker-coffee.js +0 -1470
  395. package/src-noconflict/worker-css.js +0 -9000
  396. package/src-noconflict/worker-html.js +0 -10922
  397. package/src-noconflict/worker-javascript.js +0 -15001
  398. package/src-noconflict/worker-json.js +0 -1715
  399. package/src-noconflict/worker-lua.js +0 -3608
  400. package/src-noconflict/worker-php.js +0 -3687
  401. package/src-noconflict/worker-xml.js +0 -3208
  402. package/src-noconflict/worker-xquery.js +0 -57668
@@ -1,1873 +0,0 @@
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/ruby_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"], function(require, exports, module) {
1006
- "use strict";
1007
-
1008
- var oop = require("../lib/oop");
1009
- var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
1010
- var constantOtherSymbol = exports.constantOtherSymbol = {
1011
- token : "constant.other.symbol.ruby", // symbol
1012
- regex : "[:](?:[A-Za-z_]|[@$](?=[a-zA-Z0-9_]))[a-zA-Z0-9_]*[!=?]?"
1013
- };
1014
-
1015
- exports.qString = {
1016
- token : "string", // single line
1017
- regex : "['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"
1018
- };
1019
-
1020
- exports.qqString = {
1021
- token : "string", // single line
1022
- regex : '["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]'
1023
- };
1024
-
1025
- exports.tString = {
1026
- token : "string", // backtick string
1027
- regex : "[`](?:(?:\\\\.)|(?:[^'\\\\]))*?[`]"
1028
- };
1029
-
1030
- var constantNumericHex = exports.constantNumericHex = {
1031
- token : "constant.numeric", // hex
1032
- regex : "0[xX][0-9a-fA-F](?:[0-9a-fA-F]|_(?=[0-9a-fA-F]))*\\b"
1033
- };
1034
-
1035
- var constantNumericBinary = exports.constantNumericBinary = {
1036
- token: "constant.numeric",
1037
- regex: /\b(0[bB][01](?:[01]|_(?=[01]))*)\b/
1038
- };
1039
-
1040
- var constantNumericDecimal = exports.constantNumericDecimal = {
1041
- token: "constant.numeric",
1042
- regex: /\b(0[dD](?:[1-9](?:[\d]|_(?=[\d]))*|0))\b/
1043
- };
1044
-
1045
- var constantNumericOctal = exports.constantNumericDecimal = {
1046
- token: "constant.numeric",
1047
- regex: /\b(0[oO]?(?:[1-7](?:[0-7]|_(?=[0-7]))*|0))\b/
1048
- };
1049
-
1050
- var constantNumericRational = exports.constantNumericRational = {
1051
- token: "constant.numeric", //rational + complex
1052
- regex: /\b([\d]+(?:[./][\d]+)?ri?)\b/
1053
- };
1054
-
1055
- var constantNumericComplex = exports.constantNumericComplex = {
1056
- token: "constant.numeric", //simple complex numbers
1057
- regex: /\b([\d]i)\b/
1058
- };
1059
-
1060
- var constantNumericFloat = exports.constantNumericFloat = {
1061
- token : "constant.numeric", // float + complex
1062
- regex : "[+-]?\\d(?:\\d|_(?=\\d))*(?:(?:\\.\\d(?:\\d|_(?=\\d))*)?(?:[eE][+-]?\\d+)?)?i?\\b"
1063
- };
1064
-
1065
- var instanceVariable = exports.instanceVariable = {
1066
- token : "variable.instance", // instance variable
1067
- regex : "@{1,2}[a-zA-Z_\\d]+"
1068
- };
1069
-
1070
- var RubyHighlightRules = function() {
1071
-
1072
- var builtinFunctions = (
1073
- "abort|Array|assert|assert_equal|assert_not_equal|assert_same|assert_not_same|" +
1074
- "assert_nil|assert_not_nil|assert_match|assert_no_match|assert_in_delta|assert_throws|" +
1075
- "assert_raise|assert_nothing_raised|assert_instance_of|assert_kind_of|assert_respond_to|" +
1076
- "assert_operator|assert_send|assert_difference|assert_no_difference|assert_recognizes|" +
1077
- "assert_generates|assert_response|assert_redirected_to|assert_template|assert_select|" +
1078
- "assert_select_email|assert_select_rjs|assert_select_encoded|css_select|at_exit|" +
1079
- "attr|attr_writer|attr_reader|attr_accessor|attr_accessible|autoload|binding|block_given?|callcc|" +
1080
- "caller|catch|chomp|chomp!|chop|chop!|defined?|delete_via_redirect|eval|exec|exit|" +
1081
- "exit!|fail|Float|flunk|follow_redirect!|fork|form_for|form_tag|format|gets|global_variables|gsub|" +
1082
- "gsub!|get_via_redirect|host!|https?|https!|include|Integer|lambda|link_to|" +
1083
- "link_to_unless_current|link_to_function|link_to_remote|load|local_variables|loop|open|open_session|" +
1084
- "p|print|printf|proc|putc|puts|post_via_redirect|put_via_redirect|raise|rand|" +
1085
- "raw|readline|readlines|redirect?|request_via_redirect|require|scan|select|" +
1086
- "set_trace_func|sleep|split|sprintf|srand|String|stylesheet_link_tag|syscall|system|sub|sub!|test|" +
1087
- "throw|trace_var|trap|untrace_var|atan2|cos|exp|frexp|ldexp|log|log10|sin|sqrt|tan|" +
1088
- "render|javascript_include_tag|csrf_meta_tag|label_tag|text_field_tag|submit_tag|check_box_tag|" +
1089
- "content_tag|radio_button_tag|text_area_tag|password_field_tag|hidden_field_tag|" +
1090
- "fields_for|select_tag|options_for_select|options_from_collection_for_select|collection_select|" +
1091
- "time_zone_select|select_date|select_time|select_datetime|date_select|time_select|datetime_select|" +
1092
- "select_year|select_month|select_day|select_hour|select_minute|select_second|file_field_tag|" +
1093
- "file_field|respond_to|skip_before_filter|around_filter|after_filter|verify|" +
1094
- "protect_from_forgery|rescue_from|helper_method|redirect_to|before_filter|" +
1095
- "send_data|send_file|validates_presence_of|validates_uniqueness_of|validates_length_of|" +
1096
- "validates_format_of|validates_acceptance_of|validates_associated|validates_exclusion_of|" +
1097
- "validates_inclusion_of|validates_numericality_of|validates_with|validates_each|" +
1098
- "authenticate_or_request_with_http_basic|authenticate_or_request_with_http_digest|" +
1099
- "filter_parameter_logging|match|get|post|resources|redirect|scope|assert_routing|" +
1100
- "translate|localize|extract_locale_from_tld|caches_page|expire_page|caches_action|expire_action|" +
1101
- "cache|expire_fragment|expire_cache_for|observe|cache_sweeper|" +
1102
- "has_many|has_one|belongs_to|has_and_belongs_to_many|p|warn|refine|using|module_function|extend|alias_method|" +
1103
- "private_class_method|remove_method|undef_method"
1104
- );
1105
-
1106
- var keywords = (
1107
- "alias|and|BEGIN|begin|break|case|class|def|defined|do|else|elsif|END|end|ensure|" +
1108
- "__FILE__|finally|for|gem|if|in|__LINE__|module|next|not|or|private|protected|public|" +
1109
- "redo|rescue|retry|return|super|then|undef|unless|until|when|while|yield|__ENCODING__|prepend"
1110
- );
1111
-
1112
- var buildinConstants = (
1113
- "true|TRUE|false|FALSE|nil|NIL|ARGF|ARGV|DATA|ENV|RUBY_PLATFORM|RUBY_RELEASE_DATE|" +
1114
- "RUBY_VERSION|STDERR|STDIN|STDOUT|TOPLEVEL_BINDING|RUBY_PATCHLEVEL|RUBY_REVISION|RUBY_COPYRIGHT|RUBY_ENGINE|RUBY_ENGINE_VERSION|RUBY_DESCRIPTION"
1115
- );
1116
-
1117
- var builtinVariables = (
1118
- "$DEBUG|$defout|$FILENAME|$LOAD_PATH|$SAFE|$stdin|$stdout|$stderr|$VERBOSE|" +
1119
- "$!|root_url|flash|session|cookies|params|request|response|logger|self"
1120
- );
1121
-
1122
- var keywordMapper = this.$keywords = this.createKeywordMapper({
1123
- "keyword": keywords,
1124
- "constant.language": buildinConstants,
1125
- "variable.language": builtinVariables,
1126
- "support.function": builtinFunctions,
1127
- "invalid.deprecated": "debugger" // TODO is this a remnant from js mode?
1128
- }, "identifier");
1129
-
1130
- 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})*})";
1131
-
1132
- var closeParen = {
1133
- "(": ")",
1134
- "[": "]",
1135
- "{": "}",
1136
- "<": ">",
1137
- "^": "^",
1138
- "|": "|",
1139
- "%": "%"
1140
- };
1141
-
1142
- this.$rules = {
1143
- "start": [
1144
- {
1145
- token: "comment",
1146
- regex: "#.*$"
1147
- }, {
1148
- token: "comment.multiline", // multi line comment
1149
- regex: "^=begin(?=$|\\s.*$)",
1150
- next: "comment"
1151
- }, {
1152
- token: "string.regexp",
1153
- regex: /[/](?=.*\/)/,
1154
- next: "regex"
1155
- },
1156
-
1157
- [{
1158
- token: ["constant.other.symbol.ruby", "string.start"],
1159
- regex: /(:)?(")/,
1160
- push: [{
1161
- token: "constant.language.escape",
1162
- regex: escapedChars
1163
- }, {
1164
- token: "paren.start",
1165
- regex: /#{/,
1166
- push: "start"
1167
- }, {
1168
- token: "string.end",
1169
- regex: /"/,
1170
- next: "pop"
1171
- }, {
1172
- defaultToken: "string"
1173
- }]
1174
- }, {
1175
- token: "string.start",
1176
- regex: /`/,
1177
- push: [{
1178
- token: "constant.language.escape",
1179
- regex: escapedChars
1180
- }, {
1181
- token: "paren.start",
1182
- regex: /#{/,
1183
- push: "start"
1184
- }, {
1185
- token: "string.end",
1186
- regex: /`/,
1187
- next: "pop"
1188
- }, {
1189
- defaultToken: "string"
1190
- }]
1191
- }, {
1192
- token: ["constant.other.symbol.ruby", "string.start"],
1193
- regex: /(:)?(')/,
1194
- push: [{
1195
- token: "constant.language.escape",
1196
- regex: /\\['\\]/
1197
- }, {
1198
- token: "string.end",
1199
- regex: /'/,
1200
- next: "pop"
1201
- }, {
1202
- defaultToken: "string"
1203
- }]
1204
- }, {
1205
- token: "string.start",//doesn't see any differences between strings and array of strings in highlighting
1206
- regex: /%[qwx]([(\[<{^|%])/, onMatch: function (val, state, stack) {
1207
- if (stack.length)
1208
- stack = [];
1209
- var paren = val[val.length - 1];
1210
- stack.unshift(paren, state);
1211
- this.next = "qStateWithoutInterpolation";
1212
- return this.token;
1213
- }
1214
- }, {
1215
- token: "string.start", //doesn't see any differences between strings and array of strings in highlighting
1216
- regex: /%[QWX]?([(\[<{^|%])/, onMatch: function (val, state, stack) {
1217
- if (stack.length)
1218
- stack = [];
1219
- var paren = val[val.length - 1];
1220
- stack.unshift(paren, state);
1221
- this.next = "qStateWithInterpolation";
1222
- return this.token;
1223
- }
1224
- }, {
1225
- token: "constant.other.symbol.ruby", //doesn't see any differences between symbols and array of symbols in highlighting
1226
- regex: /%[si]([(\[<{^|%])/, onMatch: function (val, state, stack) {
1227
- if (stack.length)
1228
- stack = [];
1229
- var paren = val[val.length - 1];
1230
- stack.unshift(paren, state);
1231
- this.next = "sStateWithoutInterpolation";
1232
- return this.token;
1233
- }
1234
- }, {
1235
- token: "constant.other.symbol.ruby", //doesn't see any differences between symbols and array of symbols in highlighting
1236
- regex: /%[SI]([(\[<{^|%])/, onMatch: function (val, state, stack) {
1237
- if (stack.length)
1238
- stack = [];
1239
- var paren = val[val.length - 1];
1240
- stack.unshift(paren, state);
1241
- this.next = "sStateWithInterpolation";
1242
- return this.token;
1243
- }
1244
- }, {
1245
- token: "string.regexp",
1246
- regex: /%[r]([(\[<{^|%])/, onMatch: function (val, state, stack) {
1247
- if (stack.length)
1248
- stack = [];
1249
- var paren = val[val.length - 1];
1250
- stack.unshift(paren, state);
1251
- this.next = "rState";
1252
- return this.token;
1253
- }
1254
- }],
1255
-
1256
- {
1257
- token: "punctuation", // namespaces aren't symbols
1258
- regex: "::"
1259
- },
1260
- instanceVariable,
1261
- {
1262
- token: "variable.global", // global variable
1263
- regex: "[$][a-zA-Z_\\d]+"
1264
- }, {
1265
- token: "support.class", // class name
1266
- regex: "[A-Z][a-zA-Z_\\d]*"
1267
- }, {
1268
- token: ["punctuation.operator", "support.function"],
1269
- regex: /(\.)([a-zA-Z_\d]+)(?=\()/
1270
- }, {
1271
- token: ["punctuation.operator", "identifier"],
1272
- regex: /(\.)([a-zA-Z_][a-zA-Z_\d]*)/
1273
- }, {
1274
- token: "string.character",
1275
- regex: "\\B\\?(?:" + escapedChars + "|\\S)"
1276
- }, {
1277
- token: "punctuation.operator",
1278
- regex: /\?(?=.+:)/
1279
- },
1280
-
1281
- constantNumericRational,
1282
- constantNumericComplex,
1283
- constantOtherSymbol,
1284
- constantNumericHex,
1285
- constantNumericFloat,
1286
- constantNumericBinary,
1287
- constantNumericDecimal,
1288
- constantNumericOctal,
1289
- {
1290
- token: "constant.language.boolean",
1291
- regex: "(?:true|false)\\b"
1292
- }, {
1293
- token: keywordMapper,
1294
- regex: "[a-zA-Z_$][a-zA-Z0-9_$]*\\b"
1295
- }, {
1296
- token: "punctuation.separator.key-value",
1297
- regex: "=>"
1298
- }, {
1299
- stateName: "heredoc",
1300
- onMatch: function (value, currentState, stack) {
1301
- var next = (value[2] == '-' || value[2] == '~') ? "indentedHeredoc" : "heredoc";
1302
- var tokens = value.split(this.splitRegex);
1303
- stack.push(next, tokens[3]);
1304
- return [
1305
- {type: "constant", value: tokens[1]},
1306
- {type: "string", value: tokens[2]},
1307
- {type: "support.class", value: tokens[3]},
1308
- {type: "string", value: tokens[4]}
1309
- ];
1310
- },
1311
- regex: "(<<[-~]?)(['\"`]?)([\\w]+)(['\"`]?)",
1312
- rules: {
1313
- heredoc: [{
1314
- onMatch: function(value, currentState, stack) {
1315
- if (value === stack[1]) {
1316
- stack.shift();
1317
- stack.shift();
1318
- this.next = stack[0] || "start";
1319
- return "support.class";
1320
- }
1321
- this.next = "";
1322
- return "string";
1323
- },
1324
- regex: ".*$",
1325
- next: "start"
1326
- }],
1327
- indentedHeredoc: [{
1328
- token: "string",
1329
- regex: "^ +"
1330
- }, {
1331
- onMatch: function(value, currentState, stack) {
1332
- if (value === stack[1]) {
1333
- stack.shift();
1334
- stack.shift();
1335
- this.next = stack[0] || "start";
1336
- return "support.class";
1337
- }
1338
- this.next = "";
1339
- return "string";
1340
- },
1341
- regex: ".*$",
1342
- next: "start"
1343
- }]
1344
- }
1345
- }, {
1346
- regex: "$",
1347
- token: "empty",
1348
- next: function(currentState, stack) {
1349
- if (stack[0] === "heredoc" || stack[0] === "indentedHeredoc")
1350
- return stack[0];
1351
- return currentState;
1352
- }
1353
- }, {
1354
- token: "keyword.operator",
1355
- regex: "!|\\$|%|&|\\*|/|\\-\\-|\\-|\\+\\+|\\+|~|===|==|=|!=|!==|<=|>=|<<=|>>=|>>>=|<>|<|>|!|&&|\\|\\||\\?\\:|\\*=|%=|\\+=|\\-=|&=|\\^=|\\||\\b(?:in|instanceof|new|delete|typeof|void)"
1356
- }, {
1357
- token: "paren.lparen",
1358
- regex: "[[({]"
1359
- }, {
1360
- token: "paren.rparen",
1361
- regex: "[\\])}]",
1362
- onMatch: function(value, currentState, stack) {
1363
- this.next = '';
1364
- if (value == "}" && stack.length > 1 && stack[1] != "start") {
1365
- stack.shift();
1366
- this.next = stack.shift();
1367
- }
1368
- return this.token;
1369
- }
1370
- }, {
1371
- token: "text",
1372
- regex: "\\s+"
1373
- }, {
1374
- token: "punctuation.operator",
1375
- regex: /[?:,;.]/
1376
- }
1377
- ],
1378
- "comment": [
1379
- {
1380
- token: "comment.multiline", // closing comment
1381
- regex: "^=end(?=$|\\s.*$)",
1382
- next: "start"
1383
- }, {
1384
- token: "comment", // comment spanning whole line
1385
- regex: ".+"
1386
- }
1387
- ],
1388
- "qStateWithInterpolation": [{
1389
- token: "string.start",// excluded nested |^% due to difficulty in realization
1390
- regex: /[(\[<{]/, onMatch: function (val, state, stack) {
1391
- if (stack.length && val === stack[0]) {
1392
- stack.unshift(val, state);
1393
- return this.token;
1394
- }
1395
- return "string";
1396
- }
1397
- }, {
1398
- token: "constant.language.escape",
1399
- regex: escapedChars
1400
- }, {
1401
- token: "constant.language.escape",
1402
- regex: /\\./
1403
- }, {
1404
- token: "paren.start",
1405
- regex: /#{/,
1406
- push: "start"
1407
- }, {
1408
- token: "string.end",
1409
- regex: /[)\]>}^|%]/, onMatch: function (val, state, stack) {
1410
- if (stack.length && val === closeParen[stack[0]]) {
1411
- stack.shift();
1412
- this.next = stack.shift();
1413
- return this.token;
1414
- }
1415
- this.next = '';
1416
- return "string";
1417
- }
1418
- }, {
1419
- defaultToken: "string"
1420
- }],
1421
- "qStateWithoutInterpolation": [{
1422
- token: "string.start",// excluded nested |^% due to difficulty in realization
1423
- regex: /[(\[<{]/, onMatch: function (val, state, stack) {
1424
- if (stack.length && val === stack[0]) {
1425
- stack.unshift(val, state);
1426
- return this.token;
1427
- }
1428
- return "string";
1429
- }
1430
- }, {
1431
- token: "constant.language.escape",
1432
- regex: /\\['\\]/
1433
- }, {
1434
- token: "constant.language.escape",
1435
- regex: /\\./
1436
- }, {
1437
- token: "string.end",
1438
- regex: /[)\]>}^|%]/, onMatch: function (val, state, stack) {
1439
- if (stack.length && val === closeParen[stack[0]]) {
1440
- stack.shift();
1441
- this.next = stack.shift();
1442
- return this.token;
1443
- }
1444
- this.next = '';
1445
- return "string";
1446
- }
1447
- }, {
1448
- defaultToken: "string"
1449
- }],
1450
- "sStateWithoutInterpolation": [{
1451
- token: "constant.other.symbol.ruby",// excluded nested |^% due to difficulty in realization
1452
- regex: /[(\[<{]/, onMatch: function (val, state, stack) {
1453
- if (stack.length && val === stack[0]) {
1454
- stack.unshift(val, state);
1455
- return this.token;
1456
- }
1457
- return "constant.other.symbol.ruby";
1458
- }
1459
- }, {
1460
- token: "constant.other.symbol.ruby",
1461
- regex: /[)\]>}^|%]/, onMatch: function (val, state, stack) {
1462
- if (stack.length && val === closeParen[stack[0]]) {
1463
- stack.shift();
1464
- this.next = stack.shift();
1465
- return this.token;
1466
- }
1467
- this.next = '';
1468
- return "constant.other.symbol.ruby";
1469
- }
1470
- }, {
1471
- defaultToken: "constant.other.symbol.ruby"
1472
- }],
1473
- "sStateWithInterpolation": [{
1474
- token: "constant.other.symbol.ruby",// excluded nested |^% due to difficulty in realization
1475
- regex: /[(\[<{]/, onMatch: function (val, state, stack) {
1476
- if (stack.length && val === stack[0]) {
1477
- stack.unshift(val, state);
1478
- return this.token;
1479
- }
1480
- return "constant.other.symbol.ruby";
1481
- }
1482
- }, {
1483
- token: "constant.language.escape",
1484
- regex: escapedChars
1485
- }, {
1486
- token: "constant.language.escape",
1487
- regex: /\\./
1488
- }, {
1489
- token: "paren.start",
1490
- regex: /#{/,
1491
- push: "start"
1492
- }, {
1493
- token: "constant.other.symbol.ruby",
1494
- regex: /[)\]>}^|%]/, onMatch: function (val, state, stack) {
1495
- if (stack.length && val === closeParen[stack[0]]) {
1496
- stack.shift();
1497
- this.next = stack.shift();
1498
- return this.token;
1499
- }
1500
- this.next = '';
1501
- return "constant.other.symbol.ruby";
1502
- }
1503
- }, {
1504
- defaultToken: "constant.other.symbol.ruby"
1505
- }],
1506
- "rState": [{
1507
- token: "string.regexp",// excluded nested |^% due to difficulty in realization
1508
- regex: /[(\[<{]/, onMatch: function (val, state, stack) {
1509
- if (stack.length && val === stack[0]) {
1510
- stack.unshift(val, state);
1511
- return this.token;
1512
- }
1513
- return "constant.language.escape";
1514
- }
1515
- }, {
1516
- token: "paren.start",
1517
- regex: /#{/,
1518
- push: "start"
1519
- }, {
1520
- token: "string.regexp",
1521
- regex: /\//
1522
- }, {
1523
- token: "string.regexp",
1524
- regex: /[)\]>}^|%][imxouesn]*/, onMatch: function (val, state, stack) {
1525
- if (stack.length && val[0] === closeParen[stack[0]]) {
1526
- stack.shift();
1527
- this.next = stack.shift();
1528
- return this.token;
1529
- }
1530
- this.next = '';
1531
- return "constant.language.escape";
1532
- }
1533
- },
1534
- {include: "regex"},
1535
- {
1536
- defaultToken: "string.regexp"
1537
- }],
1538
- "regex": [
1539
- {// character classes
1540
- token: "regexp.keyword",
1541
- regex: /\\[wWdDhHsS]/
1542
- }, {
1543
- token: "constant.language.escape",
1544
- regex: /\\[AGbBzZ]/
1545
- }, {
1546
- token: "constant.language.escape",
1547
- regex: /\\g<[a-zA-Z0-9]*>/
1548
- }, {
1549
- token: ["constant.language.escape", "regexp.keyword", "constant.language.escape"],
1550
- 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)(})/
1551
- }, {
1552
- token: ["constant.language.escape", "invalid", "constant.language.escape"],
1553
- regex: /(\\p{\^?)([^/]*)(})/
1554
- }, {// escapes
1555
- token: "regexp.keyword.operator",
1556
- regex: "\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"
1557
- }, {// flag
1558
- token: "string.regexp",
1559
- regex: /[/][imxouesn]*/,
1560
- next: "start"
1561
- }, {// invalid operators
1562
- token: "invalid",
1563
- regex: /\{\d+\b,?\d*\}[+*]|[+*$^?][+*]|[$^][?]|\?{3,}/
1564
- }, {// operators
1565
- token: "constant.language.escape",
1566
- regex: /\(\?(?:[:=!>]|<'?[a-zA-Z]*'?>|<[=!])|\)|\{\d+\b,?\d*\}|[+*]\?|[()$^+*?.]/
1567
- }, {
1568
- token: "constant.language.delimiter",
1569
- regex: /\|/
1570
- }, {
1571
- token: "regexp.keyword",
1572
- regex: /\[\[:(?:alnum|alpha|blank|cntrl|digit|graph|lower|print|punct|space|upper|xdigit|word|ascii):\]\]/
1573
- }, {
1574
- token: "constant.language.escape",
1575
- regex: /\[\^?/,
1576
- push: "regex_character_class"
1577
- }, {
1578
- defaultToken: "string.regexp"
1579
- }
1580
- ],
1581
- "regex_character_class": [
1582
- {
1583
- token: "regexp.keyword",
1584
- regex: /\\[wWdDhHsS]/
1585
- }, {
1586
- token: "regexp.charclass.keyword.operator",
1587
- regex: "\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"
1588
- }, {
1589
- token: "constant.language.escape",
1590
- regex: /&?&?\[\^?/,
1591
- push: "regex_character_class"
1592
- }, {
1593
- token: "constant.language.escape",
1594
- regex: "]",
1595
- next: "pop"
1596
- }, {
1597
- token: "constant.language.escape",
1598
- regex: "-"
1599
- }, {
1600
- defaultToken: "string.regexp.characterclass"
1601
- }
1602
- ]
1603
- };
1604
-
1605
- this.normalizeRules();
1606
- };
1607
-
1608
- oop.inherits(RubyHighlightRules, TextHighlightRules);
1609
-
1610
- exports.RubyHighlightRules = RubyHighlightRules;
1611
- });
1612
-
1613
- ace.define("ace/mode/haml_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/html_highlight_rules","ace/mode/ruby_highlight_rules"], function(require, exports, module) {
1614
- "use strict";
1615
-
1616
- var oop = require("../lib/oop");
1617
- var HtmlHighlightRules = require("./html_highlight_rules").HtmlHighlightRules;
1618
- var RubyExports = require("./ruby_highlight_rules");
1619
- var RubyHighlightRules = RubyExports.RubyHighlightRules;
1620
-
1621
- var HamlHighlightRules = function() {
1622
- HtmlHighlightRules.call(this);
1623
-
1624
- this.$rules = {
1625
- "start": [
1626
- {
1627
- token: "comment.block", // multiline HTML comment
1628
- regex: /^\/$/,
1629
- next: "comment"
1630
- },
1631
- {
1632
- token: "comment.block", // multiline HAML comment
1633
- regex: /^\-#$/,
1634
- next: "comment"
1635
- },
1636
- {
1637
- token: "comment.line", // HTML comment
1638
- regex: /\/\s*.*/
1639
- },
1640
- {
1641
- token: "comment.line", // HAML comment
1642
- regex: /-#\s*.*/
1643
- },
1644
- {
1645
- token: "keyword.other.doctype",
1646
- regex: "^!!!\\s*(?:[a-zA-Z0-9-_]+)?"
1647
- },
1648
- RubyExports.qString,
1649
- RubyExports.qqString,
1650
- RubyExports.tString,
1651
- {
1652
- token: "meta.tag.haml",
1653
- regex: /(%[\w:\-]+)/
1654
- },
1655
- {
1656
- token: "keyword.attribute-name.class.haml",
1657
- regex: /\.[\w-]+/
1658
- },
1659
- {
1660
- token: "keyword.attribute-name.id.haml",
1661
- regex: /#[\w-]+/,
1662
- next: "element_class"
1663
- },
1664
- RubyExports.constantNumericHex,
1665
- RubyExports.constantNumericFloat,
1666
- RubyExports.constantOtherSymbol,
1667
- {
1668
- token: "text",
1669
- regex: /=|-|~/,
1670
- next: "embedded_ruby"
1671
- }
1672
- ],
1673
- "element_class": [
1674
- {
1675
- token: "keyword.attribute-name.class.haml",
1676
- regex: /\.[\w-]+/
1677
- },
1678
- {
1679
- token: "punctuation.section",
1680
- regex: /\{/,
1681
- next: "element_attributes"
1682
- },
1683
- RubyExports.constantOtherSymbol,
1684
- {
1685
- token: "empty",
1686
- regex: "$|(?!\\.|#|\\{|\\[|=|-|~|\\/])",
1687
- next: "start"
1688
- }
1689
- ],
1690
- "element_attributes": [
1691
- RubyExports.constantOtherSymbol,
1692
- RubyExports.qString,
1693
- RubyExports.qqString,
1694
- RubyExports.tString,
1695
- RubyExports.constantNumericHex,
1696
- RubyExports.constantNumericFloat,
1697
- {
1698
- token: "punctuation.section",
1699
- regex: /$|\}/,
1700
- next: "start"
1701
- }
1702
- ],
1703
- "embedded_ruby": [
1704
- RubyExports.constantNumericHex,
1705
- RubyExports.constantNumericFloat,
1706
- RubyExports.instanceVariable,
1707
- RubyExports.qString,
1708
- RubyExports.qqString,
1709
- RubyExports.tString,
1710
- {
1711
- token : "support.class", // class name
1712
- regex : "[A-Z][a-zA-Z_\\d]+"
1713
- },
1714
- {
1715
- token : new RubyHighlightRules().getKeywords(),
1716
- regex : "[a-zA-Z_$][a-zA-Z0-9_$]*\\b"
1717
- },
1718
- {
1719
- token : ["keyword", "text", "text"],
1720
- regex : "(?:do|\\{)(?: \\|[^|]+\\|)?$",
1721
- next : "start"
1722
- },
1723
- {
1724
- token : ["text"],
1725
- regex : "^$",
1726
- next : "start"
1727
- },
1728
- {
1729
- token : ["text"],
1730
- regex : "^(?!.*\\|\\s*$)",
1731
- next : "start"
1732
- }
1733
- ],
1734
- "comment": [
1735
- {
1736
- token: "comment.block",
1737
- regex: /^$/,
1738
- next: "start"
1739
- },
1740
- {
1741
- token: "comment.block", // comment spanning the whole line
1742
- regex: /\s+.*/
1743
- }
1744
- ]
1745
-
1746
- };
1747
-
1748
- this.normalizeRules();
1749
- };
1750
-
1751
- oop.inherits(HamlHighlightRules, HtmlHighlightRules);
1752
-
1753
- exports.HamlHighlightRules = HamlHighlightRules;
1754
- });
1755
-
1756
- ace.define("ace/mode/folding/coffee",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode","ace/range"], function(require, exports, module) {
1757
- "use strict";
1758
-
1759
- var oop = require("../../lib/oop");
1760
- var BaseFoldMode = require("./fold_mode").FoldMode;
1761
- var Range = require("../../range").Range;
1762
-
1763
- var FoldMode = exports.FoldMode = function() {};
1764
- oop.inherits(FoldMode, BaseFoldMode);
1765
-
1766
- (function() {
1767
-
1768
- this.getFoldWidgetRange = function(session, foldStyle, row) {
1769
- var range = this.indentationBlock(session, row);
1770
- if (range)
1771
- return range;
1772
-
1773
- var re = /\S/;
1774
- var line = session.getLine(row);
1775
- var startLevel = line.search(re);
1776
- if (startLevel == -1 || line[startLevel] != "#")
1777
- return;
1778
-
1779
- var startColumn = line.length;
1780
- var maxRow = session.getLength();
1781
- var startRow = row;
1782
- var endRow = row;
1783
-
1784
- while (++row < maxRow) {
1785
- line = session.getLine(row);
1786
- var level = line.search(re);
1787
-
1788
- if (level == -1)
1789
- continue;
1790
-
1791
- if (line[level] != "#")
1792
- break;
1793
-
1794
- endRow = row;
1795
- }
1796
-
1797
- if (endRow > startRow) {
1798
- var endColumn = session.getLine(endRow).length;
1799
- return new Range(startRow, startColumn, endRow, endColumn);
1800
- }
1801
- };
1802
- this.getFoldWidget = function(session, foldStyle, row) {
1803
- var line = session.getLine(row);
1804
- var indent = line.search(/\S/);
1805
- var next = session.getLine(row + 1);
1806
- var prev = session.getLine(row - 1);
1807
- var prevIndent = prev.search(/\S/);
1808
- var nextIndent = next.search(/\S/);
1809
-
1810
- if (indent == -1) {
1811
- session.foldWidgets[row - 1] = prevIndent!= -1 && prevIndent < nextIndent ? "start" : "";
1812
- return "";
1813
- }
1814
- if (prevIndent == -1) {
1815
- if (indent == nextIndent && line[indent] == "#" && next[indent] == "#") {
1816
- session.foldWidgets[row - 1] = "";
1817
- session.foldWidgets[row + 1] = "";
1818
- return "start";
1819
- }
1820
- } else if (prevIndent == indent && line[indent] == "#" && prev[indent] == "#") {
1821
- if (session.getLine(row - 2).search(/\S/) == -1) {
1822
- session.foldWidgets[row - 1] = "start";
1823
- session.foldWidgets[row + 1] = "";
1824
- return "";
1825
- }
1826
- }
1827
-
1828
- if (prevIndent!= -1 && prevIndent < indent)
1829
- session.foldWidgets[row - 1] = "start";
1830
- else
1831
- session.foldWidgets[row - 1] = "";
1832
-
1833
- if (indent < nextIndent)
1834
- return "start";
1835
- else
1836
- return "";
1837
- };
1838
-
1839
- }).call(FoldMode.prototype);
1840
-
1841
- });
1842
-
1843
- ace.define("ace/mode/haml",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/haml_highlight_rules","ace/mode/folding/coffee"], function(require, exports, module) {
1844
- "use strict";
1845
-
1846
- var oop = require("../lib/oop");
1847
- var TextMode = require("./text").Mode;
1848
- var HamlHighlightRules = require("./haml_highlight_rules").HamlHighlightRules;
1849
- var FoldMode = require("./folding/coffee").FoldMode;
1850
-
1851
- var Mode = function() {
1852
- this.HighlightRules = HamlHighlightRules;
1853
- this.foldingRules = new FoldMode();
1854
- this.$behaviour = this.$defaultBehaviour;
1855
- };
1856
- oop.inherits(Mode, TextMode);
1857
-
1858
- (function() {
1859
- this.lineCommentStart = "//";
1860
-
1861
- this.$id = "ace/mode/haml";
1862
- this.snippetFileId = "ace/snippets/haml";
1863
- }).call(Mode.prototype);
1864
-
1865
- exports.Mode = Mode;
1866
- }); (function() {
1867
- ace.require(["ace/mode/haml"], function(m) {
1868
- if (typeof module == "object" && typeof exports == "object" && module) {
1869
- module.exports = m;
1870
- }
1871
- });
1872
- })();
1873
-