ace-rails-ap 4.1.2 → 4.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (363) hide show
  1. checksums.yaml +4 -4
  2. data/lib/ace/rails/version.rb +1 -1
  3. data/vendor/assets/javascripts/ace/ace.js +752 -261
  4. data/vendor/assets/javascripts/ace/ext-beautify.js +0 -0
  5. data/vendor/assets/javascripts/ace/ext-chromevox.js +0 -0
  6. data/vendor/assets/javascripts/ace/ext-elastic_tabstops_lite.js +0 -0
  7. data/vendor/assets/javascripts/ace/ext-emmet.js +0 -0
  8. data/vendor/assets/javascripts/ace/ext-error_marker.js +0 -0
  9. data/vendor/assets/javascripts/ace/ext-keybinding_menu.js +0 -0
  10. data/vendor/assets/javascripts/ace/ext-language_tools.js +19 -9
  11. data/vendor/assets/javascripts/ace/ext-linking.js +9 -0
  12. data/vendor/assets/javascripts/ace/ext-modelist.js +2 -0
  13. data/vendor/assets/javascripts/ace/ext-old_ie.js +0 -0
  14. data/vendor/assets/javascripts/ace/ext-searchbox.js +158 -66
  15. data/vendor/assets/javascripts/ace/ext-settings_menu.js +3 -0
  16. data/vendor/assets/javascripts/ace/ext-spellcheck.js +0 -0
  17. data/vendor/assets/javascripts/ace/ext-split.js +0 -0
  18. data/vendor/assets/javascripts/ace/ext-static_highlight.js +1 -1
  19. data/vendor/assets/javascripts/ace/ext-statusbar.js +0 -0
  20. data/vendor/assets/javascripts/ace/ext-textarea.js +1 -0
  21. data/vendor/assets/javascripts/ace/ext-themelist.js +1 -0
  22. data/vendor/assets/javascripts/ace/ext-whitespace.js +24 -3
  23. data/vendor/assets/javascripts/ace/keybinding-emacs.js +0 -0
  24. data/vendor/assets/javascripts/ace/keybinding-vim.js +12 -4
  25. data/vendor/assets/javascripts/ace/mode-abap.js +0 -0
  26. data/vendor/assets/javascripts/ace/mode-abc.js +0 -0
  27. data/vendor/assets/javascripts/ace/mode-actionscript.js +0 -0
  28. data/vendor/assets/javascripts/ace/mode-ada.js +0 -0
  29. data/vendor/assets/javascripts/ace/mode-apache_conf.js +0 -0
  30. data/vendor/assets/javascripts/ace/mode-applescript.js +0 -0
  31. data/vendor/assets/javascripts/ace/mode-asciidoc.js +0 -0
  32. data/vendor/assets/javascripts/ace/mode-assembly_x86.js +0 -0
  33. data/vendor/assets/javascripts/ace/mode-autohotkey.js +0 -0
  34. data/vendor/assets/javascripts/ace/mode-bash.js +247 -0
  35. data/vendor/assets/javascripts/ace/mode-batchfile.js +0 -0
  36. data/vendor/assets/javascripts/ace/mode-bro.js +0 -0
  37. data/vendor/assets/javascripts/ace/mode-c9search.js +0 -5
  38. data/vendor/assets/javascripts/ace/mode-c_cpp.js +2 -3
  39. data/vendor/assets/javascripts/ace/mode-cirru.js +0 -0
  40. data/vendor/assets/javascripts/ace/mode-clojure.js +0 -0
  41. data/vendor/assets/javascripts/ace/mode-cobol.js +0 -0
  42. data/vendor/assets/javascripts/ace/mode-coffee.js +0 -0
  43. data/vendor/assets/javascripts/ace/mode-coldfusion.js +132 -78
  44. data/vendor/assets/javascripts/ace/mode-csharp.js +3 -4
  45. data/vendor/assets/javascripts/ace/mode-css.js +95 -47
  46. data/vendor/assets/javascripts/ace/mode-curly.js +132 -78
  47. data/vendor/assets/javascripts/ace/mode-d.js +0 -0
  48. data/vendor/assets/javascripts/ace/mode-dart.js +5 -8
  49. data/vendor/assets/javascripts/ace/mode-diff.js +0 -0
  50. data/vendor/assets/javascripts/ace/mode-django.js +132 -83
  51. data/vendor/assets/javascripts/ace/mode-dockerfile.js +0 -0
  52. data/vendor/assets/javascripts/ace/mode-dot.js +2 -5
  53. data/vendor/assets/javascripts/ace/mode-drools.js +4 -6
  54. data/vendor/assets/javascripts/ace/mode-eiffel.js +0 -0
  55. data/vendor/assets/javascripts/ace/mode-ejs.js +137 -78
  56. data/vendor/assets/javascripts/ace/mode-elixir.js +0 -0
  57. data/vendor/assets/javascripts/ace/mode-elm.js +0 -0
  58. data/vendor/assets/javascripts/ace/mode-erlang.js +0 -0
  59. data/vendor/assets/javascripts/ace/mode-forth.js +0 -0
  60. data/vendor/assets/javascripts/ace/mode-fortran.js +0 -0
  61. data/vendor/assets/javascripts/ace/mode-ftl.js +122 -78
  62. data/vendor/assets/javascripts/ace/mode-gcode.js +0 -0
  63. data/vendor/assets/javascripts/ace/mode-gherkin.js +0 -0
  64. data/vendor/assets/javascripts/ace/mode-gitignore.js +0 -0
  65. data/vendor/assets/javascripts/ace/mode-glsl.js +2 -3
  66. data/vendor/assets/javascripts/ace/mode-gobstones.js +23 -17
  67. data/vendor/assets/javascripts/ace/mode-golang.js +0 -0
  68. data/vendor/assets/javascripts/ace/mode-graphqlschema.js +206 -0
  69. data/vendor/assets/javascripts/ace/mode-groovy.js +23 -17
  70. data/vendor/assets/javascripts/ace/mode-haml.js +247 -183
  71. data/vendor/assets/javascripts/ace/mode-handlebars.js +132 -78
  72. data/vendor/assets/javascripts/ace/mode-haskell.js +0 -0
  73. data/vendor/assets/javascripts/ace/mode-haskell_cabal.js +0 -0
  74. data/vendor/assets/javascripts/ace/mode-haxe.js +2 -3
  75. data/vendor/assets/javascripts/ace/mode-hjson.js +0 -0
  76. data/vendor/assets/javascripts/ace/mode-html.js +132 -78
  77. data/vendor/assets/javascripts/ace/mode-html_elixir.js +132 -78
  78. data/vendor/assets/javascripts/ace/mode-html_ruby.js +137 -78
  79. data/vendor/assets/javascripts/ace/mode-ini.js +0 -0
  80. data/vendor/assets/javascripts/ace/mode-io.js +0 -0
  81. data/vendor/assets/javascripts/ace/mode-jack.js +0 -0
  82. data/vendor/assets/javascripts/ace/mode-jade.js +150 -86
  83. data/vendor/assets/javascripts/ace/mode-java.js +23 -17
  84. data/vendor/assets/javascripts/ace/mode-javascript.js +21 -14
  85. data/vendor/assets/javascripts/ace/mode-json.js +16 -8
  86. data/vendor/assets/javascripts/ace/mode-jsoniq.js +27 -11
  87. data/vendor/assets/javascripts/ace/mode-jsp.js +122 -78
  88. data/vendor/assets/javascripts/ace/mode-jsx.js +2 -3
  89. data/vendor/assets/javascripts/ace/mode-julia.js +0 -0
  90. data/vendor/assets/javascripts/ace/mode-kotlin.js +0 -0
  91. data/vendor/assets/javascripts/ace/mode-latex.js +3 -2
  92. data/vendor/assets/javascripts/ace/mode-lean.js +0 -0
  93. data/vendor/assets/javascripts/ace/mode-less.js +97 -50
  94. data/vendor/assets/javascripts/ace/mode-liquid.js +120 -75
  95. data/vendor/assets/javascripts/ace/mode-lisp.js +0 -0
  96. data/vendor/assets/javascripts/ace/mode-live_script.js +0 -0
  97. data/vendor/assets/javascripts/ace/mode-livescript.js +0 -0
  98. data/vendor/assets/javascripts/ace/mode-logiql.js +0 -0
  99. data/vendor/assets/javascripts/ace/mode-lsl.js +0 -0
  100. data/vendor/assets/javascripts/ace/mode-lua.js +4 -4
  101. data/vendor/assets/javascripts/ace/mode-luapage.js +136 -82
  102. data/vendor/assets/javascripts/ace/mode-lucene.js +0 -0
  103. data/vendor/assets/javascripts/ace/mode-makefile.js +0 -0
  104. data/vendor/assets/javascripts/ace/mode-markdown.js +133 -80
  105. data/vendor/assets/javascripts/ace/mode-mask.js +121 -77
  106. data/vendor/assets/javascripts/ace/mode-matlab.js +0 -0
  107. data/vendor/assets/javascripts/ace/mode-maze.js +0 -0
  108. data/vendor/assets/javascripts/ace/mode-mel.js +0 -0
  109. data/vendor/assets/javascripts/ace/mode-mips_assembler.js +0 -0
  110. data/vendor/assets/javascripts/ace/mode-mipsassembler.js +0 -0
  111. data/vendor/assets/javascripts/ace/mode-mushcode.js +0 -0
  112. data/vendor/assets/javascripts/ace/mode-mysql.js +0 -0
  113. data/vendor/assets/javascripts/ace/mode-nix.js +4 -6
  114. data/vendor/assets/javascripts/ace/mode-nsis.js +0 -0
  115. data/vendor/assets/javascripts/ace/mode-objectivec.js +3 -5
  116. data/vendor/assets/javascripts/ace/mode-ocaml.js +2 -3
  117. data/vendor/assets/javascripts/ace/mode-pascal.js +0 -0
  118. data/vendor/assets/javascripts/ace/mode-perl.js +0 -0
  119. data/vendor/assets/javascripts/ace/mode-pgsql.js +42 -31
  120. data/vendor/assets/javascripts/ace/mode-php.js +132 -78
  121. data/vendor/assets/javascripts/ace/mode-pig.js +303 -0
  122. data/vendor/assets/javascripts/ace/mode-plain_text.js +0 -0
  123. data/vendor/assets/javascripts/ace/mode-powershell.js +0 -0
  124. data/vendor/assets/javascripts/ace/mode-praat.js +0 -0
  125. data/vendor/assets/javascripts/ace/mode-prolog.js +0 -0
  126. data/vendor/assets/javascripts/ace/mode-properties.js +0 -0
  127. data/vendor/assets/javascripts/ace/mode-protobuf.js +6 -8
  128. data/vendor/assets/javascripts/ace/mode-python.js +0 -0
  129. data/vendor/assets/javascripts/ace/mode-r.js +0 -0
  130. data/vendor/assets/javascripts/ace/mode-razor.js +135 -82
  131. data/vendor/assets/javascripts/ace/mode-rdoc.js +0 -0
  132. data/vendor/assets/javascripts/ace/mode-rhtml.js +132 -78
  133. data/vendor/assets/javascripts/ace/mode-rst.js +0 -0
  134. data/vendor/assets/javascripts/ace/mode-ruby.js +5 -0
  135. data/vendor/assets/javascripts/ace/mode-rust.js +1 -0
  136. data/vendor/assets/javascripts/ace/mode-sass.js +27 -6
  137. data/vendor/assets/javascripts/ace/mode-scad.js +2 -3
  138. data/vendor/assets/javascripts/ace/mode-scala.js +23 -17
  139. data/vendor/assets/javascripts/ace/mode-scheme.js +0 -0
  140. data/vendor/assets/javascripts/ace/mode-scss.js +27 -6
  141. data/vendor/assets/javascripts/ace/mode-sh.js +0 -0
  142. data/vendor/assets/javascripts/ace/mode-sjs.js +21 -14
  143. data/vendor/assets/javascripts/ace/mode-smarty.js +132 -78
  144. data/vendor/assets/javascripts/ace/mode-snippets.js +0 -0
  145. data/vendor/assets/javascripts/ace/mode-soy_template.js +132 -78
  146. data/vendor/assets/javascripts/ace/mode-space.js +0 -0
  147. data/vendor/assets/javascripts/ace/mode-sparql.js +313 -0
  148. data/vendor/assets/javascripts/ace/mode-sql.js +3 -0
  149. data/vendor/assets/javascripts/ace/mode-sqlserver.js +0 -0
  150. data/vendor/assets/javascripts/ace/mode-stylus.js +97 -50
  151. data/vendor/assets/javascripts/ace/mode-svg.js +37 -31
  152. data/vendor/assets/javascripts/ace/mode-swift.js +0 -0
  153. data/vendor/assets/javascripts/ace/mode-swig.js +0 -0
  154. data/vendor/assets/javascripts/ace/mode-tcl.js +0 -0
  155. data/vendor/assets/javascripts/ace/mode-tex.js +0 -0
  156. data/vendor/assets/javascripts/ace/mode-text.js +0 -0
  157. data/vendor/assets/javascripts/ace/mode-textile.js +0 -0
  158. data/vendor/assets/javascripts/ace/mode-toml.js +0 -0
  159. data/vendor/assets/javascripts/ace/mode-tsx.js +21 -14
  160. data/vendor/assets/javascripts/ace/mode-turtle.js +289 -0
  161. data/vendor/assets/javascripts/ace/mode-twig.js +132 -78
  162. data/vendor/assets/javascripts/ace/mode-typescript.js +21 -14
  163. data/vendor/assets/javascripts/ace/mode-vala.js +0 -0
  164. data/vendor/assets/javascripts/ace/mode-vbscript.js +0 -0
  165. data/vendor/assets/javascripts/ace/mode-velocity.js +132 -78
  166. data/vendor/assets/javascripts/ace/mode-verilog.js +0 -0
  167. data/vendor/assets/javascripts/ace/mode-vhdl.js +0 -0
  168. data/vendor/assets/javascripts/ace/mode-wollok.js +21 -14
  169. data/vendor/assets/javascripts/ace/mode-xml.js +16 -17
  170. data/vendor/assets/javascripts/ace/mode-xquery.js +0 -0
  171. data/vendor/assets/javascripts/ace/mode-yaml.js +40 -8
  172. data/vendor/assets/javascripts/ace/snippets/abap.js +0 -0
  173. data/vendor/assets/javascripts/ace/snippets/abc.js +0 -0
  174. data/vendor/assets/javascripts/ace/snippets/actionscript.js +0 -0
  175. data/vendor/assets/javascripts/ace/snippets/ada.js +0 -0
  176. data/vendor/assets/javascripts/ace/snippets/apache_conf.js +0 -0
  177. data/vendor/assets/javascripts/ace/snippets/applescript.js +0 -0
  178. data/vendor/assets/javascripts/ace/snippets/asciidoc.js +0 -0
  179. data/vendor/assets/javascripts/ace/snippets/assembly_x86.js +0 -0
  180. data/vendor/assets/javascripts/ace/snippets/autohotkey.js +0 -0
  181. data/vendor/assets/javascripts/ace/snippets/batchfile.js +0 -0
  182. data/vendor/assets/javascripts/ace/snippets/bro.js +0 -0
  183. data/vendor/assets/javascripts/ace/snippets/c9search.js +0 -0
  184. data/vendor/assets/javascripts/ace/snippets/c_cpp.js +0 -0
  185. data/vendor/assets/javascripts/ace/snippets/cirru.js +0 -0
  186. data/vendor/assets/javascripts/ace/snippets/clojure.js +0 -0
  187. data/vendor/assets/javascripts/ace/snippets/cobol.js +0 -0
  188. data/vendor/assets/javascripts/ace/snippets/coffee.js +0 -0
  189. data/vendor/assets/javascripts/ace/snippets/coldfusion.js +0 -0
  190. data/vendor/assets/javascripts/ace/snippets/csharp.js +0 -0
  191. data/vendor/assets/javascripts/ace/snippets/css.js +0 -0
  192. data/vendor/assets/javascripts/ace/snippets/curly.js +0 -0
  193. data/vendor/assets/javascripts/ace/snippets/d.js +0 -0
  194. data/vendor/assets/javascripts/ace/snippets/dart.js +0 -0
  195. data/vendor/assets/javascripts/ace/snippets/diff.js +0 -0
  196. data/vendor/assets/javascripts/ace/snippets/django.js +0 -0
  197. data/vendor/assets/javascripts/ace/snippets/dockerfile.js +0 -0
  198. data/vendor/assets/javascripts/ace/snippets/dot.js +0 -0
  199. data/vendor/assets/javascripts/ace/snippets/drools.js +0 -0
  200. data/vendor/assets/javascripts/ace/snippets/eiffel.js +0 -0
  201. data/vendor/assets/javascripts/ace/snippets/ejs.js +0 -0
  202. data/vendor/assets/javascripts/ace/snippets/elixir.js +0 -0
  203. data/vendor/assets/javascripts/ace/snippets/elm.js +0 -0
  204. data/vendor/assets/javascripts/ace/snippets/erlang.js +0 -0
  205. data/vendor/assets/javascripts/ace/snippets/forth.js +0 -0
  206. data/vendor/assets/javascripts/ace/snippets/fortran.js +0 -0
  207. data/vendor/assets/javascripts/ace/snippets/ftl.js +0 -0
  208. data/vendor/assets/javascripts/ace/snippets/gcode.js +0 -0
  209. data/vendor/assets/javascripts/ace/snippets/gherkin.js +0 -0
  210. data/vendor/assets/javascripts/ace/snippets/gitignore.js +0 -0
  211. data/vendor/assets/javascripts/ace/snippets/glsl.js +0 -0
  212. data/vendor/assets/javascripts/ace/snippets/gobstones.js +0 -0
  213. data/vendor/assets/javascripts/ace/snippets/golang.js +0 -0
  214. data/vendor/assets/javascripts/ace/snippets/graphqlschema.js +39 -0
  215. data/vendor/assets/javascripts/ace/snippets/groovy.js +0 -0
  216. data/vendor/assets/javascripts/ace/snippets/haml.js +0 -0
  217. data/vendor/assets/javascripts/ace/snippets/handlebars.js +0 -0
  218. data/vendor/assets/javascripts/ace/snippets/haskell.js +0 -0
  219. data/vendor/assets/javascripts/ace/snippets/haskell_cabal.js +0 -0
  220. data/vendor/assets/javascripts/ace/snippets/haxe.js +0 -0
  221. data/vendor/assets/javascripts/ace/snippets/hjson.js +0 -0
  222. data/vendor/assets/javascripts/ace/snippets/html.js +0 -0
  223. data/vendor/assets/javascripts/ace/snippets/html_elixir.js +0 -0
  224. data/vendor/assets/javascripts/ace/snippets/html_ruby.js +0 -0
  225. data/vendor/assets/javascripts/ace/snippets/ini.js +0 -0
  226. data/vendor/assets/javascripts/ace/snippets/io.js +0 -0
  227. data/vendor/assets/javascripts/ace/snippets/jack.js +0 -0
  228. data/vendor/assets/javascripts/ace/snippets/jade.js +0 -0
  229. data/vendor/assets/javascripts/ace/snippets/java.js +0 -0
  230. data/vendor/assets/javascripts/ace/snippets/javascript.js +0 -0
  231. data/vendor/assets/javascripts/ace/snippets/json.js +0 -0
  232. data/vendor/assets/javascripts/ace/snippets/jsoniq.js +0 -0
  233. data/vendor/assets/javascripts/ace/snippets/jsp.js +0 -0
  234. data/vendor/assets/javascripts/ace/snippets/jsx.js +0 -0
  235. data/vendor/assets/javascripts/ace/snippets/julia.js +0 -0
  236. data/vendor/assets/javascripts/ace/snippets/kotlin.js +0 -0
  237. data/vendor/assets/javascripts/ace/snippets/latex.js +0 -0
  238. data/vendor/assets/javascripts/ace/snippets/lean.js +0 -0
  239. data/vendor/assets/javascripts/ace/snippets/less.js +0 -0
  240. data/vendor/assets/javascripts/ace/snippets/liquid.js +0 -0
  241. data/vendor/assets/javascripts/ace/snippets/lisp.js +0 -0
  242. data/vendor/assets/javascripts/ace/snippets/live_script.js +0 -0
  243. data/vendor/assets/javascripts/ace/snippets/livescript.js +0 -0
  244. data/vendor/assets/javascripts/ace/snippets/logiql.js +0 -0
  245. data/vendor/assets/javascripts/ace/snippets/lsl.js +0 -0
  246. data/vendor/assets/javascripts/ace/snippets/lua.js +0 -0
  247. data/vendor/assets/javascripts/ace/snippets/luapage.js +0 -0
  248. data/vendor/assets/javascripts/ace/snippets/lucene.js +0 -0
  249. data/vendor/assets/javascripts/ace/snippets/makefile.js +0 -0
  250. data/vendor/assets/javascripts/ace/snippets/markdown.js +0 -0
  251. data/vendor/assets/javascripts/ace/snippets/mask.js +0 -0
  252. data/vendor/assets/javascripts/ace/snippets/matlab.js +0 -0
  253. data/vendor/assets/javascripts/ace/snippets/maze.js +0 -0
  254. data/vendor/assets/javascripts/ace/snippets/mel.js +0 -0
  255. data/vendor/assets/javascripts/ace/snippets/mips_assembler.js +0 -0
  256. data/vendor/assets/javascripts/ace/snippets/mipsassembler.js +0 -0
  257. data/vendor/assets/javascripts/ace/snippets/mushcode.js +0 -0
  258. data/vendor/assets/javascripts/ace/snippets/mysql.js +0 -0
  259. data/vendor/assets/javascripts/ace/snippets/nix.js +0 -0
  260. data/vendor/assets/javascripts/ace/snippets/nsis.js +0 -0
  261. data/vendor/assets/javascripts/ace/snippets/objectivec.js +0 -0
  262. data/vendor/assets/javascripts/ace/snippets/ocaml.js +0 -0
  263. data/vendor/assets/javascripts/ace/snippets/pascal.js +0 -0
  264. data/vendor/assets/javascripts/ace/snippets/perl.js +0 -0
  265. data/vendor/assets/javascripts/ace/snippets/pgsql.js +0 -0
  266. data/vendor/assets/javascripts/ace/snippets/php.js +0 -0
  267. data/vendor/assets/javascripts/ace/snippets/pig.js +7 -0
  268. data/vendor/assets/javascripts/ace/snippets/plain_text.js +0 -0
  269. data/vendor/assets/javascripts/ace/snippets/powershell.js +0 -0
  270. data/vendor/assets/javascripts/ace/snippets/praat.js +0 -0
  271. data/vendor/assets/javascripts/ace/snippets/prolog.js +0 -0
  272. data/vendor/assets/javascripts/ace/snippets/properties.js +0 -0
  273. data/vendor/assets/javascripts/ace/snippets/protobuf.js +0 -0
  274. data/vendor/assets/javascripts/ace/snippets/python.js +0 -0
  275. data/vendor/assets/javascripts/ace/snippets/r.js +0 -0
  276. data/vendor/assets/javascripts/ace/snippets/razor.js +0 -0
  277. data/vendor/assets/javascripts/ace/snippets/rdoc.js +0 -0
  278. data/vendor/assets/javascripts/ace/snippets/rhtml.js +0 -0
  279. data/vendor/assets/javascripts/ace/snippets/rst.js +0 -0
  280. data/vendor/assets/javascripts/ace/snippets/ruby.js +0 -0
  281. data/vendor/assets/javascripts/ace/snippets/rust.js +0 -0
  282. data/vendor/assets/javascripts/ace/snippets/sass.js +0 -0
  283. data/vendor/assets/javascripts/ace/snippets/scad.js +0 -0
  284. data/vendor/assets/javascripts/ace/snippets/scala.js +0 -0
  285. data/vendor/assets/javascripts/ace/snippets/scheme.js +0 -0
  286. data/vendor/assets/javascripts/ace/snippets/scss.js +0 -0
  287. data/vendor/assets/javascripts/ace/snippets/sh.js +1 -1
  288. data/vendor/assets/javascripts/ace/snippets/sjs.js +0 -0
  289. data/vendor/assets/javascripts/ace/snippets/smarty.js +0 -0
  290. data/vendor/assets/javascripts/ace/snippets/snippets.js +0 -0
  291. data/vendor/assets/javascripts/ace/snippets/soy_template.js +0 -0
  292. data/vendor/assets/javascripts/ace/snippets/space.js +0 -0
  293. data/vendor/assets/javascripts/ace/snippets/sparql.js +7 -0
  294. data/vendor/assets/javascripts/ace/snippets/sql.js +0 -0
  295. data/vendor/assets/javascripts/ace/snippets/sqlserver.js +0 -0
  296. data/vendor/assets/javascripts/ace/snippets/stylus.js +0 -0
  297. data/vendor/assets/javascripts/ace/snippets/svg.js +0 -0
  298. data/vendor/assets/javascripts/ace/snippets/swift.js +0 -0
  299. data/vendor/assets/javascripts/ace/snippets/swig.js +0 -0
  300. data/vendor/assets/javascripts/ace/snippets/tcl.js +0 -0
  301. data/vendor/assets/javascripts/ace/snippets/tex.js +0 -0
  302. data/vendor/assets/javascripts/ace/snippets/text.js +0 -0
  303. data/vendor/assets/javascripts/ace/snippets/textile.js +0 -0
  304. data/vendor/assets/javascripts/ace/snippets/toml.js +0 -0
  305. data/vendor/assets/javascripts/ace/snippets/tsx.js +0 -0
  306. data/vendor/assets/javascripts/ace/snippets/turtle.js +7 -0
  307. data/vendor/assets/javascripts/ace/snippets/twig.js +0 -0
  308. data/vendor/assets/javascripts/ace/snippets/typescript.js +0 -0
  309. data/vendor/assets/javascripts/ace/snippets/vala.js +0 -0
  310. data/vendor/assets/javascripts/ace/snippets/vbscript.js +0 -0
  311. data/vendor/assets/javascripts/ace/snippets/velocity.js +0 -0
  312. data/vendor/assets/javascripts/ace/snippets/verilog.js +0 -0
  313. data/vendor/assets/javascripts/ace/snippets/vhdl.js +0 -0
  314. data/vendor/assets/javascripts/ace/snippets/wollok.js +0 -0
  315. data/vendor/assets/javascripts/ace/snippets/xml.js +0 -0
  316. data/vendor/assets/javascripts/ace/snippets/xquery.js +0 -0
  317. data/vendor/assets/javascripts/ace/snippets/yaml.js +0 -0
  318. data/vendor/assets/javascripts/ace/theme-ambiance.js +0 -0
  319. data/vendor/assets/javascripts/ace/theme-chaos.js +0 -0
  320. data/vendor/assets/javascripts/ace/theme-chrome.js +0 -0
  321. data/vendor/assets/javascripts/ace/theme-clouds.js +0 -0
  322. data/vendor/assets/javascripts/ace/theme-clouds_midnight.js +0 -0
  323. data/vendor/assets/javascripts/ace/theme-cobalt.js +0 -0
  324. data/vendor/assets/javascripts/ace/theme-crimson_editor.js +0 -0
  325. data/vendor/assets/javascripts/ace/theme-dawn.js +0 -0
  326. data/vendor/assets/javascripts/ace/theme-dreamweaver.js +0 -0
  327. data/vendor/assets/javascripts/ace/theme-eclipse.js +0 -0
  328. data/vendor/assets/javascripts/ace/theme-github.js +0 -0
  329. data/vendor/assets/javascripts/ace/theme-gob.js +112 -0
  330. data/vendor/assets/javascripts/ace/theme-gruvbox.js +82 -0
  331. data/vendor/assets/javascripts/ace/theme-idle_fingers.js +0 -0
  332. data/vendor/assets/javascripts/ace/theme-iplastic.js +0 -0
  333. data/vendor/assets/javascripts/ace/theme-katzenmilch.js +0 -0
  334. data/vendor/assets/javascripts/ace/theme-kr_theme.js +0 -0
  335. data/vendor/assets/javascripts/ace/theme-kuroir.js +0 -0
  336. data/vendor/assets/javascripts/ace/theme-merbivore.js +0 -0
  337. data/vendor/assets/javascripts/ace/theme-merbivore_soft.js +0 -0
  338. data/vendor/assets/javascripts/ace/theme-mono_industrial.js +0 -0
  339. data/vendor/assets/javascripts/ace/theme-monokai.js +0 -0
  340. data/vendor/assets/javascripts/ace/theme-pastel_on_dark.js +0 -0
  341. data/vendor/assets/javascripts/ace/theme-solarized_dark.js +0 -0
  342. data/vendor/assets/javascripts/ace/theme-solarized_light.js +0 -0
  343. data/vendor/assets/javascripts/ace/theme-sqlserver.js +0 -0
  344. data/vendor/assets/javascripts/ace/theme-terminal.js +0 -0
  345. data/vendor/assets/javascripts/ace/theme-textmate.js +0 -0
  346. data/vendor/assets/javascripts/ace/theme-tomorrow.js +0 -0
  347. data/vendor/assets/javascripts/ace/theme-tomorrow_night.js +0 -0
  348. data/vendor/assets/javascripts/ace/theme-tomorrow_night_blue.js +0 -0
  349. data/vendor/assets/javascripts/ace/theme-tomorrow_night_bright.js +0 -0
  350. data/vendor/assets/javascripts/ace/theme-tomorrow_night_eighties.js +0 -0
  351. data/vendor/assets/javascripts/ace/theme-twilight.js +0 -0
  352. data/vendor/assets/javascripts/ace/theme-vibrant_ink.js +0 -0
  353. data/vendor/assets/javascripts/ace/theme-xcode.js +0 -0
  354. data/vendor/assets/javascripts/ace/worker-coffee.js +0 -0
  355. data/vendor/assets/javascripts/ace/worker-css.js +0 -0
  356. data/vendor/assets/javascripts/ace/worker-html.js +0 -0
  357. data/vendor/assets/javascripts/ace/worker-javascript.js +0 -0
  358. data/vendor/assets/javascripts/ace/worker-json.js +0 -0
  359. data/vendor/assets/javascripts/ace/worker-lua.js +2 -2
  360. data/vendor/assets/javascripts/ace/worker-php.js +0 -0
  361. data/vendor/assets/javascripts/ace/worker-xml.js +0 -0
  362. data/vendor/assets/javascripts/ace/worker-xquery.js +0 -0
  363. metadata +14 -3
File without changes
@@ -173,11 +173,10 @@ var c_cppHighlightRules = function() {
173
173
  "comment" : [
174
174
  {
175
175
  token : "comment", // closing comment
176
- regex : ".*?\\*\\/",
176
+ regex : "\\*\\/",
177
177
  next : "start"
178
178
  }, {
179
- token : "comment", // comment spanning whole line
180
- regex : ".+"
179
+ defaultToken : "comment"
181
180
  }
182
181
  ],
183
182
  "singleLineComment" : [
@@ -555,11 +554,10 @@ define("ace/mode/nix_highlight_rules",["require","exports","module","ace/lib/oop
555
554
  }],
556
555
  "comment": [{
557
556
  token: "comment", // closing comment
558
- regex: ".*?\\*\\/",
557
+ regex: "\\*\\/",
559
558
  next: "start"
560
559
  }, {
561
- token: "comment", // comment spanning whole line
562
- regex: ".+"
560
+ defaultToken: "comment"
563
561
  }],
564
562
  "qqdoc": [
565
563
  {
@@ -173,11 +173,10 @@ var c_cppHighlightRules = function() {
173
173
  "comment" : [
174
174
  {
175
175
  token : "comment", // closing comment
176
- regex : ".*?\\*\\/",
176
+ regex : "\\*\\/",
177
177
  next : "start"
178
178
  }, {
179
- token : "comment", // comment spanning whole line
180
- regex : ".+"
179
+ defaultToken : "comment"
181
180
  }
182
181
  ],
183
182
  "singleLineComment" : [
@@ -528,8 +527,7 @@ var ObjectiveCHighlightRules = function() {
528
527
  regex : ".*?\\*\\/",
529
528
  next : "start"
530
529
  }, {
531
- token : "comment", // comment spanning whole line
532
- regex : ".+"
530
+ defaultToken : "comment"
533
531
  }
534
532
  ],
535
533
  "methods" : [
@@ -279,12 +279,11 @@ var OcamlHighlightRules = function() {
279
279
  "comment" : [
280
280
  {
281
281
  token : "comment", // closing comment
282
- regex : ".*?\\*\\)",
282
+ regex : "\\*\\)",
283
283
  next : "start"
284
284
  },
285
285
  {
286
- token : "comment", // comment spanning whole line
287
- regex : ".+"
286
+ defaultToken : "comment"
288
287
  }
289
288
  ],
290
289
 
@@ -363,11 +363,15 @@ var JsonHighlightRules = function() {
363
363
  token : "constant.language.boolean",
364
364
  regex : "(?:true|false)\\b"
365
365
  }, {
366
- token : "invalid.illegal", // single quoted strings are not allowed
366
+ token : "text", // single quoted strings are not allowed
367
367
  regex : "['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"
368
368
  }, {
369
- token : "invalid.illegal", // comments are not allowed
369
+ token : "comment", // comments are not allowed, but who cares?
370
370
  regex : "\\/\\/.*$"
371
+ }, {
372
+ token : "comment.start", // comments are not allowed, but who cares?
373
+ regex : "\\/\\*",
374
+ next : "comment"
371
375
  }, {
372
376
  token : "paren.lparen",
373
377
  regex : "[[({]"
@@ -385,15 +389,19 @@ var JsonHighlightRules = function() {
385
389
  regex : /\\(?:x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|["\\\/bfnrt])/
386
390
  }, {
387
391
  token : "string",
388
- regex : '[^"\\\\]+'
389
- }, {
390
- token : "string",
391
- regex : '"',
392
+ regex : '"|$',
392
393
  next : "start"
393
394
  }, {
394
- token : "string",
395
- regex : "",
395
+ defaultToken : "string"
396
+ }
397
+ ],
398
+ "comment" : [
399
+ {
400
+ token : "comment.end", // comments are not allowed, but who cares?
401
+ regex : "\\*\\/",
396
402
  next : "start"
403
+ }, {
404
+ defaultToken: "comment"
397
405
  }
398
406
  ]
399
407
  };
@@ -463,11 +471,11 @@ var JavaScriptHighlightRules = function(options) {
463
471
  regex : '"(?=.)',
464
472
  next : "qqstring"
465
473
  }, {
466
- token : "constant.numeric", // hex
467
- regex : /0(?:[xX][0-9a-fA-F]+|[bB][01]+)\b/
474
+ token : "constant.numeric", // hexadecimal, octal and binary
475
+ regex : /0(?:[xX][0-9a-fA-F]+|[oO][0-7]+|[bB][01]+)\b/
468
476
  }, {
469
- token : "constant.numeric", // float
470
- regex : /[+-]?\d[\d_]*(?:(?:\.\d*)?(?:[eE][+-]?\d+)?)?\b/
477
+ token : "constant.numeric", // decimal integers and floats
478
+ regex : /(?:\d\d*(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+\b)?/
471
479
  }, {
472
480
  token : [
473
481
  "storage.type", "punctuation.operator", "support.function",
@@ -516,6 +524,9 @@ var JavaScriptHighlightRules = function(options) {
516
524
  ],
517
525
  regex : "(:)(\\s*)(function)(\\s*)(\\()",
518
526
  next: "function_arguments"
527
+ }, {
528
+ token : "keyword",
529
+ regex : "from(?=\\s*('|\"))"
519
530
  }, {
520
531
  token : "keyword",
521
532
  regex : "(?:" + kwBeforeRe + ")\\b",
@@ -533,6 +544,9 @@ var JavaScriptHighlightRules = function(options) {
533
544
  token : "punctuation.operator",
534
545
  regex : /[.](?![.])/,
535
546
  next : "property"
547
+ }, {
548
+ token : "storage.type",
549
+ regex : /=>/
536
550
  }, {
537
551
  token : "keyword.operator",
538
552
  regex : /--|\+\+|\.{3}|===|==|=|!=|!==|<+=?|>+=?|!|&&|\|\||\?:|[!$%&*+\-~\/^]=?/,
@@ -673,7 +687,7 @@ var JavaScriptHighlightRules = function(options) {
673
687
  }, {
674
688
  token : "string",
675
689
  regex : "\\\\$",
676
- next : "qqstring"
690
+ consumeLineEnd : true
677
691
  }, {
678
692
  token : "string",
679
693
  regex : '"|$',
@@ -689,7 +703,7 @@ var JavaScriptHighlightRules = function(options) {
689
703
  }, {
690
704
  token : "string",
691
705
  regex : "\\\\$",
692
- next : "qstring"
706
+ consumeLineEnd : true
693
707
  }, {
694
708
  token : "string",
695
709
  regex : "'|$",
@@ -699,8 +713,8 @@ var JavaScriptHighlightRules = function(options) {
699
713
  }
700
714
  ]
701
715
  };
702
-
703
-
716
+
717
+
704
718
  if (!options || !options.noES6) {
705
719
  this.$rules.no_regex.unshift({
706
720
  regex: "[{}]", onMatch: function(val, state, stack) {
@@ -735,14 +749,14 @@ var JavaScriptHighlightRules = function(options) {
735
749
  defaultToken: "string.quasi"
736
750
  }]
737
751
  });
738
-
752
+
739
753
  if (!options || options.jsx != false)
740
754
  JSX.call(this);
741
755
  }
742
-
756
+
743
757
  this.embedRules(DocCommentHighlightRules, "doc-",
744
758
  [ DocCommentHighlightRules.getEndRule("no_regex") ]);
745
-
759
+
746
760
  this.normalizeRules();
747
761
  };
748
762
 
@@ -793,8 +807,8 @@ function JSX() {
793
807
  {defaultToken: "string"}
794
808
  ];
795
809
  this.$rules.jsxAttributes = [{
796
- token : "meta.tag.punctuation.tag-close.xml",
797
- regex : "/?>",
810
+ token : "meta.tag.punctuation.tag-close.xml",
811
+ regex : "/?>",
798
812
  onMatch : function(value, currentState, stack) {
799
813
  if (currentState == stack[0])
800
814
  stack.shift();
@@ -809,7 +823,7 @@ function JSX() {
809
823
  return [{type: this.token, value: value}];
810
824
  },
811
825
  nextState: "jsx"
812
- },
826
+ },
813
827
  jsxJsRule,
814
828
  comments("jsxAttributes"),
815
829
  {
@@ -1397,31 +1411,28 @@ var PgsqlHighlightRules = function() {
1397
1411
 
1398
1412
  "comment" : [{
1399
1413
  token : "comment", // closing comment
1400
- regex : ".*?\\*\\/",
1414
+ regex : "\\*\\/",
1401
1415
  next : "start"
1402
1416
  }, {
1403
- token : "comment", // comment spanning whole line
1404
- regex : ".+"
1417
+ defaultToken : "comment"
1405
1418
  }
1406
1419
  ],
1407
1420
 
1408
1421
  "commentStatement" : [{
1409
1422
  token : "comment", // closing comment
1410
- regex : ".*?\\*\\/",
1423
+ regex : "\\*\\/",
1411
1424
  next : "statement"
1412
1425
  }, {
1413
- token : "comment", // comment spanning whole line
1414
- regex : ".+"
1426
+ defaultToken : "comment"
1415
1427
  }
1416
1428
  ],
1417
1429
 
1418
1430
  "commentDollarSql" : [{
1419
1431
  token : "comment", // closing comment
1420
- regex : ".*?\\*\\/",
1432
+ regex : "\\*\\/",
1421
1433
  next : "dollarSql"
1422
1434
  }, {
1423
- token : "comment", // comment spanning whole line
1424
- regex : ".+"
1435
+ defaultToken : "comment"
1425
1436
  }
1426
1437
  ],
1427
1438
 
@@ -57,10 +57,10 @@ var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
57
57
  var supportType = exports.supportType = "align-content|align-items|align-self|all|animation|animation-delay|animation-direction|animation-duration|animation-fill-mode|animation-iteration-count|animation-name|animation-play-state|animation-timing-function|backface-visibility|background|background-attachment|background-blend-mode|background-clip|background-color|background-image|background-origin|background-position|background-repeat|background-size|border|border-bottom|border-bottom-color|border-bottom-left-radius|border-bottom-right-radius|border-bottom-style|border-bottom-width|border-collapse|border-color|border-image|border-image-outset|border-image-repeat|border-image-slice|border-image-source|border-image-width|border-left|border-left-color|border-left-style|border-left-width|border-radius|border-right|border-right-color|border-right-style|border-right-width|border-spacing|border-style|border-top|border-top-color|border-top-left-radius|border-top-right-radius|border-top-style|border-top-width|border-width|bottom|box-shadow|box-sizing|caption-side|clear|clip|color|column-count|column-fill|column-gap|column-rule|column-rule-color|column-rule-style|column-rule-width|column-span|column-width|columns|content|counter-increment|counter-reset|cursor|direction|display|empty-cells|filter|flex|flex-basis|flex-direction|flex-flow|flex-grow|flex-shrink|flex-wrap|float|font|font-family|font-size|font-size-adjust|font-stretch|font-style|font-variant|font-weight|hanging-punctuation|height|justify-content|left|letter-spacing|line-height|list-style|list-style-image|list-style-position|list-style-type|margin|margin-bottom|margin-left|margin-right|margin-top|max-height|max-width|min-height|min-width|nav-down|nav-index|nav-left|nav-right|nav-up|opacity|order|outline|outline-color|outline-offset|outline-style|outline-width|overflow|overflow-x|overflow-y|padding|padding-bottom|padding-left|padding-right|padding-top|page-break-after|page-break-before|page-break-inside|perspective|perspective-origin|position|quotes|resize|right|tab-size|table-layout|text-align|text-align-last|text-decoration|text-decoration-color|text-decoration-line|text-decoration-style|text-indent|text-justify|text-overflow|text-shadow|text-transform|top|transform|transform-origin|transform-style|transition|transition-delay|transition-duration|transition-property|transition-timing-function|unicode-bidi|vertical-align|visibility|white-space|width|word-break|word-spacing|word-wrap|z-index";
58
58
  var supportFunction = exports.supportFunction = "rgb|rgba|url|attr|counter|counters";
59
59
  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";
60
- var supportConstantColor = exports.supportConstantColor = "aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow";
60
+ 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";
61
61
  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";
62
62
 
63
- var numRe = exports.numRe = "\\-?(?:(?:[0-9]+)|(?:[0-9]*\\.[0-9]+))";
63
+ var numRe = exports.numRe = "\\-?(?:(?:[0-9]+(?:\\.[0-9]+)?)|(?:\\.[0-9]+))";
64
64
  var pseudoElements = exports.pseudoElements = "(\\:+)\\b(after|before|first-letter|first-line|moz-selection|selection)\\b";
65
65
  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";
66
66
 
@@ -76,84 +76,82 @@ var CssHighlightRules = function() {
76
76
 
77
77
  this.$rules = {
78
78
  "start" : [{
79
- token : "comment", // multi line comment
80
- regex : "\\/\\*",
81
- push : "comment"
79
+ include : ["strings", "url", "comments"]
82
80
  }, {
83
81
  token: "paren.lparen",
84
82
  regex: "\\{",
85
- push: "ruleset"
83
+ next: "ruleset"
84
+ }, {
85
+ token: "paren.rparen",
86
+ regex: "\\}"
86
87
  }, {
87
88
  token: "string",
88
- regex: "@.*?{",
89
- push: "media"
89
+ regex: "@",
90
+ next: "media"
90
91
  }, {
91
92
  token: "keyword",
92
93
  regex: "#[a-z0-9-_]+"
94
+ }, {
95
+ token: "keyword",
96
+ regex: "%"
93
97
  }, {
94
98
  token: "variable",
95
99
  regex: "\\.[a-z0-9-_]+"
96
100
  }, {
97
101
  token: "string",
98
102
  regex: ":[a-z0-9-_]+"
103
+ }, {
104
+ token : "constant.numeric",
105
+ regex : numRe
99
106
  }, {
100
107
  token: "constant",
101
108
  regex: "[a-z0-9-_]+"
102
109
  }, {
103
110
  caseInsensitive: true
104
111
  }],
105
-
106
- "media" : [{
107
- token : "comment", // multi line comment
108
- regex : "\\/\\*",
109
- push : "comment"
112
+
113
+ "media": [{
114
+ include : ["strings", "url", "comments"]
110
115
  }, {
111
116
  token: "paren.lparen",
112
117
  regex: "\\{",
113
- push: "ruleset"
118
+ next: "start"
114
119
  }, {
115
- token: "string",
120
+ token: "paren.rparen",
116
121
  regex: "\\}",
117
- next: "pop"
118
- }, {
119
- token: "keyword",
120
- regex: "#[a-z0-9-_]+"
121
- }, {
122
- token: "variable",
123
- regex: "\\.[a-z0-9-_]+"
122
+ next: "start"
124
123
  }, {
125
124
  token: "string",
126
- regex: ":[a-z0-9-_]+"
125
+ regex: ";",
126
+ next: "start"
127
127
  }, {
128
- token: "constant",
129
- regex: "[a-z0-9-_]+"
130
- }, {
131
- caseInsensitive: true
128
+ token: "keyword",
129
+ regex: "(?:media|supports|document|charset|import|namespace|media|supports|document"
130
+ + "|page|font|keyframes|viewport|counter-style|font-feature-values"
131
+ + "|swash|ornaments|annotation|stylistic|styleset|character-variant)"
132
132
  }],
133
133
 
134
- "comment" : [{
135
- token : "comment",
136
- regex : "\\*\\/",
137
- next : "pop"
138
- }, {
139
- defaultToken : "comment"
134
+ "comments" : [{
135
+ token: "comment", // multi line comment
136
+ regex: "\\/\\*",
137
+ push: [{
138
+ token : "comment",
139
+ regex : "\\*\\/",
140
+ next : "pop"
141
+ }, {
142
+ defaultToken : "comment"
143
+ }]
140
144
  }],
141
145
 
142
- "ruleset" : [
143
- {
146
+ "ruleset" : [{
147
+ regex : "-(webkit|ms|moz|o)-",
148
+ token : "text"
149
+ }, {
144
150
  token : "paren.rparen",
145
151
  regex : "\\}",
146
- next: "pop"
147
- }, {
148
- token : "comment", // multi line comment
149
- regex : "\\/\\*",
150
- push : "comment"
151
- }, {
152
- token : "string", // single line
153
- regex : '["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]'
152
+ next : "start"
154
153
  }, {
155
- token : "string", // single line
156
- regex : "['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"
154
+ include : ["strings", "url", "comments"]
157
155
  }, {
158
156
  token : ["constant.numeric", "keyword"],
159
157
  regex : "(" + numRe + ")(ch|cm|deg|em|ex|fr|gd|grad|Hz|in|kHz|mm|ms|pc|pt|px|rad|rem|s|turn|vh|vm|vw|%)"
@@ -173,14 +171,64 @@ var CssHighlightRules = function() {
173
171
  token : ["punctuation", "entity.other.attribute-name.pseudo-class.css"],
174
172
  regex : pseudoClasses
175
173
  }, {
176
- token : ["support.function", "string", "support.function"],
177
- regex : "(url\\()(.*)(\\))"
174
+ include: "url"
178
175
  }, {
179
176
  token : keywordMapper,
180
177
  regex : "\\-?[a-zA-Z_][a-zA-Z0-9_\\-]*"
181
178
  }, {
182
179
  caseInsensitive: true
180
+ }],
181
+
182
+ url: [{
183
+ token : "support.function",
184
+ regex : "(?:url(:?-prefix)?|domain|regexp)\\(",
185
+ push: [{
186
+ token : "support.function",
187
+ regex : "\\)",
188
+ next : "pop"
189
+ }, {
190
+ defaultToken: "string"
191
+ }]
192
+ }],
193
+
194
+ strings: [{
195
+ token : "string.start",
196
+ regex : "'",
197
+ push : [{
198
+ token : "string.end",
199
+ regex : "'|$",
200
+ next: "pop"
201
+ }, {
202
+ include : "escapes"
203
+ }, {
204
+ token : "constant.language.escape",
205
+ regex : /\\$/,
206
+ consumeLineEnd: true
207
+ }, {
208
+ defaultToken: "string"
209
+ }]
210
+ }, {
211
+ token : "string.start",
212
+ regex : '"',
213
+ push : [{
214
+ token : "string.end",
215
+ regex : '"|$',
216
+ next: "pop"
217
+ }, {
218
+ include : "escapes"
219
+ }, {
220
+ token : "constant.language.escape",
221
+ regex : /\\$/,
222
+ consumeLineEnd: true
223
+ }, {
224
+ defaultToken: "string"
225
+ }]
226
+ }],
227
+ escapes: [{
228
+ token : "constant.language.escape",
229
+ regex : /\\([a-fA-F\d]{1,6}|[^a-fA-F\d])/
183
230
  }]
231
+
184
232
  };
185
233
 
186
234
  this.normalizeRules();
@@ -250,11 +298,11 @@ var JavaScriptHighlightRules = function(options) {
250
298
  regex : '"(?=.)',
251
299
  next : "qqstring"
252
300
  }, {
253
- token : "constant.numeric", // hex
254
- regex : /0(?:[xX][0-9a-fA-F]+|[bB][01]+)\b/
301
+ token : "constant.numeric", // hexadecimal, octal and binary
302
+ regex : /0(?:[xX][0-9a-fA-F]+|[oO][0-7]+|[bB][01]+)\b/
255
303
  }, {
256
- token : "constant.numeric", // float
257
- regex : /[+-]?\d[\d_]*(?:(?:\.\d*)?(?:[eE][+-]?\d+)?)?\b/
304
+ token : "constant.numeric", // decimal integers and floats
305
+ regex : /(?:\d\d*(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+\b)?/
258
306
  }, {
259
307
  token : [
260
308
  "storage.type", "punctuation.operator", "support.function",
@@ -303,6 +351,9 @@ var JavaScriptHighlightRules = function(options) {
303
351
  ],
304
352
  regex : "(:)(\\s*)(function)(\\s*)(\\()",
305
353
  next: "function_arguments"
354
+ }, {
355
+ token : "keyword",
356
+ regex : "from(?=\\s*('|\"))"
306
357
  }, {
307
358
  token : "keyword",
308
359
  regex : "(?:" + kwBeforeRe + ")\\b",
@@ -320,6 +371,9 @@ var JavaScriptHighlightRules = function(options) {
320
371
  token : "punctuation.operator",
321
372
  regex : /[.](?![.])/,
322
373
  next : "property"
374
+ }, {
375
+ token : "storage.type",
376
+ regex : /=>/
323
377
  }, {
324
378
  token : "keyword.operator",
325
379
  regex : /--|\+\+|\.{3}|===|==|=|!=|!==|<+=?|>+=?|!|&&|\|\||\?:|[!$%&*+\-~\/^]=?/,
@@ -460,7 +514,7 @@ var JavaScriptHighlightRules = function(options) {
460
514
  }, {
461
515
  token : "string",
462
516
  regex : "\\\\$",
463
- next : "qqstring"
517
+ consumeLineEnd : true
464
518
  }, {
465
519
  token : "string",
466
520
  regex : '"|$',
@@ -476,7 +530,7 @@ var JavaScriptHighlightRules = function(options) {
476
530
  }, {
477
531
  token : "string",
478
532
  regex : "\\\\$",
479
- next : "qstring"
533
+ consumeLineEnd : true
480
534
  }, {
481
535
  token : "string",
482
536
  regex : "'|$",
@@ -486,8 +540,8 @@ var JavaScriptHighlightRules = function(options) {
486
540
  }
487
541
  ]
488
542
  };
489
-
490
-
543
+
544
+
491
545
  if (!options || !options.noES6) {
492
546
  this.$rules.no_regex.unshift({
493
547
  regex: "[{}]", onMatch: function(val, state, stack) {
@@ -522,14 +576,14 @@ var JavaScriptHighlightRules = function(options) {
522
576
  defaultToken: "string.quasi"
523
577
  }]
524
578
  });
525
-
579
+
526
580
  if (!options || options.jsx != false)
527
581
  JSX.call(this);
528
582
  }
529
-
583
+
530
584
  this.embedRules(DocCommentHighlightRules, "doc-",
531
585
  [ DocCommentHighlightRules.getEndRule("no_regex") ]);
532
-
586
+
533
587
  this.normalizeRules();
534
588
  };
535
589
 
@@ -580,8 +634,8 @@ function JSX() {
580
634
  {defaultToken: "string"}
581
635
  ];
582
636
  this.$rules.jsxAttributes = [{
583
- token : "meta.tag.punctuation.tag-close.xml",
584
- regex : "/?>",
637
+ token : "meta.tag.punctuation.tag-close.xml",
638
+ regex : "/?>",
585
639
  onMatch : function(value, currentState, stack) {
586
640
  if (currentState == stack[0])
587
641
  stack.shift();
@@ -596,7 +650,7 @@ function JSX() {
596
650
  return [{type: this.token, value: value}];
597
651
  },
598
652
  nextState: "jsx"
599
- },
653
+ },
600
654
  jsxJsRule,
601
655
  comments("jsxAttributes"),
602
656
  {
@@ -671,15 +725,11 @@ var XmlHighlightRules = function(normalize) {
671
725
  this.$rules = {
672
726
  start : [
673
727
  {token : "string.cdata.xml", regex : "<\\!\\[CDATA\\[", next : "cdata"},
674
- {
675
- token : ["punctuation.xml-decl.xml", "keyword.xml-decl.xml"],
676
- regex : "(<\\?)(xml)(?=[\\s])", next : "xml_decl", caseInsensitive: true
677
- },
678
728
  {
679
729
  token : ["punctuation.instruction.xml", "keyword.instruction.xml"],
680
730
  regex : "(<\\?)(" + tagRegex + ")", next : "processing_instruction"
681
731
  },
682
- {token : "comment.xml", regex : "<\\!--", next : "comment"},
732
+ {token : "comment.start.xml", regex : "<\\!--", next : "comment"},
683
733
  {
684
734
  token : ["xml-pe.doctype.xml", "xml-pe.doctype.xml"],
685
735
  regex : "(<\\!)(DOCTYPE)(?=[\\s])", next : "doctype", caseInsensitive: true
@@ -691,9 +741,9 @@ var XmlHighlightRules = function(normalize) {
691
741
  {defaultToken : "text.xml"}
692
742
  ],
693
743
 
694
- xml_decl : [{
744
+ processing_instruction : [{
695
745
  token : "entity.other.attribute-name.decl-attribute-name.xml",
696
- regex : "(?:" + tagRegex + ":)?" + tagRegex + ""
746
+ regex : tagRegex
697
747
  }, {
698
748
  token : "keyword.operator.decl-attribute-equals.xml",
699
749
  regex : "="
@@ -707,11 +757,6 @@ var XmlHighlightRules = function(normalize) {
707
757
  next : "start"
708
758
  }],
709
759
 
710
- processing_instruction : [
711
- {token : "punctuation.instruction.xml", regex : "\\?>", next : "start"},
712
- {defaultToken : "instruction.xml"}
713
- ],
714
-
715
760
  doctype : [
716
761
  {include : "whitespace"},
717
762
  {include : "string"},
@@ -749,7 +794,7 @@ var XmlHighlightRules = function(normalize) {
749
794
  ],
750
795
 
751
796
  comment : [
752
- {token : "comment.xml", regex : "-->", next : "start"},
797
+ {token : "comment.end.xml", regex : "-->", next : "start"},
753
798
  {defaultToken : "comment.xml"}
754
799
  ],
755
800
 
@@ -796,7 +841,7 @@ var XmlHighlightRules = function(normalize) {
796
841
 
797
842
  attributes: [{
798
843
  token : "entity.other.attribute-name.xml",
799
- regex : "(?:" + tagRegex + ":)?" + tagRegex + ""
844
+ regex : tagRegex
800
845
  }, {
801
846
  token : "keyword.operator.attribute-equals.xml",
802
847
  regex : "="
@@ -11395,6 +11440,7 @@ oop.inherits(Mode, TextMode);
11395
11440
 
11396
11441
  this.lineCommentStart = "//";
11397
11442
  this.blockComment = {start: "/*", end: "*/"};
11443
+ this.$quotes = {'"': '"', "'": "'", "`": "`"};
11398
11444
 
11399
11445
  this.getNextLineIndent = function(state, line, tab) {
11400
11446
  var indent = this.$getIndent(line);
@@ -12043,7 +12089,7 @@ function is(token, type) {
12043
12089
  var tag = this._getFirstTagInLine(session, row);
12044
12090
 
12045
12091
  if (!tag)
12046
- return "";
12092
+ return this.getCommentFoldWidget(session, row);
12047
12093
 
12048
12094
  if (tag.closing || (!tag.tagName && tag.selfClosing))
12049
12095
  return foldStyle == "markbeginend" ? "end" : "";
@@ -12056,6 +12102,12 @@ function is(token, type) {
12056
12102
 
12057
12103
  return "start";
12058
12104
  };
12105
+
12106
+ this.getCommentFoldWidget = function(session, row) {
12107
+ if (/comment/.test(session.getState(row)) && /<!-/.test(session.getLine(row)))
12108
+ return "start";
12109
+ return "";
12110
+ }
12059
12111
  this._getFirstTagInLine = function(session, row) {
12060
12112
  var tokens = session.getTokens(row);
12061
12113
  var tag = new Tag();
@@ -12174,8 +12226,10 @@ function is(token, type) {
12174
12226
  this.getFoldWidgetRange = function(session, foldStyle, row) {
12175
12227
  var firstTag = this._getFirstTagInLine(session, row);
12176
12228
 
12177
- if (!firstTag)
12178
- return null;
12229
+ if (!firstTag) {
12230
+ return this.getCommentFoldWidget(session, row)
12231
+ && session.getCommentFoldRange(row, session.getLine(row).length);
12232
+ }
12179
12233
 
12180
12234
  var isBackward = firstTag.closing || firstTag.selfClosing;
12181
12235
  var stack = [];