@openui5/sap.ui.codeeditor 1.120.6 → 1.121.0

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 (457) hide show
  1. package/.reuse/dep5 +23 -21
  2. package/THIRDPARTY.txt +6 -43
  3. package/package.json +2 -2
  4. package/src/sap/ui/codeeditor/.library +2 -2
  5. package/src/sap/ui/codeeditor/CodeEditor.js +41 -27
  6. package/src/sap/ui/codeeditor/js/ace/ace.js +16262 -16597
  7. package/src/sap/ui/codeeditor/js/ace/css/ace.css +358 -86
  8. package/src/sap/ui/codeeditor/js/ace/css/ambiance-3.png +0 -0
  9. package/src/sap/ui/codeeditor/js/ace/css/chrome-2.png +0 -0
  10. package/src/sap/ui/codeeditor/js/ace/css/cloud9_day-1.png +0 -0
  11. package/src/sap/ui/codeeditor/js/ace/css/cloud9_day-2.png +0 -0
  12. package/src/sap/ui/codeeditor/js/ace/css/cloud9_night-1.png +0 -0
  13. package/src/sap/ui/codeeditor/js/ace/css/cloud9_night-2.png +0 -0
  14. package/src/sap/ui/codeeditor/js/ace/css/cloud9_night_low_color-1.png +0 -0
  15. package/src/sap/ui/codeeditor/js/ace/css/cloud9_night_low_color-2.png +0 -0
  16. package/src/sap/ui/codeeditor/js/ace/css/clouds-2.png +0 -0
  17. package/src/sap/ui/codeeditor/js/ace/css/clouds_midnight-2.png +0 -0
  18. package/src/sap/ui/codeeditor/js/ace/css/cobalt-2.png +0 -0
  19. package/src/sap/ui/codeeditor/js/ace/css/crimson_editor-2.png +0 -0
  20. package/src/sap/ui/codeeditor/js/ace/css/dawn-2.png +0 -0
  21. package/src/sap/ui/codeeditor/js/ace/css/dracula-2.png +0 -0
  22. package/src/sap/ui/codeeditor/js/ace/css/dreamweaver-2.png +0 -0
  23. package/src/sap/ui/codeeditor/js/ace/css/eclipse-2.png +0 -0
  24. package/src/sap/ui/codeeditor/js/ace/css/github-2.png +0 -0
  25. package/src/sap/ui/codeeditor/js/ace/css/github_dark-1.png +0 -0
  26. package/src/sap/ui/codeeditor/js/ace/css/github_dark-2.png +0 -0
  27. package/src/sap/ui/codeeditor/js/ace/css/gob-2.png +0 -0
  28. package/src/sap/ui/codeeditor/js/ace/css/gruvbox-2.png +0 -0
  29. package/src/sap/ui/codeeditor/js/ace/css/gruvbox_dark_hard-1.png +0 -0
  30. package/src/sap/ui/codeeditor/js/ace/css/gruvbox_light_hard-1.png +0 -0
  31. package/src/sap/ui/codeeditor/js/ace/css/gruvbox_light_hard-2.png +0 -0
  32. package/src/sap/ui/codeeditor/js/ace/css/idle_fingers-2.png +0 -0
  33. package/src/sap/ui/codeeditor/js/ace/css/iplastic-3.png +0 -0
  34. package/src/sap/ui/codeeditor/js/ace/css/katzenmilch-1.png +0 -0
  35. package/src/sap/ui/codeeditor/js/ace/css/katzenmilch-2.png +0 -0
  36. package/src/sap/ui/codeeditor/js/ace/css/kr_theme-2.png +0 -0
  37. package/src/sap/ui/codeeditor/js/ace/css/kuroir-1.png +0 -0
  38. package/src/sap/ui/codeeditor/js/ace/css/kuroir-2.png +0 -0
  39. package/src/sap/ui/codeeditor/js/ace/css/main-10.png +0 -0
  40. package/src/sap/ui/codeeditor/js/ace/css/main-11.png +0 -0
  41. package/src/sap/ui/codeeditor/js/ace/css/main-12.png +0 -0
  42. package/src/sap/ui/codeeditor/js/ace/css/main-13.png +0 -0
  43. package/src/sap/ui/codeeditor/js/ace/css/main-14.png +0 -0
  44. package/src/sap/ui/codeeditor/js/ace/css/main-15.png +0 -0
  45. package/src/sap/ui/codeeditor/js/ace/css/main-16.png +0 -0
  46. package/src/sap/ui/codeeditor/js/ace/css/main-17.png +0 -0
  47. package/src/sap/ui/codeeditor/js/ace/css/main-18.png +0 -0
  48. package/src/sap/ui/codeeditor/js/ace/css/main-19.png +0 -0
  49. package/src/sap/ui/codeeditor/js/ace/css/main-20.png +0 -0
  50. package/src/sap/ui/codeeditor/js/ace/css/main-21.png +0 -0
  51. package/src/sap/ui/codeeditor/js/ace/css/main-22.png +0 -0
  52. package/src/sap/ui/codeeditor/js/ace/css/main-22.svg +1 -0
  53. package/src/sap/ui/codeeditor/js/ace/css/main-23.png +0 -0
  54. package/src/sap/ui/codeeditor/js/ace/css/main-5.svg +7 -0
  55. package/src/sap/ui/codeeditor/js/ace/css/main-6.svg +7 -0
  56. package/src/sap/ui/codeeditor/js/ace/css/main-7.svg +9 -0
  57. package/src/sap/ui/codeeditor/js/ace/css/main-8.png +0 -0
  58. package/src/sap/ui/codeeditor/js/ace/css/main-8.svg +4 -0
  59. package/src/sap/ui/codeeditor/js/ace/css/main-9.png +0 -0
  60. package/src/sap/ui/codeeditor/js/ace/css/main-9.svg +4 -0
  61. package/src/sap/ui/codeeditor/js/ace/css/merbivore-2.png +0 -0
  62. package/src/sap/ui/codeeditor/js/ace/css/merbivore_soft-2.png +0 -0
  63. package/src/sap/ui/codeeditor/js/ace/css/mono_industrial-2.png +0 -0
  64. package/src/sap/ui/codeeditor/js/ace/css/monokai-2.png +0 -0
  65. package/src/sap/ui/codeeditor/js/ace/css/one_dark-2.png +0 -0
  66. package/src/sap/ui/codeeditor/js/ace/css/pastel_on_dark-2.png +0 -0
  67. package/src/sap/ui/codeeditor/js/ace/css/solarized_dark-2.png +0 -0
  68. package/src/sap/ui/codeeditor/js/ace/css/solarized_light-2.png +0 -0
  69. package/src/sap/ui/codeeditor/js/ace/css/sqlserver-2.png +0 -0
  70. package/src/sap/ui/codeeditor/js/ace/css/terminal-2.png +0 -0
  71. package/src/sap/ui/codeeditor/js/ace/css/textmate-2.png +0 -0
  72. package/src/sap/ui/codeeditor/js/ace/css/theme/ambiance.css +120 -68
  73. package/src/sap/ui/codeeditor/js/ace/css/theme/chaos.css +79 -66
  74. package/src/sap/ui/codeeditor/js/ace/css/theme/chrome.css +82 -43
  75. package/src/sap/ui/codeeditor/js/ace/css/theme/cloud9_day.css +160 -0
  76. package/src/sap/ui/codeeditor/js/ace/css/theme/cloud9_night.css +146 -0
  77. package/src/sap/ui/codeeditor/js/ace/css/theme/cloud9_night_low_color.css +134 -0
  78. package/src/sap/ui/codeeditor/js/ace/css/theme/clouds.css +59 -31
  79. package/src/sap/ui/codeeditor/js/ace/css/theme/clouds_midnight.css +60 -32
  80. package/src/sap/ui/codeeditor/js/ace/css/theme/cobalt.css +71 -38
  81. package/src/sap/ui/codeeditor/js/ace/css/theme/crimson_editor.css +79 -42
  82. package/src/sap/ui/codeeditor/js/ace/css/theme/dawn.css +70 -40
  83. package/src/sap/ui/codeeditor/js/ace/css/theme/dracula.css +95 -49
  84. package/src/sap/ui/codeeditor/js/ace/css/theme/dreamweaver.css +95 -49
  85. package/src/sap/ui/codeeditor/js/ace/css/theme/eclipse.css +62 -33
  86. package/src/sap/ui/codeeditor/js/ace/css/theme/github.css +71 -38
  87. package/src/sap/ui/codeeditor/js/ace/css/theme/github_dark.css +134 -0
  88. package/src/sap/ui/codeeditor/js/ace/css/theme/gob.css +68 -38
  89. package/src/sap/ui/codeeditor/js/ace/css/theme/gruvbox.css +54 -28
  90. package/src/sap/ui/codeeditor/js/ace/css/theme/gruvbox_dark_hard.css +163 -0
  91. package/src/sap/ui/codeeditor/js/ace/css/theme/gruvbox_light_hard.css +167 -0
  92. package/src/sap/ui/codeeditor/js/ace/css/theme/idle_fingers.css +62 -34
  93. package/src/sap/ui/codeeditor/js/ace/css/theme/iplastic.css +76 -45
  94. package/src/sap/ui/codeeditor/js/ace/css/theme/katzenmilch.css +91 -53
  95. package/src/sap/ui/codeeditor/js/ace/css/theme/kr_theme.css +67 -36
  96. package/src/sap/ui/codeeditor/js/ace/css/theme/kuroir.css +43 -17
  97. package/src/sap/ui/codeeditor/js/ace/css/theme/merbivore.css +57 -31
  98. package/src/sap/ui/codeeditor/js/ace/css/theme/merbivore_soft.css +57 -31
  99. package/src/sap/ui/codeeditor/js/ace/css/theme/mono_industrial.css +66 -36
  100. package/src/sap/ui/codeeditor/js/ace/css/theme/monokai.css +63 -35
  101. package/src/sap/ui/codeeditor/js/ace/css/theme/nord_dark.css +55 -29
  102. package/src/sap/ui/codeeditor/js/ace/css/theme/one_dark.css +88 -47
  103. package/src/sap/ui/codeeditor/js/ace/css/theme/pastel_on_dark.css +70 -38
  104. package/src/sap/ui/codeeditor/js/ace/css/theme/solarized_dark.css +52 -28
  105. package/src/sap/ui/codeeditor/js/ace/css/theme/solarized_light.css +55 -29
  106. package/src/sap/ui/codeeditor/js/ace/css/theme/sqlserver.css +90 -48
  107. package/src/sap/ui/codeeditor/js/ace/css/theme/terminal.css +64 -34
  108. package/src/sap/ui/codeeditor/js/ace/css/theme/textmate.css +82 -43
  109. package/src/sap/ui/codeeditor/js/ace/css/theme/tomorrow.css +61 -33
  110. package/src/sap/ui/codeeditor/js/ace/css/theme/tomorrow_night.css +61 -33
  111. package/src/sap/ui/codeeditor/js/ace/css/theme/tomorrow_night_blue.css +59 -32
  112. package/src/sap/ui/codeeditor/js/ace/css/theme/tomorrow_night_bright.css +71 -40
  113. package/src/sap/ui/codeeditor/js/ace/css/theme/tomorrow_night_eighties.css +61 -33
  114. package/src/sap/ui/codeeditor/js/ace/css/theme/twilight.css +66 -36
  115. package/src/sap/ui/codeeditor/js/ace/css/theme/vibrant_ink.css +59 -32
  116. package/src/sap/ui/codeeditor/js/ace/css/theme/xcode.css +54 -28
  117. package/src/sap/ui/codeeditor/js/ace/css/tomorrow-2.png +0 -0
  118. package/src/sap/ui/codeeditor/js/ace/css/tomorrow_night-2.png +0 -0
  119. package/src/sap/ui/codeeditor/js/ace/css/tomorrow_night_blue-2.png +0 -0
  120. package/src/sap/ui/codeeditor/js/ace/css/tomorrow_night_bright-2.png +0 -0
  121. package/src/sap/ui/codeeditor/js/ace/css/tomorrow_night_eighties-2.png +0 -0
  122. package/src/sap/ui/codeeditor/js/ace/css/twilight-2.png +0 -0
  123. package/src/sap/ui/codeeditor/js/ace/css/vibrant_ink-2.png +0 -0
  124. package/src/sap/ui/codeeditor/js/ace/css/xcode-2.png +0 -0
  125. package/src/sap/ui/codeeditor/js/ace/ext-beautify.js +90 -91
  126. package/src/sap/ui/codeeditor/js/ace/ext-code_lens.js +39 -75
  127. package/src/sap/ui/codeeditor/js/ace/ext-command_bar.js +457 -0
  128. package/src/sap/ui/codeeditor/js/ace/ext-elastic_tabstops_lite.js +47 -97
  129. package/src/sap/ui/codeeditor/js/ace/ext-emmet.js +496 -552
  130. package/src/sap/ui/codeeditor/js/ace/ext-hardwrap.js +47 -16
  131. package/src/sap/ui/codeeditor/js/ace/ext-inline_autocomplete.js +3269 -0
  132. package/src/sap/ui/codeeditor/js/ace/ext-keybinding_menu.js +45 -105
  133. package/src/sap/ui/codeeditor/js/ace/ext-language_tools.js +1438 -1128
  134. package/src/sap/ui/codeeditor/js/ace/ext-linking.js +8 -16
  135. package/src/sap/ui/codeeditor/js/ace/ext-modelist.js +198 -185
  136. package/src/sap/ui/codeeditor/js/ace/ext-options.js +405 -443
  137. package/src/sap/ui/codeeditor/js/ace/ext-prompt.js +1682 -1508
  138. package/src/sap/ui/codeeditor/js/ace/ext-rtl.js +26 -28
  139. package/src/sap/ui/codeeditor/js/ace/ext-searchbox.js +160 -332
  140. package/src/sap/ui/codeeditor/js/ace/ext-settings_menu.js +409 -446
  141. package/src/sap/ui/codeeditor/js/ace/ext-simple_tokenizer.js +45 -0
  142. package/src/sap/ui/codeeditor/js/ace/ext-spellcheck.js +4 -10
  143. package/src/sap/ui/codeeditor/js/ace/ext-split.js +41 -63
  144. package/src/sap/ui/codeeditor/js/ace/ext-statusbar.js +19 -27
  145. package/src/sap/ui/codeeditor/js/ace/ext-themelist.js +45 -41
  146. package/src/sap/ui/codeeditor/js/ace/ext-whitespace.js +62 -83
  147. package/src/sap/ui/codeeditor/js/ace/keybinding-emacs.js +442 -551
  148. package/src/sap/ui/codeeditor/js/ace/keybinding-sublime.js +338 -351
  149. package/src/sap/ui/codeeditor/js/ace/keybinding-vim.js +5242 -4758
  150. package/src/sap/ui/codeeditor/js/ace/keybinding-vscode.js +228 -235
  151. package/src/sap/ui/codeeditor/js/ace/mode-abap.js +72 -93
  152. package/src/sap/ui/codeeditor/js/ace/mode-abc.js +136 -164
  153. package/src/sap/ui/codeeditor/js/ace/mode-actionscript.js +109 -150
  154. package/src/sap/ui/codeeditor/js/ace/mode-ada.js +45 -74
  155. package/src/sap/ui/codeeditor/js/ace/mode-alda.js +77 -109
  156. package/src/sap/ui/codeeditor/js/ace/mode-apache_conf.js +196 -241
  157. package/src/sap/ui/codeeditor/js/ace/mode-apex.js +192 -247
  158. package/src/sap/ui/codeeditor/js/ace/mode-applescript.js +56 -102
  159. package/src/sap/ui/codeeditor/js/ace/mode-aql.js +85 -95
  160. package/src/sap/ui/codeeditor/js/ace/mode-asciidoc.js +120 -158
  161. package/src/sap/ui/codeeditor/js/ace/mode-asl.js +233 -298
  162. package/src/sap/ui/codeeditor/js/ace/mode-assembly_x86.js +78 -101
  163. package/src/sap/ui/codeeditor/js/ace/mode-astro.js +2414 -0
  164. package/src/sap/ui/codeeditor/js/ace/mode-autohotkey.js +80 -116
  165. package/src/sap/ui/codeeditor/js/ace/mode-batchfile.js +74 -105
  166. package/src/sap/ui/codeeditor/js/ace/mode-bibtex.js +318 -0
  167. package/src/sap/ui/codeeditor/js/ace/mode-c9search.js +72 -115
  168. package/src/sap/ui/codeeditor/js/ace/mode-c_cpp.js +171 -257
  169. package/src/sap/ui/codeeditor/js/ace/mode-cirru.js +97 -115
  170. package/src/sap/ui/codeeditor/js/ace/mode-clojure.js +126 -119
  171. package/src/sap/ui/codeeditor/js/ace/mode-cobol.js +48 -67
  172. package/src/sap/ui/codeeditor/js/ace/mode-coffee.js +203 -268
  173. package/src/sap/ui/codeeditor/js/ace/mode-coldfusion.js +1029 -1276
  174. package/src/sap/ui/codeeditor/js/ace/mode-crystal.js +337 -393
  175. package/src/sap/ui/codeeditor/js/ace/mode-csharp.js +127 -216
  176. package/src/sap/ui/codeeditor/js/ace/mode-csound_document.js +1539 -1569
  177. package/src/sap/ui/codeeditor/js/ace/mode-csound_orchestra.js +786 -898
  178. package/src/sap/ui/codeeditor/js/ace/mode-csound_score.js +184 -237
  179. package/src/sap/ui/codeeditor/js/ace/mode-csp.js +37 -37
  180. package/src/sap/ui/codeeditor/js/ace/mode-css.js +293 -384
  181. package/src/sap/ui/codeeditor/js/ace/mode-curly.js +1019 -1262
  182. package/src/sap/ui/codeeditor/js/ace/mode-cuttlefish.js +56 -0
  183. package/src/sap/ui/codeeditor/js/ace/mode-d.js +163 -233
  184. package/src/sap/ui/codeeditor/js/ace/mode-dart.js +330 -427
  185. package/src/sap/ui/codeeditor/js/ace/mode-diff.js +20 -38
  186. package/src/sap/ui/codeeditor/js/ace/mode-django.js +1032 -1271
  187. package/src/sap/ui/codeeditor/js/ace/mode-dockerfile.js +211 -284
  188. package/src/sap/ui/codeeditor/js/ace/mode-dot.js +131 -200
  189. package/src/sap/ui/codeeditor/js/ace/mode-drools.js +408 -349
  190. package/src/sap/ui/codeeditor/js/ace/mode-edifact.js +89 -125
  191. package/src/sap/ui/codeeditor/js/ace/mode-eiffel.js +47 -62
  192. package/src/sap/ui/codeeditor/js/ace/mode-ejs.js +1350 -1666
  193. package/src/sap/ui/codeeditor/js/ace/mode-elixir.js +349 -407
  194. package/src/sap/ui/codeeditor/js/ace/mode-elm.js +136 -168
  195. package/src/sap/ui/codeeditor/js/ace/mode-erlang.js +707 -881
  196. package/src/sap/ui/codeeditor/js/ace/mode-flix.js +164 -0
  197. package/src/sap/ui/codeeditor/js/ace/mode-forth.js +128 -172
  198. package/src/sap/ui/codeeditor/js/ace/mode-fortran.js +177 -246
  199. package/src/sap/ui/codeeditor/js/ace/mode-fsharp.js +92 -131
  200. package/src/sap/ui/codeeditor/js/ace/mode-fsl.js +91 -124
  201. package/src/sap/ui/codeeditor/js/ace/mode-ftl.js +813 -748
  202. package/src/sap/ui/codeeditor/js/ace/mode-gcode.js +52 -71
  203. package/src/sap/ui/codeeditor/js/ace/mode-gherkin.js +105 -119
  204. package/src/sap/ui/codeeditor/js/ace/mode-gitignore.js +12 -22
  205. package/src/sap/ui/codeeditor/js/ace/mode-glsl.js +184 -289
  206. package/src/sap/ui/codeeditor/js/ace/mode-gobstones.js +686 -623
  207. package/src/sap/ui/codeeditor/js/ace/mode-golang.js +167 -239
  208. package/src/sap/ui/codeeditor/js/ace/mode-graphqlschema.js +48 -88
  209. package/src/sap/ui/codeeditor/js/ace/mode-groovy.js +577 -471
  210. package/src/sap/ui/codeeditor/js/ace/mode-haml.js +1062 -1026
  211. package/src/sap/ui/codeeditor/js/ace/mode-handlebars.js +1061 -1305
  212. package/src/sap/ui/codeeditor/js/ace/mode-haskell.js +199 -255
  213. package/src/sap/ui/codeeditor/js/ace/mode-haskell_cabal.js +81 -87
  214. package/src/sap/ui/codeeditor/js/ace/mode-haxe.js +111 -184
  215. package/src/sap/ui/codeeditor/js/ace/mode-hjson.js +164 -199
  216. package/src/sap/ui/codeeditor/js/ace/mode-html.js +1009 -1239
  217. package/src/sap/ui/codeeditor/js/ace/mode-html_elixir.js +1402 -1705
  218. package/src/sap/ui/codeeditor/js/ace/mode-html_ruby.js +1390 -1706
  219. package/src/sap/ui/codeeditor/js/ace/mode-ini.js +58 -82
  220. package/src/sap/ui/codeeditor/js/ace/mode-io.js +85 -123
  221. package/src/sap/ui/codeeditor/js/ace/mode-ion.js +477 -0
  222. package/src/sap/ui/codeeditor/js/ace/mode-jack.js +109 -162
  223. package/src/sap/ui/codeeditor/js/ace/mode-jade.js +1339 -1344
  224. package/src/sap/ui/codeeditor/js/ace/mode-java.js +710 -498
  225. package/src/sap/ui/codeeditor/js/ace/mode-javascript.js +441 -354
  226. package/src/sap/ui/codeeditor/js/ace/mode-jexl.js +270 -0
  227. package/src/sap/ui/codeeditor/js/ace/mode-json.js +93 -147
  228. package/src/sap/ui/codeeditor/js/ace/mode-json5.js +128 -180
  229. package/src/sap/ui/codeeditor/js/ace/mode-jsoniq.js +58 -112
  230. package/src/sap/ui/codeeditor/js/ace/mode-jsp.js +1045 -865
  231. package/src/sap/ui/codeeditor/js/ace/mode-jssm.js +158 -190
  232. package/src/sap/ui/codeeditor/js/ace/mode-jsx.js +121 -194
  233. package/src/sap/ui/codeeditor/js/ace/mode-julia.js +128 -177
  234. package/src/sap/ui/codeeditor/js/ace/mode-kotlin.js +262 -614
  235. package/src/sap/ui/codeeditor/js/ace/mode-latex.js +94 -138
  236. package/src/sap/ui/codeeditor/js/ace/mode-latte.js +1120 -1366
  237. package/src/sap/ui/codeeditor/js/ace/mode-less.js +342 -442
  238. package/src/sap/ui/codeeditor/js/ace/mode-liquid.js +1353 -1414
  239. package/src/sap/ui/codeeditor/js/ace/mode-lisp.js +65 -73
  240. package/src/sap/ui/codeeditor/js/ace/mode-livescript.js +217 -224
  241. package/src/sap/ui/codeeditor/js/ace/mode-logiql.js +97 -142
  242. package/src/sap/ui/codeeditor/js/ace/mode-logtalk.js +187 -227
  243. package/src/sap/ui/codeeditor/js/ace/mode-lsl.js +99 -155
  244. package/src/sap/ui/codeeditor/js/ace/mode-lua.js +152 -211
  245. package/src/sap/ui/codeeditor/js/ace/mode-luapage.js +1167 -1470
  246. package/src/sap/ui/codeeditor/js/ace/mode-lucene.js +25 -34
  247. package/src/sap/ui/codeeditor/js/ace/mode-makefile.js +244 -282
  248. package/src/sap/ui/codeeditor/js/ace/mode-markdown.js +1858 -2177
  249. package/src/sap/ui/codeeditor/js/ace/mode-mask.js +964 -1007
  250. package/src/sap/ui/codeeditor/js/ace/mode-matlab.js +197 -221
  251. package/src/sap/ui/codeeditor/js/ace/mode-maze.js +127 -163
  252. package/src/sap/ui/codeeditor/js/ace/mode-mediawiki.js +464 -476
  253. package/src/sap/ui/codeeditor/js/ace/mode-mel.js +90 -140
  254. package/src/sap/ui/codeeditor/js/ace/mode-mips.js +101 -134
  255. package/src/sap/ui/codeeditor/js/ace/mode-mixal.js +63 -75
  256. package/src/sap/ui/codeeditor/js/ace/mode-mushcode.js +537 -576
  257. package/src/sap/ui/codeeditor/js/ace/mode-mysql.js +85 -102
  258. package/src/sap/ui/codeeditor/js/ace/mode-nasal.js +513 -0
  259. package/src/sap/ui/codeeditor/js/ace/mode-nginx.js +119 -155
  260. package/src/sap/ui/codeeditor/js/ace/mode-nim.js +159 -197
  261. package/src/sap/ui/codeeditor/js/ace/mode-nix.js +283 -375
  262. package/src/sap/ui/codeeditor/js/ace/mode-nsis.js +139 -172
  263. package/src/sap/ui/codeeditor/js/ace/mode-nunjucks.js +1138 -1378
  264. package/src/sap/ui/codeeditor/js/ace/mode-objectivec.js +400 -514
  265. package/src/sap/ui/codeeditor/js/ace/mode-ocaml.js +77 -120
  266. package/src/sap/ui/codeeditor/js/ace/mode-odin.js +449 -0
  267. package/src/sap/ui/codeeditor/js/ace/mode-partiql.js +750 -0
  268. package/src/sap/ui/codeeditor/js/ace/mode-pascal.js +28 -47
  269. package/src/sap/ui/codeeditor/js/ace/mode-perl.js +122 -185
  270. package/src/sap/ui/codeeditor/js/ace/mode-pgsql.js +974 -851
  271. package/src/sap/ui/codeeditor/js/ace/mode-php.js +2282 -1502
  272. package/src/sap/ui/codeeditor/js/ace/mode-php_laravel_blade.js +2463 -1696
  273. package/src/sap/ui/codeeditor/js/ace/mode-pig.js +133 -165
  274. package/src/sap/ui/codeeditor/js/ace/mode-plain_text.js +5 -10
  275. package/src/sap/ui/codeeditor/js/ace/mode-plsql.js +268 -0
  276. package/src/sap/ui/codeeditor/js/ace/mode-powershell.js +332 -183
  277. package/src/sap/ui/codeeditor/js/ace/mode-praat.js +168 -234
  278. package/src/sap/ui/codeeditor/js/ace/mode-prisma.js +292 -324
  279. package/src/sap/ui/codeeditor/js/ace/mode-prolog.js +180 -246
  280. package/src/sap/ui/codeeditor/js/ace/mode-properties.js +26 -37
  281. package/src/sap/ui/codeeditor/js/ace/mode-protobuf.js +232 -327
  282. package/src/sap/ui/codeeditor/js/ace/mode-prql.js +320 -0
  283. package/src/sap/ui/codeeditor/js/ace/mode-puppet.js +68 -120
  284. package/src/sap/ui/codeeditor/js/ace/mode-python.js +338 -370
  285. package/src/sap/ui/codeeditor/js/ace/mode-qml.js +244 -279
  286. package/src/sap/ui/codeeditor/js/ace/mode-r.js +295 -220
  287. package/src/sap/ui/codeeditor/js/ace/mode-raku.js +356 -433
  288. package/src/sap/ui/codeeditor/js/ace/mode-razor.js +1130 -1374
  289. package/src/sap/ui/codeeditor/js/ace/mode-rdoc.js +214 -171
  290. package/src/sap/ui/codeeditor/js/ace/mode-red.js +212 -274
  291. package/src/sap/ui/codeeditor/js/ace/mode-redshift.js +181 -220
  292. package/src/sap/ui/codeeditor/js/ace/mode-rhtml.js +1325 -1443
  293. package/src/sap/ui/codeeditor/js/ace/mode-robot.js +168 -0
  294. package/src/sap/ui/codeeditor/js/ace/mode-rst.js +217 -229
  295. package/src/sap/ui/codeeditor/js/ace/mode-ruby.js +338 -420
  296. package/src/sap/ui/codeeditor/js/ace/mode-rust.js +258 -155
  297. package/src/sap/ui/codeeditor/js/ace/mode-sac.js +349 -0
  298. package/src/sap/ui/codeeditor/js/ace/mode-sass.js +257 -309
  299. package/src/sap/ui/codeeditor/js/ace/mode-scad.js +127 -191
  300. package/src/sap/ui/codeeditor/js/ace/mode-scala.js +572 -468
  301. package/src/sap/ui/codeeditor/js/ace/mode-scheme.js +104 -126
  302. package/src/sap/ui/codeeditor/js/ace/mode-scrypt.js +181 -228
  303. package/src/sap/ui/codeeditor/js/ace/mode-scss.js +364 -472
  304. package/src/sap/ui/codeeditor/js/ace/mode-sh.js +204 -266
  305. package/src/sap/ui/codeeditor/js/ace/mode-sjs.js +477 -405
  306. package/src/sap/ui/codeeditor/js/ace/mode-slim.js +2631 -3161
  307. package/src/sap/ui/codeeditor/js/ace/mode-smarty.js +1075 -1334
  308. package/src/sap/ui/codeeditor/js/ace/mode-smithy.js +276 -327
  309. package/src/sap/ui/codeeditor/js/ace/mode-snippets.js +78 -102
  310. package/src/sap/ui/codeeditor/js/ace/mode-soy_template.js +1251 -1548
  311. package/src/sap/ui/codeeditor/js/ace/mode-space.js +47 -63
  312. package/src/sap/ui/codeeditor/js/ace/mode-sparql.js +139 -171
  313. package/src/sap/ui/codeeditor/js/ace/mode-sql.js +77 -133
  314. package/src/sap/ui/codeeditor/js/ace/mode-sqlserver.js +138 -192
  315. package/src/sap/ui/codeeditor/js/ace/mode-stylus.js +306 -338
  316. package/src/sap/ui/codeeditor/js/ace/mode-svg.js +642 -794
  317. package/src/sap/ui/codeeditor/js/ace/mode-swift.js +96 -150
  318. package/src/sap/ui/codeeditor/js/ace/mode-tcl.js +151 -200
  319. package/src/sap/ui/codeeditor/js/ace/mode-terraform.js +78 -132
  320. package/src/sap/ui/codeeditor/js/ace/mode-tex.js +148 -96
  321. package/src/sap/ui/codeeditor/js/ace/mode-textile.js +45 -70
  322. package/src/sap/ui/codeeditor/js/ace/mode-toml.js +63 -87
  323. package/src/sap/ui/codeeditor/js/ace/mode-tsx.js +462 -384
  324. package/src/sap/ui/codeeditor/js/ace/mode-turtle.js +119 -151
  325. package/src/sap/ui/codeeditor/js/ace/mode-twig.js +1099 -1350
  326. package/src/sap/ui/codeeditor/js/ace/mode-typescript.js +455 -376
  327. package/src/sap/ui/codeeditor/js/ace/mode-vala.js +382 -505
  328. package/src/sap/ui/codeeditor/js/ace/mode-vbscript.js +231 -264
  329. package/src/sap/ui/codeeditor/js/ace/mode-velocity.js +1116 -1388
  330. package/src/sap/ui/codeeditor/js/ace/mode-verilog.js +61 -81
  331. package/src/sap/ui/codeeditor/js/ace/mode-vhdl.js +57 -79
  332. package/src/sap/ui/codeeditor/js/ace/mode-visualforce.js +1046 -1292
  333. package/src/sap/ui/codeeditor/js/ace/mode-wollok.js +525 -417
  334. package/src/sap/ui/codeeditor/js/ace/mode-xml.js +182 -389
  335. package/src/sap/ui/codeeditor/js/ace/mode-xquery.js +58 -112
  336. package/src/sap/ui/codeeditor/js/ace/mode-yaml.js +202 -137
  337. package/src/sap/ui/codeeditor/js/ace/mode-zeek.js +237 -274
  338. package/src/sap/ui/codeeditor/js/ace/snippets/abc.js +5 -34
  339. package/src/sap/ui/codeeditor/js/ace/snippets/actionscript.js +5 -160
  340. package/src/sap/ui/codeeditor/js/ace/snippets/astro.js +9 -0
  341. package/src/sap/ui/codeeditor/js/ace/snippets/bibtex.js +9 -0
  342. package/src/sap/ui/codeeditor/js/ace/snippets/c_cpp.js +5 -134
  343. package/src/sap/ui/codeeditor/js/ace/snippets/clojure.js +5 -93
  344. package/src/sap/ui/codeeditor/js/ace/snippets/coffee.js +5 -98
  345. package/src/sap/ui/codeeditor/js/ace/snippets/csound_document.js +5 -13
  346. package/src/sap/ui/codeeditor/js/ace/snippets/csound_orchestra.js +5 -50
  347. package/src/sap/ui/codeeditor/js/ace/snippets/css.js +5 -970
  348. package/src/sap/ui/codeeditor/js/ace/snippets/cuttlefish.js +9 -0
  349. package/src/sap/ui/codeeditor/js/ace/snippets/dart.js +5 -86
  350. package/src/sap/ui/codeeditor/js/ace/snippets/diff.js +5 -14
  351. package/src/sap/ui/codeeditor/js/ace/snippets/django.js +5 -111
  352. package/src/sap/ui/codeeditor/js/ace/snippets/drools.js +5 -22
  353. package/src/sap/ui/codeeditor/js/ace/snippets/edifact.js +8 -246
  354. package/src/sap/ui/codeeditor/js/ace/snippets/erlang.js +5 -163
  355. package/src/sap/ui/codeeditor/js/ace/snippets/flix.js +9 -0
  356. package/src/sap/ui/codeeditor/js/ace/snippets/fsl.js +6 -4
  357. package/src/sap/ui/codeeditor/js/ace/snippets/gobstones.js +5 -1707
  358. package/src/sap/ui/codeeditor/js/ace/snippets/graphqlschema.js +5 -35
  359. package/src/sap/ui/codeeditor/js/ace/snippets/haml.js +5 -23
  360. package/src/sap/ui/codeeditor/js/ace/snippets/haskell.js +5 -85
  361. package/src/sap/ui/codeeditor/js/ace/snippets/html.js +5 -856
  362. package/src/sap/ui/codeeditor/js/ace/snippets/io.js +1 -3
  363. package/src/sap/ui/codeeditor/js/ace/snippets/ion.js +9 -0
  364. package/src/sap/ui/codeeditor/js/ace/snippets/java.js +5 -243
  365. package/src/sap/ui/codeeditor/js/ace/snippets/javascript.js +5 -198
  366. package/src/sap/ui/codeeditor/js/ace/snippets/jexl.js +9 -0
  367. package/src/sap/ui/codeeditor/js/ace/snippets/jsoniq.js +44 -41
  368. package/src/sap/ui/codeeditor/js/ace/snippets/jsp.js +5 -102
  369. package/src/sap/ui/codeeditor/js/ace/snippets/liquid.js +5 -884
  370. package/src/sap/ui/codeeditor/js/ace/snippets/lsl.js +5 -1235
  371. package/src/sap/ui/codeeditor/js/ace/snippets/lua.js +5 -24
  372. package/src/sap/ui/codeeditor/js/ace/snippets/makefile.js +5 -7
  373. package/src/sap/ui/codeeditor/js/ace/snippets/markdown.js +5 -91
  374. package/src/sap/ui/codeeditor/js/ace/snippets/maze.js +5 -12
  375. package/src/sap/ui/codeeditor/js/ace/snippets/nasal.js +9 -0
  376. package/src/sap/ui/codeeditor/js/ace/snippets/odin.js +9 -0
  377. package/src/sap/ui/codeeditor/js/ace/snippets/partiql.js +9 -0
  378. package/src/sap/ui/codeeditor/js/ace/snippets/perl.js +5 -350
  379. package/src/sap/ui/codeeditor/js/ace/snippets/php.js +5 -386
  380. package/src/sap/ui/codeeditor/js/ace/snippets/plsql.js +9 -0
  381. package/src/sap/ui/codeeditor/js/ace/snippets/prql.js +9 -0
  382. package/src/sap/ui/codeeditor/js/ace/snippets/python.js +5 -161
  383. package/src/sap/ui/codeeditor/js/ace/snippets/r.js +5 -124
  384. package/src/sap/ui/codeeditor/js/ace/snippets/razor.js +5 -6
  385. package/src/sap/ui/codeeditor/js/ace/snippets/robot.js +16 -0
  386. package/src/sap/ui/codeeditor/js/ace/snippets/rst.js +5 -25
  387. package/src/sap/ui/codeeditor/js/ace/snippets/ruby.js +5 -931
  388. package/src/sap/ui/codeeditor/js/ace/snippets/sac.js +9 -0
  389. package/src/sap/ui/codeeditor/js/ace/snippets/sh.js +5 -86
  390. package/src/sap/ui/codeeditor/js/ace/snippets/snippets.js +5 -12
  391. package/src/sap/ui/codeeditor/js/ace/snippets/sql.js +5 -29
  392. package/src/sap/ui/codeeditor/js/ace/snippets/sqlserver.js +5 -72
  393. package/src/sap/ui/codeeditor/js/ace/snippets/tcl.js +5 -95
  394. package/src/sap/ui/codeeditor/js/ace/snippets/tex.js +5 -193
  395. package/src/sap/ui/codeeditor/js/ace/snippets/textile.js +5 -33
  396. package/src/sap/ui/codeeditor/js/ace/snippets/vala.js +1 -2
  397. package/src/sap/ui/codeeditor/js/ace/snippets/velocity.js +5 -31
  398. package/src/sap/ui/codeeditor/js/ace/snippets/wollok.js +5 -87
  399. package/src/sap/ui/codeeditor/js/ace/snippets/xquery.js +44 -41
  400. package/src/sap/ui/codeeditor/js/ace/theme-ambiance.js +5 -172
  401. package/src/sap/ui/codeeditor/js/ace/theme-chaos.js +5 -150
  402. package/src/sap/ui/codeeditor/js/ace/theme-chrome.js +6 -123
  403. package/src/sap/ui/codeeditor/js/ace/theme-cloud9_day.js +19 -0
  404. package/src/sap/ui/codeeditor/js/ace/theme-cloud9_night.js +18 -0
  405. package/src/sap/ui/codeeditor/js/ace/theme-cloud9_night_low_color.js +18 -0
  406. package/src/sap/ui/codeeditor/js/ace/theme-clouds.js +6 -90
  407. package/src/sap/ui/codeeditor/js/ace/theme-clouds_midnight.js +6 -91
  408. package/src/sap/ui/codeeditor/js/ace/theme-cobalt.js +6 -108
  409. package/src/sap/ui/codeeditor/js/ace/theme-crimson_editor.js +6 -113
  410. package/src/sap/ui/codeeditor/js/ace/theme-dawn.js +6 -103
  411. package/src/sap/ui/codeeditor/js/ace/theme-dracula.js +6 -122
  412. package/src/sap/ui/codeeditor/js/ace/theme-dreamweaver.js +7 -137
  413. package/src/sap/ui/codeeditor/js/ace/theme-eclipse.js +6 -92
  414. package/src/sap/ui/codeeditor/js/ace/theme-github.js +7 -99
  415. package/src/sap/ui/codeeditor/js/ace/theme-github_dark.js +18 -0
  416. package/src/sap/ui/codeeditor/js/ace/theme-gob.js +6 -107
  417. package/src/sap/ui/codeeditor/js/ace/theme-gruvbox.js +5 -76
  418. package/src/sap/ui/codeeditor/js/ace/theme-gruvbox_dark_hard.js +18 -0
  419. package/src/sap/ui/codeeditor/js/ace/theme-gruvbox_light_hard.js +18 -0
  420. package/src/sap/ui/codeeditor/js/ace/theme-idle_fingers.js +6 -91
  421. package/src/sap/ui/codeeditor/js/ace/theme-iplastic.js +6 -116
  422. package/src/sap/ui/codeeditor/js/ace/theme-katzenmilch.js +6 -116
  423. package/src/sap/ui/codeeditor/js/ace/theme-kr_theme.js +6 -99
  424. package/src/sap/ui/codeeditor/js/ace/theme-kuroir.js +6 -56
  425. package/src/sap/ui/codeeditor/js/ace/theme-merbivore.js +6 -90
  426. package/src/sap/ui/codeeditor/js/ace/theme-merbivore_soft.js +6 -91
  427. package/src/sap/ui/codeeditor/js/ace/theme-mono_industrial.js +6 -102
  428. package/src/sap/ui/codeeditor/js/ace/theme-monokai.js +6 -100
  429. package/src/sap/ui/codeeditor/js/ace/theme-nord_dark.js +6 -89
  430. package/src/sap/ui/codeeditor/js/ace/theme-one_dark.js +10 -131
  431. package/src/sap/ui/codeeditor/js/ace/theme-pastel_on_dark.js +6 -103
  432. package/src/sap/ui/codeeditor/js/ace/theme-solarized_dark.js +6 -83
  433. package/src/sap/ui/codeeditor/js/ace/theme-solarized_light.js +6 -86
  434. package/src/sap/ui/codeeditor/js/ace/theme-sqlserver.js +6 -133
  435. package/src/sap/ui/codeeditor/js/ace/theme-terminal.js +6 -109
  436. package/src/sap/ui/codeeditor/js/ace/theme-textmate.js +3 -124
  437. package/src/sap/ui/codeeditor/js/ace/theme-tomorrow.js +6 -103
  438. package/src/sap/ui/codeeditor/js/ace/theme-tomorrow_night.js +6 -103
  439. package/src/sap/ui/codeeditor/js/ace/theme-tomorrow_night_blue.js +6 -101
  440. package/src/sap/ui/codeeditor/js/ace/theme-tomorrow_night_bright.js +6 -116
  441. package/src/sap/ui/codeeditor/js/ace/theme-tomorrow_night_eighties.js +6 -103
  442. package/src/sap/ui/codeeditor/js/ace/theme-twilight.js +6 -104
  443. package/src/sap/ui/codeeditor/js/ace/theme-vibrant_ink.js +6 -89
  444. package/src/sap/ui/codeeditor/js/ace/theme-xcode.js +6 -83
  445. package/src/sap/ui/codeeditor/js/ace/worker-base.js +516 -595
  446. package/src/sap/ui/codeeditor/js/ace/worker-coffee.js +496 -575
  447. package/src/sap/ui/codeeditor/js/ace/worker-css.js +501 -578
  448. package/src/sap/ui/codeeditor/js/ace/worker-html.js +515 -584
  449. package/src/sap/ui/codeeditor/js/ace/worker-javascript.js +2964 -2551
  450. package/src/sap/ui/codeeditor/js/ace/worker-json.js +496 -575
  451. package/src/sap/ui/codeeditor/js/ace/worker-lua.js +497 -576
  452. package/src/sap/ui/codeeditor/js/ace/worker-php.js +2906 -2795
  453. package/src/sap/ui/codeeditor/js/ace/worker-xml.js +496 -575
  454. package/src/sap/ui/codeeditor/js/ace/worker-xquery.js +496 -575
  455. package/src/sap/ui/codeeditor/js/ace/worker-yaml.js +5851 -0
  456. package/src/sap/ui/codeeditor/library.js +6 -5
  457. package/LICENSES/BSD-2-Clause.txt +0 -22
@@ -1,21 +1,16 @@
1
- ace.define("ace/mode/css_highlight_rules",[], function(require, exports, module) {
2
- "use strict";
3
-
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){"use strict";
4
2
  var oop = require("../lib/oop");
5
3
  var lang = require("../lib/lang");
6
4
  var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
7
5
  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
6
  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";
7
+ 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|flex-end|flex-start|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
8
  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
9
  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
10
  var numRe = exports.numRe = "\\-?(?:(?:[0-9]+(?:\\.[0-9]+)?)|(?:\\.[0-9]+))";
14
11
  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
-
12
+ 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";
13
+ var CssHighlightRules = function () {
19
14
  var keywordMapper = this.createKeywordMapper({
20
15
  "support.function": supportFunction,
21
16
  "support.constant": supportConstant,
@@ -23,259 +18,232 @@ var CssHighlightRules = function() {
23
18
  "support.constant.color": supportConstantColor,
24
19
  "support.constant.fonts": supportConstantFonts
25
20
  }, "text", true);
26
-
27
21
  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
-
22
+ "start": [{
23
+ include: ["strings", "url", "comments"]
24
+ }, {
25
+ token: "paren.lparen",
26
+ regex: "\\{",
27
+ next: "ruleset"
28
+ }, {
29
+ token: "paren.rparen",
30
+ regex: "\\}"
31
+ }, {
32
+ token: "string",
33
+ regex: "@(?!viewport)",
34
+ next: "media"
35
+ }, {
36
+ token: "keyword",
37
+ regex: "#[a-z0-9-_]+"
38
+ }, {
39
+ token: "keyword",
40
+ regex: "%"
41
+ }, {
42
+ token: "variable",
43
+ regex: "\\.[a-z0-9-_]+"
44
+ }, {
45
+ token: "string",
46
+ regex: ":[a-z0-9-_]+"
47
+ }, {
48
+ token: "constant.numeric",
49
+ regex: numRe
50
+ }, {
51
+ token: "constant",
52
+ regex: "[a-z0-9-_]+"
53
+ }, {
54
+ caseInsensitive: true
55
+ }],
63
56
  "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"
57
+ include: ["strings", "url", "comments"]
154
58
  }, {
155
- include : "escapes"
59
+ token: "paren.lparen",
60
+ regex: "\\{",
61
+ next: "start"
156
62
  }, {
157
- token : "constant.language.escape",
158
- regex : /\\$/,
159
- consumeLineEnd: true
63
+ token: "paren.rparen",
64
+ regex: "\\}",
65
+ next: "start"
160
66
  }, {
161
- defaultToken: "string"
162
- }]
163
- }, {
164
- token : "string.start",
165
- regex : '"',
166
- push : [{
167
- token : "string.end",
168
- regex : '"|$',
169
- next: "pop"
67
+ token: "string",
68
+ regex: ";",
69
+ next: "start"
170
70
  }, {
171
- include : "escapes"
71
+ token: "keyword",
72
+ regex: "(?:media|supports|document|charset|import|namespace|media|supports|document"
73
+ + "|page|font|keyframes|viewport|counter-style|font-feature-values"
74
+ + "|swash|ornaments|annotation|stylistic|styleset|character-variant)"
75
+ }],
76
+ "comments": [{
77
+ token: "comment",
78
+ regex: "\\/\\*",
79
+ push: [{
80
+ token: "comment",
81
+ regex: "\\*\\/",
82
+ next: "pop"
83
+ }, {
84
+ defaultToken: "comment"
85
+ }]
86
+ }],
87
+ "ruleset": [{
88
+ regex: "-(webkit|ms|moz|o)-",
89
+ token: "text"
172
90
  }, {
173
- token : "constant.language.escape",
174
- regex : /\\$/,
175
- consumeLineEnd: true
91
+ token: "punctuation.operator",
92
+ regex: "[:;]"
176
93
  }, {
177
- defaultToken: "string"
178
- }]
179
- }],
94
+ token: "paren.rparen",
95
+ regex: "\\}",
96
+ next: "start"
97
+ }, {
98
+ include: ["strings", "url", "comments"]
99
+ }, {
100
+ token: ["constant.numeric", "keyword"],
101
+ 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|%)"
102
+ }, {
103
+ token: "constant.numeric",
104
+ regex: numRe
105
+ }, {
106
+ token: "constant.numeric",
107
+ regex: "#[a-f0-9]{6}"
108
+ }, {
109
+ token: "constant.numeric",
110
+ regex: "#[a-f0-9]{3}"
111
+ }, {
112
+ token: ["punctuation", "entity.other.attribute-name.pseudo-element.css"],
113
+ regex: pseudoElements
114
+ }, {
115
+ token: ["punctuation", "entity.other.attribute-name.pseudo-class.css"],
116
+ regex: pseudoClasses
117
+ }, {
118
+ include: "url"
119
+ }, {
120
+ token: keywordMapper,
121
+ regex: "\\-?[a-zA-Z_][a-zA-Z0-9_\\-]*"
122
+ }, {
123
+ caseInsensitive: true
124
+ }],
125
+ url: [{
126
+ token: "support.function",
127
+ regex: "(?:url(:?-prefix)?|domain|regexp)\\(",
128
+ push: [{
129
+ token: "support.function",
130
+ regex: "\\)",
131
+ next: "pop"
132
+ }, {
133
+ defaultToken: "string"
134
+ }]
135
+ }],
136
+ strings: [{
137
+ token: "string.start",
138
+ regex: "'",
139
+ push: [{
140
+ token: "string.end",
141
+ regex: "'|$",
142
+ next: "pop"
143
+ }, {
144
+ include: "escapes"
145
+ }, {
146
+ token: "constant.language.escape",
147
+ regex: /\\$/,
148
+ consumeLineEnd: true
149
+ }, {
150
+ defaultToken: "string"
151
+ }]
152
+ }, {
153
+ token: "string.start",
154
+ regex: '"',
155
+ push: [{
156
+ token: "string.end",
157
+ regex: '"|$',
158
+ next: "pop"
159
+ }, {
160
+ include: "escapes"
161
+ }, {
162
+ token: "constant.language.escape",
163
+ regex: /\\$/,
164
+ consumeLineEnd: true
165
+ }, {
166
+ defaultToken: "string"
167
+ }]
168
+ }],
180
169
  escapes: [{
181
- token : "constant.language.escape",
182
- regex : /\\([a-fA-F\d]{1,6}|[^a-fA-F\d])/
183
- }]
184
-
170
+ token: "constant.language.escape",
171
+ regex: /\\([a-fA-F\d]{1,6}|[^a-fA-F\d])/
172
+ }]
185
173
  };
186
-
187
174
  this.normalizeRules();
188
175
  };
189
-
190
176
  oop.inherits(CssHighlightRules, TextHighlightRules);
191
-
192
177
  exports.CssHighlightRules = CssHighlightRules;
193
178
 
194
179
  });
195
180
 
196
- ace.define("ace/mode/scss_highlight_rules",[], function(require, exports, module) {
197
- "use strict";
198
-
181
+ ace.define("ace/mode/scss_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text_highlight_rules","ace/mode/css_highlight_rules"], function(require, exports, module){"use strict";
199
182
  var oop = require("../lib/oop");
200
183
  var lang = require("../lib/lang");
201
184
  var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
202
185
  var CssHighlightRules = require("./css_highlight_rules");
203
-
204
- var ScssHighlightRules = function() {
205
-
186
+ var ScssHighlightRules = function () {
206
187
  var properties = lang.arrayToMap(CssHighlightRules.supportType.split("|"));
207
-
208
- var functions = lang.arrayToMap(
209
- ("hsl|hsla|rgb|rgba|url|attr|counter|counters|abs|adjust_color|adjust_hue|" +
210
- "alpha|join|blue|ceil|change_color|comparable|complement|darken|desaturate|" +
211
- "floor|grayscale|green|hue|if|invert|join|length|lighten|lightness|mix|" +
212
- "nth|opacify|opacity|percentage|quote|red|round|saturate|saturation|" +
213
- "scale_color|transparentize|type_of|unit|unitless|unquote").split("|")
214
- );
215
-
188
+ var functions = lang.arrayToMap(("hsl|hsla|rgb|rgba|url|attr|counter|counters|abs|adjust_color|adjust_hue|" +
189
+ "alpha|join|blue|ceil|change_color|comparable|complement|darken|desaturate|" +
190
+ "floor|grayscale|green|hue|if|invert|join|length|lighten|lightness|mix|" +
191
+ "nth|opacify|opacity|percentage|quote|red|round|saturate|saturation|" +
192
+ "scale_color|transparentize|type_of|unit|unitless|unquote").split("|"));
216
193
  var constants = lang.arrayToMap(CssHighlightRules.supportConstant.split("|"));
217
-
218
194
  var colors = lang.arrayToMap(CssHighlightRules.supportConstantColor.split("|"));
219
-
220
- var keywords = lang.arrayToMap(
221
- ("@mixin|@extend|@include|@import|@media|@debug|@warn|@if|@for|@each|@while|@else|@font-face|@-webkit-keyframes|if|and|!default|module|def|end|declare").split("|")
222
- );
223
-
224
- var tags = lang.arrayToMap(
225
- ("a|abbr|acronym|address|applet|area|article|aside|audio|b|base|basefont|bdo|" +
226
- "big|blockquote|body|br|button|canvas|caption|center|cite|code|col|colgroup|" +
227
- "command|datalist|dd|del|details|dfn|dir|div|dl|dt|em|embed|fieldset|" +
228
- "figcaption|figure|font|footer|form|frame|frameset|h1|h2|h3|h4|h5|h6|head|" +
229
- "header|hgroup|hr|html|i|iframe|img|input|ins|keygen|kbd|label|legend|li|" +
230
- "link|map|mark|menu|meta|meter|nav|noframes|noscript|object|ol|optgroup|" +
231
- "option|output|p|param|pre|progress|q|rp|rt|ruby|s|samp|script|section|select|" +
232
- "small|source|span|strike|strong|style|sub|summary|sup|table|tbody|td|" +
233
- "textarea|tfoot|th|thead|time|title|tr|tt|u|ul|var|video|wbr|xmp").split("|")
234
- );
235
-
195
+ var keywords = lang.arrayToMap(("@mixin|@extend|@include|@import|@media|@debug|@warn|@if|@for|@each|@while|@else|@font-face|@-webkit-keyframes|if|and|!default|module|def|end|declare").split("|"));
196
+ var tags = lang.arrayToMap(("a|abbr|acronym|address|applet|area|article|aside|audio|b|base|basefont|bdo|" +
197
+ "big|blockquote|body|br|button|canvas|caption|center|cite|code|col|colgroup|" +
198
+ "command|datalist|dd|del|details|dfn|dir|div|dl|dt|em|embed|fieldset|" +
199
+ "figcaption|figure|font|footer|form|frame|frameset|h1|h2|h3|h4|h5|h6|head|" +
200
+ "header|hgroup|hr|html|i|iframe|img|input|ins|keygen|kbd|label|legend|li|" +
201
+ "link|map|mark|menu|meta|meter|nav|noframes|noscript|object|ol|optgroup|" +
202
+ "option|output|p|param|pre|progress|q|rp|rt|ruby|s|samp|script|section|select|" +
203
+ "small|source|span|strike|strong|style|sub|summary|sup|table|tbody|td|" +
204
+ "textarea|tfoot|th|thead|time|title|tr|tt|u|ul|var|video|wbr|xmp").split("|"));
236
205
  var numRe = "\\-?(?:(?:[0-9]+)|(?:[0-9]*\\.[0-9]+))";
237
-
238
206
  this.$rules = {
239
- "start" : [
207
+ "start": [
240
208
  {
241
- token : "comment",
242
- regex : "\\/\\/.*$"
209
+ token: "comment",
210
+ regex: "\\/\\/.*$"
243
211
  },
244
212
  {
245
- token : "comment", // multi line comment
246
- regex : "\\/\\*",
247
- next : "comment"
213
+ token: "comment",
214
+ regex: "\\/\\*",
215
+ next: "comment"
248
216
  }, {
249
- token : "string", // single line
250
- regex : '["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]'
217
+ token: "string",
218
+ regex: '["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]'
251
219
  }, {
252
- token : "string", // multi line string start
253
- regex : '["].*\\\\$',
254
- next : "qqstring"
220
+ token: "string",
221
+ regex: '["].*\\\\$',
222
+ next: "qqstring"
255
223
  }, {
256
- token : "string", // single line
257
- regex : "['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"
224
+ token: "string",
225
+ regex: "['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"
258
226
  }, {
259
- token : "string", // multi line string start
260
- regex : "['].*\\\\$",
261
- next : "qstring"
227
+ token: "string",
228
+ regex: "['].*\\\\$",
229
+ next: "qstring"
262
230
  }, {
263
- token : "constant.numeric",
264
- 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|%)"
231
+ token: "constant.numeric",
232
+ 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|%)"
265
233
  }, {
266
- token : "constant.numeric", // hex6 color
267
- regex : "#[a-f0-9]{6}"
234
+ token: "constant.numeric",
235
+ regex: "#[a-f0-9]{6}"
268
236
  }, {
269
- token : "constant.numeric", // hex3 color
270
- regex : "#[a-f0-9]{3}"
237
+ token: "constant.numeric",
238
+ regex: "#[a-f0-9]{3}"
271
239
  }, {
272
- token : "constant.numeric",
273
- regex : numRe
240
+ token: "constant.numeric",
241
+ regex: numRe
274
242
  }, {
275
- token : ["support.function", "string", "support.function"],
276
- regex : "(url\\()(.*)(\\))"
243
+ token: ["support.function", "string", "support.function"],
244
+ regex: "(url\\()(.*)(\\))"
277
245
  }, {
278
- token : function(value) {
246
+ token: function (value) {
279
247
  if (properties.hasOwnProperty(value.toLowerCase()))
280
248
  return "support.type";
281
249
  if (keywords.hasOwnProperty(value))
@@ -291,10 +259,10 @@ var ScssHighlightRules = function() {
291
259
  else
292
260
  return "text";
293
261
  },
294
- regex : "\\-?[@a-z_][@a-z0-9_\\-]*"
262
+ regex: "\\-?[@a-z_][@a-z0-9_\\-]*"
295
263
  }, {
296
- token : "variable",
297
- regex : "[a-z_\\-$][a-z0-9_\\-$]*\\b"
264
+ token: "variable",
265
+ regex: "[a-z_\\-$][a-z0-9_\\-$]*\\b"
298
266
  }, {
299
267
  token: "variable.language",
300
268
  regex: "#[a-z0-9-_]+"
@@ -308,111 +276,93 @@ var ScssHighlightRules = function() {
308
276
  token: "constant",
309
277
  regex: "[a-z0-9-_]+"
310
278
  }, {
311
- token : "keyword.operator",
312
- regex : "<|>|<=|>=|==|!=|-|%|#|\\+|\\$|\\+|\\*"
279
+ token: "keyword.operator",
280
+ regex: "<|>|<=|>=|==|!=|-|%|#|\\+|\\$|\\+|\\*"
313
281
  }, {
314
- token : "paren.lparen",
315
- regex : "[[({]"
282
+ token: "paren.lparen",
283
+ regex: "[[({]"
316
284
  }, {
317
- token : "paren.rparen",
318
- regex : "[\\])}]"
285
+ token: "paren.rparen",
286
+ regex: "[\\])}]"
319
287
  }, {
320
- token : "text",
321
- regex : "\\s+"
288
+ token: "text",
289
+ regex: "\\s+"
322
290
  }, {
323
291
  caseInsensitive: true
324
292
  }
325
293
  ],
326
- "comment" : [
294
+ "comment": [
327
295
  {
328
- token : "comment", // closing comment
329
- regex : "\\*\\/",
330
- next : "start"
296
+ token: "comment",
297
+ regex: "\\*\\/",
298
+ next: "start"
331
299
  }, {
332
- defaultToken : "comment"
300
+ defaultToken: "comment"
333
301
  }
334
302
  ],
335
- "qqstring" : [
303
+ "qqstring": [
336
304
  {
337
- token : "string",
338
- regex : '(?:(?:\\\\.)|(?:[^"\\\\]))*?"',
339
- next : "start"
305
+ token: "string",
306
+ regex: '(?:(?:\\\\.)|(?:[^"\\\\]))*?"',
307
+ next: "start"
340
308
  }, {
341
- token : "string",
342
- regex : '.+'
309
+ token: "string",
310
+ regex: '.+'
343
311
  }
344
312
  ],
345
- "qstring" : [
313
+ "qstring": [
346
314
  {
347
- token : "string",
348
- regex : "(?:(?:\\\\.)|(?:[^'\\\\]))*?'",
349
- next : "start"
315
+ token: "string",
316
+ regex: "(?:(?:\\\\.)|(?:[^'\\\\]))*?'",
317
+ next: "start"
350
318
  }, {
351
- token : "string",
352
- regex : '.+'
319
+ token: "string",
320
+ regex: '.+'
353
321
  }
354
322
  ]
355
323
  };
356
324
  };
357
-
358
325
  oop.inherits(ScssHighlightRules, TextHighlightRules);
359
-
360
326
  exports.ScssHighlightRules = ScssHighlightRules;
361
327
 
362
328
  });
363
329
 
364
- ace.define("ace/mode/matching_brace_outdent",[], function(require, exports, module) {
365
- "use strict";
366
-
330
+ ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"], function(require, exports, module){"use strict";
367
331
  var Range = require("../range").Range;
368
-
369
- var MatchingBraceOutdent = function() {};
370
-
371
- (function() {
372
-
373
- this.checkOutdent = function(line, input) {
374
- if (! /^\s+$/.test(line))
332
+ var MatchingBraceOutdent = function () { };
333
+ (function () {
334
+ this.checkOutdent = function (line, input) {
335
+ if (!/^\s+$/.test(line))
375
336
  return false;
376
-
377
337
  return /^\s*\}/.test(input);
378
338
  };
379
-
380
- this.autoOutdent = function(doc, row) {
339
+ this.autoOutdent = function (doc, row) {
381
340
  var line = doc.getLine(row);
382
341
  var match = line.match(/^(\s*\})/);
383
-
384
- if (!match) return 0;
385
-
342
+ if (!match)
343
+ return 0;
386
344
  var column = match[1].length;
387
- var openBracePos = doc.findMatchingBracket({row: row, column: column});
388
-
389
- if (!openBracePos || openBracePos.row == row) return 0;
390
-
345
+ var openBracePos = doc.findMatchingBracket({ row: row, column: column });
346
+ if (!openBracePos || openBracePos.row == row)
347
+ return 0;
391
348
  var indent = this.$getIndent(doc.getLine(openBracePos.row));
392
- doc.replace(new Range(row, 0, row, column-1), indent);
349
+ doc.replace(new Range(row, 0, row, column - 1), indent);
393
350
  };
394
-
395
- this.$getIndent = function(line) {
351
+ this.$getIndent = function (line) {
396
352
  return line.match(/^\s*/)[0];
397
353
  };
398
-
399
354
  }).call(MatchingBraceOutdent.prototype);
400
-
401
355
  exports.MatchingBraceOutdent = MatchingBraceOutdent;
402
- });
403
356
 
404
- ace.define("ace/mode/behaviour/css",[], function(require, exports, module) {
405
- "use strict";
357
+ });
406
358
 
359
+ ace.define("ace/mode/behaviour/css",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/mode/behaviour/cstyle","ace/token_iterator"], function(require, exports, module){"use strict";
407
360
  var oop = require("../../lib/oop");
408
361
  var Behaviour = require("../behaviour").Behaviour;
409
362
  var CstyleBehaviour = require("./cstyle").CstyleBehaviour;
410
363
  var TokenIterator = require("../../token_iterator").TokenIterator;
411
-
412
364
  var CssBehaviour = function () {
413
-
414
365
  this.inherit(CstyleBehaviour);
415
-
416
366
  this.add("colon", "insertion", function (state, action, editor, session, text) {
417
367
  if (text === ':' && editor.selection.isEmpty()) {
418
368
  var cursor = editor.getCursorPosition();
@@ -426,20 +376,19 @@ var CssBehaviour = function () {
426
376
  var rightChar = line.substring(cursor.column, cursor.column + 1);
427
377
  if (rightChar === ':') {
428
378
  return {
429
- text: '',
430
- selection: [1, 1]
379
+ text: '',
380
+ selection: [1, 1]
431
381
  };
432
382
  }
433
383
  if (/^(\s+[^;]|\s*$)/.test(line.substring(cursor.column))) {
434
384
  return {
435
- text: ':;',
436
- selection: [1, 1]
385
+ text: ':;',
386
+ selection: [1, 1]
437
387
  };
438
388
  }
439
389
  }
440
390
  }
441
391
  });
442
-
443
392
  this.add("colon", "deletion", function (state, action, editor, session, range) {
444
393
  var selected = session.doc.getTextRange(range);
445
394
  if (!range.isMultiLine() && selected === ':') {
@@ -453,13 +402,12 @@ var CssBehaviour = function () {
453
402
  var line = session.doc.getLine(range.start.row);
454
403
  var rightChar = line.substring(range.end.column, range.end.column + 1);
455
404
  if (rightChar === ';') {
456
- range.end.column ++;
405
+ range.end.column++;
457
406
  return range;
458
407
  }
459
408
  }
460
409
  }
461
410
  });
462
-
463
411
  this.add("semicolon", "insertion", function (state, action, editor, session, text) {
464
412
  if (text === ';' && editor.selection.isEmpty()) {
465
413
  var cursor = editor.getCursorPosition();
@@ -467,18 +415,16 @@ var CssBehaviour = function () {
467
415
  var rightChar = line.substring(cursor.column, cursor.column + 1);
468
416
  if (rightChar === ';') {
469
417
  return {
470
- text: '',
471
- selection: [1, 1]
418
+ text: '',
419
+ selection: [1, 1]
472
420
  };
473
421
  }
474
422
  }
475
423
  });
476
-
477
424
  this.add("!important", "insertion", function (state, action, editor, session, text) {
478
425
  if (text === '!' && editor.selection.isEmpty()) {
479
426
  var cursor = editor.getCursorPosition();
480
427
  var line = session.doc.getLine(cursor.row);
481
-
482
428
  if (/^\s*(;|}|$)/.test(line.substring(cursor.column))) {
483
429
  return {
484
430
  text: '!important',
@@ -487,96 +433,71 @@ var CssBehaviour = function () {
487
433
  }
488
434
  }
489
435
  });
490
-
491
436
  };
492
437
  oop.inherits(CssBehaviour, CstyleBehaviour);
493
-
494
438
  exports.CssBehaviour = CssBehaviour;
495
- });
496
439
 
497
- ace.define("ace/mode/folding/cstyle",[], function(require, exports, module) {
498
- "use strict";
440
+ });
499
441
 
442
+ ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"], function(require, exports, module){"use strict";
500
443
  var oop = require("../../lib/oop");
501
444
  var Range = require("../../range").Range;
502
445
  var BaseFoldMode = require("./fold_mode").FoldMode;
503
-
504
- var FoldMode = exports.FoldMode = function(commentRegex) {
446
+ var FoldMode = exports.FoldMode = function (commentRegex) {
505
447
  if (commentRegex) {
506
- this.foldingStartMarker = new RegExp(
507
- this.foldingStartMarker.source.replace(/\|[^|]*?$/, "|" + commentRegex.start)
508
- );
509
- this.foldingStopMarker = new RegExp(
510
- this.foldingStopMarker.source.replace(/\|[^|]*?$/, "|" + commentRegex.end)
511
- );
448
+ this.foldingStartMarker = new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/, "|" + commentRegex.start));
449
+ this.foldingStopMarker = new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/, "|" + commentRegex.end));
512
450
  }
513
451
  };
514
452
  oop.inherits(FoldMode, BaseFoldMode);
515
-
516
- (function() {
517
-
453
+ (function () {
518
454
  this.foldingStartMarker = /([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/;
519
455
  this.foldingStopMarker = /^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/;
520
- this.singleLineBlockCommentRe= /^\s*(\/\*).*\*\/\s*$/;
456
+ this.singleLineBlockCommentRe = /^\s*(\/\*).*\*\/\s*$/;
521
457
  this.tripleStarBlockCommentRe = /^\s*(\/\*\*\*).*\*\/\s*$/;
522
458
  this.startRegionRe = /^\s*(\/\*|\/\/)#?region\b/;
523
459
  this._getFoldWidgetBase = this.getFoldWidget;
524
- this.getFoldWidget = function(session, foldStyle, row) {
460
+ this.getFoldWidget = function (session, foldStyle, row) {
525
461
  var line = session.getLine(row);
526
-
527
462
  if (this.singleLineBlockCommentRe.test(line)) {
528
463
  if (!this.startRegionRe.test(line) && !this.tripleStarBlockCommentRe.test(line))
529
464
  return "";
530
465
  }
531
-
532
466
  var fw = this._getFoldWidgetBase(session, foldStyle, row);
533
-
534
467
  if (!fw && this.startRegionRe.test(line))
535
468
  return "start"; // lineCommentRegionStart
536
-
537
469
  return fw;
538
470
  };
539
-
540
- this.getFoldWidgetRange = function(session, foldStyle, row, forceMultiline) {
471
+ this.getFoldWidgetRange = function (session, foldStyle, row, forceMultiline) {
541
472
  var line = session.getLine(row);
542
-
543
473
  if (this.startRegionRe.test(line))
544
474
  return this.getCommentRegionBlock(session, line, row);
545
-
546
475
  var match = line.match(this.foldingStartMarker);
547
476
  if (match) {
548
477
  var i = match.index;
549
-
550
478
  if (match[1])
551
479
  return this.openingBracketBlock(session, match[1], row, i);
552
-
553
480
  var range = session.getCommentFoldRange(row, i + match[0].length, 1);
554
-
555
481
  if (range && !range.isMultiLine()) {
556
482
  if (forceMultiline) {
557
483
  range = this.getSectionRange(session, row);
558
- } else if (foldStyle != "all")
484
+ }
485
+ else if (foldStyle != "all")
559
486
  range = null;
560
487
  }
561
-
562
488
  return range;
563
489
  }
564
-
565
490
  if (foldStyle === "markbegin")
566
491
  return;
567
-
568
492
  var match = line.match(this.foldingStopMarker);
569
493
  if (match) {
570
494
  var i = match.index + match[0].length;
571
-
572
495
  if (match[1])
573
496
  return this.closingBracketBlock(session, match[1], row, i);
574
-
575
497
  return session.getCommentFoldRange(row, i, -1);
576
498
  }
577
499
  };
578
-
579
- this.getSectionRange = function(session, row) {
500
+ this.getSectionRange = function (session, row) {
580
501
  var line = session.getLine(row);
581
502
  var startIndent = line.search(/\S/);
582
503
  var startRow = row;
@@ -589,120 +510,117 @@ oop.inherits(FoldMode, BaseFoldMode);
589
510
  var indent = line.search(/\S/);
590
511
  if (indent === -1)
591
512
  continue;
592
- if (startIndent > indent)
513
+ if (startIndent > indent)
593
514
  break;
594
515
  var subRange = this.getFoldWidgetRange(session, "all", row);
595
-
596
516
  if (subRange) {
597
517
  if (subRange.start.row <= startRow) {
598
518
  break;
599
- } else if (subRange.isMultiLine()) {
519
+ }
520
+ else if (subRange.isMultiLine()) {
600
521
  row = subRange.end.row;
601
- } else if (startIndent == indent) {
522
+ }
523
+ else if (startIndent == indent) {
602
524
  break;
603
525
  }
604
526
  }
605
527
  endRow = row;
606
528
  }
607
-
608
529
  return new Range(startRow, startColumn, endRow, session.getLine(endRow).length);
609
530
  };
610
- this.getCommentRegionBlock = function(session, line, row) {
531
+ this.getCommentRegionBlock = function (session, line, row) {
611
532
  var startColumn = line.search(/\s*$/);
612
533
  var maxRow = session.getLength();
613
534
  var startRow = row;
614
-
615
535
  var re = /^\s*(?:\/\*|\/\/|--)#?(end)?region\b/;
616
536
  var depth = 1;
617
537
  while (++row < maxRow) {
618
538
  line = session.getLine(row);
619
539
  var m = re.exec(line);
620
- if (!m) continue;
621
- if (m[1]) depth--;
622
- else depth++;
623
-
624
- if (!depth) break;
540
+ if (!m)
541
+ continue;
542
+ if (m[1])
543
+ depth--;
544
+ else
545
+ depth++;
546
+ if (!depth)
547
+ break;
625
548
  }
626
-
627
549
  var endRow = row;
628
550
  if (endRow > startRow) {
629
551
  return new Range(startRow, startColumn, endRow, line.length);
630
552
  }
631
553
  };
632
-
633
554
  }).call(FoldMode.prototype);
634
555
 
635
556
  });
636
557
 
637
- ace.define("ace/mode/css_completions",[], function(require, exports, module) {
638
- "use strict";
639
-
558
+ ace.define("ace/mode/css_completions",["require","exports","module"], function(require, exports, module){"use strict";
640
559
  var propertyMap = {
641
- "background": {"#$0": 1},
642
- "background-color": {"#$0": 1, "transparent": 1, "fixed": 1},
643
- "background-image": {"url('/$0')": 1},
644
- "background-repeat": {"repeat": 1, "repeat-x": 1, "repeat-y": 1, "no-repeat": 1, "inherit": 1},
645
- "background-position": {"bottom":2, "center":2, "left":2, "right":2, "top":2, "inherit":2},
646
- "background-attachment": {"scroll": 1, "fixed": 1},
647
- "background-size": {"cover": 1, "contain": 1},
648
- "background-clip": {"border-box": 1, "padding-box": 1, "content-box": 1},
649
- "background-origin": {"border-box": 1, "padding-box": 1, "content-box": 1},
650
- "border": {"solid $0": 1, "dashed $0": 1, "dotted $0": 1, "#$0": 1},
651
- "border-color": {"#$0": 1},
652
- "border-style": {"solid":2, "dashed":2, "dotted":2, "double":2, "groove":2, "hidden":2, "inherit":2, "inset":2, "none":2, "outset":2, "ridged":2},
653
- "border-collapse": {"collapse": 1, "separate": 1},
654
- "bottom": {"px": 1, "em": 1, "%": 1},
655
- "clear": {"left": 1, "right": 1, "both": 1, "none": 1},
656
- "color": {"#$0": 1, "rgb(#$00,0,0)": 1},
657
- "cursor": {"default": 1, "pointer": 1, "move": 1, "text": 1, "wait": 1, "help": 1, "progress": 1, "n-resize": 1, "ne-resize": 1, "e-resize": 1, "se-resize": 1, "s-resize": 1, "sw-resize": 1, "w-resize": 1, "nw-resize": 1},
658
- "display": {"none": 1, "block": 1, "inline": 1, "inline-block": 1, "table-cell": 1},
659
- "empty-cells": {"show": 1, "hide": 1},
660
- "float": {"left": 1, "right": 1, "none": 1},
661
- "font-family": {"Arial":2,"Comic Sans MS":2,"Consolas":2,"Courier New":2,"Courier":2,"Georgia":2,"Monospace":2,"Sans-Serif":2, "Segoe UI":2,"Tahoma":2,"Times New Roman":2,"Trebuchet MS":2,"Verdana": 1},
662
- "font-size": {"px": 1, "em": 1, "%": 1},
663
- "font-weight": {"bold": 1, "normal": 1},
664
- "font-style": {"italic": 1, "normal": 1},
665
- "font-variant": {"normal": 1, "small-caps": 1},
666
- "height": {"px": 1, "em": 1, "%": 1},
667
- "left": {"px": 1, "em": 1, "%": 1},
668
- "letter-spacing": {"normal": 1},
669
- "line-height": {"normal": 1},
670
- "list-style-type": {"none": 1, "disc": 1, "circle": 1, "square": 1, "decimal": 1, "decimal-leading-zero": 1, "lower-roman": 1, "upper-roman": 1, "lower-greek": 1, "lower-latin": 1, "upper-latin": 1, "georgian": 1, "lower-alpha": 1, "upper-alpha": 1},
671
- "margin": {"px": 1, "em": 1, "%": 1},
672
- "margin-right": {"px": 1, "em": 1, "%": 1},
673
- "margin-left": {"px": 1, "em": 1, "%": 1},
674
- "margin-top": {"px": 1, "em": 1, "%": 1},
675
- "margin-bottom": {"px": 1, "em": 1, "%": 1},
676
- "max-height": {"px": 1, "em": 1, "%": 1},
677
- "max-width": {"px": 1, "em": 1, "%": 1},
678
- "min-height": {"px": 1, "em": 1, "%": 1},
679
- "min-width": {"px": 1, "em": 1, "%": 1},
680
- "overflow": {"hidden": 1, "visible": 1, "auto": 1, "scroll": 1},
681
- "overflow-x": {"hidden": 1, "visible": 1, "auto": 1, "scroll": 1},
682
- "overflow-y": {"hidden": 1, "visible": 1, "auto": 1, "scroll": 1},
683
- "padding": {"px": 1, "em": 1, "%": 1},
684
- "padding-top": {"px": 1, "em": 1, "%": 1},
685
- "padding-right": {"px": 1, "em": 1, "%": 1},
686
- "padding-bottom": {"px": 1, "em": 1, "%": 1},
687
- "padding-left": {"px": 1, "em": 1, "%": 1},
688
- "page-break-after": {"auto": 1, "always": 1, "avoid": 1, "left": 1, "right": 1},
689
- "page-break-before": {"auto": 1, "always": 1, "avoid": 1, "left": 1, "right": 1},
690
- "position": {"absolute": 1, "relative": 1, "fixed": 1, "static": 1},
691
- "right": {"px": 1, "em": 1, "%": 1},
692
- "table-layout": {"fixed": 1, "auto": 1},
693
- "text-decoration": {"none": 1, "underline": 1, "line-through": 1, "blink": 1},
694
- "text-align": {"left": 1, "right": 1, "center": 1, "justify": 1},
695
- "text-transform": {"capitalize": 1, "uppercase": 1, "lowercase": 1, "none": 1},
696
- "top": {"px": 1, "em": 1, "%": 1},
697
- "vertical-align": {"top": 1, "bottom": 1},
698
- "visibility": {"hidden": 1, "visible": 1},
699
- "white-space": {"nowrap": 1, "normal": 1, "pre": 1, "pre-line": 1, "pre-wrap": 1},
700
- "width": {"px": 1, "em": 1, "%": 1},
701
- "word-spacing": {"normal": 1},
702
- "filter": {"alpha(opacity=$0100)": 1},
703
-
704
- "text-shadow": {"$02px 2px 2px #777": 1},
705
- "text-overflow": {"ellipsis-word": 1, "clip": 1, "ellipsis": 1},
560
+ "background": { "#$0": 1 },
561
+ "background-color": { "#$0": 1, "transparent": 1, "fixed": 1 },
562
+ "background-image": { "url('/$0')": 1 },
563
+ "background-repeat": { "repeat": 1, "repeat-x": 1, "repeat-y": 1, "no-repeat": 1, "inherit": 1 },
564
+ "background-position": { "bottom": 2, "center": 2, "left": 2, "right": 2, "top": 2, "inherit": 2 },
565
+ "background-attachment": { "scroll": 1, "fixed": 1 },
566
+ "background-size": { "cover": 1, "contain": 1 },
567
+ "background-clip": { "border-box": 1, "padding-box": 1, "content-box": 1 },
568
+ "background-origin": { "border-box": 1, "padding-box": 1, "content-box": 1 },
569
+ "border": { "solid $0": 1, "dashed $0": 1, "dotted $0": 1, "#$0": 1 },
570
+ "border-color": { "#$0": 1 },
571
+ "border-style": { "solid": 2, "dashed": 2, "dotted": 2, "double": 2, "groove": 2, "hidden": 2, "inherit": 2, "inset": 2, "none": 2, "outset": 2, "ridged": 2 },
572
+ "border-collapse": { "collapse": 1, "separate": 1 },
573
+ "bottom": { "px": 1, "em": 1, "%": 1 },
574
+ "clear": { "left": 1, "right": 1, "both": 1, "none": 1 },
575
+ "color": { "#$0": 1, "rgb(#$00,0,0)": 1 },
576
+ "cursor": { "default": 1, "pointer": 1, "move": 1, "text": 1, "wait": 1, "help": 1, "progress": 1, "n-resize": 1, "ne-resize": 1, "e-resize": 1, "se-resize": 1, "s-resize": 1, "sw-resize": 1, "w-resize": 1, "nw-resize": 1 },
577
+ "display": { "none": 1, "block": 1, "inline": 1, "inline-block": 1, "table-cell": 1 },
578
+ "empty-cells": { "show": 1, "hide": 1 },
579
+ "float": { "left": 1, "right": 1, "none": 1 },
580
+ "font-family": { "Arial": 2, "Comic Sans MS": 2, "Consolas": 2, "Courier New": 2, "Courier": 2, "Georgia": 2, "Monospace": 2, "Sans-Serif": 2, "Segoe UI": 2, "Tahoma": 2, "Times New Roman": 2, "Trebuchet MS": 2, "Verdana": 1 },
581
+ "font-size": { "px": 1, "em": 1, "%": 1 },
582
+ "font-weight": { "bold": 1, "normal": 1 },
583
+ "font-style": { "italic": 1, "normal": 1 },
584
+ "font-variant": { "normal": 1, "small-caps": 1 },
585
+ "height": { "px": 1, "em": 1, "%": 1 },
586
+ "left": { "px": 1, "em": 1, "%": 1 },
587
+ "letter-spacing": { "normal": 1 },
588
+ "line-height": { "normal": 1 },
589
+ "list-style-type": { "none": 1, "disc": 1, "circle": 1, "square": 1, "decimal": 1, "decimal-leading-zero": 1, "lower-roman": 1, "upper-roman": 1, "lower-greek": 1, "lower-latin": 1, "upper-latin": 1, "georgian": 1, "lower-alpha": 1, "upper-alpha": 1 },
590
+ "margin": { "px": 1, "em": 1, "%": 1 },
591
+ "margin-right": { "px": 1, "em": 1, "%": 1 },
592
+ "margin-left": { "px": 1, "em": 1, "%": 1 },
593
+ "margin-top": { "px": 1, "em": 1, "%": 1 },
594
+ "margin-bottom": { "px": 1, "em": 1, "%": 1 },
595
+ "max-height": { "px": 1, "em": 1, "%": 1 },
596
+ "max-width": { "px": 1, "em": 1, "%": 1 },
597
+ "min-height": { "px": 1, "em": 1, "%": 1 },
598
+ "min-width": { "px": 1, "em": 1, "%": 1 },
599
+ "overflow": { "hidden": 1, "visible": 1, "auto": 1, "scroll": 1 },
600
+ "overflow-x": { "hidden": 1, "visible": 1, "auto": 1, "scroll": 1 },
601
+ "overflow-y": { "hidden": 1, "visible": 1, "auto": 1, "scroll": 1 },
602
+ "padding": { "px": 1, "em": 1, "%": 1 },
603
+ "padding-top": { "px": 1, "em": 1, "%": 1 },
604
+ "padding-right": { "px": 1, "em": 1, "%": 1 },
605
+ "padding-bottom": { "px": 1, "em": 1, "%": 1 },
606
+ "padding-left": { "px": 1, "em": 1, "%": 1 },
607
+ "page-break-after": { "auto": 1, "always": 1, "avoid": 1, "left": 1, "right": 1 },
608
+ "page-break-before": { "auto": 1, "always": 1, "avoid": 1, "left": 1, "right": 1 },
609
+ "position": { "absolute": 1, "relative": 1, "fixed": 1, "static": 1 },
610
+ "right": { "px": 1, "em": 1, "%": 1 },
611
+ "table-layout": { "fixed": 1, "auto": 1 },
612
+ "text-decoration": { "none": 1, "underline": 1, "line-through": 1, "blink": 1 },
613
+ "text-align": { "left": 1, "right": 1, "center": 1, "justify": 1 },
614
+ "text-transform": { "capitalize": 1, "uppercase": 1, "lowercase": 1, "none": 1 },
615
+ "top": { "px": 1, "em": 1, "%": 1 },
616
+ "vertical-align": { "top": 1, "bottom": 1 },
617
+ "visibility": { "hidden": 1, "visible": 1 },
618
+ "white-space": { "nowrap": 1, "normal": 1, "pre": 1, "pre-line": 1, "pre-wrap": 1 },
619
+ "width": { "px": 1, "em": 1, "%": 1 },
620
+ "word-spacing": { "normal": 1 },
621
+ "filter": { "alpha(opacity=$0100)": 1 },
622
+ "text-shadow": { "$02px 2px 2px #777": 1 },
623
+ "text-overflow": { "ellipsis-word": 1, "clip": 1, "ellipsis": 1 },
706
624
  "-moz-border-radius": 1,
707
625
  "-moz-border-radius-topright": 1,
708
626
  "-moz-border-radius-bottomright": 1,
@@ -715,81 +633,71 @@ var propertyMap = {
715
633
  "-webkit-border-bottom-left-radius": 1,
716
634
  "-moz-box-shadow": 1,
717
635
  "-webkit-box-shadow": 1,
718
- "transform": {"rotate($00deg)": 1, "skew($00deg)": 1},
719
- "-moz-transform": {"rotate($00deg)": 1, "skew($00deg)": 1},
720
- "-webkit-transform": {"rotate($00deg)": 1, "skew($00deg)": 1 }
636
+ "transform": { "rotate($00deg)": 1, "skew($00deg)": 1 },
637
+ "-moz-transform": { "rotate($00deg)": 1, "skew($00deg)": 1 },
638
+ "-webkit-transform": { "rotate($00deg)": 1, "skew($00deg)": 1 }
721
639
  };
722
-
723
- var CssCompletions = function() {
724
-
640
+ var CssCompletions = function () {
725
641
  };
726
-
727
- (function() {
728
-
642
+ (function () {
729
643
  this.completionsDefined = false;
730
-
731
- this.defineCompletions = function() {
644
+ this.defineCompletions = function () {
732
645
  if (document) {
733
646
  var style = document.createElement('c').style;
734
-
735
647
  for (var i in style) {
736
648
  if (typeof style[i] !== 'string')
737
649
  continue;
738
-
739
- var name = i.replace(/[A-Z]/g, function(x) {
650
+ var name = i.replace(/[A-Z]/g, function (x) {
740
651
  return '-' + x.toLowerCase();
741
652
  });
742
-
743
653
  if (!propertyMap.hasOwnProperty(name))
744
654
  propertyMap[name] = 1;
745
655
  }
746
656
  }
747
-
748
657
  this.completionsDefined = true;
749
658
  };
750
-
751
- this.getCompletions = function(state, session, pos, prefix) {
659
+ this.getCompletions = function (state, session, pos, prefix) {
752
660
  if (!this.completionsDefined) {
753
661
  this.defineCompletions();
754
662
  }
755
-
756
- if (state==='ruleset' || session.$mode.$id == "ace/mode/scss") {
663
+ if (state === 'ruleset' || session.$mode.$id == "ace/mode/scss") {
757
664
  var line = session.getLine(pos.row).substr(0, pos.column);
665
+ var inParens = /\([^)]*$/.test(line);
666
+ if (inParens) {
667
+ line = line.substr(line.lastIndexOf('(') + 1);
668
+ }
758
669
  if (/:[^;]+$/.test(line)) {
759
670
  /([\w\-]+):[^:]*$/.test(line);
760
-
761
671
  return this.getPropertyValueCompletions(state, session, pos, prefix);
762
- } else {
763
- return this.getPropertyCompletions(state, session, pos, prefix);
672
+ }
673
+ else {
674
+ return this.getPropertyCompletions(state, session, pos, prefix, inParens);
764
675
  }
765
676
  }
766
-
767
677
  return [];
768
678
  };
769
-
770
- this.getPropertyCompletions = function(state, session, pos, prefix) {
679
+ this.getPropertyCompletions = function (state, session, pos, prefix, skipSemicolon) {
680
+ skipSemicolon = skipSemicolon || false;
771
681
  var properties = Object.keys(propertyMap);
772
- return properties.map(function(property){
682
+ return properties.map(function (property) {
773
683
  return {
774
684
  caption: property,
775
- snippet: property + ': $0;',
685
+ snippet: property + ': $0' + (skipSemicolon ? '' : ';'),
776
686
  meta: "property",
777
687
  score: 1000000
778
688
  };
779
689
  });
780
690
  };
781
-
782
- this.getPropertyValueCompletions = function(state, session, pos, prefix) {
691
+ this.getPropertyValueCompletions = function (state, session, pos, prefix) {
783
692
  var line = session.getLine(pos.row).substr(0, pos.column);
784
693
  var property = (/([\w\-]+):[^:]*$/.exec(line) || {})[1];
785
-
786
694
  if (!property)
787
695
  return [];
788
696
  var values = [];
789
697
  if (property in propertyMap && typeof propertyMap[property] === "object") {
790
698
  values = Object.keys(propertyMap[property]);
791
699
  }
792
- return values.map(function(value){
700
+ return values.map(function (value) {
793
701
  return {
794
702
  caption: value,
795
703
  snippet: value,
@@ -798,15 +706,12 @@ var CssCompletions = function() {
798
706
  };
799
707
  });
800
708
  };
801
-
802
709
  }).call(CssCompletions.prototype);
803
-
804
710
  exports.CssCompletions = CssCompletions;
805
- });
806
711
 
807
- ace.define("ace/mode/scss",[], function(require, exports, module) {
808
- "use strict";
712
+ });
809
713
 
714
+ ace.define("ace/mode/scss",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/scss_highlight_rules","ace/mode/matching_brace_outdent","ace/mode/behaviour/css","ace/mode/folding/cstyle","ace/mode/css_completions"], function(require, exports, module){"use strict";
810
715
  var oop = require("../lib/oop");
811
716
  var TextMode = require("./text").Mode;
812
717
  var ScssHighlightRules = require("./scss_highlight_rules").ScssHighlightRules;
@@ -814,9 +719,7 @@ var MatchingBraceOutdent = require("./matching_brace_outdent").MatchingBraceOutd
814
719
  var CssBehaviour = require("./behaviour/css").CssBehaviour;
815
720
  var CStyleFoldMode = require("./folding/cstyle").FoldMode;
816
721
  var CssCompletions = require("./css_completions").CssCompletions;
817
-
818
-
819
- var Mode = function() {
722
+ var Mode = function () {
820
723
  this.HighlightRules = ScssHighlightRules;
821
724
  this.$outdent = new MatchingBraceOutdent();
822
725
  this.$behaviour = new CssBehaviour();
@@ -824,43 +727,32 @@ var Mode = function() {
824
727
  this.foldingRules = new CStyleFoldMode();
825
728
  };
826
729
  oop.inherits(Mode, TextMode);
827
-
828
- (function() {
829
-
730
+ (function () {
830
731
  this.lineCommentStart = "//";
831
- this.blockComment = {start: "/*", end: "*/"};
832
-
833
- this.getNextLineIndent = function(state, line, tab) {
732
+ this.blockComment = { start: "/*", end: "*/" };
733
+ this.getNextLineIndent = function (state, line, tab) {
834
734
  var indent = this.$getIndent(line);
835
735
  var tokens = this.getTokenizer().getLineTokens(line, state).tokens;
836
- if (tokens.length && tokens[tokens.length-1].type == "comment") {
736
+ if (tokens.length && tokens[tokens.length - 1].type == "comment") {
837
737
  return indent;
838
738
  }
839
-
840
739
  var match = line.match(/^.*\{\s*$/);
841
740
  if (match) {
842
741
  indent += tab;
843
742
  }
844
-
845
743
  return indent;
846
744
  };
847
-
848
- this.checkOutdent = function(state, line, input) {
745
+ this.checkOutdent = function (state, line, input) {
849
746
  return this.$outdent.checkOutdent(line, input);
850
747
  };
851
-
852
- this.autoOutdent = function(state, doc, row) {
748
+ this.autoOutdent = function (state, doc, row) {
853
749
  this.$outdent.autoOutdent(doc, row);
854
750
  };
855
-
856
- this.getCompletions = function(state, session, pos, prefix) {
751
+ this.getCompletions = function (state, session, pos, prefix) {
857
752
  return this.$completer.getCompletions(state, session, pos, prefix);
858
753
  };
859
-
860
-
861
754
  this.$id = "ace/mode/scss";
862
755
  }).call(Mode.prototype);
863
-
864
756
  exports.Mode = Mode;
865
757
 
866
758
  }); (function() {