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,142 +0,0 @@
|
|
1
|
-
/* ***** BEGIN LICENSE BLOCK *****
|
2
|
-
* Distributed under the BSD license:
|
3
|
-
*
|
4
|
-
* Copyright (c) 2012, Ajax.org B.V.
|
5
|
-
* All rights reserved.
|
6
|
-
*
|
7
|
-
* Redistribution and use in source and binary forms, with or without
|
8
|
-
* modification, are permitted provided that the following conditions are met:
|
9
|
-
* * Redistributions of source code must retain the above copyright
|
10
|
-
* notice, this list of conditions and the following disclaimer.
|
11
|
-
* * Redistributions in binary form must reproduce the above copyright
|
12
|
-
* notice, this list of conditions and the following disclaimer in the
|
13
|
-
* documentation and/or other materials provided with the distribution.
|
14
|
-
* * Neither the name of Ajax.org B.V. nor the
|
15
|
-
* names of its contributors may be used to endorse or promote products
|
16
|
-
* derived from this software without specific prior written permission.
|
17
|
-
*
|
18
|
-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
19
|
-
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
20
|
-
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
21
|
-
* DISCLAIMED. IN NO EVENT SHALL AJAX.ORG B.V. BE LIABLE FOR ANY
|
22
|
-
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
23
|
-
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
24
|
-
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
25
|
-
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
26
|
-
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
27
|
-
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
28
|
-
*
|
29
|
-
*
|
30
|
-
* Contributor(s):
|
31
|
-
*
|
32
|
-
*
|
33
|
-
*
|
34
|
-
* ***** END LICENSE BLOCK ***** */
|
35
|
-
|
36
|
-
define('ace/mode/lisp', ['require', 'exports', 'module' , 'ace/lib/oop', 'ace/mode/text', 'ace/tokenizer', 'ace/mode/lisp_highlight_rules'], 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 LispHighlightRules = require("./lisp_highlight_rules").LispHighlightRules;
|
43
|
-
|
44
|
-
var Mode = function() {
|
45
|
-
var highlighter = new LispHighlightRules();
|
46
|
-
|
47
|
-
this.$tokenizer = new Tokenizer(highlighter.getRules());
|
48
|
-
};
|
49
|
-
oop.inherits(Mode, TextMode);
|
50
|
-
|
51
|
-
(function() {
|
52
|
-
}).call(Mode.prototype);
|
53
|
-
|
54
|
-
exports.Mode = Mode;
|
55
|
-
});
|
56
|
-
|
57
|
-
|
58
|
-
define('ace/mode/lisp_highlight_rules', ['require', 'exports', 'module' , 'ace/lib/oop', 'ace/mode/text_highlight_rules'], function(require, exports, module) {
|
59
|
-
|
60
|
-
|
61
|
-
var oop = require("../lib/oop");
|
62
|
-
var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
|
63
|
-
|
64
|
-
var LispHighlightRules = function() {
|
65
|
-
var keywordControl = "case|do|let|loop|if|else|when";
|
66
|
-
var keywordOperator = "eq|neq|and|or";
|
67
|
-
var constantLanguage = "null|nil";
|
68
|
-
var supportFunctions = "cons|car|cdr|cond|lambda|format|setq|setf|quote|eval|append|list|listp|memberp|t|load|progn";
|
69
|
-
|
70
|
-
var keywordMapper = this.createKeywordMapper({
|
71
|
-
"keyword.control": keywordControl,
|
72
|
-
"keyword.operator": keywordOperator,
|
73
|
-
"constant.language": constantLanguage,
|
74
|
-
"support.function": supportFunctions
|
75
|
-
}, "identifier", true);
|
76
|
-
|
77
|
-
this.$rules =
|
78
|
-
{
|
79
|
-
"start": [
|
80
|
-
{
|
81
|
-
token : "comment",
|
82
|
-
regex : ";.*$"
|
83
|
-
},
|
84
|
-
{
|
85
|
-
"token": ["storage.type.function-type.lisp", "text", "entity.name.function.lisp"],
|
86
|
-
"regex": "(?:\\b(?:(defun|defmethod|defmacro))\\b)(\\s+)((?:\\w|\\-|\\!|\\?)*)"
|
87
|
-
},
|
88
|
-
{
|
89
|
-
"token": ["punctuation.definition.constant.character.lisp", "constant.character.lisp"],
|
90
|
-
"regex": "(#)((?:\\w|[\\\\+-=<>'\"&#])+)"
|
91
|
-
},
|
92
|
-
{
|
93
|
-
"token": ["punctuation.definition.variable.lisp", "variable.other.global.lisp", "punctuation.definition.variable.lisp"],
|
94
|
-
"regex": "(\\*)(\\S*)(\\*)"
|
95
|
-
},
|
96
|
-
{
|
97
|
-
"token" : "constant.numeric", // hex
|
98
|
-
"regex" : "0[xX][0-9a-fA-F]+(?:L|l|UL|ul|u|U|F|f|ll|LL|ull|ULL)?\\b"
|
99
|
-
},
|
100
|
-
{
|
101
|
-
"token" : "constant.numeric", // float
|
102
|
-
"regex" : "[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?(?:L|l|UL|ul|u|U|F|f|ll|LL|ull|ULL)?\\b"
|
103
|
-
},
|
104
|
-
{
|
105
|
-
"token" : keywordMapper,
|
106
|
-
"regex" : "[a-zA-Z_$][a-zA-Z0-9_$]*\\b"
|
107
|
-
},
|
108
|
-
{
|
109
|
-
"token" : "string",
|
110
|
-
"regex" : '"(?=.)',
|
111
|
-
"next" : "qqstring"
|
112
|
-
}
|
113
|
-
],
|
114
|
-
"qqstring": [
|
115
|
-
{
|
116
|
-
"token": "constant.character.escape.lisp",
|
117
|
-
"regex": "\\\\."
|
118
|
-
},
|
119
|
-
{
|
120
|
-
"token" : "string",
|
121
|
-
"regex" : '[^"\\\\]+',
|
122
|
-
"merge" : true
|
123
|
-
}, {
|
124
|
-
"token" : "string",
|
125
|
-
"regex" : "\\\\$",
|
126
|
-
"next" : "qqstring",
|
127
|
-
"merge" : true
|
128
|
-
}, {
|
129
|
-
"token" : "string",
|
130
|
-
"regex" : '"|$',
|
131
|
-
"next" : "start",
|
132
|
-
"merge" : true
|
133
|
-
}
|
134
|
-
]
|
135
|
-
}
|
136
|
-
|
137
|
-
};
|
138
|
-
|
139
|
-
oop.inherits(LispHighlightRules, TextHighlightRules);
|
140
|
-
|
141
|
-
exports.LispHighlightRules = LispHighlightRules;
|
142
|
-
});
|
@@ -1,609 +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/lua', ['require', 'exports', 'module' , 'ace/lib/oop', 'ace/mode/text', 'ace/tokenizer', 'ace/mode/lua_highlight_rules', 'ace/mode/folding/lua', '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 LuaHighlightRules = require("./lua_highlight_rules").LuaHighlightRules;
|
38
|
-
var LuaFoldMode = require("./folding/lua").FoldMode;
|
39
|
-
var Range = require("../range").Range;
|
40
|
-
|
41
|
-
var Mode = function() {
|
42
|
-
this.$tokenizer = new Tokenizer(new LuaHighlightRules().getRules());
|
43
|
-
this.foldingRules = new LuaFoldMode();
|
44
|
-
};
|
45
|
-
oop.inherits(Mode, TextMode);
|
46
|
-
|
47
|
-
(function() {
|
48
|
-
var indentKeywords = {
|
49
|
-
"function": 1,
|
50
|
-
"then": 1,
|
51
|
-
"do": 1,
|
52
|
-
"else": 1,
|
53
|
-
"elseif": 1,
|
54
|
-
"repeat": 1,
|
55
|
-
"end": -1,
|
56
|
-
"until": -1
|
57
|
-
};
|
58
|
-
var outdentKeywords = [
|
59
|
-
"else",
|
60
|
-
"elseif",
|
61
|
-
"end",
|
62
|
-
"until"
|
63
|
-
];
|
64
|
-
|
65
|
-
function getNetIndentLevel(tokens) {
|
66
|
-
var level = 0;
|
67
|
-
for (var i in tokens){
|
68
|
-
var token = tokens[i];
|
69
|
-
if (token.type == "keyword") {
|
70
|
-
if (token.value in indentKeywords) {
|
71
|
-
level += indentKeywords[token.value];
|
72
|
-
}
|
73
|
-
} else if (token.type == "paren.lparen") {
|
74
|
-
level ++;
|
75
|
-
} else if (token.type == "paren.rparen") {
|
76
|
-
level --;
|
77
|
-
}
|
78
|
-
}
|
79
|
-
if (level < 0) {
|
80
|
-
return -1;
|
81
|
-
} else if (level > 0) {
|
82
|
-
return 1;
|
83
|
-
} else {
|
84
|
-
return 0;
|
85
|
-
}
|
86
|
-
}
|
87
|
-
|
88
|
-
this.getNextLineIndent = function(state, line, tab) {
|
89
|
-
var indent = this.$getIndent(line);
|
90
|
-
var level = 0;
|
91
|
-
|
92
|
-
var tokenizedLine = this.$tokenizer.getLineTokens(line, state);
|
93
|
-
var tokens = tokenizedLine.tokens;
|
94
|
-
|
95
|
-
if (state == "start") {
|
96
|
-
level = getNetIndentLevel(tokens);
|
97
|
-
}
|
98
|
-
if (level > 0) {
|
99
|
-
return indent + tab;
|
100
|
-
} else if (level < 0 && indent.substr(indent.length - tab.length) == tab) {
|
101
|
-
if (!this.checkOutdent(state, line, "\n")) {
|
102
|
-
return indent.substr(0, indent.length - tab.length);
|
103
|
-
}
|
104
|
-
}
|
105
|
-
return indent;
|
106
|
-
};
|
107
|
-
|
108
|
-
this.checkOutdent = function(state, line, input) {
|
109
|
-
if (input != "\n" && input != "\r" && input != "\r\n")
|
110
|
-
return false;
|
111
|
-
|
112
|
-
if (line.match(/^\s*[\)\}\]]$/))
|
113
|
-
return true;
|
114
|
-
|
115
|
-
var tokens = this.$tokenizer.getLineTokens(line.trim(), state).tokens;
|
116
|
-
|
117
|
-
if (!tokens || !tokens.length)
|
118
|
-
return false;
|
119
|
-
|
120
|
-
return (tokens[0].type == "keyword" && outdentKeywords.indexOf(tokens[0].value) != -1);
|
121
|
-
};
|
122
|
-
|
123
|
-
this.autoOutdent = function(state, session, row) {
|
124
|
-
var prevLine = session.getLine(row - 1);
|
125
|
-
var prevIndent = this.$getIndent(prevLine).length;
|
126
|
-
var prevTokens = this.$tokenizer.getLineTokens(prevLine, "start").tokens;
|
127
|
-
var tabLength = session.getTabString().length;
|
128
|
-
var expectedIndent = prevIndent + tabLength * getNetIndentLevel(prevTokens);
|
129
|
-
var curIndent = this.$getIndent(session.getLine(row)).length;
|
130
|
-
if (curIndent < expectedIndent) {
|
131
|
-
return;
|
132
|
-
}
|
133
|
-
session.outdentRows(new Range(row, 0, row + 2, 0));
|
134
|
-
};
|
135
|
-
|
136
|
-
}).call(Mode.prototype);
|
137
|
-
|
138
|
-
exports.Mode = Mode;
|
139
|
-
});
|
140
|
-
|
141
|
-
define('ace/mode/lua_highlight_rules', ['require', 'exports', 'module' , 'ace/lib/oop', 'ace/mode/text_highlight_rules'], function(require, exports, module) {
|
142
|
-
|
143
|
-
|
144
|
-
var oop = require("../lib/oop");
|
145
|
-
var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
|
146
|
-
|
147
|
-
var LuaHighlightRules = function() {
|
148
|
-
|
149
|
-
var keywords = (
|
150
|
-
"break|do|else|elseif|end|for|function|if|in|local|repeat|"+
|
151
|
-
"return|then|until|while|or|and|not"
|
152
|
-
);
|
153
|
-
|
154
|
-
var builtinConstants = ("true|false|nil|_G|_VERSION");
|
155
|
-
|
156
|
-
var functions = (
|
157
|
-
"string|xpcall|package|tostring|print|os|unpack|require|"+
|
158
|
-
"getfenv|setmetatable|next|assert|tonumber|io|rawequal|"+
|
159
|
-
"collectgarbage|getmetatable|module|rawset|math|debug|"+
|
160
|
-
"pcall|table|newproxy|type|coroutine|_G|select|gcinfo|"+
|
161
|
-
"pairs|rawget|loadstring|ipairs|_VERSION|dofile|setfenv|"+
|
162
|
-
"load|error|loadfile|"+
|
163
|
-
|
164
|
-
"sub|upper|len|gfind|rep|find|match|char|dump|gmatch|"+
|
165
|
-
"reverse|byte|format|gsub|lower|preload|loadlib|loaded|"+
|
166
|
-
"loaders|cpath|config|path|seeall|exit|setlocale|date|"+
|
167
|
-
"getenv|difftime|remove|time|clock|tmpname|rename|execute|"+
|
168
|
-
"lines|write|close|flush|open|output|type|read|stderr|"+
|
169
|
-
"stdin|input|stdout|popen|tmpfile|log|max|acos|huge|"+
|
170
|
-
"ldexp|pi|cos|tanh|pow|deg|tan|cosh|sinh|random|randomseed|"+
|
171
|
-
"frexp|ceil|floor|rad|abs|sqrt|modf|asin|min|mod|fmod|log10|"+
|
172
|
-
"atan2|exp|sin|atan|getupvalue|debug|sethook|getmetatable|"+
|
173
|
-
"gethook|setmetatable|setlocal|traceback|setfenv|getinfo|"+
|
174
|
-
"setupvalue|getlocal|getregistry|getfenv|setn|insert|getn|"+
|
175
|
-
"foreachi|maxn|foreach|concat|sort|remove|resume|yield|"+
|
176
|
-
"status|wrap|create|running|"+
|
177
|
-
"__add|__sub|__mod|__unm|__concat|__lt|__index|__call|__gc|__metatable|"+
|
178
|
-
"__mul|__div|__pow|__len|__eq|__le|__newindex|__tostring|__mode|__tonumber"
|
179
|
-
);
|
180
|
-
|
181
|
-
var stdLibaries = ("string|package|os|io|math|debug|table|coroutine");
|
182
|
-
|
183
|
-
var futureReserved = "";
|
184
|
-
|
185
|
-
var deprecatedIn5152 = ("setn|foreach|foreachi|gcinfo|log10|maxn");
|
186
|
-
|
187
|
-
var keywordMapper = this.createKeywordMapper({
|
188
|
-
"keyword": keywords,
|
189
|
-
"support.function": functions,
|
190
|
-
"invalid.deprecated": deprecatedIn5152,
|
191
|
-
"constant.library": stdLibaries,
|
192
|
-
"constant.language": builtinConstants,
|
193
|
-
"invalid.illegal": futureReserved,
|
194
|
-
"variable.language": "this"
|
195
|
-
}, "identifier");
|
196
|
-
|
197
|
-
var strPre = "";
|
198
|
-
|
199
|
-
var decimalInteger = "(?:(?:[1-9]\\d*)|(?:0))";
|
200
|
-
var hexInteger = "(?:0[xX][\\dA-Fa-f]+)";
|
201
|
-
var integer = "(?:" + decimalInteger + "|" + hexInteger + ")";
|
202
|
-
|
203
|
-
var fraction = "(?:\\.\\d+)";
|
204
|
-
var intPart = "(?:\\d+)";
|
205
|
-
var pointFloat = "(?:(?:" + intPart + "?" + fraction + ")|(?:" + intPart + "\\.))";
|
206
|
-
var floatNumber = "(?:" + pointFloat + ")";
|
207
|
-
|
208
|
-
var comment_stack = [];
|
209
|
-
|
210
|
-
this.$rules = {
|
211
|
-
"start" :
|
212
|
-
[{
|
213
|
-
token : "comment", // --[[ comment
|
214
|
-
regex : strPre + '\\-\\-\\[\\[.*\\]\\]'
|
215
|
-
}, {
|
216
|
-
token : "comment", // --[=[ comment
|
217
|
-
regex : strPre + '\\-\\-\\[\\=\\[.*\\]\\=\\]'
|
218
|
-
}, {
|
219
|
-
token : "comment", // --[==[ comment
|
220
|
-
regex : strPre + '\\-\\-\\[\\={2}\\[.*\\]\\={2}\\]'
|
221
|
-
}, {
|
222
|
-
token : "comment", // --[===[ comment
|
223
|
-
regex : strPre + '\\-\\-\\[\\={3}\\[.*\\]\\={3}\\]'
|
224
|
-
}, {
|
225
|
-
token : "comment", // --[====[ comment
|
226
|
-
regex : strPre + '\\-\\-\\[\\={4}\\[.*\\]\\={4}\\]'
|
227
|
-
}, {
|
228
|
-
token : "comment", // --[====+[ comment
|
229
|
-
regex : strPre + '\\-\\-\\[\\={5}\\=*\\[.*\\]\\={5}\\=*\\]'
|
230
|
-
},
|
231
|
-
{
|
232
|
-
token : "comment", // --[[ comment
|
233
|
-
regex : strPre + '\\-\\-\\[\\[.*$',
|
234
|
-
next : "qcomment"
|
235
|
-
}, {
|
236
|
-
token : "comment", // --[=[ comment
|
237
|
-
regex : strPre + '\\-\\-\\[\\=\\[.*$',
|
238
|
-
next : "qcomment1"
|
239
|
-
}, {
|
240
|
-
token : "comment", // --[==[ comment
|
241
|
-
regex : strPre + '\\-\\-\\[\\={2}\\[.*$',
|
242
|
-
next : "qcomment2"
|
243
|
-
}, {
|
244
|
-
token : "comment", // --[===[ comment
|
245
|
-
regex : strPre + '\\-\\-\\[\\={3}\\[.*$',
|
246
|
-
next : "qcomment3"
|
247
|
-
}, {
|
248
|
-
token : "comment", // --[====[ comment
|
249
|
-
regex : strPre + '\\-\\-\\[\\={4}\\[.*$',
|
250
|
-
next : "qcomment4"
|
251
|
-
}, {
|
252
|
-
token : function(value){ // --[====+[ comment
|
253
|
-
var pattern = /\-\-\[(\=+)\[/, match;
|
254
|
-
if ((match = pattern.exec(value)) != null && (match = match[1]) != undefined)
|
255
|
-
comment_stack.push(match.length);
|
256
|
-
|
257
|
-
return "comment";
|
258
|
-
},
|
259
|
-
regex : strPre + '\\-\\-\\[\\={5}\\=*\\[.*$',
|
260
|
-
next : "qcomment5"
|
261
|
-
},
|
262
|
-
{
|
263
|
-
token : "comment",
|
264
|
-
regex : "\\-\\-.*$"
|
265
|
-
},
|
266
|
-
{
|
267
|
-
token : "string", // [[ string
|
268
|
-
regex : strPre + '\\[\\[.*\\]\\]'
|
269
|
-
}, {
|
270
|
-
token : "string", // [=[ string
|
271
|
-
regex : strPre + '\\[\\=\\[.*\\]\\=\\]'
|
272
|
-
}, {
|
273
|
-
token : "string", // [==[ string
|
274
|
-
regex : strPre + '\\[\\={2}\\[.*\\]\\={2}\\]'
|
275
|
-
}, {
|
276
|
-
token : "string", // [===[ string
|
277
|
-
regex : strPre + '\\[\\={3}\\[.*\\]\\={3}\\]'
|
278
|
-
}, {
|
279
|
-
token : "string", // [====[ string
|
280
|
-
regex : strPre + '\\[\\={4}\\[.*\\]\\={4}\\]'
|
281
|
-
}, {
|
282
|
-
token : "string", // [====+[ string
|
283
|
-
regex : strPre + '\\[\\={5}\\=*\\[.*\\]\\={5}\\=*\\]'
|
284
|
-
},
|
285
|
-
{
|
286
|
-
token : "string", // [[ string
|
287
|
-
regex : strPre + '\\[\\[.*$',
|
288
|
-
next : "qstring"
|
289
|
-
}, {
|
290
|
-
token : "string", // [=[ string
|
291
|
-
regex : strPre + '\\[\\=\\[.*$',
|
292
|
-
next : "qstring1"
|
293
|
-
}, {
|
294
|
-
token : "string", // [==[ string
|
295
|
-
regex : strPre + '\\[\\={2}\\[.*$',
|
296
|
-
next : "qstring2"
|
297
|
-
}, {
|
298
|
-
token : "string", // [===[ string
|
299
|
-
regex : strPre + '\\[\\={3}\\[.*$',
|
300
|
-
next : "qstring3"
|
301
|
-
}, {
|
302
|
-
token : "string", // [====[ string
|
303
|
-
regex : strPre + '\\[\\={4}\\[.*$',
|
304
|
-
next : "qstring4"
|
305
|
-
}, {
|
306
|
-
token : function(value){ // --[====+[ string
|
307
|
-
var pattern = /\[(\=+)\[/, match;
|
308
|
-
if ((match = pattern.exec(value)) != null && (match = match[1]) != undefined)
|
309
|
-
comment_stack.push(match.length);
|
310
|
-
|
311
|
-
return "string";
|
312
|
-
},
|
313
|
-
regex : strPre + '\\[\\={5}\\=*\\[.*$',
|
314
|
-
next : "qstring5"
|
315
|
-
},
|
316
|
-
|
317
|
-
{
|
318
|
-
token : "string", // " string
|
319
|
-
regex : strPre + '"(?:[^\\\\]|\\\\.)*?"'
|
320
|
-
}, {
|
321
|
-
token : "string", // ' string
|
322
|
-
regex : strPre + "'(?:[^\\\\]|\\\\.)*?'"
|
323
|
-
}, {
|
324
|
-
token : "constant.numeric", // float
|
325
|
-
regex : floatNumber
|
326
|
-
}, {
|
327
|
-
token : "constant.numeric", // integer
|
328
|
-
regex : integer + "\\b"
|
329
|
-
}, {
|
330
|
-
token : keywordMapper,
|
331
|
-
regex : "[a-zA-Z_$][a-zA-Z0-9_$]*\\b"
|
332
|
-
}, {
|
333
|
-
token : "keyword.operator",
|
334
|
-
regex : "\\+|\\-|\\*|\\/|%|\\#|\\^|~|<|>|<=|=>|==|~=|=|\\:|\\.\\.\\.|\\.\\."
|
335
|
-
}, {
|
336
|
-
token : "paren.lparen",
|
337
|
-
regex : "[\\[\\(\\{]"
|
338
|
-
}, {
|
339
|
-
token : "paren.rparen",
|
340
|
-
regex : "[\\]\\)\\}]"
|
341
|
-
}, {
|
342
|
-
token : "text",
|
343
|
-
regex : "\\s+"
|
344
|
-
} ],
|
345
|
-
|
346
|
-
"qcomment": [ {
|
347
|
-
token : "comment",
|
348
|
-
regex : "(?:[^\\\\]|\\\\.)*?\\]\\]",
|
349
|
-
next : "start"
|
350
|
-
}, {
|
351
|
-
token : "comment",
|
352
|
-
regex : '.+'
|
353
|
-
} ],
|
354
|
-
"qcomment1": [ {
|
355
|
-
token : "comment",
|
356
|
-
regex : "(?:[^\\\\]|\\\\.)*?\\]\\=\\]",
|
357
|
-
next : "start"
|
358
|
-
}, {
|
359
|
-
token : "comment",
|
360
|
-
regex : '.+'
|
361
|
-
} ],
|
362
|
-
"qcomment2": [ {
|
363
|
-
token : "comment",
|
364
|
-
regex : "(?:[^\\\\]|\\\\.)*?\\]\\={2}\\]",
|
365
|
-
next : "start"
|
366
|
-
}, {
|
367
|
-
token : "comment",
|
368
|
-
regex : '.+'
|
369
|
-
} ],
|
370
|
-
"qcomment3": [ {
|
371
|
-
token : "comment",
|
372
|
-
regex : "(?:[^\\\\]|\\\\.)*?\\]\\={3}\\]",
|
373
|
-
next : "start"
|
374
|
-
}, {
|
375
|
-
token : "comment",
|
376
|
-
regex : '.+'
|
377
|
-
} ],
|
378
|
-
"qcomment4": [ {
|
379
|
-
token : "comment",
|
380
|
-
regex : "(?:[^\\\\]|\\\\.)*?\\]\\={4}\\]",
|
381
|
-
next : "start"
|
382
|
-
}, {
|
383
|
-
token : "comment",
|
384
|
-
regex : '.+'
|
385
|
-
} ],
|
386
|
-
"qcomment5": [ {
|
387
|
-
token : function(value){
|
388
|
-
var pattern = /\](\=+)\]/, rule = this.rules.qcomment5[0], match;
|
389
|
-
rule.next = "start";
|
390
|
-
if ((match = pattern.exec(value)) != null && (match = match[1]) != undefined){
|
391
|
-
var found = match.length, expected;
|
392
|
-
if ((expected = comment_stack.pop()) != found){
|
393
|
-
comment_stack.push(expected);
|
394
|
-
rule.next = "qcomment5";
|
395
|
-
}
|
396
|
-
}
|
397
|
-
|
398
|
-
return "comment";
|
399
|
-
},
|
400
|
-
regex : "(?:[^\\\\]|\\\\.)*?\\]\\={5}\\=*\\]",
|
401
|
-
next : "start"
|
402
|
-
}, {
|
403
|
-
token : "comment",
|
404
|
-
regex : '.+'
|
405
|
-
} ],
|
406
|
-
|
407
|
-
"qstring": [ {
|
408
|
-
token : "string",
|
409
|
-
regex : "(?:[^\\\\]|\\\\.)*?\\]\\]",
|
410
|
-
next : "start"
|
411
|
-
}, {
|
412
|
-
token : "string",
|
413
|
-
regex : '.+'
|
414
|
-
} ],
|
415
|
-
"qstring1": [ {
|
416
|
-
token : "string",
|
417
|
-
regex : "(?:[^\\\\]|\\\\.)*?\\]\\=\\]",
|
418
|
-
next : "start"
|
419
|
-
}, {
|
420
|
-
token : "string",
|
421
|
-
regex : '.+'
|
422
|
-
} ],
|
423
|
-
"qstring2": [ {
|
424
|
-
token : "string",
|
425
|
-
regex : "(?:[^\\\\]|\\\\.)*?\\]\\={2}\\]",
|
426
|
-
next : "start"
|
427
|
-
}, {
|
428
|
-
token : "string",
|
429
|
-
regex : '.+'
|
430
|
-
} ],
|
431
|
-
"qstring3": [ {
|
432
|
-
token : "string",
|
433
|
-
regex : "(?:[^\\\\]|\\\\.)*?\\]\\={3}\\]",
|
434
|
-
next : "start"
|
435
|
-
}, {
|
436
|
-
token : "string",
|
437
|
-
regex : '.+'
|
438
|
-
} ],
|
439
|
-
"qstring4": [ {
|
440
|
-
token : "string",
|
441
|
-
regex : "(?:[^\\\\]|\\\\.)*?\\]\\={4}\\]",
|
442
|
-
next : "start"
|
443
|
-
}, {
|
444
|
-
token : "string",
|
445
|
-
regex : '.+'
|
446
|
-
} ],
|
447
|
-
"qstring5": [ {
|
448
|
-
token : function(value){
|
449
|
-
var pattern = /\](\=+)\]/, rule = this.rules.qstring5[0], match;
|
450
|
-
rule.next = "start";
|
451
|
-
if ((match = pattern.exec(value)) != null && (match = match[1]) != undefined){
|
452
|
-
var found = match.length, expected;
|
453
|
-
if ((expected = comment_stack.pop()) != found){
|
454
|
-
comment_stack.push(expected);
|
455
|
-
rule.next = "qstring5";
|
456
|
-
}
|
457
|
-
}
|
458
|
-
|
459
|
-
return "string";
|
460
|
-
},
|
461
|
-
regex : "(?:[^\\\\]|\\\\.)*?\\]\\={5}\\=*\\]",
|
462
|
-
next : "start"
|
463
|
-
}, {
|
464
|
-
token : "string",
|
465
|
-
regex : '.+'
|
466
|
-
} ]
|
467
|
-
|
468
|
-
};
|
469
|
-
|
470
|
-
}
|
471
|
-
|
472
|
-
oop.inherits(LuaHighlightRules, TextHighlightRules);
|
473
|
-
|
474
|
-
exports.LuaHighlightRules = LuaHighlightRules;
|
475
|
-
});
|
476
|
-
|
477
|
-
define('ace/mode/folding/lua', ['require', 'exports', 'module' , 'ace/lib/oop', 'ace/mode/folding/fold_mode', 'ace/range', 'ace/token_iterator'], function(require, exports, module) {
|
478
|
-
|
479
|
-
|
480
|
-
var oop = require("../../lib/oop");
|
481
|
-
var BaseFoldMode = require("./fold_mode").FoldMode;
|
482
|
-
var Range = require("../../range").Range;
|
483
|
-
var TokenIterator = require("../../token_iterator").TokenIterator;
|
484
|
-
|
485
|
-
|
486
|
-
var FoldMode = exports.FoldMode = function() {};
|
487
|
-
|
488
|
-
oop.inherits(FoldMode, BaseFoldMode);
|
489
|
-
|
490
|
-
(function() {
|
491
|
-
|
492
|
-
this.foldingStartMarker = /\b(function|then|do|repeat)\b|{\s*$|(\[=*\[)/;
|
493
|
-
this.foldingStopMarker = /\bend\b|^\s*}|\]=*\]/;
|
494
|
-
|
495
|
-
this.getFoldWidget = function(session, foldStyle, row) {
|
496
|
-
var line = session.getLine(row);
|
497
|
-
var isStart = this.foldingStartMarker.test(line);
|
498
|
-
var isEnd = this.foldingStopMarker.test(line);
|
499
|
-
|
500
|
-
if (isStart && !isEnd) {
|
501
|
-
var match = line.match(this.foldingStartMarker);
|
502
|
-
if (match[1] == "then" && /\belseif\b/.test(line))
|
503
|
-
return;
|
504
|
-
if (match[1]) {
|
505
|
-
if (session.getTokenAt(row, match.index + 1).type === "keyword")
|
506
|
-
return "start";
|
507
|
-
} else if (match[2]) {
|
508
|
-
var type = session.bgTokenizer.getState(row) || "";
|
509
|
-
if (type.indexOf("comment") != -1 || type.indexOf("string") != -1)
|
510
|
-
return "start";
|
511
|
-
} else {
|
512
|
-
return "start";
|
513
|
-
}
|
514
|
-
}
|
515
|
-
if (foldStyle != "markbeginend" || !isEnd || isStart && isEnd)
|
516
|
-
return "";
|
517
|
-
|
518
|
-
var match = line.match(this.foldingStopMarker);
|
519
|
-
if (match[0] === "end") {
|
520
|
-
if (session.getTokenAt(row, match.index + 1).type === "keyword")
|
521
|
-
return "end";
|
522
|
-
} else if (match[0][0] === "]") {
|
523
|
-
var type = session.bgTokenizer.getState(row - 1) || "";
|
524
|
-
if (type.indexOf("comment") != -1 || type.indexOf("string") != -1)
|
525
|
-
return "end";
|
526
|
-
} else
|
527
|
-
return "end";
|
528
|
-
};
|
529
|
-
|
530
|
-
this.getFoldWidgetRange = function(session, foldStyle, row) {
|
531
|
-
var line = session.doc.getLine(row);
|
532
|
-
var match = this.foldingStartMarker.exec(line);
|
533
|
-
if (match) {
|
534
|
-
if (match[1])
|
535
|
-
return this.luaBlock(session, row, match.index + 1);
|
536
|
-
|
537
|
-
if (match[2])
|
538
|
-
return session.getCommentFoldRange(row, match.index + 1);
|
539
|
-
|
540
|
-
return this.openingBracketBlock(session, "{", row, match.index);
|
541
|
-
}
|
542
|
-
|
543
|
-
var match = this.foldingStopMarker.exec(line);
|
544
|
-
if (match) {
|
545
|
-
if (match[0] === "end") {
|
546
|
-
if (session.getTokenAt(row, match.index + 1).type === "keyword")
|
547
|
-
return this.luaBlock(session, row, match.index + 1);
|
548
|
-
}
|
549
|
-
|
550
|
-
if (match[0][0] === "]")
|
551
|
-
return session.getCommentFoldRange(row, match.index + 1);
|
552
|
-
|
553
|
-
return this.closingBracketBlock(session, "}", row, match.index + match[0].length);
|
554
|
-
}
|
555
|
-
};
|
556
|
-
|
557
|
-
this.luaBlock = function(session, row, column) {
|
558
|
-
var stream = new TokenIterator(session, row, column);
|
559
|
-
var indentKeywords = {
|
560
|
-
"function": 1,
|
561
|
-
"do": 1,
|
562
|
-
"then": 1,
|
563
|
-
"elseif": -1,
|
564
|
-
"end": -1,
|
565
|
-
"repeat": 1,
|
566
|
-
"until": -1,
|
567
|
-
};
|
568
|
-
|
569
|
-
var token = stream.getCurrentToken();
|
570
|
-
if (!token || token.type != "keyword")
|
571
|
-
return;
|
572
|
-
|
573
|
-
var val = token.value;
|
574
|
-
var stack = [val];
|
575
|
-
var dir = indentKeywords[val];
|
576
|
-
|
577
|
-
if (!dir)
|
578
|
-
return;
|
579
|
-
|
580
|
-
var startColumn = dir === -1 ? stream.getCurrentTokenColumn() : session.getLine(row).length;
|
581
|
-
var startRow = row;
|
582
|
-
|
583
|
-
stream.step = dir === -1 ? stream.stepBackward : stream.stepForward;
|
584
|
-
while(token = stream.step()) {
|
585
|
-
if (token.type !== "keyword")
|
586
|
-
continue;
|
587
|
-
var level = dir * indentKeywords[token.value];
|
588
|
-
|
589
|
-
if (level > 0) {
|
590
|
-
stack.unshift(token.value);
|
591
|
-
} else if (level <= 0) {
|
592
|
-
stack.shift();
|
593
|
-
if (!stack.length && token.value != "elseif")
|
594
|
-
break;
|
595
|
-
if (level === 0)
|
596
|
-
stack.unshift(token.value);
|
597
|
-
}
|
598
|
-
}
|
599
|
-
|
600
|
-
var row = stream.getCurrentTokenRow();
|
601
|
-
if (dir === -1)
|
602
|
-
return new Range(row, session.getLine(row).length, startRow, startColumn);
|
603
|
-
else
|
604
|
-
return new Range(startRow, startColumn, row, stream.getCurrentTokenColumn());
|
605
|
-
};
|
606
|
-
|
607
|
-
}).call(FoldMode.prototype);
|
608
|
-
|
609
|
-
});
|