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,2035 @@
|
|
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
|
+
* Garen J. Torikian <gjtorikian @ gmail DOT com>
|
33
|
+
*
|
34
|
+
* ***** END LICENSE BLOCK ***** */
|
35
|
+
|
36
|
+
define('ace/mode/jade', ['require', 'exports', 'module' , 'ace/lib/oop', 'ace/mode/text', 'ace/tokenizer', 'ace/mode/jade_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 JadeHighlightRules = require("./jade_highlight_rules").JadeHighlightRules;
|
43
|
+
var FoldMode = require("./folding/coffee").FoldMode;
|
44
|
+
|
45
|
+
var Mode = function() {
|
46
|
+
var highlighter = new JadeHighlightRules();
|
47
|
+
|
48
|
+
this.$tokenizer = new Tokenizer(highlighter.getRules());
|
49
|
+
this.foldingRules = new FoldMode();
|
50
|
+
};
|
51
|
+
oop.inherits(Mode, TextMode);
|
52
|
+
|
53
|
+
(function() {
|
54
|
+
}).call(Mode.prototype);
|
55
|
+
|
56
|
+
exports.Mode = Mode;
|
57
|
+
});
|
58
|
+
|
59
|
+
define('ace/mode/jade_highlight_rules', ['require', 'exports', 'module' , 'ace/lib/oop', 'ace/mode/text_highlight_rules', 'ace/mode/markdown_highlight_rules', 'ace/mode/scss_highlight_rules', 'ace/mode/less_highlight_rules', 'ace/mode/coffee_highlight_rules', 'ace/mode/javascript_highlight_rules'], function(require, exports, module) {
|
60
|
+
|
61
|
+
|
62
|
+
var oop = require("../lib/oop");
|
63
|
+
var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
|
64
|
+
var MarkdownHighlightRules = require("./markdown_highlight_rules").MarkdownHighlightRules;
|
65
|
+
var SassHighlightRules = require("./scss_highlight_rules").ScssHighlightRules;
|
66
|
+
var LessHighlightRules = require("./less_highlight_rules").LessHighlightRules;
|
67
|
+
var CoffeeHighlightRules = require("./coffee_highlight_rules").CoffeeHighlightRules;
|
68
|
+
var JavaScriptHighlightRules = require("./javascript_highlight_rules").JavaScriptHighlightRules;
|
69
|
+
|
70
|
+
function mixin_embed(tag, prefix) {
|
71
|
+
return {
|
72
|
+
token : "entity.name.function.jade",
|
73
|
+
regex : "^\\s*\\:" + tag,
|
74
|
+
next : prefix + "start"
|
75
|
+
};
|
76
|
+
}
|
77
|
+
|
78
|
+
var JadeHighlightRules = function() {
|
79
|
+
|
80
|
+
var escapedRe = "\\\\(?:x[0-9a-fA-F]{2}|" + // hex
|
81
|
+
"u[0-9a-fA-F]{4}|" + // unicode
|
82
|
+
"[0-2][0-7]{0,2}|" + // oct
|
83
|
+
"3[0-6][0-7]?|" + // oct
|
84
|
+
"37[0-7]?|" + // oct
|
85
|
+
"[4-7][0-7]?|" + //oct
|
86
|
+
".)";
|
87
|
+
|
88
|
+
this.$rules =
|
89
|
+
{
|
90
|
+
"start": [
|
91
|
+
{
|
92
|
+
"token": "keyword.control.import.include.jade",
|
93
|
+
"regex": "\\s*\\binclude\\b"
|
94
|
+
},
|
95
|
+
{
|
96
|
+
"token": "keyword.other.doctype.jade",
|
97
|
+
"regex": "^!!!\\s*(?:[a-zA-Z0-9-_]+)?"
|
98
|
+
},
|
99
|
+
{
|
100
|
+
"token" : "punctuation.section.comment",
|
101
|
+
"regex" : "^\\s*\/\/(?:\\s*[^-\\s]|\\s+\\S)(?:.*$)"
|
102
|
+
},
|
103
|
+
{
|
104
|
+
"token" : function(space, text) {
|
105
|
+
return "punctuation.section.comment";
|
106
|
+
},
|
107
|
+
"regex" : "^((\\s*)\/\/)(?:\\s*$)",
|
108
|
+
"next": "comment_block"
|
109
|
+
},
|
110
|
+
mixin_embed("markdown", "markdown-"),
|
111
|
+
mixin_embed("sass", "sass-"),
|
112
|
+
mixin_embed("less", "less-"),
|
113
|
+
mixin_embed("coffee", "coffee-"),
|
114
|
+
{
|
115
|
+
"token": [ "storage.type.function.jade",
|
116
|
+
"entity.name.function.jade",
|
117
|
+
"punctuation.definition.parameters.begin.jade",
|
118
|
+
"variable.parameter.function.jade",
|
119
|
+
"punctuation.definition.parameters.end.jade"
|
120
|
+
],
|
121
|
+
"regex": "^(\\s*mixin)( [\\w\\-]+)(\\s*\\()(.*?)(\\))"
|
122
|
+
},
|
123
|
+
{
|
124
|
+
"token": [ "storage.type.function.jade", "entity.name.function.jade"],
|
125
|
+
"regex": "^(\\s*mixin)( [\\w\\-]+)"
|
126
|
+
},
|
127
|
+
{
|
128
|
+
"token": "source.js.embedded.jade",
|
129
|
+
"regex": "^\\s*(?:-|=|!=)",
|
130
|
+
"next": "js-start"
|
131
|
+
},
|
132
|
+
{
|
133
|
+
"token": "string.interpolated.jade",
|
134
|
+
"regex": "[#!]\\{[^\\}]+\\}"
|
135
|
+
},
|
136
|
+
{
|
137
|
+
"token": ["meta.tag.any.jade", "entity.variable.tag.jade"],
|
138
|
+
"regex": /^\s*(?!\w+\:)(?:[\w]+|(?=\.|#)])/,
|
139
|
+
"next": "tag_single"
|
140
|
+
},
|
141
|
+
{
|
142
|
+
"token": "suport.type.attribute.id.jade",
|
143
|
+
"regex": "#\\w+"
|
144
|
+
},
|
145
|
+
{
|
146
|
+
"token": "suport.type.attribute.class.jade",
|
147
|
+
"regex": "\\.\\w+"
|
148
|
+
},
|
149
|
+
{
|
150
|
+
"token": "punctuation",
|
151
|
+
"regex": "\\s*(?:\\()",
|
152
|
+
"next": "tag_attributes"
|
153
|
+
}
|
154
|
+
],
|
155
|
+
"comment_block": [
|
156
|
+
{
|
157
|
+
"token": function(text) {
|
158
|
+
return "text";
|
159
|
+
},
|
160
|
+
"regex": "^(\\1\\S|$)",
|
161
|
+
"captures": "1",
|
162
|
+
"next": "start"
|
163
|
+
},
|
164
|
+
{
|
165
|
+
"token": "comment.block.jade",
|
166
|
+
"regex" : ".+"
|
167
|
+
}
|
168
|
+
],
|
169
|
+
"tag_single": [
|
170
|
+
{
|
171
|
+
"token": "entity.other.attribute-name.class.jade",
|
172
|
+
"regex": "\\.[\\w-]+"
|
173
|
+
},
|
174
|
+
{
|
175
|
+
"token": "entity.other.attribute-name.id.jade",
|
176
|
+
"regex": "#[\\w-]+"
|
177
|
+
},
|
178
|
+
{
|
179
|
+
"token": ["text", "punctuation"],
|
180
|
+
"regex": "($)|((?!\\.|#|=|-))",
|
181
|
+
"next": "start"
|
182
|
+
}
|
183
|
+
],
|
184
|
+
"tag_attributes": [
|
185
|
+
{
|
186
|
+
"token" : "string",
|
187
|
+
"regex" : "'(?=.)",
|
188
|
+
"next" : "qstring"
|
189
|
+
},
|
190
|
+
{
|
191
|
+
"token" : "string",
|
192
|
+
"regex" : '"(?=.)',
|
193
|
+
"next" : "qqstring"
|
194
|
+
},
|
195
|
+
{
|
196
|
+
"token": "entity.other.attribute-name.jade",
|
197
|
+
"regex": "\\b[a-zA-Z\\-:]+"
|
198
|
+
},
|
199
|
+
{
|
200
|
+
"token": ["entity.other.attribute-name.jade", "punctuation"],
|
201
|
+
"regex": "\\b([a-zA-Z:\\.-]+)(=)",
|
202
|
+
"next": "attribute_strings"
|
203
|
+
},
|
204
|
+
{
|
205
|
+
"token": "punctuation",
|
206
|
+
"regex": "\\)",
|
207
|
+
"next": "start"
|
208
|
+
}
|
209
|
+
],
|
210
|
+
"attribute_strings": [
|
211
|
+
{
|
212
|
+
"token" : "string",
|
213
|
+
"regex" : "'(?=.)",
|
214
|
+
"next" : "qstring"
|
215
|
+
},
|
216
|
+
{
|
217
|
+
"token" : "string",
|
218
|
+
"regex" : '"(?=.)',
|
219
|
+
"next" : "qqstring"
|
220
|
+
}
|
221
|
+
],
|
222
|
+
"qqstring" : [
|
223
|
+
{
|
224
|
+
token : "constant.language.escape",
|
225
|
+
regex : escapedRe
|
226
|
+
}, {
|
227
|
+
token : "string",
|
228
|
+
regex : '[^"\\\\]+',
|
229
|
+
}, {
|
230
|
+
token : "string",
|
231
|
+
regex : "\\\\$",
|
232
|
+
next : "qqstring",
|
233
|
+
}, {
|
234
|
+
token : "string",
|
235
|
+
regex : '"|$',
|
236
|
+
next : "tag_attributes",
|
237
|
+
}
|
238
|
+
],
|
239
|
+
"qstring" : [
|
240
|
+
{
|
241
|
+
token : "constant.language.escape",
|
242
|
+
regex : escapedRe
|
243
|
+
}, {
|
244
|
+
token : "string",
|
245
|
+
regex : "[^'\\\\]+",
|
246
|
+
}, {
|
247
|
+
token : "string",
|
248
|
+
regex : "\\\\$",
|
249
|
+
next : "qstring",
|
250
|
+
}, {
|
251
|
+
token : "string",
|
252
|
+
regex : "'|$",
|
253
|
+
next : "tag_attributes",
|
254
|
+
}
|
255
|
+
]
|
256
|
+
};
|
257
|
+
|
258
|
+
this.embedRules(JavaScriptHighlightRules, "js-", [{
|
259
|
+
token: "text",
|
260
|
+
regex: ".$",
|
261
|
+
next: "start"
|
262
|
+
}]);
|
263
|
+
};
|
264
|
+
|
265
|
+
oop.inherits(JadeHighlightRules, TextHighlightRules);
|
266
|
+
|
267
|
+
exports.JadeHighlightRules = JadeHighlightRules;
|
268
|
+
});
|
269
|
+
|
270
|
+
define('ace/mode/markdown_highlight_rules', ['require', 'exports', 'module' , 'ace/lib/oop', 'ace/mode/text_highlight_rules', 'ace/mode/javascript_highlight_rules', 'ace/mode/xml_highlight_rules', 'ace/mode/html_highlight_rules', 'ace/mode/css_highlight_rules'], function(require, exports, module) {
|
271
|
+
|
272
|
+
|
273
|
+
var oop = require("../lib/oop");
|
274
|
+
var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
|
275
|
+
var JavaScriptHighlightRules = require("./javascript_highlight_rules").JavaScriptHighlightRules;
|
276
|
+
var XmlHighlightRules = require("./xml_highlight_rules").XmlHighlightRules;
|
277
|
+
var HtmlHighlightRules = require("./html_highlight_rules").HtmlHighlightRules;
|
278
|
+
var CssHighlightRules = require("./css_highlight_rules").CssHighlightRules;
|
279
|
+
|
280
|
+
function github_embed(tag, prefix) {
|
281
|
+
return { // Github style block
|
282
|
+
token : "support.function",
|
283
|
+
regex : "^```" + tag + "\\s*$",
|
284
|
+
next : prefix + "start"
|
285
|
+
};
|
286
|
+
}
|
287
|
+
|
288
|
+
var MarkdownHighlightRules = function() {
|
289
|
+
|
290
|
+
this.$rules = {
|
291
|
+
"start" : [ {
|
292
|
+
token : "empty_line",
|
293
|
+
regex : '^$'
|
294
|
+
}, { // code span `
|
295
|
+
token : ["support.function", "support.function", "support.function"],
|
296
|
+
regex : "(`+)([^\\r]*?[^`])(\\1)"
|
297
|
+
}, { // code block
|
298
|
+
token : "support.function",
|
299
|
+
regex : "^[ ]{4}.+"
|
300
|
+
}, { // h1
|
301
|
+
token: "markup.heading.1",
|
302
|
+
regex: "^=+(?=\\s*$)"
|
303
|
+
}, { // h2
|
304
|
+
token: "markup.heading.2",
|
305
|
+
regex: "^\\-+(?=\\s*$)"
|
306
|
+
}, { // header
|
307
|
+
token : function(value) {
|
308
|
+
return "markup.heading." + value.search(/[^#]/);
|
309
|
+
},
|
310
|
+
regex : "^#{1,6}(?:[^ #].*| +.*(?:[^ #].*|[^ ]+.* +#+ *))$"
|
311
|
+
}, github_embed("(?:javascript|js)", "js-"),
|
312
|
+
github_embed("xml", "xml-"),
|
313
|
+
github_embed("html", "html-"),
|
314
|
+
github_embed("css", "css-"),
|
315
|
+
{ // Github style block
|
316
|
+
token : "support.function",
|
317
|
+
regex : "^```\\s*[a-zA-Z]*(?:{.*?\\})?\\s*$",
|
318
|
+
next : "githubblock"
|
319
|
+
}, { // block quote
|
320
|
+
token : "string",
|
321
|
+
regex : "^>[ ].+$",
|
322
|
+
next : "blockquote"
|
323
|
+
}, { // reference
|
324
|
+
token : ["text", "constant", "text", "url", "string", "text"],
|
325
|
+
regex : "^([ ]{0,3}\\[)([^\\]]+)(\\]:\\s*)([^ ]+)(\\s*(?:[\"][^\"]+[\"])?(\\s*))$"
|
326
|
+
}, { // link by reference
|
327
|
+
token : ["text", "string", "text", "constant", "text"],
|
328
|
+
regex : "(\\[)((?:[[^\\]]*\\]|[^\\[\\]])*)(\\][ ]?(?:\\n[ ]*)?\\[)(.*?)(\\])"
|
329
|
+
}, { // link by url
|
330
|
+
token : ["text", "string", "text", "markup.underline", "string", "text"],
|
331
|
+
regex : "(\\[)"+
|
332
|
+
"(\\[[^\\]]*\\]|[^\\[\\]]*)"+
|
333
|
+
"(\\]\\([ \\t]*)"+
|
334
|
+
"(<?(?:(?:[^\\(]*?\\([^\\)]*?\\)\\S*?)|(?:.*?))>?)"+
|
335
|
+
"((?:[ \t]*\"(?:.*?)\"[ \\t]*)?)"+
|
336
|
+
"(\\))"
|
337
|
+
}, { // HR *
|
338
|
+
token : "constant",
|
339
|
+
regex : "^[ ]{0,2}(?:[ ]?\\*[ ]?){3,}\\s*$"
|
340
|
+
}, { // HR -
|
341
|
+
token : "constant",
|
342
|
+
regex : "^[ ]{0,2}(?:[ ]?\\-[ ]?){3,}\\s*$"
|
343
|
+
}, { // HR _
|
344
|
+
token : "constant",
|
345
|
+
regex : "^[ ]{0,2}(?:[ ]?\\_[ ]?){3,}\\s*$"
|
346
|
+
}, { // list
|
347
|
+
token : "markup.list",
|
348
|
+
regex : "^\\s{0,3}(?:[*+-]|\\d+\\.)\\s+",
|
349
|
+
next : "listblock"
|
350
|
+
}, { // strong ** __
|
351
|
+
token : ["string", "string", "string"],
|
352
|
+
regex : "([*]{2}|[_]{2}(?=\\S))([^\\r]*?\\S[*_]*)(\\1)"
|
353
|
+
}, { // emphasis * _
|
354
|
+
token : ["string", "string", "string"],
|
355
|
+
regex : "([*]|[_](?=\\S))([^\\r]*?\\S[*_]*)(\\1)"
|
356
|
+
}, { //
|
357
|
+
token : ["text", "url", "text"],
|
358
|
+
regex : "(<)("+
|
359
|
+
"(?:https?|ftp|dict):[^'\">\\s]+"+
|
360
|
+
"|"+
|
361
|
+
"(?:mailto:)?[-.\\w]+\\@[-a-z0-9]+(?:\\.[-a-z0-9]+)*\\.[a-z]+"+
|
362
|
+
")(>)"
|
363
|
+
}, {
|
364
|
+
token : "text",
|
365
|
+
regex : "[^\\*_%$`\\[#<>]+"
|
366
|
+
} ],
|
367
|
+
|
368
|
+
"listblock" : [ { // Lists only escape on completely blank lines.
|
369
|
+
token : "empty_line",
|
370
|
+
regex : "^$",
|
371
|
+
next : "start"
|
372
|
+
}, {
|
373
|
+
token : "markup.list",
|
374
|
+
regex : ".+"
|
375
|
+
} ],
|
376
|
+
|
377
|
+
"blockquote" : [ { // BLockquotes only escape on blank lines.
|
378
|
+
token : "empty_line",
|
379
|
+
regex : "^\\s*$",
|
380
|
+
next : "start"
|
381
|
+
}, {
|
382
|
+
token : "string",
|
383
|
+
regex : ".+"
|
384
|
+
} ],
|
385
|
+
|
386
|
+
"githubblock" : [ {
|
387
|
+
token : "support.function",
|
388
|
+
regex : "^```",
|
389
|
+
next : "start"
|
390
|
+
}, {
|
391
|
+
token : "support.function",
|
392
|
+
regex : ".+"
|
393
|
+
} ]
|
394
|
+
};
|
395
|
+
|
396
|
+
this.embedRules(JavaScriptHighlightRules, "js-", [{
|
397
|
+
token : "support.function",
|
398
|
+
regex : "^```",
|
399
|
+
next : "start"
|
400
|
+
}]);
|
401
|
+
|
402
|
+
this.embedRules(HtmlHighlightRules, "html-", [{
|
403
|
+
token : "support.function",
|
404
|
+
regex : "^```",
|
405
|
+
next : "start"
|
406
|
+
}]);
|
407
|
+
|
408
|
+
this.embedRules(CssHighlightRules, "css-", [{
|
409
|
+
token : "support.function",
|
410
|
+
regex : "^```",
|
411
|
+
next : "start"
|
412
|
+
}]);
|
413
|
+
|
414
|
+
this.embedRules(XmlHighlightRules, "xml-", [{
|
415
|
+
token : "support.function",
|
416
|
+
regex : "^```",
|
417
|
+
next : "start"
|
418
|
+
}]);
|
419
|
+
|
420
|
+
var html = new HtmlHighlightRules().getRules();
|
421
|
+
for (var i in html) {
|
422
|
+
if (this.$rules[i])
|
423
|
+
this.$rules[i] = this.$rules[i].concat(html[i]);
|
424
|
+
else
|
425
|
+
this.$rules[i] = html[i];
|
426
|
+
}
|
427
|
+
|
428
|
+
};
|
429
|
+
oop.inherits(MarkdownHighlightRules, TextHighlightRules);
|
430
|
+
|
431
|
+
exports.MarkdownHighlightRules = MarkdownHighlightRules;
|
432
|
+
});
|
433
|
+
|
434
|
+
define('ace/mode/javascript_highlight_rules', ['require', 'exports', 'module' , 'ace/lib/oop', 'ace/mode/doc_comment_highlight_rules', 'ace/mode/text_highlight_rules'], function(require, exports, module) {
|
435
|
+
|
436
|
+
|
437
|
+
var oop = require("../lib/oop");
|
438
|
+
var DocCommentHighlightRules = require("./doc_comment_highlight_rules").DocCommentHighlightRules;
|
439
|
+
var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
|
440
|
+
|
441
|
+
var JavaScriptHighlightRules = function() {
|
442
|
+
var keywordMapper = this.createKeywordMapper({
|
443
|
+
"variable.language":
|
444
|
+
"Array|Boolean|Date|Function|Iterator|Number|Object|RegExp|String|Proxy|" + // Constructors
|
445
|
+
"Namespace|QName|XML|XMLList|" + // E4X
|
446
|
+
"ArrayBuffer|Float32Array|Float64Array|Int16Array|Int32Array|Int8Array|" +
|
447
|
+
"Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray|" +
|
448
|
+
"Error|EvalError|InternalError|RangeError|ReferenceError|StopIteration|" + // Errors
|
449
|
+
"SyntaxError|TypeError|URIError|" +
|
450
|
+
"decodeURI|decodeURIComponent|encodeURI|encodeURIComponent|eval|isFinite|" + // Non-constructor functions
|
451
|
+
"isNaN|parseFloat|parseInt|" +
|
452
|
+
"JSON|Math|" + // Other
|
453
|
+
"this|arguments|prototype|window|document" , // Pseudo
|
454
|
+
"keyword":
|
455
|
+
"const|yield|import|get|set|" +
|
456
|
+
"break|case|catch|continue|default|delete|do|else|finally|for|function|" +
|
457
|
+
"if|in|instanceof|new|return|switch|throw|try|typeof|let|var|while|with|debugger|" +
|
458
|
+
"__parent__|__count__|escape|unescape|with|__proto__|" +
|
459
|
+
"class|enum|extends|super|export|implements|private|public|interface|package|protected|static",
|
460
|
+
"storage.type":
|
461
|
+
"const|let|var|function",
|
462
|
+
"constant.language":
|
463
|
+
"null|Infinity|NaN|undefined",
|
464
|
+
"support.function":
|
465
|
+
"alert"
|
466
|
+
}, "identifier");
|
467
|
+
var kwBeforeRe = "case|do|else|finally|in|instanceof|return|throw|try|typeof|yield|void";
|
468
|
+
var identifierRe = "[a-zA-Z\\$_\u00a1-\uffff][a-zA-Z\\d\\$_\u00a1-\uffff]*\\b";
|
469
|
+
|
470
|
+
var escapedRe = "\\\\(?:x[0-9a-fA-F]{2}|" + // hex
|
471
|
+
"u[0-9a-fA-F]{4}|" + // unicode
|
472
|
+
"[0-2][0-7]{0,2}|" + // oct
|
473
|
+
"3[0-6][0-7]?|" + // oct
|
474
|
+
"37[0-7]?|" + // oct
|
475
|
+
"[4-7][0-7]?|" + //oct
|
476
|
+
".)";
|
477
|
+
|
478
|
+
this.$rules = {
|
479
|
+
"start" : [
|
480
|
+
{
|
481
|
+
token : "comment",
|
482
|
+
regex : /\/\/.*$/
|
483
|
+
},
|
484
|
+
DocCommentHighlightRules.getStartRule("doc-start"),
|
485
|
+
{
|
486
|
+
token : "comment", // multi line comment
|
487
|
+
regex : /\/\*/,
|
488
|
+
next : "comment"
|
489
|
+
}, {
|
490
|
+
token : "string",
|
491
|
+
regex : "'(?=.)",
|
492
|
+
next : "qstring"
|
493
|
+
}, {
|
494
|
+
token : "string",
|
495
|
+
regex : '"(?=.)',
|
496
|
+
next : "qqstring"
|
497
|
+
}, {
|
498
|
+
token : "constant.numeric", // hex
|
499
|
+
regex : /0[xX][0-9a-fA-F]+\b/
|
500
|
+
}, {
|
501
|
+
token : "constant.numeric", // float
|
502
|
+
regex : /[+-]?\d+(?:(?:\.\d*)?(?:[eE][+-]?\d+)?)?\b/
|
503
|
+
}, {
|
504
|
+
token : [
|
505
|
+
"storage.type", "punctuation.operator", "support.function",
|
506
|
+
"punctuation.operator", "entity.name.function", "text","keyword.operator"
|
507
|
+
],
|
508
|
+
regex : "(" + identifierRe + ")(\\.)(prototype)(\\.)(" + identifierRe +")(\\s*)(=)",
|
509
|
+
next: "function_arguments"
|
510
|
+
}, {
|
511
|
+
token : [
|
512
|
+
"storage.type", "punctuation.operator", "entity.name.function", "text",
|
513
|
+
"keyword.operator", "text", "storage.type", "text", "paren.lparen"
|
514
|
+
],
|
515
|
+
regex : "(" + identifierRe + ")(\\.)(" + identifierRe +")(\\s*)(=)(\\s*)(function)(\\s*)(\\()",
|
516
|
+
next: "function_arguments"
|
517
|
+
}, {
|
518
|
+
token : [
|
519
|
+
"entity.name.function", "text", "keyword.operator", "text", "storage.type",
|
520
|
+
"text", "paren.lparen"
|
521
|
+
],
|
522
|
+
regex : "(" + identifierRe +")(\\s*)(=)(\\s*)(function)(\\s*)(\\()",
|
523
|
+
next: "function_arguments"
|
524
|
+
}, {
|
525
|
+
token : [
|
526
|
+
"storage.type", "punctuation.operator", "entity.name.function", "text",
|
527
|
+
"keyword.operator", "text",
|
528
|
+
"storage.type", "text", "entity.name.function", "text", "paren.lparen"
|
529
|
+
],
|
530
|
+
regex : "(" + identifierRe + ")(\\.)(" + identifierRe +")(\\s*)(=)(\\s*)(function)(\\s+)(\\w+)(\\s*)(\\()",
|
531
|
+
next: "function_arguments"
|
532
|
+
}, {
|
533
|
+
token : [
|
534
|
+
"storage.type", "text", "entity.name.function", "text", "paren.lparen"
|
535
|
+
],
|
536
|
+
regex : "(function)(\\s+)(" + identifierRe + ")(\\s*)(\\()",
|
537
|
+
next: "function_arguments"
|
538
|
+
}, {
|
539
|
+
token : [
|
540
|
+
"entity.name.function", "text", "punctuation.operator",
|
541
|
+
"text", "storage.type", "text", "paren.lparen"
|
542
|
+
],
|
543
|
+
regex : "(" + identifierRe + ")(\\s*)(:)(\\s*)(function)(\\s*)(\\()",
|
544
|
+
next: "function_arguments"
|
545
|
+
}, {
|
546
|
+
token : [
|
547
|
+
"text", "text", "storage.type", "text", "paren.lparen"
|
548
|
+
],
|
549
|
+
regex : "(:)(\\s*)(function)(\\s*)(\\()",
|
550
|
+
next: "function_arguments"
|
551
|
+
}, {
|
552
|
+
token : "constant.language.boolean",
|
553
|
+
regex : /(?:true|false)\b/
|
554
|
+
}, {
|
555
|
+
token : "keyword",
|
556
|
+
regex : "(?:" + kwBeforeRe + ")\\b",
|
557
|
+
next : "regex_allowed"
|
558
|
+
}, {
|
559
|
+
token : ["punctuation.operator", "support.function"],
|
560
|
+
regex : /(\.)(s(?:h(?:ift|ow(?:Mod(?:elessDialog|alDialog)|Help))|croll(?:X|By(?:Pages|Lines)?|Y|To)?|t(?:opzzzz|rike)|i(?:n|zeToContent|debar|gnText)|ort|u(?:p|b(?:str(?:ing)?)?)|pli(?:ce|t)|e(?:nd|t(?:Re(?:sizable|questHeader)|M(?:i(?:nutes|lliseconds)|onth)|Seconds|Ho(?:tKeys|urs)|Year|Cursor|Time(?:out)?|Interval|ZOptions|Date|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Date|FullYear)|FullYear|Active)|arch)|qrt|lice|avePreferences|mall)|h(?:ome|andleEvent)|navigate|c(?:har(?:CodeAt|At)|o(?:s|n(?:cat|textual|firm)|mpile)|eil|lear(?:Timeout|Interval)?|a(?:ptureEvents|ll)|reate(?:StyleSheet|Popup|EventObject))|t(?:o(?:GMTString|S(?:tring|ource)|U(?:TCString|pperCase)|Lo(?:caleString|werCase))|est|a(?:n|int(?:Enabled)?))|i(?:s(?:NaN|Finite)|ndexOf|talics)|d(?:isableExternalCapture|ump|etachEvent)|u(?:n(?:shift|taint|escape|watch)|pdateCommands)|j(?:oin|avaEnabled)|p(?:o(?:p|w)|ush|lugins.refresh|a(?:ddings|rse(?:Int|Float)?)|r(?:int|ompt|eference))|e(?:scape|nableExternalCapture|val|lementFromPoint|x(?:p|ec(?:Script|Command)?))|valueOf|UTC|queryCommand(?:State|Indeterm|Enabled|Value)|f(?:i(?:nd|le(?:ModifiedDate|Size|CreatedDate|UpdatedDate)|xed)|o(?:nt(?:size|color)|rward)|loor|romCharCode)|watch|l(?:ink|o(?:ad|g)|astIndexOf)|a(?:sin|nchor|cos|t(?:tachEvent|ob|an(?:2)?)|pply|lert|b(?:s|ort))|r(?:ou(?:nd|teEvents)|e(?:size(?:By|To)|calc|turnValue|place|verse|l(?:oad|ease(?:Capture|Events)))|andom)|g(?:o|et(?:ResponseHeader|M(?:i(?:nutes|lliseconds)|onth)|Se(?:conds|lection)|Hours|Year|Time(?:zoneOffset)?|Da(?:y|te)|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Da(?:y|te)|FullYear)|FullYear|A(?:ttention|llResponseHeaders)))|m(?:in|ove(?:B(?:y|elow)|To(?:Absolute)?|Above)|ergeAttributes|a(?:tch|rgins|x))|b(?:toa|ig|o(?:ld|rderWidths)|link|ack))\b(?=\()/
|
561
|
+
}, {
|
562
|
+
token : ["punctuation.operator", "support.function.dom"],
|
563
|
+
regex : /(\.)(s(?:ub(?:stringData|mit)|plitText|e(?:t(?:NamedItem|Attribute(?:Node)?)|lect))|has(?:ChildNodes|Feature)|namedItem|c(?:l(?:ick|o(?:se|neNode))|reate(?:C(?:omment|DATASection|aption)|T(?:Head|extNode|Foot)|DocumentFragment|ProcessingInstruction|E(?:ntityReference|lement)|Attribute))|tabIndex|i(?:nsert(?:Row|Before|Cell|Data)|tem)|open|delete(?:Row|C(?:ell|aption)|T(?:Head|Foot)|Data)|focus|write(?:ln)?|a(?:dd|ppend(?:Child|Data))|re(?:set|place(?:Child|Data)|move(?:NamedItem|Child|Attribute(?:Node)?)?)|get(?:NamedItem|Element(?:sBy(?:Name|TagName)|ById)|Attribute(?:Node)?)|blur)\b(?=\()/
|
564
|
+
}, {
|
565
|
+
token : ["punctuation.operator", "support.constant"],
|
566
|
+
regex : /(\.)(s(?:ystemLanguage|cr(?:ipts|ollbars|een(?:X|Y|Top|Left))|t(?:yle(?:Sheets)?|atus(?:Text|bar)?)|ibling(?:Below|Above)|ource|uffixes|e(?:curity(?:Policy)?|l(?:ection|f)))|h(?:istory|ost(?:name)?|as(?:h|Focus))|y|X(?:MLDocument|SLDocument)|n(?:ext|ame(?:space(?:s|URI)|Prop))|M(?:IN_VALUE|AX_VALUE)|c(?:haracterSet|o(?:n(?:structor|trollers)|okieEnabled|lorDepth|mp(?:onents|lete))|urrent|puClass|l(?:i(?:p(?:boardData)?|entInformation)|osed|asses)|alle(?:e|r)|rypto)|t(?:o(?:olbar|p)|ext(?:Transform|Indent|Decoration|Align)|ags)|SQRT(?:1_2|2)|i(?:n(?:ner(?:Height|Width)|put)|ds|gnoreCase)|zIndex|o(?:scpu|n(?:readystatechange|Line)|uter(?:Height|Width)|p(?:sProfile|ener)|ffscreenBuffering)|NEGATIVE_INFINITY|d(?:i(?:splay|alog(?:Height|Top|Width|Left|Arguments)|rectories)|e(?:scription|fault(?:Status|Ch(?:ecked|arset)|View)))|u(?:ser(?:Profile|Language|Agent)|n(?:iqueID|defined)|pdateInterval)|_content|p(?:ixelDepth|ort|ersonalbar|kcs11|l(?:ugins|atform)|a(?:thname|dding(?:Right|Bottom|Top|Left)|rent(?:Window|Layer)?|ge(?:X(?:Offset)?|Y(?:Offset)?))|r(?:o(?:to(?:col|type)|duct(?:Sub)?|mpter)|e(?:vious|fix)))|e(?:n(?:coding|abledPlugin)|x(?:ternal|pando)|mbeds)|v(?:isibility|endor(?:Sub)?|Linkcolor)|URLUnencoded|P(?:I|OSITIVE_INFINITY)|f(?:ilename|o(?:nt(?:Size|Family|Weight)|rmName)|rame(?:s|Element)|gColor)|E|whiteSpace|l(?:i(?:stStyleType|n(?:eHeight|kColor))|o(?:ca(?:tion(?:bar)?|lName)|wsrc)|e(?:ngth|ft(?:Context)?)|a(?:st(?:M(?:odified|atch)|Index|Paren)|yer(?:s|X)|nguage))|a(?:pp(?:MinorVersion|Name|Co(?:deName|re)|Version)|vail(?:Height|Top|Width|Left)|ll|r(?:ity|guments)|Linkcolor|bove)|r(?:ight(?:Context)?|e(?:sponse(?:XML|Text)|adyState))|global|x|m(?:imeTypes|ultiline|enubar|argin(?:Right|Bottom|Top|Left))|L(?:N(?:10|2)|OG(?:10E|2E))|b(?:o(?:ttom|rder(?:Width|RightWidth|BottomWidth|Style|Color|TopWidth|LeftWidth))|ufferDepth|elow|ackground(?:Color|Image)))\b/
|
567
|
+
}, {
|
568
|
+
token : ["storage.type", "punctuation.operator", "support.function.firebug"],
|
569
|
+
regex : /(console)(\.)(warn|info|log|error|time|timeEnd|assert)\b/
|
570
|
+
}, {
|
571
|
+
token : keywordMapper,
|
572
|
+
regex : identifierRe
|
573
|
+
}, {
|
574
|
+
token : "keyword.operator",
|
575
|
+
regex : /--|\+\+|[!$%&*+\-~]|===|==|=|!=|!==|<=|>=|<<=|>>=|>>>=|<>|<|>|!|&&|\|\||\?\:|\*=|%=|\+=|\-=|&=|\^=/,
|
576
|
+
next : "regex_allowed"
|
577
|
+
}, {
|
578
|
+
token : "punctuation.operator",
|
579
|
+
regex : /\?|\:|\,|\;|\./,
|
580
|
+
next : "regex_allowed"
|
581
|
+
}, {
|
582
|
+
token : "paren.lparen",
|
583
|
+
regex : /[\[({]/,
|
584
|
+
next : "regex_allowed"
|
585
|
+
}, {
|
586
|
+
token : "paren.rparen",
|
587
|
+
regex : /[\])}]/
|
588
|
+
}, {
|
589
|
+
token : "keyword.operator",
|
590
|
+
regex : /\/=?/,
|
591
|
+
next : "regex_allowed"
|
592
|
+
}, {
|
593
|
+
token: "comment",
|
594
|
+
regex: /^#!.*$/
|
595
|
+
}, {
|
596
|
+
token : "text",
|
597
|
+
regex : /\s+/
|
598
|
+
}
|
599
|
+
],
|
600
|
+
"regex_allowed": [
|
601
|
+
DocCommentHighlightRules.getStartRule("doc-start"),
|
602
|
+
{
|
603
|
+
token : "comment", // multi line comment
|
604
|
+
regex : "\\/\\*",
|
605
|
+
next : "comment_regex_allowed"
|
606
|
+
}, {
|
607
|
+
token : "comment",
|
608
|
+
regex : "\\/\\/.*$"
|
609
|
+
}, {
|
610
|
+
token: "string.regexp",
|
611
|
+
regex: "\\/",
|
612
|
+
next: "regex",
|
613
|
+
}, {
|
614
|
+
token : "text",
|
615
|
+
regex : "\\s+"
|
616
|
+
}, {
|
617
|
+
token: "empty",
|
618
|
+
regex: "",
|
619
|
+
next: "start"
|
620
|
+
}
|
621
|
+
],
|
622
|
+
"regex": [
|
623
|
+
{
|
624
|
+
token: "regexp.keyword.operator",
|
625
|
+
regex: "\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"
|
626
|
+
}, {
|
627
|
+
token: "string.regexp",
|
628
|
+
regex: "/\\w*",
|
629
|
+
next: "start",
|
630
|
+
}, {
|
631
|
+
token : "invalid",
|
632
|
+
regex: /\{\d+,?(?:\d+)?}[+*]|[+*$^?][+*]|[$^][?]|\?{3,}/
|
633
|
+
}, {
|
634
|
+
token : "constant.language.escape",
|
635
|
+
regex: /\(\?[:=!]|\)|{\d+,?(?:\d+)?}|{,\d+}|[+*]\?|[(|)$^+*?]/
|
636
|
+
}, {
|
637
|
+
token: "string.regexp",
|
638
|
+
regex: /{|[^{\[\/\\(|)$^+*?]+/,
|
639
|
+
}, {
|
640
|
+
token: "constant.language.escape",
|
641
|
+
regex: /\[\^?/,
|
642
|
+
next: "regex_character_class",
|
643
|
+
}, {
|
644
|
+
token: "empty",
|
645
|
+
regex: "",
|
646
|
+
next: "start"
|
647
|
+
}
|
648
|
+
],
|
649
|
+
"regex_character_class": [
|
650
|
+
{
|
651
|
+
token: "regexp.keyword.operator",
|
652
|
+
regex: "\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"
|
653
|
+
}, {
|
654
|
+
token: "constant.language.escape",
|
655
|
+
regex: "]",
|
656
|
+
next: "regex",
|
657
|
+
}, {
|
658
|
+
token: "constant.language.escape",
|
659
|
+
regex: "-"
|
660
|
+
}, {
|
661
|
+
token: "string.regexp.charachterclass",
|
662
|
+
regex: /[^\]\-\\]+/,
|
663
|
+
}, {
|
664
|
+
token: "empty",
|
665
|
+
regex: "",
|
666
|
+
next: "start"
|
667
|
+
}
|
668
|
+
],
|
669
|
+
"function_arguments": [
|
670
|
+
{
|
671
|
+
token: "variable.parameter",
|
672
|
+
regex: identifierRe
|
673
|
+
}, {
|
674
|
+
token: "punctuation.operator",
|
675
|
+
regex: "[, ]+",
|
676
|
+
}, {
|
677
|
+
token: "punctuation.operator",
|
678
|
+
regex: "$",
|
679
|
+
}, {
|
680
|
+
token: "empty",
|
681
|
+
regex: "",
|
682
|
+
next: "start"
|
683
|
+
}
|
684
|
+
],
|
685
|
+
"comment_regex_allowed" : [
|
686
|
+
{
|
687
|
+
token : "comment", // closing comment
|
688
|
+
regex : ".*?\\*\\/",
|
689
|
+
next : "regex_allowed"
|
690
|
+
}, {
|
691
|
+
token : "comment", // comment spanning whole line
|
692
|
+
regex : ".+"
|
693
|
+
}
|
694
|
+
],
|
695
|
+
"comment" : [
|
696
|
+
{
|
697
|
+
token : "comment", // closing comment
|
698
|
+
regex : ".*?\\*\\/",
|
699
|
+
next : "start"
|
700
|
+
}, {
|
701
|
+
token : "comment", // comment spanning whole line
|
702
|
+
regex : ".+"
|
703
|
+
}
|
704
|
+
],
|
705
|
+
"qqstring" : [
|
706
|
+
{
|
707
|
+
token : "constant.language.escape",
|
708
|
+
regex : escapedRe
|
709
|
+
}, {
|
710
|
+
token : "string",
|
711
|
+
regex : "\\\\$",
|
712
|
+
next : "qqstring",
|
713
|
+
}, {
|
714
|
+
token : "string",
|
715
|
+
regex : '"|$',
|
716
|
+
next : "start",
|
717
|
+
}, {
|
718
|
+
token : "string",
|
719
|
+
regex : '.|\\w+|\\s+',
|
720
|
+
}
|
721
|
+
],
|
722
|
+
"qstring" : [
|
723
|
+
{
|
724
|
+
token : "constant.language.escape",
|
725
|
+
regex : escapedRe
|
726
|
+
}, {
|
727
|
+
token : "string",
|
728
|
+
regex : "\\\\$",
|
729
|
+
next : "qstring",
|
730
|
+
}, {
|
731
|
+
token : "string",
|
732
|
+
regex : "'|$",
|
733
|
+
next : "start",
|
734
|
+
}, {
|
735
|
+
token : "string",
|
736
|
+
regex : '.|\\w+|\\s+',
|
737
|
+
}
|
738
|
+
]
|
739
|
+
};
|
740
|
+
|
741
|
+
this.embedRules(DocCommentHighlightRules, "doc-",
|
742
|
+
[ DocCommentHighlightRules.getEndRule("start") ]);
|
743
|
+
};
|
744
|
+
|
745
|
+
oop.inherits(JavaScriptHighlightRules, TextHighlightRules);
|
746
|
+
|
747
|
+
exports.JavaScriptHighlightRules = JavaScriptHighlightRules;
|
748
|
+
});
|
749
|
+
|
750
|
+
define('ace/mode/doc_comment_highlight_rules', ['require', 'exports', 'module' , 'ace/lib/oop', 'ace/mode/text_highlight_rules'], function(require, exports, module) {
|
751
|
+
|
752
|
+
|
753
|
+
var oop = require("../lib/oop");
|
754
|
+
var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
|
755
|
+
|
756
|
+
var DocCommentHighlightRules = function() {
|
757
|
+
|
758
|
+
this.$rules = {
|
759
|
+
"start" : [ {
|
760
|
+
token : "comment.doc.tag",
|
761
|
+
regex : "@[\\w\\d_]+" // TODO: fix email addresses
|
762
|
+
}, {
|
763
|
+
token : "comment.doc",
|
764
|
+
regex : "\\s+"
|
765
|
+
}, {
|
766
|
+
token : "comment.doc",
|
767
|
+
regex : "TODO"
|
768
|
+
}, {
|
769
|
+
token : "comment.doc",
|
770
|
+
regex : "[^@\\*]+"
|
771
|
+
}, {
|
772
|
+
token : "comment.doc",
|
773
|
+
regex : "."
|
774
|
+
}]
|
775
|
+
};
|
776
|
+
};
|
777
|
+
|
778
|
+
oop.inherits(DocCommentHighlightRules, TextHighlightRules);
|
779
|
+
|
780
|
+
DocCommentHighlightRules.getStartRule = function(start) {
|
781
|
+
return {
|
782
|
+
token : "comment.doc", // doc comment
|
783
|
+
regex : "\\/\\*(?=\\*)",
|
784
|
+
next : start
|
785
|
+
};
|
786
|
+
};
|
787
|
+
|
788
|
+
DocCommentHighlightRules.getEndRule = function (start) {
|
789
|
+
return {
|
790
|
+
token : "comment.doc", // closing comment
|
791
|
+
regex : "\\*\\/",
|
792
|
+
next : start
|
793
|
+
};
|
794
|
+
};
|
795
|
+
|
796
|
+
|
797
|
+
exports.DocCommentHighlightRules = DocCommentHighlightRules;
|
798
|
+
|
799
|
+
});
|
800
|
+
|
801
|
+
define('ace/mode/xml_highlight_rules', ['require', 'exports', 'module' , 'ace/lib/oop', 'ace/mode/xml_util', 'ace/mode/text_highlight_rules'], function(require, exports, module) {
|
802
|
+
|
803
|
+
|
804
|
+
var oop = require("../lib/oop");
|
805
|
+
var xmlUtil = require("./xml_util");
|
806
|
+
var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
|
807
|
+
|
808
|
+
var XmlHighlightRules = function() {
|
809
|
+
this.$rules = {
|
810
|
+
start : [
|
811
|
+
{token : "text", regex : "<\\!\\[CDATA\\[", next : "cdata"},
|
812
|
+
{token : "xml-pe", regex : "<\\?.*?\\?>"},
|
813
|
+
{token : "comment", regex : "<\\!--", next : "comment"},
|
814
|
+
{token : "xml-pe", regex : "<\\!.*?>"},
|
815
|
+
{token : "meta.tag", regex : "<\\/?", next : "tag"},
|
816
|
+
{token : "text", regex : "\\s+"},
|
817
|
+
{
|
818
|
+
token : "constant.character.entity",
|
819
|
+
regex : "(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"
|
820
|
+
},
|
821
|
+
{token : "text", regex : "[^<]+"}
|
822
|
+
],
|
823
|
+
|
824
|
+
cdata : [
|
825
|
+
{token : "text", regex : "\\]\\]>", next : "start"},
|
826
|
+
{token : "text", regex : "\\s+"},
|
827
|
+
{token : "text", regex : "(?:[^\\]]|\\](?!\\]>))+"}
|
828
|
+
],
|
829
|
+
|
830
|
+
comment : [
|
831
|
+
{token : "comment", regex : ".*?-->", next : "start"},
|
832
|
+
{token : "comment", regex : ".+"}
|
833
|
+
]
|
834
|
+
};
|
835
|
+
|
836
|
+
xmlUtil.tag(this.$rules, "tag", "start");
|
837
|
+
};
|
838
|
+
|
839
|
+
oop.inherits(XmlHighlightRules, TextHighlightRules);
|
840
|
+
|
841
|
+
exports.XmlHighlightRules = XmlHighlightRules;
|
842
|
+
});
|
843
|
+
|
844
|
+
define('ace/mode/xml_util', ['require', 'exports', 'module' ], function(require, exports, module) {
|
845
|
+
|
846
|
+
|
847
|
+
function string(state) {
|
848
|
+
return [{
|
849
|
+
token : "string",
|
850
|
+
regex : '"',
|
851
|
+
next : state + "_qqstring"
|
852
|
+
}, {
|
853
|
+
token : "string",
|
854
|
+
regex : "'",
|
855
|
+
next : state + "_qstring"
|
856
|
+
}];
|
857
|
+
}
|
858
|
+
|
859
|
+
function multiLineString(quote, state) {
|
860
|
+
return [
|
861
|
+
{token : "string", regex : quote, next : state},
|
862
|
+
{
|
863
|
+
token : "constant.language.escape",
|
864
|
+
regex : "(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"
|
865
|
+
},
|
866
|
+
{token : "string", regex : '\\w+|.|\\s+'}
|
867
|
+
];
|
868
|
+
}
|
869
|
+
|
870
|
+
exports.tag = function(states, name, nextState, tagMap) {
|
871
|
+
states[name] = [{
|
872
|
+
token : "text",
|
873
|
+
regex : "\\s+"
|
874
|
+
}, {
|
875
|
+
|
876
|
+
token : !tagMap ? "meta.tag.tag-name" : function(value) {
|
877
|
+
if (tagMap[value])
|
878
|
+
return "meta.tag.tag-name." + tagMap[value];
|
879
|
+
else
|
880
|
+
return "meta.tag.tag-name";
|
881
|
+
},
|
882
|
+
regex : "[-_a-zA-Z0-9:]+",
|
883
|
+
next : name + "_embed_attribute_list"
|
884
|
+
}, {
|
885
|
+
token: "empty",
|
886
|
+
regex: "",
|
887
|
+
next : name + "_embed_attribute_list"
|
888
|
+
}];
|
889
|
+
|
890
|
+
states[name + "_qstring"] = multiLineString("'", name + "_embed_attribute_list");
|
891
|
+
states[name + "_qqstring"] = multiLineString("\"", name + "_embed_attribute_list");
|
892
|
+
|
893
|
+
states[name + "_embed_attribute_list"] = [{
|
894
|
+
token : "meta.tag.r",
|
895
|
+
regex : "/?>",
|
896
|
+
next : nextState
|
897
|
+
}, {
|
898
|
+
token : "keyword.operator",
|
899
|
+
regex : "="
|
900
|
+
}, {
|
901
|
+
token : "entity.other.attribute-name",
|
902
|
+
regex : "[-_a-zA-Z0-9:]+"
|
903
|
+
}, {
|
904
|
+
token : "constant.numeric", // float
|
905
|
+
regex : "[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"
|
906
|
+
}, {
|
907
|
+
token : "text",
|
908
|
+
regex : "\\s+"
|
909
|
+
}].concat(string(name));
|
910
|
+
};
|
911
|
+
|
912
|
+
});
|
913
|
+
|
914
|
+
define('ace/mode/html_highlight_rules', ['require', 'exports', 'module' , 'ace/lib/oop', 'ace/lib/lang', 'ace/mode/css_highlight_rules', 'ace/mode/javascript_highlight_rules', 'ace/mode/xml_util', 'ace/mode/text_highlight_rules'], function(require, exports, module) {
|
915
|
+
|
916
|
+
|
917
|
+
var oop = require("../lib/oop");
|
918
|
+
var lang = require("../lib/lang");
|
919
|
+
var CssHighlightRules = require("./css_highlight_rules").CssHighlightRules;
|
920
|
+
var JavaScriptHighlightRules = require("./javascript_highlight_rules").JavaScriptHighlightRules;
|
921
|
+
var xmlUtil = require("./xml_util");
|
922
|
+
var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
|
923
|
+
|
924
|
+
var tagMap = lang.createMap({
|
925
|
+
a : 'anchor',
|
926
|
+
button : 'form',
|
927
|
+
form : 'form',
|
928
|
+
img : 'image',
|
929
|
+
input : 'form',
|
930
|
+
label : 'form',
|
931
|
+
script : 'script',
|
932
|
+
select : 'form',
|
933
|
+
textarea : 'form',
|
934
|
+
style : 'style',
|
935
|
+
table : 'table',
|
936
|
+
tbody : 'table',
|
937
|
+
td : 'table',
|
938
|
+
tfoot : 'table',
|
939
|
+
th : 'table',
|
940
|
+
tr : 'table'
|
941
|
+
});
|
942
|
+
|
943
|
+
var HtmlHighlightRules = function() {
|
944
|
+
this.$rules = {
|
945
|
+
start : [{
|
946
|
+
token : "text",
|
947
|
+
regex : "<\\!\\[CDATA\\[",
|
948
|
+
next : "cdata"
|
949
|
+
}, {
|
950
|
+
token : "xml-pe",
|
951
|
+
regex : "<\\?.*?\\?>"
|
952
|
+
}, {
|
953
|
+
token : "comment",
|
954
|
+
regex : "<\\!--",
|
955
|
+
next : "comment"
|
956
|
+
}, {
|
957
|
+
token : "xml-pe",
|
958
|
+
regex : "<\\!.*?>"
|
959
|
+
}, {
|
960
|
+
token : "meta.tag",
|
961
|
+
regex : "<(?=script\\b)",
|
962
|
+
next : "script"
|
963
|
+
}, {
|
964
|
+
token : "meta.tag",
|
965
|
+
regex : "<(?=style\\b)",
|
966
|
+
next : "style"
|
967
|
+
}, {
|
968
|
+
token : "meta.tag", // opening tag
|
969
|
+
regex : "<\\/?",
|
970
|
+
next : "tag"
|
971
|
+
}, {
|
972
|
+
token : "text",
|
973
|
+
regex : "\\s+"
|
974
|
+
}, {
|
975
|
+
token : "constant.character.entity",
|
976
|
+
regex : "(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"
|
977
|
+
}, {
|
978
|
+
token : "text",
|
979
|
+
regex : "[^<]+"
|
980
|
+
} ],
|
981
|
+
|
982
|
+
cdata : [ {
|
983
|
+
token : "text",
|
984
|
+
regex : "\\]\\]>",
|
985
|
+
next : "start"
|
986
|
+
}, {
|
987
|
+
token : "text",
|
988
|
+
regex : "\\s+"
|
989
|
+
}, {
|
990
|
+
token : "text",
|
991
|
+
regex : ".+"
|
992
|
+
} ],
|
993
|
+
|
994
|
+
comment : [ {
|
995
|
+
token : "comment",
|
996
|
+
regex : ".*?-->",
|
997
|
+
next : "start"
|
998
|
+
}, {
|
999
|
+
token : "comment",
|
1000
|
+
regex : ".+"
|
1001
|
+
} ]
|
1002
|
+
};
|
1003
|
+
|
1004
|
+
xmlUtil.tag(this.$rules, "tag", "start", tagMap);
|
1005
|
+
xmlUtil.tag(this.$rules, "style", "css-start", tagMap);
|
1006
|
+
xmlUtil.tag(this.$rules, "script", "js-start", tagMap);
|
1007
|
+
|
1008
|
+
this.embedRules(JavaScriptHighlightRules, "js-", [{
|
1009
|
+
token: "comment",
|
1010
|
+
regex: "\\/\\/.*(?=<\\/script>)",
|
1011
|
+
next: "tag"
|
1012
|
+
}, {
|
1013
|
+
token: "meta.tag",
|
1014
|
+
regex: "<\\/(?=script)",
|
1015
|
+
next: "tag"
|
1016
|
+
}]);
|
1017
|
+
|
1018
|
+
this.embedRules(CssHighlightRules, "css-", [{
|
1019
|
+
token: "meta.tag",
|
1020
|
+
regex: "<\\/(?=style)",
|
1021
|
+
next: "tag"
|
1022
|
+
}]);
|
1023
|
+
};
|
1024
|
+
|
1025
|
+
oop.inherits(HtmlHighlightRules, TextHighlightRules);
|
1026
|
+
|
1027
|
+
exports.HtmlHighlightRules = HtmlHighlightRules;
|
1028
|
+
});
|
1029
|
+
|
1030
|
+
define('ace/mode/css_highlight_rules', ['require', 'exports', 'module' , 'ace/lib/oop', 'ace/lib/lang', 'ace/mode/text_highlight_rules'], function(require, exports, module) {
|
1031
|
+
|
1032
|
+
|
1033
|
+
var oop = require("../lib/oop");
|
1034
|
+
var lang = require("../lib/lang");
|
1035
|
+
var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
|
1036
|
+
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";
|
1037
|
+
var supportFunction = exports.supportFunction = "rgb|rgba|url|attr|counter|counters";
|
1038
|
+
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";
|
1039
|
+
var supportConstantColor = exports.supportConstantColor = "aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow";
|
1040
|
+
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";
|
1041
|
+
|
1042
|
+
var numRe = exports.numRe = "\\-?(?:(?:[0-9]+)|(?:[0-9]*\\.[0-9]+))";
|
1043
|
+
var pseudoElements = exports.pseudoElements = "(\\:+)\\b(after|before|first-letter|first-line|moz-selection|selection)\\b";
|
1044
|
+
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";
|
1045
|
+
|
1046
|
+
var CssHighlightRules = function() {
|
1047
|
+
|
1048
|
+
var keywordMapper = this.createKeywordMapper({
|
1049
|
+
"support.function": supportFunction,
|
1050
|
+
"support.constant": supportConstant,
|
1051
|
+
"support.type": supportType,
|
1052
|
+
"support.constant.color": supportConstantColor,
|
1053
|
+
"support.constant.fonts": supportConstantFonts
|
1054
|
+
}, "text", true);
|
1055
|
+
|
1056
|
+
var base_ruleset = [
|
1057
|
+
{
|
1058
|
+
token : "comment", // multi line comment
|
1059
|
+
regex : "\\/\\*",
|
1060
|
+
next : "ruleset_comment"
|
1061
|
+
}, {
|
1062
|
+
token : "string", // single line
|
1063
|
+
regex : '["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]'
|
1064
|
+
}, {
|
1065
|
+
token : "string", // single line
|
1066
|
+
regex : "['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"
|
1067
|
+
}, {
|
1068
|
+
token : ["constant.numeric", "keyword"],
|
1069
|
+
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|%)"
|
1070
|
+
}, {
|
1071
|
+
token : "constant.numeric",
|
1072
|
+
regex : numRe
|
1073
|
+
}, {
|
1074
|
+
token : "constant.numeric", // hex6 color
|
1075
|
+
regex : "#[a-f0-9]{6}"
|
1076
|
+
}, {
|
1077
|
+
token : "constant.numeric", // hex3 color
|
1078
|
+
regex : "#[a-f0-9]{3}"
|
1079
|
+
}, {
|
1080
|
+
token : ["punctuation", "entity.other.attribute-name.pseudo-element.css"],
|
1081
|
+
regex : pseudoElements
|
1082
|
+
}, {
|
1083
|
+
token : ["punctuation", "entity.other.attribute-name.pseudo-class.css"],
|
1084
|
+
regex : pseudoClasses
|
1085
|
+
}, {
|
1086
|
+
token : keywordMapper,
|
1087
|
+
regex : "\\-?[a-zA-Z_][a-zA-Z0-9_\\-]*"
|
1088
|
+
}
|
1089
|
+
];
|
1090
|
+
|
1091
|
+
var ruleset = lang.copyArray(base_ruleset);
|
1092
|
+
ruleset.unshift({
|
1093
|
+
token : "paren.rparen",
|
1094
|
+
regex : "\\}",
|
1095
|
+
next: "start"
|
1096
|
+
});
|
1097
|
+
|
1098
|
+
var media_ruleset = lang.copyArray( base_ruleset );
|
1099
|
+
media_ruleset.unshift({
|
1100
|
+
token : "paren.rparen",
|
1101
|
+
regex : "\\}",
|
1102
|
+
next: "media"
|
1103
|
+
});
|
1104
|
+
|
1105
|
+
var base_comment = [{
|
1106
|
+
token : "comment", // comment spanning whole line
|
1107
|
+
regex : ".+"
|
1108
|
+
}];
|
1109
|
+
|
1110
|
+
var comment = lang.copyArray(base_comment);
|
1111
|
+
comment.unshift({
|
1112
|
+
token : "comment", // closing comment
|
1113
|
+
regex : ".*?\\*\\/",
|
1114
|
+
next : "start"
|
1115
|
+
});
|
1116
|
+
|
1117
|
+
var media_comment = lang.copyArray(base_comment);
|
1118
|
+
media_comment.unshift({
|
1119
|
+
token : "comment", // closing comment
|
1120
|
+
regex : ".*?\\*\\/",
|
1121
|
+
next : "media"
|
1122
|
+
});
|
1123
|
+
|
1124
|
+
var ruleset_comment = lang.copyArray(base_comment);
|
1125
|
+
ruleset_comment.unshift({
|
1126
|
+
token : "comment", // closing comment
|
1127
|
+
regex : ".*?\\*\\/",
|
1128
|
+
next : "ruleset"
|
1129
|
+
});
|
1130
|
+
|
1131
|
+
this.$rules = {
|
1132
|
+
"start" : [{
|
1133
|
+
token : "comment", // multi line comment
|
1134
|
+
regex : "\\/\\*",
|
1135
|
+
next : "comment"
|
1136
|
+
}, {
|
1137
|
+
token: "paren.lparen",
|
1138
|
+
regex: "\\{",
|
1139
|
+
next: "ruleset"
|
1140
|
+
}, {
|
1141
|
+
token: "string",
|
1142
|
+
regex: "@.*?{",
|
1143
|
+
next: "media"
|
1144
|
+
},{
|
1145
|
+
token: "keyword",
|
1146
|
+
regex: "#[a-z0-9-_]+"
|
1147
|
+
},{
|
1148
|
+
token: "variable",
|
1149
|
+
regex: "\\.[a-z0-9-_]+"
|
1150
|
+
},{
|
1151
|
+
token: "string",
|
1152
|
+
regex: ":[a-z0-9-_]+"
|
1153
|
+
},{
|
1154
|
+
token: "constant",
|
1155
|
+
regex: "[a-z0-9-_]+"
|
1156
|
+
}],
|
1157
|
+
|
1158
|
+
"media" : [ {
|
1159
|
+
token : "comment", // multi line comment
|
1160
|
+
regex : "\\/\\*",
|
1161
|
+
next : "media_comment"
|
1162
|
+
}, {
|
1163
|
+
token: "paren.lparen",
|
1164
|
+
regex: "\\{",
|
1165
|
+
next: "media_ruleset"
|
1166
|
+
},{
|
1167
|
+
token: "string",
|
1168
|
+
regex: "\\}",
|
1169
|
+
next: "start"
|
1170
|
+
},{
|
1171
|
+
token: "keyword",
|
1172
|
+
regex: "#[a-z0-9-_]+"
|
1173
|
+
},{
|
1174
|
+
token: "variable",
|
1175
|
+
regex: "\\.[a-z0-9-_]+"
|
1176
|
+
},{
|
1177
|
+
token: "string",
|
1178
|
+
regex: ":[a-z0-9-_]+"
|
1179
|
+
},{
|
1180
|
+
token: "constant",
|
1181
|
+
regex: "[a-z0-9-_]+"
|
1182
|
+
}],
|
1183
|
+
|
1184
|
+
"comment" : comment,
|
1185
|
+
|
1186
|
+
"ruleset" : ruleset,
|
1187
|
+
"ruleset_comment" : ruleset_comment,
|
1188
|
+
|
1189
|
+
"media_ruleset" : media_ruleset,
|
1190
|
+
"media_comment" : media_comment
|
1191
|
+
};
|
1192
|
+
};
|
1193
|
+
|
1194
|
+
oop.inherits(CssHighlightRules, TextHighlightRules);
|
1195
|
+
|
1196
|
+
exports.CssHighlightRules = CssHighlightRules;
|
1197
|
+
|
1198
|
+
});
|
1199
|
+
|
1200
|
+
define('ace/mode/scss_highlight_rules', ['require', 'exports', 'module' , 'ace/lib/oop', 'ace/lib/lang', 'ace/mode/text_highlight_rules'], function(require, exports, module) {
|
1201
|
+
|
1202
|
+
|
1203
|
+
var oop = require("../lib/oop");
|
1204
|
+
var lang = require("../lib/lang");
|
1205
|
+
var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
|
1206
|
+
|
1207
|
+
var ScssHighlightRules = function() {
|
1208
|
+
|
1209
|
+
var properties = lang.arrayToMap( (function () {
|
1210
|
+
|
1211
|
+
var browserPrefix = ("-webkit-|-moz-|-o-|-ms-|-svg-|-pie-|-khtml-").split("|");
|
1212
|
+
|
1213
|
+
var prefixProperties = ("appearance|background-clip|background-inline-policy|background-origin|" +
|
1214
|
+
"background-size|binding|border-bottom-colors|border-left-colors|" +
|
1215
|
+
"border-right-colors|border-top-colors|border-end|border-end-color|" +
|
1216
|
+
"border-end-style|border-end-width|border-image|border-start|" +
|
1217
|
+
"border-start-color|border-start-style|border-start-width|box-align|" +
|
1218
|
+
"box-direction|box-flex|box-flexgroup|box-ordinal-group|box-orient|" +
|
1219
|
+
"box-pack|box-sizing|column-count|column-gap|column-width|column-rule|" +
|
1220
|
+
"column-rule-width|column-rule-style|column-rule-color|float-edge|" +
|
1221
|
+
"font-feature-settings|font-language-override|force-broken-image-icon|" +
|
1222
|
+
"image-region|margin-end|margin-start|opacity|outline|outline-color|" +
|
1223
|
+
"outline-offset|outline-radius|outline-radius-bottomleft|" +
|
1224
|
+
"outline-radius-bottomright|outline-radius-topleft|outline-radius-topright|" +
|
1225
|
+
"outline-style|outline-width|padding-end|padding-start|stack-sizing|" +
|
1226
|
+
"tab-size|text-blink|text-decoration-color|text-decoration-line|" +
|
1227
|
+
"text-decoration-style|transform|transform-origin|transition|" +
|
1228
|
+
"transition-delay|transition-duration|transition-property|" +
|
1229
|
+
"transition-timing-function|user-focus|user-input|user-modify|user-select|" +
|
1230
|
+
"window-shadow|border-radius").split("|");
|
1231
|
+
|
1232
|
+
var properties = ("azimuth|background-attachment|background-color|background-image|" +
|
1233
|
+
"background-position|background-repeat|background|border-bottom-color|" +
|
1234
|
+
"border-bottom-style|border-bottom-width|border-bottom|border-collapse|" +
|
1235
|
+
"border-color|border-left-color|border-left-style|border-left-width|" +
|
1236
|
+
"border-left|border-right-color|border-right-style|border-right-width|" +
|
1237
|
+
"border-right|border-spacing|border-style|border-top-color|" +
|
1238
|
+
"border-top-style|border-top-width|border-top|border-width|border|" +
|
1239
|
+
"bottom|box-sizing|caption-side|clear|clip|color|content|counter-increment|" +
|
1240
|
+
"counter-reset|cue-after|cue-before|cue|cursor|direction|display|" +
|
1241
|
+
"elevation|empty-cells|float|font-family|font-size-adjust|font-size|" +
|
1242
|
+
"font-stretch|font-style|font-variant|font-weight|font|height|left|" +
|
1243
|
+
"letter-spacing|line-height|list-style-image|list-style-position|" +
|
1244
|
+
"list-style-type|list-style|margin-bottom|margin-left|margin-right|" +
|
1245
|
+
"margin-top|marker-offset|margin|marks|max-height|max-width|min-height|" +
|
1246
|
+
"min-width|opacity|orphans|outline-color|" +
|
1247
|
+
"outline-style|outline-width|outline|overflow|overflow-x|overflow-y|padding-bottom|" +
|
1248
|
+
"padding-left|padding-right|padding-top|padding|page-break-after|" +
|
1249
|
+
"page-break-before|page-break-inside|page|pause-after|pause-before|" +
|
1250
|
+
"pause|pitch-range|pitch|play-during|position|quotes|richness|right|" +
|
1251
|
+
"size|speak-header|speak-numeral|speak-punctuation|speech-rate|speak|" +
|
1252
|
+
"stress|table-layout|text-align|text-decoration|text-indent|" +
|
1253
|
+
"text-shadow|text-transform|top|unicode-bidi|vertical-align|" +
|
1254
|
+
"visibility|voice-family|volume|white-space|widows|width|word-spacing|" +
|
1255
|
+
"z-index").split("|");
|
1256
|
+
var ret = [];
|
1257
|
+
for (var i=0, ln=browserPrefix.length; i<ln; i++) {
|
1258
|
+
Array.prototype.push.apply(
|
1259
|
+
ret,
|
1260
|
+
(( browserPrefix[i] + prefixProperties.join("|" + browserPrefix[i]) ).split("|"))
|
1261
|
+
);
|
1262
|
+
}
|
1263
|
+
Array.prototype.push.apply(ret, prefixProperties);
|
1264
|
+
Array.prototype.push.apply(ret, properties);
|
1265
|
+
|
1266
|
+
return ret;
|
1267
|
+
|
1268
|
+
})() );
|
1269
|
+
|
1270
|
+
|
1271
|
+
|
1272
|
+
var functions = lang.arrayToMap(
|
1273
|
+
("hsl|hsla|rgb|rgba|url|attr|counter|counters|abs|adjust_color|adjust_hue|" +
|
1274
|
+
"alpha|join|blue|ceil|change_color|comparable|complement|darken|desaturate|" +
|
1275
|
+
"floor|grayscale|green|hue|if|invert|join|length|lighten|lightness|mix|" +
|
1276
|
+
"nth|opacify|opacity|percentage|quote|red|round|saturate|saturation|" +
|
1277
|
+
"scale_color|transparentize|type_of|unit|unitless|unqoute").split("|")
|
1278
|
+
);
|
1279
|
+
|
1280
|
+
var constants = lang.arrayToMap(
|
1281
|
+
("absolute|all-scroll|always|armenian|auto|baseline|below|bidi-override|" +
|
1282
|
+
"block|bold|bolder|border-box|both|bottom|break-all|break-word|capitalize|center|" +
|
1283
|
+
"char|circle|cjk-ideographic|col-resize|collapse|content-box|crosshair|dashed|" +
|
1284
|
+
"decimal-leading-zero|decimal|default|disabled|disc|" +
|
1285
|
+
"distribute-all-lines|distribute-letter|distribute-space|" +
|
1286
|
+
"distribute|dotted|double|e-resize|ellipsis|fixed|georgian|groove|" +
|
1287
|
+
"hand|hebrew|help|hidden|hiragana-iroha|hiragana|horizontal|" +
|
1288
|
+
"ideograph-alpha|ideograph-numeric|ideograph-parenthesis|" +
|
1289
|
+
"ideograph-space|inactive|inherit|inline-block|inline|inset|inside|" +
|
1290
|
+
"inter-ideograph|inter-word|italic|justify|katakana-iroha|katakana|" +
|
1291
|
+
"keep-all|left|lighter|line-edge|line-through|line|list-item|loose|" +
|
1292
|
+
"lower-alpha|lower-greek|lower-latin|lower-roman|lowercase|lr-tb|ltr|" +
|
1293
|
+
"medium|middle|move|n-resize|ne-resize|newspaper|no-drop|no-repeat|" +
|
1294
|
+
"nw-resize|none|normal|not-allowed|nowrap|oblique|outset|outside|" +
|
1295
|
+
"overline|pointer|progress|relative|repeat-x|repeat-y|repeat|right|" +
|
1296
|
+
"ridge|row-resize|rtl|s-resize|scroll|se-resize|separate|small-caps|" +
|
1297
|
+
"solid|square|static|strict|super|sw-resize|table-footer-group|" +
|
1298
|
+
"table-header-group|tb-rl|text-bottom|text-top|text|thick|thin|top|" +
|
1299
|
+
"transparent|underline|upper-alpha|upper-latin|upper-roman|uppercase|" +
|
1300
|
+
"vertical-ideographic|vertical-text|visible|w-resize|wait|whitespace|" +
|
1301
|
+
"zero").split("|")
|
1302
|
+
);
|
1303
|
+
|
1304
|
+
var colors = lang.arrayToMap(
|
1305
|
+
("aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|orange|" +
|
1306
|
+
"purple|red|silver|teal|white|yellow").split("|")
|
1307
|
+
);
|
1308
|
+
|
1309
|
+
var keywords = lang.arrayToMap(
|
1310
|
+
("@mixin|@extend|@include|@import|@media|@debug|@warn|@if|@for|@each|@while|@else|@font-face|@-webkit-keyframes|if|and|!default|module|def|end|declare").split("|")
|
1311
|
+
)
|
1312
|
+
|
1313
|
+
var tags = lang.arrayToMap(
|
1314
|
+
("a|abbr|acronym|address|applet|area|article|aside|audio|b|base|basefont|bdo|" +
|
1315
|
+
"big|blockquote|body|br|button|canvas|caption|center|cite|code|col|colgroup|" +
|
1316
|
+
"command|datalist|dd|del|details|dfn|dir|div|dl|dt|em|embed|fieldset|" +
|
1317
|
+
"figcaption|figure|font|footer|form|frame|frameset|h1|h2|h3|h4|h5|h6|head|" +
|
1318
|
+
"header|hgroup|hr|html|i|iframe|img|input|ins|keygen|kbd|label|legend|li|" +
|
1319
|
+
"link|map|mark|menu|meta|meter|nav|noframes|noscript|object|ol|optgroup|" +
|
1320
|
+
"option|output|p|param|pre|progress|q|rp|rt|ruby|s|samp|script|section|select|" +
|
1321
|
+
"small|source|span|strike|strong|style|sub|summary|sup|table|tbody|td|" +
|
1322
|
+
"textarea|tfoot|th|thead|time|title|tr|tt|u|ul|var|video|wbr|xmp").split("|")
|
1323
|
+
);
|
1324
|
+
|
1325
|
+
var numRe = "\\-?(?:(?:[0-9]+)|(?:[0-9]*\\.[0-9]+))";
|
1326
|
+
|
1327
|
+
this.$rules = {
|
1328
|
+
"start" : [
|
1329
|
+
{
|
1330
|
+
token : "comment",
|
1331
|
+
regex : "\\/\\/.*$"
|
1332
|
+
},
|
1333
|
+
{
|
1334
|
+
token : "comment", // multi line comment
|
1335
|
+
regex : "\\/\\*",
|
1336
|
+
next : "comment"
|
1337
|
+
}, {
|
1338
|
+
token : "string", // single line
|
1339
|
+
regex : '["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]'
|
1340
|
+
}, {
|
1341
|
+
token : "string", // multi line string start
|
1342
|
+
regex : '["].*\\\\$',
|
1343
|
+
next : "qqstring"
|
1344
|
+
}, {
|
1345
|
+
token : "string", // single line
|
1346
|
+
regex : "['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"
|
1347
|
+
}, {
|
1348
|
+
token : "string", // multi line string start
|
1349
|
+
regex : "['].*\\\\$",
|
1350
|
+
next : "qstring"
|
1351
|
+
}, {
|
1352
|
+
token : "constant.numeric",
|
1353
|
+
regex : numRe + "(?:em|ex|px|cm|mm|in|pt|pc|deg|rad|grad|ms|s|hz|khz|%)"
|
1354
|
+
}, {
|
1355
|
+
token : "constant.numeric", // hex6 color
|
1356
|
+
regex : "#[a-f0-9]{6}"
|
1357
|
+
}, {
|
1358
|
+
token : "constant.numeric", // hex3 color
|
1359
|
+
regex : "#[a-f0-9]{3}"
|
1360
|
+
}, {
|
1361
|
+
token : "constant.numeric",
|
1362
|
+
regex : numRe
|
1363
|
+
}, {
|
1364
|
+
token : function(value) {
|
1365
|
+
if (properties.hasOwnProperty(value.toLowerCase()))
|
1366
|
+
return "support.type";
|
1367
|
+
if (keywords.hasOwnProperty(value))
|
1368
|
+
return "keyword";
|
1369
|
+
else if (constants.hasOwnProperty(value))
|
1370
|
+
return "constant.language";
|
1371
|
+
else if (functions.hasOwnProperty(value))
|
1372
|
+
return "support.function";
|
1373
|
+
else if (colors.hasOwnProperty(value.toLowerCase()))
|
1374
|
+
return "support.constant.color";
|
1375
|
+
else if (tags.hasOwnProperty(value.toLowerCase()))
|
1376
|
+
return "variable.language";
|
1377
|
+
else
|
1378
|
+
return "text";
|
1379
|
+
},
|
1380
|
+
regex : "\\-?[@a-z_][@a-z0-9_\\-]*"
|
1381
|
+
}, {
|
1382
|
+
token : "variable",
|
1383
|
+
regex : "[a-z_\\-$][a-z0-9_\\-$]*\\b"
|
1384
|
+
}, {
|
1385
|
+
token: "variable.language",
|
1386
|
+
regex: "#[a-z0-9-_]+"
|
1387
|
+
}, {
|
1388
|
+
token: "variable.language",
|
1389
|
+
regex: "\\.[a-z0-9-_]+"
|
1390
|
+
}, {
|
1391
|
+
token: "variable.language",
|
1392
|
+
regex: ":[a-z0-9-_]+"
|
1393
|
+
}, {
|
1394
|
+
token: "constant",
|
1395
|
+
regex: "[a-z0-9-_]+"
|
1396
|
+
}, {
|
1397
|
+
token : "keyword.operator",
|
1398
|
+
regex : "<|>|<=|>=|==|!=|-|%|#|\\+|\\$|\\+|\\*"
|
1399
|
+
}, {
|
1400
|
+
token : "paren.lparen",
|
1401
|
+
regex : "[[({]"
|
1402
|
+
}, {
|
1403
|
+
token : "paren.rparen",
|
1404
|
+
regex : "[\\])}]"
|
1405
|
+
}, {
|
1406
|
+
token : "text",
|
1407
|
+
regex : "\\s+"
|
1408
|
+
}
|
1409
|
+
],
|
1410
|
+
"comment" : [
|
1411
|
+
{
|
1412
|
+
token : "comment", // closing comment
|
1413
|
+
regex : ".*?\\*\\/",
|
1414
|
+
next : "start"
|
1415
|
+
}, {
|
1416
|
+
token : "comment", // comment spanning whole line
|
1417
|
+
regex : ".+"
|
1418
|
+
}
|
1419
|
+
],
|
1420
|
+
"qqstring" : [
|
1421
|
+
{
|
1422
|
+
token : "string",
|
1423
|
+
regex : '(?:(?:\\\\.)|(?:[^"\\\\]))*?"',
|
1424
|
+
next : "start"
|
1425
|
+
}, {
|
1426
|
+
token : "string",
|
1427
|
+
regex : '.+'
|
1428
|
+
}
|
1429
|
+
],
|
1430
|
+
"qstring" : [
|
1431
|
+
{
|
1432
|
+
token : "string",
|
1433
|
+
regex : "(?:(?:\\\\.)|(?:[^'\\\\]))*?'",
|
1434
|
+
next : "start"
|
1435
|
+
}, {
|
1436
|
+
token : "string",
|
1437
|
+
regex : '.+'
|
1438
|
+
}
|
1439
|
+
]
|
1440
|
+
};
|
1441
|
+
};
|
1442
|
+
|
1443
|
+
oop.inherits(ScssHighlightRules, TextHighlightRules);
|
1444
|
+
|
1445
|
+
exports.ScssHighlightRules = ScssHighlightRules;
|
1446
|
+
|
1447
|
+
});
|
1448
|
+
|
1449
|
+
define('ace/mode/less_highlight_rules', ['require', 'exports', 'module' , 'ace/lib/oop', 'ace/lib/lang', 'ace/mode/text_highlight_rules'], function(require, exports, module) {
|
1450
|
+
|
1451
|
+
|
1452
|
+
var oop = require("../lib/oop");
|
1453
|
+
var lang = require("../lib/lang");
|
1454
|
+
var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
|
1455
|
+
|
1456
|
+
var LessHighlightRules = function() {
|
1457
|
+
|
1458
|
+
var properties = lang.arrayToMap( (function () {
|
1459
|
+
|
1460
|
+
var browserPrefix = ("-webkit-|-moz-|-o-|-ms-|-svg-|-pie-|-khtml-").split("|");
|
1461
|
+
|
1462
|
+
var prefixProperties = ("appearance|background-clip|background-inline-policy|background-origin|" +
|
1463
|
+
"background-size|binding|border-bottom-colors|border-left-colors|" +
|
1464
|
+
"border-right-colors|border-top-colors|border-end|border-end-color|" +
|
1465
|
+
"border-end-style|border-end-width|border-image|border-start|" +
|
1466
|
+
"border-start-color|border-start-style|border-start-width|box-align|" +
|
1467
|
+
"box-direction|box-flex|box-flexgroup|box-ordinal-group|box-orient|" +
|
1468
|
+
"box-pack|box-sizing|column-count|column-gap|column-width|column-rule|" +
|
1469
|
+
"column-rule-width|column-rule-style|column-rule-color|float-edge|" +
|
1470
|
+
"font-feature-settings|font-language-override|force-broken-image-icon|" +
|
1471
|
+
"image-region|margin-end|margin-start|opacity|outline|outline-color|" +
|
1472
|
+
"outline-offset|outline-radius|outline-radius-bottomleft|" +
|
1473
|
+
"outline-radius-bottomright|outline-radius-topleft|outline-radius-topright|" +
|
1474
|
+
"outline-style|outline-width|padding-end|padding-start|stack-sizing|" +
|
1475
|
+
"tab-size|text-blink|text-decoration-color|text-decoration-line|" +
|
1476
|
+
"text-decoration-style|transform|transform-origin|transition|" +
|
1477
|
+
"transition-delay|transition-duration|transition-property|" +
|
1478
|
+
"transition-timing-function|user-focus|user-input|user-modify|user-select|" +
|
1479
|
+
"window-shadow|border-radius").split("|");
|
1480
|
+
|
1481
|
+
var properties = ("azimuth|background-attachment|background-color|background-image|" +
|
1482
|
+
"background-position|background-repeat|background|border-bottom-color|" +
|
1483
|
+
"border-bottom-style|border-bottom-width|border-bottom|border-collapse|" +
|
1484
|
+
"border-color|border-left-color|border-left-style|border-left-width|" +
|
1485
|
+
"border-left|border-right-color|border-right-style|border-right-width|" +
|
1486
|
+
"border-right|border-spacing|border-style|border-top-color|" +
|
1487
|
+
"border-top-style|border-top-width|border-top|border-width|border|" +
|
1488
|
+
"bottom|box-sizing|caption-side|clear|clip|color|content|counter-increment|" +
|
1489
|
+
"counter-reset|cue-after|cue-before|cue|cursor|direction|display|" +
|
1490
|
+
"elevation|empty-cells|float|font-family|font-size-adjust|font-size|" +
|
1491
|
+
"font-stretch|font-style|font-variant|font-weight|font|height|left|" +
|
1492
|
+
"letter-spacing|line-height|list-style-image|list-style-position|" +
|
1493
|
+
"list-style-type|list-style|margin-bottom|margin-left|margin-right|" +
|
1494
|
+
"margin-top|marker-offset|margin|marks|max-height|max-width|min-height|" +
|
1495
|
+
"min-width|opacity|orphans|outline-color|" +
|
1496
|
+
"outline-style|outline-width|outline|overflow|overflow-x|overflow-y|padding-bottom|" +
|
1497
|
+
"padding-left|padding-right|padding-top|padding|page-break-after|" +
|
1498
|
+
"page-break-before|page-break-inside|page|pause-after|pause-before|" +
|
1499
|
+
"pause|pitch-range|pitch|play-during|position|quotes|richness|right|" +
|
1500
|
+
"size|speak-header|speak-numeral|speak-punctuation|speech-rate|speak|" +
|
1501
|
+
"stress|table-layout|text-align|text-decoration|text-indent|" +
|
1502
|
+
"text-shadow|text-transform|top|unicode-bidi|vertical-align|" +
|
1503
|
+
"visibility|voice-family|volume|white-space|widows|width|word-spacing|" +
|
1504
|
+
"z-index").split("|");
|
1505
|
+
var ret = [];
|
1506
|
+
for (var i=0, ln=browserPrefix.length; i<ln; i++) {
|
1507
|
+
Array.prototype.push.apply(
|
1508
|
+
ret,
|
1509
|
+
(( browserPrefix[i] + prefixProperties.join("|" + browserPrefix[i]) ).split("|"))
|
1510
|
+
);
|
1511
|
+
}
|
1512
|
+
Array.prototype.push.apply(ret, prefixProperties);
|
1513
|
+
Array.prototype.push.apply(ret, properties);
|
1514
|
+
|
1515
|
+
return ret;
|
1516
|
+
|
1517
|
+
})() );
|
1518
|
+
|
1519
|
+
|
1520
|
+
|
1521
|
+
var functions = lang.arrayToMap(
|
1522
|
+
("hsl|hsla|rgb|rgba|url|attr|counter|counters|lighten|darken|saturate|" +
|
1523
|
+
"desaturate|fadein|fadeout|fade|spin|mix|hue|saturation|lightness|" +
|
1524
|
+
"alpha|round|ceil|floor|percentage|color|iscolor|isnumber|isstring|" +
|
1525
|
+
"iskeyword|isurl|ispixel|ispercentage|isem").split("|")
|
1526
|
+
);
|
1527
|
+
|
1528
|
+
var constants = lang.arrayToMap(
|
1529
|
+
("absolute|all-scroll|always|armenian|auto|baseline|below|bidi-override|" +
|
1530
|
+
"block|bold|bolder|border-box|both|bottom|break-all|break-word|capitalize|center|" +
|
1531
|
+
"char|circle|cjk-ideographic|col-resize|collapse|content-box|crosshair|dashed|" +
|
1532
|
+
"decimal-leading-zero|decimal|default|disabled|disc|" +
|
1533
|
+
"distribute-all-lines|distribute-letter|distribute-space|" +
|
1534
|
+
"distribute|dotted|double|e-resize|ellipsis|fixed|georgian|groove|" +
|
1535
|
+
"hand|hebrew|help|hidden|hiragana-iroha|hiragana|horizontal|" +
|
1536
|
+
"ideograph-alpha|ideograph-numeric|ideograph-parenthesis|" +
|
1537
|
+
"ideograph-space|inactive|inherit|inline-block|inline|inset|inside|" +
|
1538
|
+
"inter-ideograph|inter-word|italic|justify|katakana-iroha|katakana|" +
|
1539
|
+
"keep-all|left|lighter|line-edge|line-through|line|list-item|loose|" +
|
1540
|
+
"lower-alpha|lower-greek|lower-latin|lower-roman|lowercase|lr-tb|ltr|" +
|
1541
|
+
"medium|middle|move|n-resize|ne-resize|newspaper|no-drop|no-repeat|" +
|
1542
|
+
"nw-resize|none|normal|not-allowed|nowrap|oblique|outset|outside|" +
|
1543
|
+
"overline|pointer|progress|relative|repeat-x|repeat-y|repeat|right|" +
|
1544
|
+
"ridge|row-resize|rtl|s-resize|scroll|se-resize|separate|small-caps|" +
|
1545
|
+
"solid|square|static|strict|super|sw-resize|table-footer-group|" +
|
1546
|
+
"table-header-group|tb-rl|text-bottom|text-top|text|thick|thin|top|" +
|
1547
|
+
"transparent|underline|upper-alpha|upper-latin|upper-roman|uppercase|" +
|
1548
|
+
"vertical-ideographic|vertical-text|visible|w-resize|wait|whitespace|" +
|
1549
|
+
"zero").split("|")
|
1550
|
+
);
|
1551
|
+
|
1552
|
+
var colors = lang.arrayToMap(
|
1553
|
+
("aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|orange|" +
|
1554
|
+
"purple|red|silver|teal|white|yellow").split("|")
|
1555
|
+
);
|
1556
|
+
|
1557
|
+
var keywords = lang.arrayToMap(
|
1558
|
+
("@mixin|@extend|@include|@import|@media|@debug|@warn|@if|@for|@each|" +
|
1559
|
+
"@while|@else|@font-face|@-webkit-keyframes|if|and|!default|module|" +
|
1560
|
+
"def|end|declare|when|not|and").split("|")
|
1561
|
+
);
|
1562
|
+
|
1563
|
+
var tags = lang.arrayToMap(
|
1564
|
+
("a|abbr|acronym|address|applet|area|article|aside|audio|b|base|basefont|bdo|" +
|
1565
|
+
"big|blockquote|body|br|button|canvas|caption|center|cite|code|col|colgroup|" +
|
1566
|
+
"command|datalist|dd|del|details|dfn|dir|div|dl|dt|em|embed|fieldset|" +
|
1567
|
+
"figcaption|figure|font|footer|form|frame|frameset|h1|h2|h3|h4|h5|h6|head|" +
|
1568
|
+
"header|hgroup|hr|html|i|iframe|img|input|ins|keygen|kbd|label|legend|li|" +
|
1569
|
+
"link|map|mark|menu|meta|meter|nav|noframes|noscript|object|ol|optgroup|" +
|
1570
|
+
"option|output|p|param|pre|progress|q|rp|rt|ruby|s|samp|script|section|select|" +
|
1571
|
+
"small|source|span|strike|strong|style|sub|summary|sup|table|tbody|td|" +
|
1572
|
+
"textarea|tfoot|th|thead|time|title|tr|tt|u|ul|var|video|wbr|xmp").split("|")
|
1573
|
+
);
|
1574
|
+
|
1575
|
+
var numRe = "\\-?(?:(?:[0-9]+)|(?:[0-9]*\\.[0-9]+))";
|
1576
|
+
|
1577
|
+
this.$rules = {
|
1578
|
+
"start" : [
|
1579
|
+
{
|
1580
|
+
token : "comment",
|
1581
|
+
regex : "\\/\\/.*$"
|
1582
|
+
},
|
1583
|
+
{
|
1584
|
+
token : "comment", // multi line comment
|
1585
|
+
regex : "\\/\\*",
|
1586
|
+
next : "comment"
|
1587
|
+
}, {
|
1588
|
+
token : "string", // single line
|
1589
|
+
regex : '["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]'
|
1590
|
+
}, {
|
1591
|
+
token : "string", // single line
|
1592
|
+
regex : "['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"
|
1593
|
+
}, {
|
1594
|
+
token : "constant.numeric",
|
1595
|
+
regex : numRe + "(?:em|ex|px|cm|mm|in|pt|pc|deg|rad|grad|ms|s|hz|khz|%)"
|
1596
|
+
}, {
|
1597
|
+
token : "constant.numeric", // hex6 color
|
1598
|
+
regex : "#[a-f0-9]{6}"
|
1599
|
+
}, {
|
1600
|
+
token : "constant.numeric", // hex3 color
|
1601
|
+
regex : "#[a-f0-9]{3}"
|
1602
|
+
}, {
|
1603
|
+
token : "constant.numeric",
|
1604
|
+
regex : numRe
|
1605
|
+
}, {
|
1606
|
+
token : function(value) {
|
1607
|
+
if (keywords.hasOwnProperty(value))
|
1608
|
+
return "keyword";
|
1609
|
+
else
|
1610
|
+
return "variable";
|
1611
|
+
},
|
1612
|
+
regex : "@[a-z0-9_\\-@]*\\b"
|
1613
|
+
}, {
|
1614
|
+
token : function(value) {
|
1615
|
+
if (properties.hasOwnProperty(value.toLowerCase()))
|
1616
|
+
return "support.type";
|
1617
|
+
else if (keywords.hasOwnProperty(value))
|
1618
|
+
return "keyword";
|
1619
|
+
else if (constants.hasOwnProperty(value))
|
1620
|
+
return "constant.language";
|
1621
|
+
else if (functions.hasOwnProperty(value))
|
1622
|
+
return "support.function";
|
1623
|
+
else if (colors.hasOwnProperty(value.toLowerCase()))
|
1624
|
+
return "support.constant.color";
|
1625
|
+
else if (tags.hasOwnProperty(value.toLowerCase()))
|
1626
|
+
return "variable.language";
|
1627
|
+
else
|
1628
|
+
return "text";
|
1629
|
+
},
|
1630
|
+
regex : "\\-?[@a-z_][@a-z0-9_\\-]*"
|
1631
|
+
}, {
|
1632
|
+
token: "variable.language",
|
1633
|
+
regex: "#[a-z0-9-_]+"
|
1634
|
+
}, {
|
1635
|
+
token: "variable.language",
|
1636
|
+
regex: "\\.[a-z0-9-_]+"
|
1637
|
+
}, {
|
1638
|
+
token: "variable.language",
|
1639
|
+
regex: ":[a-z0-9-_]+"
|
1640
|
+
}, {
|
1641
|
+
token: "constant",
|
1642
|
+
regex: "[a-z0-9-_]+"
|
1643
|
+
}, {
|
1644
|
+
token : "keyword.operator",
|
1645
|
+
regex : "<|>|<=|>=|==|!=|-|%|#|\\+|\\$|\\+|\\*"
|
1646
|
+
}, {
|
1647
|
+
token : "paren.lparen",
|
1648
|
+
regex : "[[({]"
|
1649
|
+
}, {
|
1650
|
+
token : "paren.rparen",
|
1651
|
+
regex : "[\\])}]"
|
1652
|
+
}, {
|
1653
|
+
token : "text",
|
1654
|
+
regex : "\\s+"
|
1655
|
+
}
|
1656
|
+
],
|
1657
|
+
"comment" : [
|
1658
|
+
{
|
1659
|
+
token : "comment", // closing comment
|
1660
|
+
regex : ".*?\\*\\/",
|
1661
|
+
next : "start"
|
1662
|
+
}, {
|
1663
|
+
token : "comment", // comment spanning whole line
|
1664
|
+
regex : ".+"
|
1665
|
+
}
|
1666
|
+
]
|
1667
|
+
};
|
1668
|
+
};
|
1669
|
+
|
1670
|
+
oop.inherits(LessHighlightRules, TextHighlightRules);
|
1671
|
+
|
1672
|
+
exports.LessHighlightRules = LessHighlightRules;
|
1673
|
+
|
1674
|
+
});
|
1675
|
+
|
1676
|
+
define('ace/mode/coffee_highlight_rules', ['require', 'exports', 'module' , 'ace/lib/oop', 'ace/mode/text_highlight_rules'], function(require, exports, module) {
|
1677
|
+
|
1678
|
+
|
1679
|
+
var oop = require("../lib/oop");
|
1680
|
+
var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
|
1681
|
+
|
1682
|
+
oop.inherits(CoffeeHighlightRules, TextHighlightRules);
|
1683
|
+
|
1684
|
+
function CoffeeHighlightRules() {
|
1685
|
+
var identifier = "[$A-Za-z_\\x7f-\\uffff][$\\w\\x7f-\\uffff]*";
|
1686
|
+
var stringfill = {
|
1687
|
+
token : "string",
|
1688
|
+
regex : ".+"
|
1689
|
+
};
|
1690
|
+
|
1691
|
+
var keywords = (
|
1692
|
+
"this|throw|then|try|typeof|super|switch|return|break|by|continue|" +
|
1693
|
+
"catch|class|in|instanceof|is|isnt|if|else|extends|for|forown|" +
|
1694
|
+
"finally|function|while|when|new|no|not|delete|debugger|do|loop|of|off|" +
|
1695
|
+
"or|on|unless|until|and|yes"
|
1696
|
+
);
|
1697
|
+
|
1698
|
+
var langConstant = (
|
1699
|
+
"true|false|null|undefined|NaN|Infinity"
|
1700
|
+
);
|
1701
|
+
|
1702
|
+
var illegal = (
|
1703
|
+
"case|const|default|function|var|void|with|enum|export|implements|" +
|
1704
|
+
"interface|let|package|private|protected|public|static|yield|" +
|
1705
|
+
"__hasProp|slice|bind|indexOf"
|
1706
|
+
);
|
1707
|
+
|
1708
|
+
var supportClass = (
|
1709
|
+
"Array|Boolean|Date|Function|Number|Object|RegExp|ReferenceError|String|" +
|
1710
|
+
"Error|EvalError|InternalError|RangeError|ReferenceError|StopIteration|" +
|
1711
|
+
"SyntaxError|TypeError|URIError|" +
|
1712
|
+
"ArrayBuffer|Float32Array|Float64Array|Int16Array|Int32Array|Int8Array|" +
|
1713
|
+
"Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray"
|
1714
|
+
);
|
1715
|
+
|
1716
|
+
var supportFunction = (
|
1717
|
+
"Math|JSON|isNaN|isFinite|parseInt|parseFloat|encodeURI|" +
|
1718
|
+
"encodeURIComponent|decodeURI|decodeURIComponent|String|"
|
1719
|
+
);
|
1720
|
+
|
1721
|
+
var variableLanguage = (
|
1722
|
+
"window|arguments|prototype|document"
|
1723
|
+
);
|
1724
|
+
|
1725
|
+
var keywordMapper = this.createKeywordMapper({
|
1726
|
+
"keyword": keywords,
|
1727
|
+
"constant.language": langConstant,
|
1728
|
+
"invalid.illegal": illegal,
|
1729
|
+
"language.support.class": supportClass,
|
1730
|
+
"language.support.function": supportFunction,
|
1731
|
+
"variable.language": variableLanguage
|
1732
|
+
}, "identifier");
|
1733
|
+
|
1734
|
+
var functionRules = {
|
1735
|
+
"({args})->": {
|
1736
|
+
token: ["paren.lparen", "text", "paren.lparen", "text", "variable.parameter", "text", "paren.rparen", "text", "paren.rparen", "text", "storage.type"],
|
1737
|
+
regex: "(\\()(\\s*)(\\{)(\\s*)([$@A-Za-z_\\x7f-\\uffff][$@\\w\\s,\\x7f-\\uffff]*)(\\s*)(\\})(\\s*)(\\))(\\s*)([\\-=]>)"
|
1738
|
+
},
|
1739
|
+
"({})->": {
|
1740
|
+
token: ["paren.lparen", "text", "paren.lparen", "text", "paren.rparen", "text", "paren.rparen", "text", "storage.type"],
|
1741
|
+
regex: "(\\()(\\s*)(\\{)(\\s*)(\\})(\\s*)(\\))(\\s*)([\\-=]>)"
|
1742
|
+
},
|
1743
|
+
"(args)->": {
|
1744
|
+
token: ["paren.lparen", "text", "variable.parameter", "text", "paren.rparen", "text", "storage.type"],
|
1745
|
+
regex: "(\\()(\\s*)([$@A-Za-z_\\x7f-\\uffff][\\s\\x21-\\uffff]*)(\\s*)(\\))(\\s*)([\\-=]>)"
|
1746
|
+
},
|
1747
|
+
"()->": {
|
1748
|
+
token: ["paren.lparen", "text", "paren.rparen", "text", "storage.type"],
|
1749
|
+
regex: "(\\()(\\s*)(\\))(\\s*)([\\-=]>)"
|
1750
|
+
}
|
1751
|
+
};
|
1752
|
+
|
1753
|
+
this.$rules = {
|
1754
|
+
start : [
|
1755
|
+
{
|
1756
|
+
token : "constant.numeric",
|
1757
|
+
regex : "(?:0x[\\da-fA-F]+|(?:\\d+(?:\\.\\d+)?|\\.\\d+)(?:[eE][+-]?\\d+)?)"
|
1758
|
+
}, {
|
1759
|
+
token : "string",
|
1760
|
+
regex : "'''",
|
1761
|
+
next : "qdoc"
|
1762
|
+
}, {
|
1763
|
+
token : "string",
|
1764
|
+
regex : '"""',
|
1765
|
+
next : "qqdoc"
|
1766
|
+
}, {
|
1767
|
+
token : "string",
|
1768
|
+
regex : "'",
|
1769
|
+
next : "qstring"
|
1770
|
+
}, {
|
1771
|
+
token : "string",
|
1772
|
+
regex : '"',
|
1773
|
+
next : "qqstring"
|
1774
|
+
}, {
|
1775
|
+
token : "string",
|
1776
|
+
regex : "`",
|
1777
|
+
next : "js"
|
1778
|
+
}, {
|
1779
|
+
token : "string.regex",
|
1780
|
+
regex : "///",
|
1781
|
+
next : "heregex"
|
1782
|
+
}, {
|
1783
|
+
token : "string.regex",
|
1784
|
+
regex : /(?:\/(?![\s=])[^[\/\n\\]*(?:(?:\\[\s\S]|\[[^\]\n\\]*(?:\\[\s\S][^\]\n\\]*)*])[^[\/\n\\]*)*\/)(?:[imgy]{0,4})(?!\w)/
|
1785
|
+
}, {
|
1786
|
+
token : "comment",
|
1787
|
+
regex : "###(?!#)",
|
1788
|
+
next : "comment"
|
1789
|
+
}, {
|
1790
|
+
token : "comment",
|
1791
|
+
regex : "#.*"
|
1792
|
+
}, {
|
1793
|
+
token : [
|
1794
|
+
"punctuation.operator", "identifier"
|
1795
|
+
],
|
1796
|
+
regex : "(\\.)(" + illegal + ")"
|
1797
|
+
}, {
|
1798
|
+
token : "punctuation.operator",
|
1799
|
+
regex : "\\."
|
1800
|
+
}, {
|
1801
|
+
token : [
|
1802
|
+
"keyword", "text", "language.support.class", "text", "keyword", "text", "language.support.class"
|
1803
|
+
],
|
1804
|
+
regex : "(class)(\\s+)(" + identifier + ")(\\s+)(extends)(\\s+)(" + identifier + ")"
|
1805
|
+
}, {
|
1806
|
+
token : [
|
1807
|
+
"keyword", "text", "language.support.class"
|
1808
|
+
],
|
1809
|
+
regex : "(class)(\\s+)(" + identifier + ")"
|
1810
|
+
}, {
|
1811
|
+
token : [
|
1812
|
+
"entity.name.function", "text", "keyword.operator", "text"
|
1813
|
+
].concat(functionRules["({args})->"].token),
|
1814
|
+
regex : "(" + identifier + ")(\\s*)(=)(\\s*)" + functionRules["({args})->"].regex
|
1815
|
+
}, {
|
1816
|
+
token : [
|
1817
|
+
"entity.name.function", "text", "punctuation.operator", "text"
|
1818
|
+
].concat(functionRules["({args})->"].token),
|
1819
|
+
regex : "(" + identifier + ")(\\s*)(:)(\\s*)" + functionRules["({args})->"].regex
|
1820
|
+
}, {
|
1821
|
+
token : [
|
1822
|
+
"entity.name.function", "text", "keyword.operator", "text"
|
1823
|
+
].concat(functionRules["({})->"].token),
|
1824
|
+
regex : "(" + identifier + ")(\\s*)(=)(\\s*)" + functionRules["({})->"].regex
|
1825
|
+
}, {
|
1826
|
+
token : [
|
1827
|
+
"entity.name.function", "text", "punctuation.operator", "text"
|
1828
|
+
].concat(functionRules["({})->"].token),
|
1829
|
+
regex : "(" + identifier + ")(\\s*)(:)(\\s*)" + functionRules["({})->"].regex
|
1830
|
+
}, {
|
1831
|
+
token : [
|
1832
|
+
"entity.name.function", "text", "keyword.operator", "text"
|
1833
|
+
].concat(functionRules["(args)->"].token),
|
1834
|
+
regex : "(" + identifier + ")(\\s*)(=)(\\s*)" + functionRules["(args)->"].regex
|
1835
|
+
}, {
|
1836
|
+
token : [
|
1837
|
+
"entity.name.function", "text", "punctuation.operator", "text"
|
1838
|
+
].concat(functionRules["(args)->"].token),
|
1839
|
+
regex : "(" + identifier + ")(\\s*)(:)(\\s*)" + functionRules["(args)->"].regex
|
1840
|
+
}, {
|
1841
|
+
token : [
|
1842
|
+
"entity.name.function", "text", "keyword.operator", "text"
|
1843
|
+
].concat(functionRules["()->"].token),
|
1844
|
+
regex : "(" + identifier + ")(\\s*)(=)(\\s*)" + functionRules["()->"].regex
|
1845
|
+
}, {
|
1846
|
+
token : [
|
1847
|
+
"entity.name.function", "text", "punctuation.operator", "text"
|
1848
|
+
].concat(functionRules["()->"].token),
|
1849
|
+
regex : "(" + identifier + ")(\\s*)(:)(\\s*)" + functionRules["()->"].regex
|
1850
|
+
}, {
|
1851
|
+
token : [
|
1852
|
+
"entity.name.function", "text", "keyword.operator", "text", "storage.type"
|
1853
|
+
],
|
1854
|
+
regex : "(" + identifier + ")(\\s*)(=)(\\s*)([\\-=]>)"
|
1855
|
+
}, {
|
1856
|
+
token : [
|
1857
|
+
"entity.name.function", "text", "punctuation.operator", "text", "storage.type"
|
1858
|
+
],
|
1859
|
+
regex : "(" + identifier + ")(\\s*)(:)(\\s*)([\\-=]>)"
|
1860
|
+
},
|
1861
|
+
functionRules["({args})->"],
|
1862
|
+
functionRules["({})->"],
|
1863
|
+
functionRules["(args)->"],
|
1864
|
+
functionRules["()->"]
|
1865
|
+
, {
|
1866
|
+
token : "identifier",
|
1867
|
+
regex : "(?:(?:\\.|::)\\s*)" + identifier
|
1868
|
+
}, {
|
1869
|
+
token : "variable",
|
1870
|
+
regex : "@(?:" + identifier + ")?"
|
1871
|
+
}, {
|
1872
|
+
token: keywordMapper,
|
1873
|
+
regex : identifier
|
1874
|
+
}, {
|
1875
|
+
token : "punctuation.operator",
|
1876
|
+
regex : "\\?|\\:|\\,|\\."
|
1877
|
+
}, {
|
1878
|
+
token : "storage.type",
|
1879
|
+
regex : "[\\-=]>"
|
1880
|
+
}, {
|
1881
|
+
token : "keyword.operator",
|
1882
|
+
regex : "(?:[-+*/%<>&|^!?=]=|>>>=?|\\-\\-|\\+\\+|::|&&=|\\|\\|=|<<=|>>=|\\?\\.|\\.{2,3}|[!*+-=><])"
|
1883
|
+
}, {
|
1884
|
+
token : "paren.lparen",
|
1885
|
+
regex : "[({[]"
|
1886
|
+
}, {
|
1887
|
+
token : "paren.rparen",
|
1888
|
+
regex : "[\\]})]"
|
1889
|
+
}, {
|
1890
|
+
token : "text",
|
1891
|
+
regex : "\\s+"
|
1892
|
+
}],
|
1893
|
+
|
1894
|
+
qdoc : [{
|
1895
|
+
token : "string",
|
1896
|
+
regex : ".*?'''",
|
1897
|
+
next : "start"
|
1898
|
+
}, stringfill],
|
1899
|
+
|
1900
|
+
qqdoc : [{
|
1901
|
+
token : "string",
|
1902
|
+
regex : '.*?"""',
|
1903
|
+
next : "start"
|
1904
|
+
}, stringfill],
|
1905
|
+
|
1906
|
+
qstring : [{
|
1907
|
+
token : "string",
|
1908
|
+
regex : "[^\\\\']*(?:\\\\.[^\\\\']*)*'",
|
1909
|
+
next : "start"
|
1910
|
+
}, stringfill],
|
1911
|
+
|
1912
|
+
qqstring : [{
|
1913
|
+
token : "string",
|
1914
|
+
regex : '[^\\\\"]*(?:\\\\.[^\\\\"]*)*"',
|
1915
|
+
next : "start"
|
1916
|
+
}, stringfill],
|
1917
|
+
|
1918
|
+
js : [{
|
1919
|
+
token : "string",
|
1920
|
+
regex : "[^\\\\`]*(?:\\\\.[^\\\\`]*)*`",
|
1921
|
+
next : "start"
|
1922
|
+
}, stringfill],
|
1923
|
+
|
1924
|
+
heregex : [{
|
1925
|
+
token : "string.regex",
|
1926
|
+
regex : '.*?///[imgy]{0,4}',
|
1927
|
+
next : "start"
|
1928
|
+
}, {
|
1929
|
+
token : "comment.regex",
|
1930
|
+
regex : "\\s+(?:#.*)?"
|
1931
|
+
}, {
|
1932
|
+
token : "string.regex",
|
1933
|
+
regex : "\\S+"
|
1934
|
+
}],
|
1935
|
+
|
1936
|
+
comment : [{
|
1937
|
+
token : "comment",
|
1938
|
+
regex : '.*?###',
|
1939
|
+
next : "start"
|
1940
|
+
}, {
|
1941
|
+
token : "comment",
|
1942
|
+
regex : ".+"
|
1943
|
+
}]
|
1944
|
+
};
|
1945
|
+
}
|
1946
|
+
|
1947
|
+
exports.CoffeeHighlightRules = CoffeeHighlightRules;
|
1948
|
+
});
|
1949
|
+
|
1950
|
+
define('ace/mode/folding/coffee', ['require', 'exports', 'module' , 'ace/lib/oop', 'ace/mode/folding/fold_mode', 'ace/range'], function(require, exports, module) {
|
1951
|
+
|
1952
|
+
|
1953
|
+
var oop = require("../../lib/oop");
|
1954
|
+
var BaseFoldMode = require("./fold_mode").FoldMode;
|
1955
|
+
var Range = require("../../range").Range;
|
1956
|
+
|
1957
|
+
var FoldMode = exports.FoldMode = function() {};
|
1958
|
+
oop.inherits(FoldMode, BaseFoldMode);
|
1959
|
+
|
1960
|
+
(function() {
|
1961
|
+
|
1962
|
+
this.getFoldWidgetRange = function(session, foldStyle, row) {
|
1963
|
+
var range = this.indentationBlock(session, row);
|
1964
|
+
if (range)
|
1965
|
+
return range;
|
1966
|
+
|
1967
|
+
var re = /\S/;
|
1968
|
+
var line = session.getLine(row);
|
1969
|
+
var startLevel = line.search(re);
|
1970
|
+
if (startLevel == -1 || line[startLevel] != "#")
|
1971
|
+
return;
|
1972
|
+
|
1973
|
+
var startColumn = line.length;
|
1974
|
+
var maxRow = session.getLength();
|
1975
|
+
var startRow = row;
|
1976
|
+
var endRow = row;
|
1977
|
+
|
1978
|
+
while (++row < maxRow) {
|
1979
|
+
line = session.getLine(row);
|
1980
|
+
var level = line.search(re);
|
1981
|
+
|
1982
|
+
if (level == -1)
|
1983
|
+
continue;
|
1984
|
+
|
1985
|
+
if (line[level] != "#")
|
1986
|
+
break;
|
1987
|
+
|
1988
|
+
endRow = row;
|
1989
|
+
}
|
1990
|
+
|
1991
|
+
if (endRow > startRow) {
|
1992
|
+
var endColumn = session.getLine(endRow).length;
|
1993
|
+
return new Range(startRow, startColumn, endRow, endColumn);
|
1994
|
+
}
|
1995
|
+
};
|
1996
|
+
this.getFoldWidget = function(session, foldStyle, row) {
|
1997
|
+
var line = session.getLine(row);
|
1998
|
+
var indent = line.search(/\S/);
|
1999
|
+
var next = session.getLine(row + 1);
|
2000
|
+
var prev = session.getLine(row - 1);
|
2001
|
+
var prevIndent = prev.search(/\S/);
|
2002
|
+
var nextIndent = next.search(/\S/);
|
2003
|
+
|
2004
|
+
if (indent == -1) {
|
2005
|
+
session.foldWidgets[row - 1] = prevIndent!= -1 && prevIndent < nextIndent ? "start" : "";
|
2006
|
+
return "";
|
2007
|
+
}
|
2008
|
+
if (prevIndent == -1) {
|
2009
|
+
if (indent == nextIndent && line[indent] == "#" && next[indent] == "#") {
|
2010
|
+
session.foldWidgets[row - 1] = "";
|
2011
|
+
session.foldWidgets[row + 1] = "";
|
2012
|
+
return "start";
|
2013
|
+
}
|
2014
|
+
} else if (prevIndent == indent && line[indent] == "#" && prev[indent] == "#") {
|
2015
|
+
if (session.getLine(row - 2).search(/\S/) == -1) {
|
2016
|
+
session.foldWidgets[row - 1] = "start";
|
2017
|
+
session.foldWidgets[row + 1] = "";
|
2018
|
+
return "";
|
2019
|
+
}
|
2020
|
+
}
|
2021
|
+
|
2022
|
+
if (prevIndent!= -1 && prevIndent < indent)
|
2023
|
+
session.foldWidgets[row - 1] = "start";
|
2024
|
+
else
|
2025
|
+
session.foldWidgets[row - 1] = "";
|
2026
|
+
|
2027
|
+
if (indent < nextIndent)
|
2028
|
+
return "start";
|
2029
|
+
else
|
2030
|
+
return "";
|
2031
|
+
};
|
2032
|
+
|
2033
|
+
}).call(FoldMode.prototype);
|
2034
|
+
|
2035
|
+
});
|