jquery-ace-rails 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/jquery-ace-rails/version.rb +1 -1
- data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/ace.js +0 -0
- data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/ext-static_highlight.js +0 -0
- data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/ext-textarea.js +0 -0
- data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/keybinding-emacs.js +0 -0
- data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/keybinding-vim.js +0 -0
- data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-abap.js +0 -0
- data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-asciidoc.js +0 -0
- data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-c9search.js +0 -0
- data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-c_cpp.js +0 -0
- data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-clojure.js +0 -0
- data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-coffee.js +0 -0
- data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-coldfusion.js +0 -0
- data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-csharp.js +0 -0
- data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-css.js +0 -0
- data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-dart.js +0 -0
- data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-diff.js +0 -0
- data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-dot.js +0 -0
- data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-glsl.js +0 -0
- data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-golang.js +0 -0
- data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-groovy.js +0 -0
- data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-haml.js +0 -0
- data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-haxe.js +0 -0
- data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-html.js +0 -0
- data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-jade.js +0 -0
- data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-java.js +0 -0
- data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-javascript.js +0 -0
- data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-json.js +0 -0
- data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-jsp.js +0 -0
- data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-jsx.js +0 -0
- data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-latex.js +0 -0
- data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-less.js +0 -0
- data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-liquid.js +0 -0
- data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-lisp.js +0 -0
- data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-lua.js +0 -0
- data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-luapage.js +0 -0
- data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-lucene.js +0 -0
- data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-makefile.js +0 -0
- data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-markdown.js +0 -0
- data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-objectivec.js +0 -0
- data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-ocaml.js +0 -0
- data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-perl.js +0 -0
- data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-pgsql.js +0 -0
- data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-php.js +0 -0
- data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-powershell.js +0 -0
- data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-python.js +0 -0
- data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-r.js +0 -0
- data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-rdoc.js +0 -0
- data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-rhtml.js +0 -0
- data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-ruby.js +0 -0
- data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-scad.js +0 -0
- data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-scala.js +0 -0
- data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-scss.js +0 -0
- data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-sh.js +0 -0
- data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-sql.js +0 -0
- data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-stylus.js +0 -0
- data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-svg.js +0 -0
- data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-tcl.js +0 -0
- data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-tex.js +0 -0
- data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-text.js +0 -0
- data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-textile.js +0 -0
- data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-typescript.js +0 -0
- data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-xml.js +0 -0
- data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-xquery.js +0 -0
- data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-yaml.js +0 -0
- data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/theme-ambiance.js +0 -0
- data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/theme-chaos.js +0 -0
- data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/theme-chrome.js +0 -0
- data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/theme-clouds.js +0 -0
- data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/theme-clouds_midnight.js +0 -0
- data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/theme-cobalt.js +0 -0
- data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/theme-crimson_editor.js +0 -0
- data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/theme-dawn.js +0 -0
- data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/theme-dreamweaver.js +0 -0
- data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/theme-eclipse.js +0 -0
- data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/theme-github.js +0 -0
- data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/theme-idle_fingers.js +0 -0
- data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/theme-kr.js +0 -0
- data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/theme-merbivore.js +0 -0
- data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/theme-merbivore_soft.js +0 -0
- data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/theme-mono_industrial.js +0 -0
- data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/theme-monokai.js +0 -0
- data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/theme-pastel_on_dark.js +0 -0
- data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/theme-solarized_dark.js +0 -0
- data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/theme-solarized_light.js +0 -0
- data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/theme-textmate.js +0 -0
- data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/theme-tomorrow.js +0 -0
- data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/theme-tomorrow_night.js +0 -0
- data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/theme-tomorrow_night_blue.js +0 -0
- data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/theme-tomorrow_night_bright.js +0 -0
- data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/theme-tomorrow_night_eighties.js +0 -0
- data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/theme-twilight.js +0 -0
- data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/theme-vibrant_ink.js +0 -0
- data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/theme-xcode.js +0 -0
- data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/worker-coffee.js +0 -0
- data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/worker-css.js +0 -0
- data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/worker-javascript.js +0 -0
- data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/worker-json.js +0 -0
- data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/worker-xquery.js +0 -0
- data/vendor/assets/javascripts/{jquery-ace/jquery-ace.coffee → jquery-ace.coffee} +1 -1
- data/vendor/assets/javascripts/{jquery-ace/jquery-ace.js → jquery-ace.js} +1 -1
- data/vendor/assets/javascripts/{jquery-ace/jquery-ace.min.js → jquery-ace.min.js} +1 -1
- data/vendor/assets/javascripts/{jquery-ace/vendor → jquery}/jquery-1.8.3.min.js +0 -0
- metadata +104 -202
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/ace.js +0 -14262
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/ext-static_highlight.js +0 -96
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/ext-textarea.js +0 -591
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/keybinding-emacs.js +0 -364
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/keybinding-vim.js +0 -1646
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-abap.js +0 -259
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-asciidoc.js +0 -372
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-c9search.js +0 -187
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-c_cpp.js +0 -765
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-clojure.js +0 -325
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-coffee.js +0 -520
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-coldfusion.js +0 -1725
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-csharp.js +0 -605
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-css.js +0 -680
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-dart.js +0 -279
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-diff.js +0 -163
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-dot.js +0 -348
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-glsl.js +0 -838
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-golang.js +0 -660
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-groovy.js +0 -1082
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-haml.js +0 -440
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-haxe.js +0 -610
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-html.js +0 -1850
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-jade.js +0 -2035
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-java.js +0 -1041
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-javascript.js +0 -921
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-json.js +0 -574
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-jsp.js +0 -1371
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-jsx.js +0 -635
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-latex.js +0 -217
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-less.js +0 -394
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-liquid.js +0 -921
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-lisp.js +0 -142
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-lua.js +0 -609
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-luapage.js +0 -2463
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-lucene.js +0 -64
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-makefile.js +0 -314
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-markdown.js +0 -2228
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-objectivec.js +0 -655
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-ocaml.js +0 -448
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-perl.js +0 -319
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-pgsql.js +0 -928
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-php.js +0 -2299
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-powershell.js +0 -611
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-python.js +0 -290
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-r.js +0 -410
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-rdoc.js +0 -189
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-rhtml.js +0 -2138
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-ruby.js +0 -410
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-scad.js +0 -698
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-scala.js +0 -1070
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-scss.js +0 -416
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-sh.js +0 -232
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-sql.js +0 -145
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-stylus.js +0 -474
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-svg.js +0 -1490
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-tcl.js +0 -342
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-tex.js +0 -171
- 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 +0 -175
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-typescript.js +0 -1011
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-xml.js +0 -792
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-xquery.js +0 -676
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-yaml.js +0 -298
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/theme-ambiance.js +0 -202
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/theme-chaos.js +0 -167
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/theme-chrome.js +0 -161
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/theme-clouds.js +0 -135
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/theme-clouds_midnight.js +0 -136
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/theme-cobalt.js +0 -150
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/theme-crimson_editor.js +0 -154
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/theme-dawn.js +0 -146
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/theme-dreamweaver.js +0 -173
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/theme-eclipse.js +0 -122
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/theme-github.js +0 -136
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/theme-idle_fingers.js +0 -136
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/theme-kr.js +0 -143
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/theme-merbivore.js +0 -135
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/theme-merbivore_soft.js +0 -136
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/theme-mono_industrial.js +0 -148
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/theme-monokai.js +0 -140
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/theme-pastel_on_dark.js +0 -148
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/theme-solarized_dark.js +0 -128
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/theme-solarized_light.js +0 -131
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/theme-textmate.js +0 -163
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/theme-tomorrow.js +0 -147
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/theme-tomorrow_night.js +0 -147
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/theme-tomorrow_night_blue.js +0 -145
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/theme-tomorrow_night_bright.js +0 -147
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/theme-tomorrow_night_eighties.js +0 -144
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/theme-twilight.js +0 -147
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/theme-vibrant_ink.js +0 -131
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/theme-xcode.js +0 -125
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/worker-coffee.js +0 -6985
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/worker-css.js +0 -7741
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/worker-javascript.js +0 -6387
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/worker-json.js +0 -2228
- data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/worker-xquery.js +0 -21719
@@ -1,416 +0,0 @@
|
|
1
|
-
/* ***** BEGIN LICENSE BLOCK *****
|
2
|
-
* Distributed under the BSD license:
|
3
|
-
*
|
4
|
-
* Copyright (c) 2010, Ajax.org B.V.
|
5
|
-
* All rights reserved.
|
6
|
-
*
|
7
|
-
* Redistribution and use in source and binary forms, with or without
|
8
|
-
* modification, are permitted provided that the following conditions are met:
|
9
|
-
* * Redistributions of source code must retain the above copyright
|
10
|
-
* notice, this list of conditions and the following disclaimer.
|
11
|
-
* * Redistributions in binary form must reproduce the above copyright
|
12
|
-
* notice, this list of conditions and the following disclaimer in the
|
13
|
-
* documentation and/or other materials provided with the distribution.
|
14
|
-
* * Neither the name of Ajax.org B.V. nor the
|
15
|
-
* names of its contributors may be used to endorse or promote products
|
16
|
-
* derived from this software without specific prior written permission.
|
17
|
-
*
|
18
|
-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
19
|
-
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
20
|
-
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
21
|
-
* DISCLAIMED. IN NO EVENT SHALL AJAX.ORG B.V. BE LIABLE FOR ANY
|
22
|
-
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
23
|
-
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
24
|
-
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
25
|
-
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
26
|
-
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
27
|
-
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
28
|
-
*
|
29
|
-
* ***** END LICENSE BLOCK ***** */
|
30
|
-
|
31
|
-
define('ace/mode/scss', ['require', 'exports', 'module' , 'ace/lib/oop', 'ace/mode/text', 'ace/tokenizer', 'ace/mode/scss_highlight_rules', 'ace/mode/matching_brace_outdent', 'ace/mode/folding/cstyle'], function(require, exports, module) {
|
32
|
-
|
33
|
-
|
34
|
-
var oop = require("../lib/oop");
|
35
|
-
var TextMode = require("./text").Mode;
|
36
|
-
var Tokenizer = require("../tokenizer").Tokenizer;
|
37
|
-
var ScssHighlightRules = require("./scss_highlight_rules").ScssHighlightRules;
|
38
|
-
var MatchingBraceOutdent = require("./matching_brace_outdent").MatchingBraceOutdent;
|
39
|
-
var CStyleFoldMode = require("./folding/cstyle").FoldMode;
|
40
|
-
|
41
|
-
var Mode = function() {
|
42
|
-
this.$tokenizer = new Tokenizer(new ScssHighlightRules().getRules(), "i");
|
43
|
-
this.$outdent = new MatchingBraceOutdent();
|
44
|
-
this.foldingRules = new CStyleFoldMode();
|
45
|
-
};
|
46
|
-
oop.inherits(Mode, TextMode);
|
47
|
-
|
48
|
-
(function() {
|
49
|
-
|
50
|
-
this.getNextLineIndent = function(state, line, tab) {
|
51
|
-
var indent = this.$getIndent(line);
|
52
|
-
var tokens = this.$tokenizer.getLineTokens(line, state).tokens;
|
53
|
-
if (tokens.length && tokens[tokens.length-1].type == "comment") {
|
54
|
-
return indent;
|
55
|
-
}
|
56
|
-
|
57
|
-
var match = line.match(/^.*\{\s*$/);
|
58
|
-
if (match) {
|
59
|
-
indent += tab;
|
60
|
-
}
|
61
|
-
|
62
|
-
return indent;
|
63
|
-
};
|
64
|
-
|
65
|
-
this.checkOutdent = function(state, line, input) {
|
66
|
-
return this.$outdent.checkOutdent(line, input);
|
67
|
-
};
|
68
|
-
|
69
|
-
this.autoOutdent = function(state, doc, row) {
|
70
|
-
this.$outdent.autoOutdent(doc, row);
|
71
|
-
};
|
72
|
-
|
73
|
-
}).call(Mode.prototype);
|
74
|
-
|
75
|
-
exports.Mode = Mode;
|
76
|
-
|
77
|
-
});
|
78
|
-
|
79
|
-
define('ace/mode/scss_highlight_rules', ['require', 'exports', 'module' , 'ace/lib/oop', 'ace/lib/lang', 'ace/mode/text_highlight_rules'], function(require, exports, module) {
|
80
|
-
|
81
|
-
|
82
|
-
var oop = require("../lib/oop");
|
83
|
-
var lang = require("../lib/lang");
|
84
|
-
var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
|
85
|
-
|
86
|
-
var ScssHighlightRules = function() {
|
87
|
-
|
88
|
-
var properties = lang.arrayToMap( (function () {
|
89
|
-
|
90
|
-
var browserPrefix = ("-webkit-|-moz-|-o-|-ms-|-svg-|-pie-|-khtml-").split("|");
|
91
|
-
|
92
|
-
var prefixProperties = ("appearance|background-clip|background-inline-policy|background-origin|" +
|
93
|
-
"background-size|binding|border-bottom-colors|border-left-colors|" +
|
94
|
-
"border-right-colors|border-top-colors|border-end|border-end-color|" +
|
95
|
-
"border-end-style|border-end-width|border-image|border-start|" +
|
96
|
-
"border-start-color|border-start-style|border-start-width|box-align|" +
|
97
|
-
"box-direction|box-flex|box-flexgroup|box-ordinal-group|box-orient|" +
|
98
|
-
"box-pack|box-sizing|column-count|column-gap|column-width|column-rule|" +
|
99
|
-
"column-rule-width|column-rule-style|column-rule-color|float-edge|" +
|
100
|
-
"font-feature-settings|font-language-override|force-broken-image-icon|" +
|
101
|
-
"image-region|margin-end|margin-start|opacity|outline|outline-color|" +
|
102
|
-
"outline-offset|outline-radius|outline-radius-bottomleft|" +
|
103
|
-
"outline-radius-bottomright|outline-radius-topleft|outline-radius-topright|" +
|
104
|
-
"outline-style|outline-width|padding-end|padding-start|stack-sizing|" +
|
105
|
-
"tab-size|text-blink|text-decoration-color|text-decoration-line|" +
|
106
|
-
"text-decoration-style|transform|transform-origin|transition|" +
|
107
|
-
"transition-delay|transition-duration|transition-property|" +
|
108
|
-
"transition-timing-function|user-focus|user-input|user-modify|user-select|" +
|
109
|
-
"window-shadow|border-radius").split("|");
|
110
|
-
|
111
|
-
var properties = ("azimuth|background-attachment|background-color|background-image|" +
|
112
|
-
"background-position|background-repeat|background|border-bottom-color|" +
|
113
|
-
"border-bottom-style|border-bottom-width|border-bottom|border-collapse|" +
|
114
|
-
"border-color|border-left-color|border-left-style|border-left-width|" +
|
115
|
-
"border-left|border-right-color|border-right-style|border-right-width|" +
|
116
|
-
"border-right|border-spacing|border-style|border-top-color|" +
|
117
|
-
"border-top-style|border-top-width|border-top|border-width|border|" +
|
118
|
-
"bottom|box-sizing|caption-side|clear|clip|color|content|counter-increment|" +
|
119
|
-
"counter-reset|cue-after|cue-before|cue|cursor|direction|display|" +
|
120
|
-
"elevation|empty-cells|float|font-family|font-size-adjust|font-size|" +
|
121
|
-
"font-stretch|font-style|font-variant|font-weight|font|height|left|" +
|
122
|
-
"letter-spacing|line-height|list-style-image|list-style-position|" +
|
123
|
-
"list-style-type|list-style|margin-bottom|margin-left|margin-right|" +
|
124
|
-
"margin-top|marker-offset|margin|marks|max-height|max-width|min-height|" +
|
125
|
-
"min-width|opacity|orphans|outline-color|" +
|
126
|
-
"outline-style|outline-width|outline|overflow|overflow-x|overflow-y|padding-bottom|" +
|
127
|
-
"padding-left|padding-right|padding-top|padding|page-break-after|" +
|
128
|
-
"page-break-before|page-break-inside|page|pause-after|pause-before|" +
|
129
|
-
"pause|pitch-range|pitch|play-during|position|quotes|richness|right|" +
|
130
|
-
"size|speak-header|speak-numeral|speak-punctuation|speech-rate|speak|" +
|
131
|
-
"stress|table-layout|text-align|text-decoration|text-indent|" +
|
132
|
-
"text-shadow|text-transform|top|unicode-bidi|vertical-align|" +
|
133
|
-
"visibility|voice-family|volume|white-space|widows|width|word-spacing|" +
|
134
|
-
"z-index").split("|");
|
135
|
-
var ret = [];
|
136
|
-
for (var i=0, ln=browserPrefix.length; i<ln; i++) {
|
137
|
-
Array.prototype.push.apply(
|
138
|
-
ret,
|
139
|
-
(( browserPrefix[i] + prefixProperties.join("|" + browserPrefix[i]) ).split("|"))
|
140
|
-
);
|
141
|
-
}
|
142
|
-
Array.prototype.push.apply(ret, prefixProperties);
|
143
|
-
Array.prototype.push.apply(ret, properties);
|
144
|
-
|
145
|
-
return ret;
|
146
|
-
|
147
|
-
})() );
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
var functions = lang.arrayToMap(
|
152
|
-
("hsl|hsla|rgb|rgba|url|attr|counter|counters|abs|adjust_color|adjust_hue|" +
|
153
|
-
"alpha|join|blue|ceil|change_color|comparable|complement|darken|desaturate|" +
|
154
|
-
"floor|grayscale|green|hue|if|invert|join|length|lighten|lightness|mix|" +
|
155
|
-
"nth|opacify|opacity|percentage|quote|red|round|saturate|saturation|" +
|
156
|
-
"scale_color|transparentize|type_of|unit|unitless|unqoute").split("|")
|
157
|
-
);
|
158
|
-
|
159
|
-
var constants = lang.arrayToMap(
|
160
|
-
("absolute|all-scroll|always|armenian|auto|baseline|below|bidi-override|" +
|
161
|
-
"block|bold|bolder|border-box|both|bottom|break-all|break-word|capitalize|center|" +
|
162
|
-
"char|circle|cjk-ideographic|col-resize|collapse|content-box|crosshair|dashed|" +
|
163
|
-
"decimal-leading-zero|decimal|default|disabled|disc|" +
|
164
|
-
"distribute-all-lines|distribute-letter|distribute-space|" +
|
165
|
-
"distribute|dotted|double|e-resize|ellipsis|fixed|georgian|groove|" +
|
166
|
-
"hand|hebrew|help|hidden|hiragana-iroha|hiragana|horizontal|" +
|
167
|
-
"ideograph-alpha|ideograph-numeric|ideograph-parenthesis|" +
|
168
|
-
"ideograph-space|inactive|inherit|inline-block|inline|inset|inside|" +
|
169
|
-
"inter-ideograph|inter-word|italic|justify|katakana-iroha|katakana|" +
|
170
|
-
"keep-all|left|lighter|line-edge|line-through|line|list-item|loose|" +
|
171
|
-
"lower-alpha|lower-greek|lower-latin|lower-roman|lowercase|lr-tb|ltr|" +
|
172
|
-
"medium|middle|move|n-resize|ne-resize|newspaper|no-drop|no-repeat|" +
|
173
|
-
"nw-resize|none|normal|not-allowed|nowrap|oblique|outset|outside|" +
|
174
|
-
"overline|pointer|progress|relative|repeat-x|repeat-y|repeat|right|" +
|
175
|
-
"ridge|row-resize|rtl|s-resize|scroll|se-resize|separate|small-caps|" +
|
176
|
-
"solid|square|static|strict|super|sw-resize|table-footer-group|" +
|
177
|
-
"table-header-group|tb-rl|text-bottom|text-top|text|thick|thin|top|" +
|
178
|
-
"transparent|underline|upper-alpha|upper-latin|upper-roman|uppercase|" +
|
179
|
-
"vertical-ideographic|vertical-text|visible|w-resize|wait|whitespace|" +
|
180
|
-
"zero").split("|")
|
181
|
-
);
|
182
|
-
|
183
|
-
var colors = lang.arrayToMap(
|
184
|
-
("aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|orange|" +
|
185
|
-
"purple|red|silver|teal|white|yellow").split("|")
|
186
|
-
);
|
187
|
-
|
188
|
-
var keywords = lang.arrayToMap(
|
189
|
-
("@mixin|@extend|@include|@import|@media|@debug|@warn|@if|@for|@each|@while|@else|@font-face|@-webkit-keyframes|if|and|!default|module|def|end|declare").split("|")
|
190
|
-
)
|
191
|
-
|
192
|
-
var tags = lang.arrayToMap(
|
193
|
-
("a|abbr|acronym|address|applet|area|article|aside|audio|b|base|basefont|bdo|" +
|
194
|
-
"big|blockquote|body|br|button|canvas|caption|center|cite|code|col|colgroup|" +
|
195
|
-
"command|datalist|dd|del|details|dfn|dir|div|dl|dt|em|embed|fieldset|" +
|
196
|
-
"figcaption|figure|font|footer|form|frame|frameset|h1|h2|h3|h4|h5|h6|head|" +
|
197
|
-
"header|hgroup|hr|html|i|iframe|img|input|ins|keygen|kbd|label|legend|li|" +
|
198
|
-
"link|map|mark|menu|meta|meter|nav|noframes|noscript|object|ol|optgroup|" +
|
199
|
-
"option|output|p|param|pre|progress|q|rp|rt|ruby|s|samp|script|section|select|" +
|
200
|
-
"small|source|span|strike|strong|style|sub|summary|sup|table|tbody|td|" +
|
201
|
-
"textarea|tfoot|th|thead|time|title|tr|tt|u|ul|var|video|wbr|xmp").split("|")
|
202
|
-
);
|
203
|
-
|
204
|
-
var numRe = "\\-?(?:(?:[0-9]+)|(?:[0-9]*\\.[0-9]+))";
|
205
|
-
|
206
|
-
this.$rules = {
|
207
|
-
"start" : [
|
208
|
-
{
|
209
|
-
token : "comment",
|
210
|
-
regex : "\\/\\/.*$"
|
211
|
-
},
|
212
|
-
{
|
213
|
-
token : "comment", // multi line comment
|
214
|
-
regex : "\\/\\*",
|
215
|
-
next : "comment"
|
216
|
-
}, {
|
217
|
-
token : "string", // single line
|
218
|
-
regex : '["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]'
|
219
|
-
}, {
|
220
|
-
token : "string", // multi line string start
|
221
|
-
regex : '["].*\\\\$',
|
222
|
-
next : "qqstring"
|
223
|
-
}, {
|
224
|
-
token : "string", // single line
|
225
|
-
regex : "['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"
|
226
|
-
}, {
|
227
|
-
token : "string", // multi line string start
|
228
|
-
regex : "['].*\\\\$",
|
229
|
-
next : "qstring"
|
230
|
-
}, {
|
231
|
-
token : "constant.numeric",
|
232
|
-
regex : numRe + "(?:em|ex|px|cm|mm|in|pt|pc|deg|rad|grad|ms|s|hz|khz|%)"
|
233
|
-
}, {
|
234
|
-
token : "constant.numeric", // hex6 color
|
235
|
-
regex : "#[a-f0-9]{6}"
|
236
|
-
}, {
|
237
|
-
token : "constant.numeric", // hex3 color
|
238
|
-
regex : "#[a-f0-9]{3}"
|
239
|
-
}, {
|
240
|
-
token : "constant.numeric",
|
241
|
-
regex : numRe
|
242
|
-
}, {
|
243
|
-
token : function(value) {
|
244
|
-
if (properties.hasOwnProperty(value.toLowerCase()))
|
245
|
-
return "support.type";
|
246
|
-
if (keywords.hasOwnProperty(value))
|
247
|
-
return "keyword";
|
248
|
-
else if (constants.hasOwnProperty(value))
|
249
|
-
return "constant.language";
|
250
|
-
else if (functions.hasOwnProperty(value))
|
251
|
-
return "support.function";
|
252
|
-
else if (colors.hasOwnProperty(value.toLowerCase()))
|
253
|
-
return "support.constant.color";
|
254
|
-
else if (tags.hasOwnProperty(value.toLowerCase()))
|
255
|
-
return "variable.language";
|
256
|
-
else
|
257
|
-
return "text";
|
258
|
-
},
|
259
|
-
regex : "\\-?[@a-z_][@a-z0-9_\\-]*"
|
260
|
-
}, {
|
261
|
-
token : "variable",
|
262
|
-
regex : "[a-z_\\-$][a-z0-9_\\-$]*\\b"
|
263
|
-
}, {
|
264
|
-
token: "variable.language",
|
265
|
-
regex: "#[a-z0-9-_]+"
|
266
|
-
}, {
|
267
|
-
token: "variable.language",
|
268
|
-
regex: "\\.[a-z0-9-_]+"
|
269
|
-
}, {
|
270
|
-
token: "variable.language",
|
271
|
-
regex: ":[a-z0-9-_]+"
|
272
|
-
}, {
|
273
|
-
token: "constant",
|
274
|
-
regex: "[a-z0-9-_]+"
|
275
|
-
}, {
|
276
|
-
token : "keyword.operator",
|
277
|
-
regex : "<|>|<=|>=|==|!=|-|%|#|\\+|\\$|\\+|\\*"
|
278
|
-
}, {
|
279
|
-
token : "paren.lparen",
|
280
|
-
regex : "[[({]"
|
281
|
-
}, {
|
282
|
-
token : "paren.rparen",
|
283
|
-
regex : "[\\])}]"
|
284
|
-
}, {
|
285
|
-
token : "text",
|
286
|
-
regex : "\\s+"
|
287
|
-
}
|
288
|
-
],
|
289
|
-
"comment" : [
|
290
|
-
{
|
291
|
-
token : "comment", // closing comment
|
292
|
-
regex : ".*?\\*\\/",
|
293
|
-
next : "start"
|
294
|
-
}, {
|
295
|
-
token : "comment", // comment spanning whole line
|
296
|
-
regex : ".+"
|
297
|
-
}
|
298
|
-
],
|
299
|
-
"qqstring" : [
|
300
|
-
{
|
301
|
-
token : "string",
|
302
|
-
regex : '(?:(?:\\\\.)|(?:[^"\\\\]))*?"',
|
303
|
-
next : "start"
|
304
|
-
}, {
|
305
|
-
token : "string",
|
306
|
-
regex : '.+'
|
307
|
-
}
|
308
|
-
],
|
309
|
-
"qstring" : [
|
310
|
-
{
|
311
|
-
token : "string",
|
312
|
-
regex : "(?:(?:\\\\.)|(?:[^'\\\\]))*?'",
|
313
|
-
next : "start"
|
314
|
-
}, {
|
315
|
-
token : "string",
|
316
|
-
regex : '.+'
|
317
|
-
}
|
318
|
-
]
|
319
|
-
};
|
320
|
-
};
|
321
|
-
|
322
|
-
oop.inherits(ScssHighlightRules, TextHighlightRules);
|
323
|
-
|
324
|
-
exports.ScssHighlightRules = ScssHighlightRules;
|
325
|
-
|
326
|
-
});
|
327
|
-
|
328
|
-
define('ace/mode/matching_brace_outdent', ['require', 'exports', 'module' , 'ace/range'], function(require, exports, module) {
|
329
|
-
|
330
|
-
|
331
|
-
var Range = require("../range").Range;
|
332
|
-
|
333
|
-
var MatchingBraceOutdent = function() {};
|
334
|
-
|
335
|
-
(function() {
|
336
|
-
|
337
|
-
this.checkOutdent = function(line, input) {
|
338
|
-
if (! /^\s+$/.test(line))
|
339
|
-
return false;
|
340
|
-
|
341
|
-
return /^\s*\}/.test(input);
|
342
|
-
};
|
343
|
-
|
344
|
-
this.autoOutdent = function(doc, row) {
|
345
|
-
var line = doc.getLine(row);
|
346
|
-
var match = line.match(/^(\s*\})/);
|
347
|
-
|
348
|
-
if (!match) return 0;
|
349
|
-
|
350
|
-
var column = match[1].length;
|
351
|
-
var openBracePos = doc.findMatchingBracket({row: row, column: column});
|
352
|
-
|
353
|
-
if (!openBracePos || openBracePos.row == row) return 0;
|
354
|
-
|
355
|
-
var indent = this.$getIndent(doc.getLine(openBracePos.row));
|
356
|
-
doc.replace(new Range(row, 0, row, column-1), indent);
|
357
|
-
};
|
358
|
-
|
359
|
-
this.$getIndent = function(line) {
|
360
|
-
var match = line.match(/^(\s+)/);
|
361
|
-
if (match) {
|
362
|
-
return match[1];
|
363
|
-
}
|
364
|
-
|
365
|
-
return "";
|
366
|
-
};
|
367
|
-
|
368
|
-
}).call(MatchingBraceOutdent.prototype);
|
369
|
-
|
370
|
-
exports.MatchingBraceOutdent = MatchingBraceOutdent;
|
371
|
-
});
|
372
|
-
|
373
|
-
define('ace/mode/folding/cstyle', ['require', 'exports', 'module' , 'ace/lib/oop', 'ace/range', 'ace/mode/folding/fold_mode'], function(require, exports, module) {
|
374
|
-
|
375
|
-
|
376
|
-
var oop = require("../../lib/oop");
|
377
|
-
var Range = require("../../range").Range;
|
378
|
-
var BaseFoldMode = require("./fold_mode").FoldMode;
|
379
|
-
|
380
|
-
var FoldMode = exports.FoldMode = function() {};
|
381
|
-
oop.inherits(FoldMode, BaseFoldMode);
|
382
|
-
|
383
|
-
(function() {
|
384
|
-
|
385
|
-
this.foldingStartMarker = /(\{|\[)[^\}\]]*$|^\s*(\/\*)/;
|
386
|
-
this.foldingStopMarker = /^[^\[\{]*(\}|\])|^[\s\*]*(\*\/)/;
|
387
|
-
|
388
|
-
this.getFoldWidgetRange = function(session, foldStyle, row) {
|
389
|
-
var line = session.getLine(row);
|
390
|
-
var match = line.match(this.foldingStartMarker);
|
391
|
-
if (match) {
|
392
|
-
var i = match.index;
|
393
|
-
|
394
|
-
if (match[1])
|
395
|
-
return this.openingBracketBlock(session, match[1], row, i);
|
396
|
-
|
397
|
-
return session.getCommentFoldRange(row, i + match[0].length, 1);
|
398
|
-
}
|
399
|
-
|
400
|
-
if (foldStyle !== "markbeginend")
|
401
|
-
return;
|
402
|
-
|
403
|
-
var match = line.match(this.foldingStopMarker);
|
404
|
-
if (match) {
|
405
|
-
var i = match.index + match[0].length;
|
406
|
-
|
407
|
-
if (match[1])
|
408
|
-
return this.closingBracketBlock(session, match[1], row, i);
|
409
|
-
|
410
|
-
return session.getCommentFoldRange(row, i, -1);
|
411
|
-
}
|
412
|
-
};
|
413
|
-
|
414
|
-
}).call(FoldMode.prototype);
|
415
|
-
|
416
|
-
});
|
@@ -1,232 +0,0 @@
|
|
1
|
-
/* ***** BEGIN LICENSE BLOCK *****
|
2
|
-
* Distributed under the BSD license:
|
3
|
-
*
|
4
|
-
* Copyright (c) 2010, Ajax.org B.V.
|
5
|
-
* All rights reserved.
|
6
|
-
*
|
7
|
-
* Redistribution and use in source and binary forms, with or without
|
8
|
-
* modification, are permitted provided that the following conditions are met:
|
9
|
-
* * Redistributions of source code must retain the above copyright
|
10
|
-
* notice, this list of conditions and the following disclaimer.
|
11
|
-
* * Redistributions in binary form must reproduce the above copyright
|
12
|
-
* notice, this list of conditions and the following disclaimer in the
|
13
|
-
* documentation and/or other materials provided with the distribution.
|
14
|
-
* * Neither the name of Ajax.org B.V. nor the
|
15
|
-
* names of its contributors may be used to endorse or promote products
|
16
|
-
* derived from this software without specific prior written permission.
|
17
|
-
*
|
18
|
-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
19
|
-
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
20
|
-
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
21
|
-
* DISCLAIMED. IN NO EVENT SHALL AJAX.ORG B.V. BE LIABLE FOR ANY
|
22
|
-
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
23
|
-
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
24
|
-
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
25
|
-
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
26
|
-
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
27
|
-
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
28
|
-
*
|
29
|
-
* ***** END LICENSE BLOCK ***** */
|
30
|
-
|
31
|
-
define('ace/mode/sh', ['require', 'exports', 'module' , 'ace/lib/oop', 'ace/mode/text', 'ace/tokenizer', 'ace/mode/sh_highlight_rules', 'ace/range'], function(require, exports, module) {
|
32
|
-
|
33
|
-
|
34
|
-
var oop = require("../lib/oop");
|
35
|
-
var TextMode = require("./text").Mode;
|
36
|
-
var Tokenizer = require("../tokenizer").Tokenizer;
|
37
|
-
var ShHighlightRules = require("./sh_highlight_rules").ShHighlightRules;
|
38
|
-
var Range = require("../range").Range;
|
39
|
-
|
40
|
-
var Mode = function() {
|
41
|
-
this.$tokenizer = new Tokenizer(new ShHighlightRules().getRules());
|
42
|
-
};
|
43
|
-
oop.inherits(Mode, TextMode);
|
44
|
-
|
45
|
-
(function() {
|
46
|
-
|
47
|
-
this.toggleCommentLines = function(state, doc, startRow, endRow) {
|
48
|
-
var outdent = true;
|
49
|
-
var re = /^(\s*)#/;
|
50
|
-
|
51
|
-
for (var i=startRow; i<= endRow; i++) {
|
52
|
-
if (!re.test(doc.getLine(i))) {
|
53
|
-
outdent = false;
|
54
|
-
break;
|
55
|
-
}
|
56
|
-
}
|
57
|
-
|
58
|
-
if (outdent) {
|
59
|
-
var deleteRange = new Range(0, 0, 0, 0);
|
60
|
-
for (var i=startRow; i<= endRow; i++)
|
61
|
-
{
|
62
|
-
var line = doc.getLine(i);
|
63
|
-
var m = line.match(re);
|
64
|
-
deleteRange.start.row = i;
|
65
|
-
deleteRange.end.row = i;
|
66
|
-
deleteRange.end.column = m[0].length;
|
67
|
-
doc.replace(deleteRange, m[1]);
|
68
|
-
}
|
69
|
-
}
|
70
|
-
else {
|
71
|
-
doc.indentRows(startRow, endRow, "#");
|
72
|
-
}
|
73
|
-
};
|
74
|
-
|
75
|
-
this.getNextLineIndent = function(state, line, tab) {
|
76
|
-
var indent = this.$getIndent(line);
|
77
|
-
|
78
|
-
var tokenizedLine = this.$tokenizer.getLineTokens(line, state);
|
79
|
-
var tokens = tokenizedLine.tokens;
|
80
|
-
|
81
|
-
if (tokens.length && tokens[tokens.length-1].type == "comment") {
|
82
|
-
return indent;
|
83
|
-
}
|
84
|
-
|
85
|
-
if (state == "start") {
|
86
|
-
var match = line.match(/^.*[\{\(\[\:]\s*$/);
|
87
|
-
if (match) {
|
88
|
-
indent += tab;
|
89
|
-
}
|
90
|
-
}
|
91
|
-
|
92
|
-
return indent;
|
93
|
-
};
|
94
|
-
|
95
|
-
var outdents = {
|
96
|
-
"pass": 1,
|
97
|
-
"return": 1,
|
98
|
-
"raise": 1,
|
99
|
-
"break": 1,
|
100
|
-
"continue": 1
|
101
|
-
};
|
102
|
-
|
103
|
-
this.checkOutdent = function(state, line, input) {
|
104
|
-
if (input !== "\r\n" && input !== "\r" && input !== "\n")
|
105
|
-
return false;
|
106
|
-
|
107
|
-
var tokens = this.$tokenizer.getLineTokens(line.trim(), state).tokens;
|
108
|
-
|
109
|
-
if (!tokens)
|
110
|
-
return false;
|
111
|
-
do {
|
112
|
-
var last = tokens.pop();
|
113
|
-
} while (last && (last.type == "comment" || (last.type == "text" && last.value.match(/^\s+$/))));
|
114
|
-
|
115
|
-
if (!last)
|
116
|
-
return false;
|
117
|
-
|
118
|
-
return (last.type == "keyword" && outdents[last.value]);
|
119
|
-
};
|
120
|
-
|
121
|
-
this.autoOutdent = function(state, doc, row) {
|
122
|
-
|
123
|
-
row += 1;
|
124
|
-
var indent = this.$getIndent(doc.getLine(row));
|
125
|
-
var tab = doc.getTabString();
|
126
|
-
if (indent.slice(-tab.length) == tab)
|
127
|
-
doc.remove(new Range(row, indent.length-tab.length, row, indent.length));
|
128
|
-
};
|
129
|
-
|
130
|
-
}).call(Mode.prototype);
|
131
|
-
|
132
|
-
exports.Mode = Mode;
|
133
|
-
});
|
134
|
-
|
135
|
-
define('ace/mode/sh_highlight_rules', ['require', 'exports', 'module' , 'ace/lib/oop', 'ace/mode/text_highlight_rules'], function(require, exports, module) {
|
136
|
-
|
137
|
-
|
138
|
-
var oop = require("../lib/oop");
|
139
|
-
var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
|
140
|
-
|
141
|
-
var reservedKeywords = exports.reservedKeywords = (
|
142
|
-
'!|{|}|case|do|done|elif|else|'+
|
143
|
-
'esac|fi|for|if|in|then|until|while|'+
|
144
|
-
'&|;|export|local|read|typeset|unset|'+
|
145
|
-
'elif|select|set'
|
146
|
-
);
|
147
|
-
|
148
|
-
var languageConstructs = exports.languageConstructs = (
|
149
|
-
'[|]|alias|bg|bind|break|builtin|'+
|
150
|
-
'cd|command|compgen|complete|continue|'+
|
151
|
-
'dirs|disown|echo|enable|eval|exec|'+
|
152
|
-
'exit|fc|fg|getopts|hash|help|history|'+
|
153
|
-
'jobs|kill|let|logout|popd|printf|pushd|'+
|
154
|
-
'pwd|return|set|shift|shopt|source|'+
|
155
|
-
'suspend|test|times|trap|type|ulimit|'+
|
156
|
-
'umask|unalias|wait'
|
157
|
-
);
|
158
|
-
|
159
|
-
var ShHighlightRules = function() {
|
160
|
-
var keywordMapper = this.createKeywordMapper({
|
161
|
-
"keyword": reservedKeywords,
|
162
|
-
"support.function.builtin": languageConstructs,
|
163
|
-
"invalid.deprecated": "debugger"
|
164
|
-
}, "identifier");
|
165
|
-
|
166
|
-
var integer = "(?:(?:[1-9]\\d*)|(?:0))";
|
167
|
-
|
168
|
-
var fraction = "(?:\\.\\d+)";
|
169
|
-
var intPart = "(?:\\d+)";
|
170
|
-
var pointFloat = "(?:(?:" + intPart + "?" + fraction + ")|(?:" + intPart + "\\.))";
|
171
|
-
var exponentFloat = "(?:(?:" + pointFloat + "|" + intPart + ")" + ")";
|
172
|
-
var floatNumber = "(?:" + exponentFloat + "|" + pointFloat + ")";
|
173
|
-
var fileDescriptor = "(?:&" + intPart + ")";
|
174
|
-
|
175
|
-
var variableName = "[a-zA-Z][a-zA-Z0-9_]*";
|
176
|
-
var variable = "(?:(?:\\$" + variableName + ")|(?:" + variableName + "=))";
|
177
|
-
|
178
|
-
var builtinVariable = "(?:\\$(?:SHLVL|\\$|\\!|\\?))";
|
179
|
-
|
180
|
-
var func = "(?:" + variableName + "\\s*\\(\\))";
|
181
|
-
|
182
|
-
this.$rules = {
|
183
|
-
"start" : [ {
|
184
|
-
token : "comment",
|
185
|
-
regex : "#.*$"
|
186
|
-
}, {
|
187
|
-
token : "string", // " string
|
188
|
-
regex : '"(?:[^\\\\]|\\\\.)*?"'
|
189
|
-
}, {
|
190
|
-
token : "variable.language",
|
191
|
-
regex : builtinVariable
|
192
|
-
}, {
|
193
|
-
token : "variable",
|
194
|
-
regex : variable
|
195
|
-
}, {
|
196
|
-
token : "support.function",
|
197
|
-
regex : func
|
198
|
-
}, {
|
199
|
-
token : "support.function",
|
200
|
-
regex : fileDescriptor
|
201
|
-
}, {
|
202
|
-
token : "string", // ' string
|
203
|
-
regex : "'(?:[^\\\\]|\\\\.)*?'"
|
204
|
-
}, {
|
205
|
-
token : "constant.numeric", // float
|
206
|
-
regex : floatNumber
|
207
|
-
}, {
|
208
|
-
token : "constant.numeric", // integer
|
209
|
-
regex : integer + "\\b"
|
210
|
-
}, {
|
211
|
-
token : keywordMapper,
|
212
|
-
regex : "[a-zA-Z_$][a-zA-Z0-9_$]*\\b"
|
213
|
-
}, {
|
214
|
-
token : "keyword.operator",
|
215
|
-
regex : "\\+|\\-|\\*|\\*\\*|\\/|\\/\\/|~|<|>|<=|=>|=|!="
|
216
|
-
}, {
|
217
|
-
token : "paren.lparen",
|
218
|
-
regex : "[\\[\\(\\{]"
|
219
|
-
}, {
|
220
|
-
token : "paren.rparen",
|
221
|
-
regex : "[\\]\\)\\}]"
|
222
|
-
}, {
|
223
|
-
token : "text",
|
224
|
-
regex : "\\s+"
|
225
|
-
} ]
|
226
|
-
};
|
227
|
-
};
|
228
|
-
|
229
|
-
oop.inherits(ShHighlightRules, TextHighlightRules);
|
230
|
-
|
231
|
-
exports.ShHighlightRules = ShHighlightRules;
|
232
|
-
});
|