jquery-ace-rails 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +36 -0
- data/lib/jquery-ace-rails.rb +5 -0
- data/lib/jquery-ace-rails/engine.rb +4 -0
- data/lib/jquery-ace-rails/version.rb +3 -0
- data/vendor/assets/javascripts/jquery-ace/jquery-ace.coffee +126 -0
- data/vendor/assets/javascripts/jquery-ace/jquery-ace.js +195 -0
- data/vendor/assets/javascripts/jquery-ace/jquery-ace.min.js +1 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/ace.js +11 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/ext-static_highlight.js +1 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/ext-textarea.js +1 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/keybinding-emacs.js +1 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/keybinding-vim.js +1 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/mode-abap.js +1 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/mode-asciidoc.js +1 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/mode-c9search.js +1 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/mode-c_cpp.js +1 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/mode-clojure.js +1 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/mode-coffee.js +1 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/mode-coldfusion.js +1 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/mode-csharp.js +1 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/mode-css.js +1 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/mode-dart.js +1 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/mode-diff.js +1 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/mode-dot.js +1 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/mode-glsl.js +1 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/mode-golang.js +1 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/mode-groovy.js +1 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/mode-haml.js +1 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/mode-haxe.js +1 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/mode-html.js +1 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/mode-jade.js +1 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/mode-java.js +1 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/mode-javascript.js +1 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/mode-json.js +1 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/mode-jsp.js +1 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/mode-jsx.js +1 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/mode-latex.js +1 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/mode-less.js +1 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/mode-liquid.js +1 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/mode-lisp.js +1 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/mode-lua.js +1 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/mode-luapage.js +1 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/mode-lucene.js +1 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/mode-makefile.js +1 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/mode-markdown.js +1 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/mode-objectivec.js +1 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/mode-ocaml.js +1 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/mode-perl.js +1 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/mode-pgsql.js +1 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/mode-php.js +1 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/mode-powershell.js +1 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/mode-python.js +1 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/mode-r.js +1 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/mode-rdoc.js +1 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/mode-rhtml.js +1 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/mode-ruby.js +1 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/mode-scad.js +1 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/mode-scala.js +1 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/mode-scss.js +1 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/mode-sh.js +1 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/mode-sql.js +1 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/mode-stylus.js +1 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/mode-svg.js +1 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/mode-tcl.js +1 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/mode-tex.js +1 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/mode-text.js +0 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/mode-textile.js +1 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/mode-typescript.js +1 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/mode-xml.js +1 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/mode-xquery.js +1 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/mode-yaml.js +1 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/theme-ambiance.js +1 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/theme-chaos.js +1 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/theme-chrome.js +1 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/theme-clouds.js +1 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/theme-clouds_midnight.js +1 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/theme-cobalt.js +1 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/theme-crimson_editor.js +1 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/theme-dawn.js +1 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/theme-dreamweaver.js +1 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/theme-eclipse.js +1 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/theme-github.js +1 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/theme-idle_fingers.js +1 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/theme-kr.js +1 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/theme-merbivore.js +1 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/theme-merbivore_soft.js +1 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/theme-mono_industrial.js +1 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/theme-monokai.js +1 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/theme-pastel_on_dark.js +1 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/theme-solarized_dark.js +1 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/theme-solarized_light.js +1 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/theme-textmate.js +1 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/theme-tomorrow.js +1 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/theme-tomorrow_night.js +1 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/theme-tomorrow_night_blue.js +1 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/theme-tomorrow_night_bright.js +1 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/theme-tomorrow_night_eighties.js +1 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/theme-twilight.js +1 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/theme-vibrant_ink.js +1 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/theme-xcode.js +1 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/worker-coffee.js +1 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/worker-css.js +1 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/worker-javascript.js +1 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/worker-json.js +1 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/worker-xquery.js +1 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/ace.js +14262 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/ext-static_highlight.js +96 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/ext-textarea.js +591 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/keybinding-emacs.js +364 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/keybinding-vim.js +1646 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-abap.js +259 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-asciidoc.js +372 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-c9search.js +187 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-c_cpp.js +765 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-clojure.js +325 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-coffee.js +520 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-coldfusion.js +1725 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-csharp.js +605 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-css.js +680 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-dart.js +279 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-diff.js +163 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-dot.js +348 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-glsl.js +838 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-golang.js +660 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-groovy.js +1082 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-haml.js +440 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-haxe.js +610 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-html.js +1850 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-jade.js +2035 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-java.js +1041 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-javascript.js +921 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-json.js +574 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-jsp.js +1371 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-jsx.js +635 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-latex.js +217 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-less.js +394 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-liquid.js +921 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-lisp.js +142 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-lua.js +609 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-luapage.js +2463 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-lucene.js +64 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-makefile.js +314 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-markdown.js +2228 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-objectivec.js +655 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-ocaml.js +448 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-perl.js +319 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-pgsql.js +928 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-php.js +2299 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-powershell.js +611 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-python.js +290 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-r.js +410 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-rdoc.js +189 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-rhtml.js +2138 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-ruby.js +410 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-scad.js +698 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-scala.js +1070 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-scss.js +416 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-sh.js +232 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-sql.js +145 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-stylus.js +474 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-svg.js +1490 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-tcl.js +342 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-tex.js +171 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-text.js +0 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-textile.js +175 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-typescript.js +1011 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-xml.js +792 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-xquery.js +676 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-yaml.js +298 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/theme-ambiance.js +202 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/theme-chaos.js +167 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/theme-chrome.js +161 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/theme-clouds.js +135 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/theme-clouds_midnight.js +136 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/theme-cobalt.js +150 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/theme-crimson_editor.js +154 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/theme-dawn.js +146 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/theme-dreamweaver.js +173 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/theme-eclipse.js +122 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/theme-github.js +136 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/theme-idle_fingers.js +136 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/theme-kr.js +143 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/theme-merbivore.js +135 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/theme-merbivore_soft.js +136 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/theme-mono_industrial.js +148 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/theme-monokai.js +140 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/theme-pastel_on_dark.js +148 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/theme-solarized_dark.js +128 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/theme-solarized_light.js +131 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/theme-textmate.js +163 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/theme-tomorrow.js +147 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/theme-tomorrow_night.js +147 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/theme-tomorrow_night_blue.js +145 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/theme-tomorrow_night_bright.js +147 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/theme-tomorrow_night_eighties.js +144 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/theme-twilight.js +147 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/theme-vibrant_ink.js +131 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/theme-xcode.js +125 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/worker-coffee.js +6985 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/worker-css.js +7741 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/worker-javascript.js +6387 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/worker-json.js +2228 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/worker-xquery.js +21719 -0
- data/vendor/assets/javascripts/jquery-ace/vendor/jquery-1.8.3.min.js +2 -0
- metadata +249 -0
@@ -0,0 +1,145 @@
|
|
1
|
+
/* ***** BEGIN LICENSE BLOCK *****
|
2
|
+
* Distributed under the BSD license:
|
3
|
+
*
|
4
|
+
* Copyright (c) 2010, Ajax.org B.V.
|
5
|
+
* All rights reserved.
|
6
|
+
*
|
7
|
+
* Redistribution and use in source and binary forms, with or without
|
8
|
+
* modification, are permitted provided that the following conditions are met:
|
9
|
+
* * Redistributions of source code must retain the above copyright
|
10
|
+
* notice, this list of conditions and the following disclaimer.
|
11
|
+
* * Redistributions in binary form must reproduce the above copyright
|
12
|
+
* notice, this list of conditions and the following disclaimer in the
|
13
|
+
* documentation and/or other materials provided with the distribution.
|
14
|
+
* * Neither the name of Ajax.org B.V. nor the
|
15
|
+
* names of its contributors may be used to endorse or promote products
|
16
|
+
* derived from this software without specific prior written permission.
|
17
|
+
*
|
18
|
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
19
|
+
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
20
|
+
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
21
|
+
* DISCLAIMED. IN NO EVENT SHALL AJAX.ORG B.V. BE LIABLE FOR ANY
|
22
|
+
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
23
|
+
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
24
|
+
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
25
|
+
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
26
|
+
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
27
|
+
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
28
|
+
*
|
29
|
+
* ***** END LICENSE BLOCK ***** */
|
30
|
+
|
31
|
+
define('ace/mode/sql', ['require', 'exports', 'module' , 'ace/lib/oop', 'ace/mode/text', 'ace/tokenizer', 'ace/mode/sql_highlight_rules', 'ace/range'], function(require, exports, module) {
|
32
|
+
|
33
|
+
|
34
|
+
var oop = require("../lib/oop");
|
35
|
+
var TextMode = require("./text").Mode;
|
36
|
+
var Tokenizer = require("../tokenizer").Tokenizer;
|
37
|
+
var SqlHighlightRules = require("./sql_highlight_rules").SqlHighlightRules;
|
38
|
+
var Range = require("../range").Range;
|
39
|
+
|
40
|
+
var Mode = function() {
|
41
|
+
this.$tokenizer = new Tokenizer(new SqlHighlightRules().getRules());
|
42
|
+
};
|
43
|
+
oop.inherits(Mode, TextMode);
|
44
|
+
|
45
|
+
(function() {
|
46
|
+
|
47
|
+
this.toggleCommentLines = function(state, doc, startRow, endRow) {
|
48
|
+
var outdent = true;
|
49
|
+
var outentedRows = [];
|
50
|
+
var re = /^(\s*)--/;
|
51
|
+
|
52
|
+
for (var i=startRow; i<= endRow; i++) {
|
53
|
+
if (!re.test(doc.getLine(i))) {
|
54
|
+
outdent = false;
|
55
|
+
break;
|
56
|
+
}
|
57
|
+
}
|
58
|
+
|
59
|
+
if (outdent) {
|
60
|
+
var deleteRange = new Range(0, 0, 0, 0);
|
61
|
+
for (var i=startRow; i<= endRow; i++)
|
62
|
+
{
|
63
|
+
var line = doc.getLine(i);
|
64
|
+
var m = line.match(re);
|
65
|
+
deleteRange.start.row = i;
|
66
|
+
deleteRange.end.row = i;
|
67
|
+
deleteRange.end.column = m[0].length;
|
68
|
+
doc.replace(deleteRange, m[1]);
|
69
|
+
}
|
70
|
+
}
|
71
|
+
else {
|
72
|
+
doc.indentRows(startRow, endRow, "--");
|
73
|
+
}
|
74
|
+
};
|
75
|
+
|
76
|
+
}).call(Mode.prototype);
|
77
|
+
|
78
|
+
exports.Mode = Mode;
|
79
|
+
|
80
|
+
});
|
81
|
+
|
82
|
+
define('ace/mode/sql_highlight_rules', ['require', 'exports', 'module' , 'ace/lib/oop', 'ace/mode/text_highlight_rules'], function(require, exports, module) {
|
83
|
+
|
84
|
+
|
85
|
+
var oop = require("../lib/oop");
|
86
|
+
var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
|
87
|
+
|
88
|
+
var SqlHighlightRules = function() {
|
89
|
+
|
90
|
+
var keywords = (
|
91
|
+
"select|insert|update|delete|from|where|and|or|group|by|order|limit|offset|having|as|case|" +
|
92
|
+
"when|else|end|type|left|right|join|on|outer|desc|asc"
|
93
|
+
);
|
94
|
+
|
95
|
+
var builtinConstants = (
|
96
|
+
"true|false|null"
|
97
|
+
);
|
98
|
+
|
99
|
+
var builtinFunctions = (
|
100
|
+
"count|min|max|avg|sum|rank|now|coalesce"
|
101
|
+
);
|
102
|
+
|
103
|
+
var keywordMapper = this.createKeywordMapper({
|
104
|
+
"support.function": builtinFunctions,
|
105
|
+
"keyword": keywords,
|
106
|
+
"constant.language": builtinConstants
|
107
|
+
}, "identifier", true);
|
108
|
+
|
109
|
+
this.$rules = {
|
110
|
+
"start" : [ {
|
111
|
+
token : "comment",
|
112
|
+
regex : "--.*$"
|
113
|
+
}, {
|
114
|
+
token : "string", // " string
|
115
|
+
regex : '".*?"'
|
116
|
+
}, {
|
117
|
+
token : "string", // ' string
|
118
|
+
regex : "'.*?'"
|
119
|
+
}, {
|
120
|
+
token : "constant.numeric", // float
|
121
|
+
regex : "[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"
|
122
|
+
}, {
|
123
|
+
token : keywordMapper,
|
124
|
+
regex : "[a-zA-Z_$][a-zA-Z0-9_$]*\\b"
|
125
|
+
}, {
|
126
|
+
token : "keyword.operator",
|
127
|
+
regex : "\\+|\\-|\\/|\\/\\/|%|<@>|@>|<@|&|\\^|~|<|>|<=|=>|==|!=|<>|="
|
128
|
+
}, {
|
129
|
+
token : "paren.lparen",
|
130
|
+
regex : "[\\(]"
|
131
|
+
}, {
|
132
|
+
token : "paren.rparen",
|
133
|
+
regex : "[\\)]"
|
134
|
+
}, {
|
135
|
+
token : "text",
|
136
|
+
regex : "\\s+"
|
137
|
+
} ]
|
138
|
+
};
|
139
|
+
};
|
140
|
+
|
141
|
+
oop.inherits(SqlHighlightRules, TextHighlightRules);
|
142
|
+
|
143
|
+
exports.SqlHighlightRules = SqlHighlightRules;
|
144
|
+
});
|
145
|
+
|
@@ -0,0 +1,474 @@
|
|
1
|
+
/* ***** BEGIN LICENSE BLOCK *****
|
2
|
+
* Distributed under the BSD license:
|
3
|
+
*
|
4
|
+
* Copyright (c) 2012, Ajax.org B.V.
|
5
|
+
* All rights reserved.
|
6
|
+
*
|
7
|
+
* Redistribution and use in source and binary forms, with or without
|
8
|
+
* modification, are permitted provided that the following conditions are met:
|
9
|
+
* * Redistributions of source code must retain the above copyright
|
10
|
+
* notice, this list of conditions and the following disclaimer.
|
11
|
+
* * Redistributions in binary form must reproduce the above copyright
|
12
|
+
* notice, this list of conditions and the following disclaimer in the
|
13
|
+
* documentation and/or other materials provided with the distribution.
|
14
|
+
* * Neither the name of Ajax.org B.V. nor the
|
15
|
+
* names of its contributors may be used to endorse or promote products
|
16
|
+
* derived from this software without specific prior written permission.
|
17
|
+
*
|
18
|
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
19
|
+
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
20
|
+
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
21
|
+
* DISCLAIMED. IN NO EVENT SHALL AJAX.ORG B.V. BE LIABLE FOR ANY
|
22
|
+
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
23
|
+
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
24
|
+
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
25
|
+
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
26
|
+
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
27
|
+
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
28
|
+
*
|
29
|
+
*
|
30
|
+
* Contributor(s):
|
31
|
+
*
|
32
|
+
*
|
33
|
+
*
|
34
|
+
* ***** END LICENSE BLOCK ***** */
|
35
|
+
|
36
|
+
define('ace/mode/stylus', ['require', 'exports', 'module' , 'ace/lib/oop', 'ace/mode/text', 'ace/tokenizer', 'ace/mode/stylus_highlight_rules', 'ace/mode/folding/coffee'], function(require, exports, module) {
|
37
|
+
|
38
|
+
|
39
|
+
var oop = require("../lib/oop");
|
40
|
+
var TextMode = require("./text").Mode;
|
41
|
+
var Tokenizer = require("../tokenizer").Tokenizer;
|
42
|
+
var StylusHighlightRules = require("./stylus_highlight_rules").StylusHighlightRules;
|
43
|
+
var FoldMode = require("./folding/coffee").FoldMode;
|
44
|
+
|
45
|
+
var Mode = function() {
|
46
|
+
var highlighter = new StylusHighlightRules();
|
47
|
+
this.foldingRules = new FoldMode();
|
48
|
+
|
49
|
+
this.$tokenizer = new Tokenizer(highlighter.getRules());
|
50
|
+
};
|
51
|
+
oop.inherits(Mode, TextMode);
|
52
|
+
|
53
|
+
(function() {
|
54
|
+
}).call(Mode.prototype);
|
55
|
+
|
56
|
+
exports.Mode = Mode;
|
57
|
+
});
|
58
|
+
|
59
|
+
define('ace/mode/stylus_highlight_rules', ['require', 'exports', 'module' , 'ace/lib/oop', 'ace/mode/text_highlight_rules', 'ace/mode/css_highlight_rules'], function(require, exports, module) {
|
60
|
+
|
61
|
+
|
62
|
+
var oop = require("../lib/oop");
|
63
|
+
var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
|
64
|
+
var CssHighlightRules = require("./css_highlight_rules");
|
65
|
+
|
66
|
+
var StylusHighlightRules = function() {
|
67
|
+
|
68
|
+
var keywordMapper = this.createKeywordMapper({
|
69
|
+
"support.type": CssHighlightRules.supportType,
|
70
|
+
"support.function": CssHighlightRules.supportFunction,
|
71
|
+
"support.constant": CssHighlightRules.supportConstant,
|
72
|
+
"support.constant.color": CssHighlightRules.supportConstantColor,
|
73
|
+
"support.constant.fonts": CssHighlightRules.supportConstantFonts
|
74
|
+
}, "text", true);
|
75
|
+
|
76
|
+
this.$rules = {
|
77
|
+
"start": [
|
78
|
+
{
|
79
|
+
token : "comment",
|
80
|
+
regex : /\/\/.*$/
|
81
|
+
},
|
82
|
+
{
|
83
|
+
token : "comment", // multi line comment
|
84
|
+
regex : /\/\*/,
|
85
|
+
next : "comment"
|
86
|
+
},
|
87
|
+
{
|
88
|
+
"token": ["entity.name.function.stylus", "text"],
|
89
|
+
"regex": "^([-a-zA-Z_][-\\w]*)?(\\()"
|
90
|
+
},
|
91
|
+
{
|
92
|
+
"token": ["entity.other.attribute-name.class.stylus"],
|
93
|
+
"regex": "\\.-?[_a-zA-Z]+[_a-zA-Z0-9-]*"
|
94
|
+
},
|
95
|
+
{
|
96
|
+
"token": ["entity.language.stylus"],
|
97
|
+
"regex": "^ *&"
|
98
|
+
},
|
99
|
+
{
|
100
|
+
"token": ["variable.language.stylus"],
|
101
|
+
"regex": "(arguments)"
|
102
|
+
},
|
103
|
+
{
|
104
|
+
"token": ["keyword.stylus"],
|
105
|
+
"regex": "@[-\\w]+"
|
106
|
+
},
|
107
|
+
{
|
108
|
+
token : ["punctuation", "entity.other.attribute-name.pseudo-element.css"],
|
109
|
+
regex : CssHighlightRules.pseudoElements
|
110
|
+
}, {
|
111
|
+
token : ["punctuation", "entity.other.attribute-name.pseudo-class.css"],
|
112
|
+
regex : CssHighlightRules.pseudoClasses
|
113
|
+
},
|
114
|
+
{
|
115
|
+
"token": ["entity.name.tag.stylus"],
|
116
|
+
"regex": "(?:\\b)(a|abbr|acronym|address|area|article|aside|audio|b|base|big|blockquote|body|br|button|canvas|caption|cite|code|col|colgroup|datalist|dd|del|details|dfn|dialog|div|dl|dt|em|eventsource|fieldset|figure|figcaption|footer|form|frame|frameset|(?:h[1-6])|head|header|hgroup|hr|html|i|iframe|img|input|ins|kbd|label|legend|li|link|map|mark|menu|meta|meter|nav|noframes|noscript|object|ol|optgroup|option|output|p|param|pre|progress|q|samp|script|section|select|small|span|strike|strong|style|sub|summary|sup|table|tbody|td|textarea|tfoot|th|thead|time|title|tr|tt|ul|var|video)(?:\\b)"
|
117
|
+
},
|
118
|
+
{
|
119
|
+
token : "constant.numeric", // hex6 color
|
120
|
+
regex : "#[a-f0-9]{6}"
|
121
|
+
},
|
122
|
+
{
|
123
|
+
token : "constant.numeric", // hex3 color
|
124
|
+
regex : "#[a-f0-9]{3}"
|
125
|
+
},
|
126
|
+
{
|
127
|
+
"token": ["punctuation.definition.entity.stylus", "entity.other.attribute-name.id.stylus"],
|
128
|
+
"regex": "(#)([a-zA-Z][a-zA-Z0-9_-]*)"
|
129
|
+
},
|
130
|
+
{
|
131
|
+
"token": "meta.vendor-prefix.stylus",
|
132
|
+
"regex": "-webkit-|-moz\\-|-ms-|-o-"
|
133
|
+
},
|
134
|
+
{
|
135
|
+
"token": "keyword.control.stylus",
|
136
|
+
"regex": "(?:!important|for|in|return|true|false|null|if|else|unless|return)\\b"
|
137
|
+
},
|
138
|
+
{
|
139
|
+
"token": "keyword.operator.stylus",
|
140
|
+
"regex": "!|~|\\+|-|(?:\\*)?\\*|\\/|%|(?:\\.)\\.\\.|<|>|(?:=|:|\\?|\\+|-|\\*|\\/|%|<|>)?=|!="
|
141
|
+
},
|
142
|
+
{
|
143
|
+
"token": "keyword.operator.stylus",
|
144
|
+
"regex": "(?:in|is(?:nt)?|not)\\b"
|
145
|
+
},
|
146
|
+
{
|
147
|
+
token : "string",
|
148
|
+
regex : "'(?=.)",
|
149
|
+
next : "qstring"
|
150
|
+
}, {
|
151
|
+
token : "string",
|
152
|
+
regex : '"(?=.)',
|
153
|
+
next : "qqstring"
|
154
|
+
},
|
155
|
+
{
|
156
|
+
token : "constant.numeric",
|
157
|
+
regex : CssHighlightRules.numRe
|
158
|
+
},
|
159
|
+
{
|
160
|
+
token : "keyword",
|
161
|
+
regex : "(?:ch|cm|deg|em|ex|fr|gd|grad|Hz|in|kHz|mm|ms|pc|pt|px|rad|rem|s|turn|vh|vm|vw|%)\\b"
|
162
|
+
},
|
163
|
+
{
|
164
|
+
token : keywordMapper,
|
165
|
+
regex : "\\-?[a-zA-Z_][a-zA-Z0-9_\\-]*"
|
166
|
+
}
|
167
|
+
],
|
168
|
+
"comment" : [
|
169
|
+
{
|
170
|
+
token : "comment", // closing comment
|
171
|
+
regex : ".*?\\*\\/",
|
172
|
+
next : "start"
|
173
|
+
}, {
|
174
|
+
token : "comment", // comment spanning whole line
|
175
|
+
regex : ".+"
|
176
|
+
}
|
177
|
+
],
|
178
|
+
"qqstring" : [
|
179
|
+
{
|
180
|
+
token : "string",
|
181
|
+
regex : '[^"\\\\]+'
|
182
|
+
},
|
183
|
+
{
|
184
|
+
token : "string",
|
185
|
+
regex : "\\\\$",
|
186
|
+
next : "qqstring"
|
187
|
+
},
|
188
|
+
{
|
189
|
+
token : "string",
|
190
|
+
regex : '"|$',
|
191
|
+
next : "start"
|
192
|
+
}
|
193
|
+
],
|
194
|
+
"qstring" : [
|
195
|
+
{
|
196
|
+
token : "string",
|
197
|
+
regex : "[^'\\\\]+"
|
198
|
+
},
|
199
|
+
{
|
200
|
+
token : "string",
|
201
|
+
regex : "\\\\$",
|
202
|
+
next : "qstring"
|
203
|
+
},
|
204
|
+
{
|
205
|
+
token : "string",
|
206
|
+
regex : "'|$",
|
207
|
+
next : "start"
|
208
|
+
}
|
209
|
+
]
|
210
|
+
}
|
211
|
+
|
212
|
+
};
|
213
|
+
|
214
|
+
oop.inherits(StylusHighlightRules, TextHighlightRules);
|
215
|
+
|
216
|
+
exports.StylusHighlightRules = StylusHighlightRules;
|
217
|
+
});
|
218
|
+
|
219
|
+
define('ace/mode/css_highlight_rules', ['require', 'exports', 'module' , 'ace/lib/oop', 'ace/lib/lang', 'ace/mode/text_highlight_rules'], function(require, exports, module) {
|
220
|
+
|
221
|
+
|
222
|
+
var oop = require("../lib/oop");
|
223
|
+
var lang = require("../lib/lang");
|
224
|
+
var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
|
225
|
+
var supportType = exports.supportType = "animation-fill-mode|alignment-adjust|alignment-baseline|animation-delay|animation-direction|animation-duration|animation-iteration-count|animation-name|animation-play-state|animation-timing-function|animation|appearance|azimuth|backface-visibility|background-attachment|background-break|background-clip|background-color|background-image|background-origin|background-position|background-repeat|background-size|background|baseline-shift|binding|bleed|bookmark-label|bookmark-level|bookmark-state|bookmark-target|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|border|bottom|box-align|box-decoration-break|box-direction|box-flex-group|box-flex|box-lines|box-ordinal-group|box-orient|box-pack|box-shadow|box-sizing|break-after|break-before|break-inside|caption-side|clear|clip|color-profile|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|crop|cue-after|cue-before|cue|cursor|direction|display|dominant-baseline|drop-initial-after-adjust|drop-initial-after-align|drop-initial-before-adjust|drop-initial-before-align|drop-initial-size|drop-initial-value|elevation|empty-cells|fit|fit-position|float-offset|float|font-family|font-size|font-size-adjust|font-stretch|font-style|font-variant|font-weight|font|grid-columns|grid-rows|hanging-punctuation|height|hyphenate-after|hyphenate-before|hyphenate-character|hyphenate-lines|hyphenate-resource|hyphens|icon|image-orientation|image-rendering|image-resolution|inline-box-align|left|letter-spacing|line-height|line-stacking-ruby|line-stacking-shift|line-stacking-strategy|line-stacking|list-style-image|list-style-position|list-style-type|list-style|margin-bottom|margin-left|margin-right|margin-top|margin|mark-after|mark-before|mark|marks|marquee-direction|marquee-play-count|marquee-speed|marquee-style|max-height|max-width|min-height|min-width|move-to|nav-down|nav-index|nav-left|nav-right|nav-up|opacity|orphans|outline-color|outline-offset|outline-style|outline-width|outline|overflow-style|overflow-x|overflow-y|overflow|padding-bottom|padding-left|padding-right|padding-top|padding|page-break-after|page-break-before|page-break-inside|page-policy|page|pause-after|pause-before|pause|perspective-origin|perspective|phonemes|pitch-range|pitch|play-during|position|presentation-level|punctuation-trim|quotes|rendering-intent|resize|rest-after|rest-before|rest|richness|right|rotation-point|rotation|ruby-align|ruby-overhang|ruby-position|ruby-span|size|speak-header|speak-numeral|speak-punctuation|speak|speech-rate|stress|string-set|table-layout|target-name|target-new|target-position|target|text-align-last|text-align|text-decoration|text-emphasis|text-height|text-indent|text-justify|text-outline|text-shadow|text-transform|text-wrap|top|transform-origin|transform-style|transform|transition-delay|transition-duration|transition-property|transition-timing-function|transition|unicode-bidi|vertical-align|visibility|voice-balance|voice-duration|voice-family|voice-pitch-range|voice-pitch|voice-rate|voice-stress|voice-volume|volume|white-space-collapse|white-space|widows|width|word-break|word-spacing|word-wrap|z-index";
|
226
|
+
var supportFunction = exports.supportFunction = "rgb|rgba|url|attr|counter|counters";
|
227
|
+
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";
|
228
|
+
var supportConstantColor = exports.supportConstantColor = "aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow";
|
229
|
+
var supportConstantFonts = exports.supportConstantFonts = "arial|century|comic|courier|garamond|georgia|helvetica|impact|lucida|symbol|system|tahoma|times|trebuchet|utopia|verdana|webdings|sans-serif|serif|monospace";
|
230
|
+
|
231
|
+
var numRe = exports.numRe = "\\-?(?:(?:[0-9]+)|(?:[0-9]*\\.[0-9]+))";
|
232
|
+
var pseudoElements = exports.pseudoElements = "(\\:+)\\b(after|before|first-letter|first-line|moz-selection|selection)\\b";
|
233
|
+
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";
|
234
|
+
|
235
|
+
var CssHighlightRules = function() {
|
236
|
+
|
237
|
+
var keywordMapper = this.createKeywordMapper({
|
238
|
+
"support.function": supportFunction,
|
239
|
+
"support.constant": supportConstant,
|
240
|
+
"support.type": supportType,
|
241
|
+
"support.constant.color": supportConstantColor,
|
242
|
+
"support.constant.fonts": supportConstantFonts
|
243
|
+
}, "text", true);
|
244
|
+
|
245
|
+
var base_ruleset = [
|
246
|
+
{
|
247
|
+
token : "comment", // multi line comment
|
248
|
+
regex : "\\/\\*",
|
249
|
+
next : "ruleset_comment"
|
250
|
+
}, {
|
251
|
+
token : "string", // single line
|
252
|
+
regex : '["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]'
|
253
|
+
}, {
|
254
|
+
token : "string", // single line
|
255
|
+
regex : "['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"
|
256
|
+
}, {
|
257
|
+
token : ["constant.numeric", "keyword"],
|
258
|
+
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|%)"
|
259
|
+
}, {
|
260
|
+
token : "constant.numeric",
|
261
|
+
regex : numRe
|
262
|
+
}, {
|
263
|
+
token : "constant.numeric", // hex6 color
|
264
|
+
regex : "#[a-f0-9]{6}"
|
265
|
+
}, {
|
266
|
+
token : "constant.numeric", // hex3 color
|
267
|
+
regex : "#[a-f0-9]{3}"
|
268
|
+
}, {
|
269
|
+
token : ["punctuation", "entity.other.attribute-name.pseudo-element.css"],
|
270
|
+
regex : pseudoElements
|
271
|
+
}, {
|
272
|
+
token : ["punctuation", "entity.other.attribute-name.pseudo-class.css"],
|
273
|
+
regex : pseudoClasses
|
274
|
+
}, {
|
275
|
+
token : keywordMapper,
|
276
|
+
regex : "\\-?[a-zA-Z_][a-zA-Z0-9_\\-]*"
|
277
|
+
}
|
278
|
+
];
|
279
|
+
|
280
|
+
var ruleset = lang.copyArray(base_ruleset);
|
281
|
+
ruleset.unshift({
|
282
|
+
token : "paren.rparen",
|
283
|
+
regex : "\\}",
|
284
|
+
next: "start"
|
285
|
+
});
|
286
|
+
|
287
|
+
var media_ruleset = lang.copyArray( base_ruleset );
|
288
|
+
media_ruleset.unshift({
|
289
|
+
token : "paren.rparen",
|
290
|
+
regex : "\\}",
|
291
|
+
next: "media"
|
292
|
+
});
|
293
|
+
|
294
|
+
var base_comment = [{
|
295
|
+
token : "comment", // comment spanning whole line
|
296
|
+
regex : ".+"
|
297
|
+
}];
|
298
|
+
|
299
|
+
var comment = lang.copyArray(base_comment);
|
300
|
+
comment.unshift({
|
301
|
+
token : "comment", // closing comment
|
302
|
+
regex : ".*?\\*\\/",
|
303
|
+
next : "start"
|
304
|
+
});
|
305
|
+
|
306
|
+
var media_comment = lang.copyArray(base_comment);
|
307
|
+
media_comment.unshift({
|
308
|
+
token : "comment", // closing comment
|
309
|
+
regex : ".*?\\*\\/",
|
310
|
+
next : "media"
|
311
|
+
});
|
312
|
+
|
313
|
+
var ruleset_comment = lang.copyArray(base_comment);
|
314
|
+
ruleset_comment.unshift({
|
315
|
+
token : "comment", // closing comment
|
316
|
+
regex : ".*?\\*\\/",
|
317
|
+
next : "ruleset"
|
318
|
+
});
|
319
|
+
|
320
|
+
this.$rules = {
|
321
|
+
"start" : [{
|
322
|
+
token : "comment", // multi line comment
|
323
|
+
regex : "\\/\\*",
|
324
|
+
next : "comment"
|
325
|
+
}, {
|
326
|
+
token: "paren.lparen",
|
327
|
+
regex: "\\{",
|
328
|
+
next: "ruleset"
|
329
|
+
}, {
|
330
|
+
token: "string",
|
331
|
+
regex: "@.*?{",
|
332
|
+
next: "media"
|
333
|
+
},{
|
334
|
+
token: "keyword",
|
335
|
+
regex: "#[a-z0-9-_]+"
|
336
|
+
},{
|
337
|
+
token: "variable",
|
338
|
+
regex: "\\.[a-z0-9-_]+"
|
339
|
+
},{
|
340
|
+
token: "string",
|
341
|
+
regex: ":[a-z0-9-_]+"
|
342
|
+
},{
|
343
|
+
token: "constant",
|
344
|
+
regex: "[a-z0-9-_]+"
|
345
|
+
}],
|
346
|
+
|
347
|
+
"media" : [ {
|
348
|
+
token : "comment", // multi line comment
|
349
|
+
regex : "\\/\\*",
|
350
|
+
next : "media_comment"
|
351
|
+
}, {
|
352
|
+
token: "paren.lparen",
|
353
|
+
regex: "\\{",
|
354
|
+
next: "media_ruleset"
|
355
|
+
},{
|
356
|
+
token: "string",
|
357
|
+
regex: "\\}",
|
358
|
+
next: "start"
|
359
|
+
},{
|
360
|
+
token: "keyword",
|
361
|
+
regex: "#[a-z0-9-_]+"
|
362
|
+
},{
|
363
|
+
token: "variable",
|
364
|
+
regex: "\\.[a-z0-9-_]+"
|
365
|
+
},{
|
366
|
+
token: "string",
|
367
|
+
regex: ":[a-z0-9-_]+"
|
368
|
+
},{
|
369
|
+
token: "constant",
|
370
|
+
regex: "[a-z0-9-_]+"
|
371
|
+
}],
|
372
|
+
|
373
|
+
"comment" : comment,
|
374
|
+
|
375
|
+
"ruleset" : ruleset,
|
376
|
+
"ruleset_comment" : ruleset_comment,
|
377
|
+
|
378
|
+
"media_ruleset" : media_ruleset,
|
379
|
+
"media_comment" : media_comment
|
380
|
+
};
|
381
|
+
};
|
382
|
+
|
383
|
+
oop.inherits(CssHighlightRules, TextHighlightRules);
|
384
|
+
|
385
|
+
exports.CssHighlightRules = CssHighlightRules;
|
386
|
+
|
387
|
+
});
|
388
|
+
|
389
|
+
define('ace/mode/folding/coffee', ['require', 'exports', 'module' , 'ace/lib/oop', 'ace/mode/folding/fold_mode', 'ace/range'], function(require, exports, module) {
|
390
|
+
|
391
|
+
|
392
|
+
var oop = require("../../lib/oop");
|
393
|
+
var BaseFoldMode = require("./fold_mode").FoldMode;
|
394
|
+
var Range = require("../../range").Range;
|
395
|
+
|
396
|
+
var FoldMode = exports.FoldMode = function() {};
|
397
|
+
oop.inherits(FoldMode, BaseFoldMode);
|
398
|
+
|
399
|
+
(function() {
|
400
|
+
|
401
|
+
this.getFoldWidgetRange = function(session, foldStyle, row) {
|
402
|
+
var range = this.indentationBlock(session, row);
|
403
|
+
if (range)
|
404
|
+
return range;
|
405
|
+
|
406
|
+
var re = /\S/;
|
407
|
+
var line = session.getLine(row);
|
408
|
+
var startLevel = line.search(re);
|
409
|
+
if (startLevel == -1 || line[startLevel] != "#")
|
410
|
+
return;
|
411
|
+
|
412
|
+
var startColumn = line.length;
|
413
|
+
var maxRow = session.getLength();
|
414
|
+
var startRow = row;
|
415
|
+
var endRow = row;
|
416
|
+
|
417
|
+
while (++row < maxRow) {
|
418
|
+
line = session.getLine(row);
|
419
|
+
var level = line.search(re);
|
420
|
+
|
421
|
+
if (level == -1)
|
422
|
+
continue;
|
423
|
+
|
424
|
+
if (line[level] != "#")
|
425
|
+
break;
|
426
|
+
|
427
|
+
endRow = row;
|
428
|
+
}
|
429
|
+
|
430
|
+
if (endRow > startRow) {
|
431
|
+
var endColumn = session.getLine(endRow).length;
|
432
|
+
return new Range(startRow, startColumn, endRow, endColumn);
|
433
|
+
}
|
434
|
+
};
|
435
|
+
this.getFoldWidget = function(session, foldStyle, row) {
|
436
|
+
var line = session.getLine(row);
|
437
|
+
var indent = line.search(/\S/);
|
438
|
+
var next = session.getLine(row + 1);
|
439
|
+
var prev = session.getLine(row - 1);
|
440
|
+
var prevIndent = prev.search(/\S/);
|
441
|
+
var nextIndent = next.search(/\S/);
|
442
|
+
|
443
|
+
if (indent == -1) {
|
444
|
+
session.foldWidgets[row - 1] = prevIndent!= -1 && prevIndent < nextIndent ? "start" : "";
|
445
|
+
return "";
|
446
|
+
}
|
447
|
+
if (prevIndent == -1) {
|
448
|
+
if (indent == nextIndent && line[indent] == "#" && next[indent] == "#") {
|
449
|
+
session.foldWidgets[row - 1] = "";
|
450
|
+
session.foldWidgets[row + 1] = "";
|
451
|
+
return "start";
|
452
|
+
}
|
453
|
+
} else if (prevIndent == indent && line[indent] == "#" && prev[indent] == "#") {
|
454
|
+
if (session.getLine(row - 2).search(/\S/) == -1) {
|
455
|
+
session.foldWidgets[row - 1] = "start";
|
456
|
+
session.foldWidgets[row + 1] = "";
|
457
|
+
return "";
|
458
|
+
}
|
459
|
+
}
|
460
|
+
|
461
|
+
if (prevIndent!= -1 && prevIndent < indent)
|
462
|
+
session.foldWidgets[row - 1] = "start";
|
463
|
+
else
|
464
|
+
session.foldWidgets[row - 1] = "";
|
465
|
+
|
466
|
+
if (indent < nextIndent)
|
467
|
+
return "start";
|
468
|
+
else
|
469
|
+
return "";
|
470
|
+
};
|
471
|
+
|
472
|
+
}).call(FoldMode.prototype);
|
473
|
+
|
474
|
+
});
|