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,1725 +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/coldfusion', ['require', 'exports', 'module' , 'ace/lib/oop', 'ace/mode/xml', 'ace/mode/javascript', 'ace/mode/css', 'ace/tokenizer', 'ace/mode/coldfusion_highlight_rules'], function(require, exports, module) {
|
32
|
-
|
33
|
-
|
34
|
-
var oop = require("../lib/oop");
|
35
|
-
var XmlMode = require("./xml").Mode;
|
36
|
-
var JavaScriptMode = require("./javascript").Mode;
|
37
|
-
var CssMode = require("./css").Mode;
|
38
|
-
var Tokenizer = require("../tokenizer").Tokenizer;
|
39
|
-
var ColdfusionHighlightRules = require("./coldfusion_highlight_rules").ColdfusionHighlightRules;
|
40
|
-
|
41
|
-
var Mode = function() {
|
42
|
-
XmlMode.call(this);
|
43
|
-
|
44
|
-
var highlighter = new ColdfusionHighlightRules();
|
45
|
-
this.$tokenizer = new Tokenizer(highlighter.getRules());
|
46
|
-
|
47
|
-
this.$embeds = highlighter.getEmbeds();
|
48
|
-
this.createModeDelegates({
|
49
|
-
"js-": JavaScriptMode,
|
50
|
-
"css-": CssMode
|
51
|
-
});
|
52
|
-
};
|
53
|
-
oop.inherits(Mode, XmlMode);
|
54
|
-
|
55
|
-
(function() {
|
56
|
-
|
57
|
-
this.getNextLineIndent = function(state, line, tab) {
|
58
|
-
return this.$getIndent(line);
|
59
|
-
};
|
60
|
-
|
61
|
-
}).call(Mode.prototype);
|
62
|
-
|
63
|
-
exports.Mode = Mode;
|
64
|
-
});
|
65
|
-
|
66
|
-
define('ace/mode/xml', ['require', 'exports', 'module' , 'ace/lib/oop', 'ace/mode/text', 'ace/tokenizer', 'ace/mode/xml_highlight_rules', 'ace/mode/behaviour/xml', 'ace/mode/folding/xml'], function(require, exports, module) {
|
67
|
-
|
68
|
-
|
69
|
-
var oop = require("../lib/oop");
|
70
|
-
var TextMode = require("./text").Mode;
|
71
|
-
var Tokenizer = require("../tokenizer").Tokenizer;
|
72
|
-
var XmlHighlightRules = require("./xml_highlight_rules").XmlHighlightRules;
|
73
|
-
var XmlBehaviour = require("./behaviour/xml").XmlBehaviour;
|
74
|
-
var XmlFoldMode = require("./folding/xml").FoldMode;
|
75
|
-
|
76
|
-
var Mode = function() {
|
77
|
-
this.$tokenizer = new Tokenizer(new XmlHighlightRules().getRules());
|
78
|
-
this.$behaviour = new XmlBehaviour();
|
79
|
-
this.foldingRules = new XmlFoldMode();
|
80
|
-
};
|
81
|
-
|
82
|
-
oop.inherits(Mode, TextMode);
|
83
|
-
|
84
|
-
(function() {
|
85
|
-
|
86
|
-
this.getNextLineIndent = function(state, line, tab) {
|
87
|
-
return this.$getIndent(line);
|
88
|
-
};
|
89
|
-
|
90
|
-
}).call(Mode.prototype);
|
91
|
-
|
92
|
-
exports.Mode = Mode;
|
93
|
-
});
|
94
|
-
|
95
|
-
define('ace/mode/xml_highlight_rules', ['require', 'exports', 'module' , 'ace/lib/oop', 'ace/mode/xml_util', 'ace/mode/text_highlight_rules'], function(require, exports, module) {
|
96
|
-
|
97
|
-
|
98
|
-
var oop = require("../lib/oop");
|
99
|
-
var xmlUtil = require("./xml_util");
|
100
|
-
var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
|
101
|
-
|
102
|
-
var XmlHighlightRules = function() {
|
103
|
-
this.$rules = {
|
104
|
-
start : [
|
105
|
-
{token : "text", regex : "<\\!\\[CDATA\\[", next : "cdata"},
|
106
|
-
{token : "xml-pe", regex : "<\\?.*?\\?>"},
|
107
|
-
{token : "comment", regex : "<\\!--", next : "comment"},
|
108
|
-
{token : "xml-pe", regex : "<\\!.*?>"},
|
109
|
-
{token : "meta.tag", regex : "<\\/?", next : "tag"},
|
110
|
-
{token : "text", regex : "\\s+"},
|
111
|
-
{
|
112
|
-
token : "constant.character.entity",
|
113
|
-
regex : "(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"
|
114
|
-
},
|
115
|
-
{token : "text", regex : "[^<]+"}
|
116
|
-
],
|
117
|
-
|
118
|
-
cdata : [
|
119
|
-
{token : "text", regex : "\\]\\]>", next : "start"},
|
120
|
-
{token : "text", regex : "\\s+"},
|
121
|
-
{token : "text", regex : "(?:[^\\]]|\\](?!\\]>))+"}
|
122
|
-
],
|
123
|
-
|
124
|
-
comment : [
|
125
|
-
{token : "comment", regex : ".*?-->", next : "start"},
|
126
|
-
{token : "comment", regex : ".+"}
|
127
|
-
]
|
128
|
-
};
|
129
|
-
|
130
|
-
xmlUtil.tag(this.$rules, "tag", "start");
|
131
|
-
};
|
132
|
-
|
133
|
-
oop.inherits(XmlHighlightRules, TextHighlightRules);
|
134
|
-
|
135
|
-
exports.XmlHighlightRules = XmlHighlightRules;
|
136
|
-
});
|
137
|
-
|
138
|
-
define('ace/mode/xml_util', ['require', 'exports', 'module' ], function(require, exports, module) {
|
139
|
-
|
140
|
-
|
141
|
-
function string(state) {
|
142
|
-
return [{
|
143
|
-
token : "string",
|
144
|
-
regex : '"',
|
145
|
-
next : state + "_qqstring"
|
146
|
-
}, {
|
147
|
-
token : "string",
|
148
|
-
regex : "'",
|
149
|
-
next : state + "_qstring"
|
150
|
-
}];
|
151
|
-
}
|
152
|
-
|
153
|
-
function multiLineString(quote, state) {
|
154
|
-
return [
|
155
|
-
{token : "string", regex : quote, next : state},
|
156
|
-
{
|
157
|
-
token : "constant.language.escape",
|
158
|
-
regex : "(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"
|
159
|
-
},
|
160
|
-
{token : "string", regex : '\\w+|.|\\s+'}
|
161
|
-
];
|
162
|
-
}
|
163
|
-
|
164
|
-
exports.tag = function(states, name, nextState, tagMap) {
|
165
|
-
states[name] = [{
|
166
|
-
token : "text",
|
167
|
-
regex : "\\s+"
|
168
|
-
}, {
|
169
|
-
|
170
|
-
token : !tagMap ? "meta.tag.tag-name" : function(value) {
|
171
|
-
if (tagMap[value])
|
172
|
-
return "meta.tag.tag-name." + tagMap[value];
|
173
|
-
else
|
174
|
-
return "meta.tag.tag-name";
|
175
|
-
},
|
176
|
-
regex : "[-_a-zA-Z0-9:]+",
|
177
|
-
next : name + "_embed_attribute_list"
|
178
|
-
}, {
|
179
|
-
token: "empty",
|
180
|
-
regex: "",
|
181
|
-
next : name + "_embed_attribute_list"
|
182
|
-
}];
|
183
|
-
|
184
|
-
states[name + "_qstring"] = multiLineString("'", name + "_embed_attribute_list");
|
185
|
-
states[name + "_qqstring"] = multiLineString("\"", name + "_embed_attribute_list");
|
186
|
-
|
187
|
-
states[name + "_embed_attribute_list"] = [{
|
188
|
-
token : "meta.tag.r",
|
189
|
-
regex : "/?>",
|
190
|
-
next : nextState
|
191
|
-
}, {
|
192
|
-
token : "keyword.operator",
|
193
|
-
regex : "="
|
194
|
-
}, {
|
195
|
-
token : "entity.other.attribute-name",
|
196
|
-
regex : "[-_a-zA-Z0-9:]+"
|
197
|
-
}, {
|
198
|
-
token : "constant.numeric", // float
|
199
|
-
regex : "[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"
|
200
|
-
}, {
|
201
|
-
token : "text",
|
202
|
-
regex : "\\s+"
|
203
|
-
}].concat(string(name));
|
204
|
-
};
|
205
|
-
|
206
|
-
});
|
207
|
-
|
208
|
-
define('ace/mode/behaviour/xml', ['require', 'exports', 'module' , 'ace/lib/oop', 'ace/mode/behaviour', 'ace/mode/behaviour/cstyle', 'ace/token_iterator'], function(require, exports, module) {
|
209
|
-
|
210
|
-
|
211
|
-
var oop = require("../../lib/oop");
|
212
|
-
var Behaviour = require("../behaviour").Behaviour;
|
213
|
-
var CstyleBehaviour = require("./cstyle").CstyleBehaviour;
|
214
|
-
var TokenIterator = require("../../token_iterator").TokenIterator;
|
215
|
-
|
216
|
-
function hasType(token, type) {
|
217
|
-
var hasType = true;
|
218
|
-
var typeList = token.type.split('.');
|
219
|
-
var needleList = type.split('.');
|
220
|
-
needleList.forEach(function(needle){
|
221
|
-
if (typeList.indexOf(needle) == -1) {
|
222
|
-
hasType = false;
|
223
|
-
return false;
|
224
|
-
}
|
225
|
-
});
|
226
|
-
return hasType;
|
227
|
-
}
|
228
|
-
|
229
|
-
var XmlBehaviour = function () {
|
230
|
-
|
231
|
-
this.inherit(CstyleBehaviour, ["string_dquotes"]); // Get string behaviour
|
232
|
-
|
233
|
-
this.add("autoclosing", "insertion", function (state, action, editor, session, text) {
|
234
|
-
if (text == '>') {
|
235
|
-
var position = editor.getCursorPosition();
|
236
|
-
var iterator = new TokenIterator(session, position.row, position.column);
|
237
|
-
var token = iterator.getCurrentToken();
|
238
|
-
var atCursor = false;
|
239
|
-
if (!token || !hasType(token, 'meta.tag') && !(hasType(token, 'text') && token.value.match('/'))){
|
240
|
-
do {
|
241
|
-
token = iterator.stepBackward();
|
242
|
-
} while (token && (hasType(token, 'string') || hasType(token, 'keyword.operator') || hasType(token, 'entity.attribute-name') || hasType(token, 'text')));
|
243
|
-
} else {
|
244
|
-
atCursor = true;
|
245
|
-
}
|
246
|
-
if (!token || !hasType(token, 'meta.tag-name') || iterator.stepBackward().value.match('/')) {
|
247
|
-
return
|
248
|
-
}
|
249
|
-
var tag = token.value;
|
250
|
-
if (atCursor){
|
251
|
-
var tag = tag.substring(0, position.column - token.start);
|
252
|
-
}
|
253
|
-
|
254
|
-
return {
|
255
|
-
text: '>' + '</' + tag + '>',
|
256
|
-
selection: [1, 1]
|
257
|
-
}
|
258
|
-
}
|
259
|
-
});
|
260
|
-
|
261
|
-
this.add('autoindent', 'insertion', function (state, action, editor, session, text) {
|
262
|
-
if (text == "\n") {
|
263
|
-
var cursor = editor.getCursorPosition();
|
264
|
-
var line = session.doc.getLine(cursor.row);
|
265
|
-
var rightChars = line.substring(cursor.column, cursor.column + 2);
|
266
|
-
if (rightChars == '</') {
|
267
|
-
var indent = this.$getIndent(session.doc.getLine(cursor.row)) + session.getTabString();
|
268
|
-
var next_indent = this.$getIndent(session.doc.getLine(cursor.row));
|
269
|
-
|
270
|
-
return {
|
271
|
-
text: '\n' + indent + '\n' + next_indent,
|
272
|
-
selection: [1, indent.length, 1, indent.length]
|
273
|
-
}
|
274
|
-
}
|
275
|
-
}
|
276
|
-
});
|
277
|
-
|
278
|
-
}
|
279
|
-
oop.inherits(XmlBehaviour, Behaviour);
|
280
|
-
|
281
|
-
exports.XmlBehaviour = XmlBehaviour;
|
282
|
-
});
|
283
|
-
|
284
|
-
define('ace/mode/behaviour/cstyle', ['require', 'exports', 'module' , 'ace/lib/oop', 'ace/mode/behaviour', 'ace/token_iterator', 'ace/lib/lang'], function(require, exports, module) {
|
285
|
-
|
286
|
-
|
287
|
-
var oop = require("../../lib/oop");
|
288
|
-
var Behaviour = require("../behaviour").Behaviour;
|
289
|
-
var TokenIterator = require("../../token_iterator").TokenIterator;
|
290
|
-
var lang = require("../../lib/lang");
|
291
|
-
|
292
|
-
var SAFE_INSERT_IN_TOKENS =
|
293
|
-
["text", "paren.rparen", "punctuation.operator"];
|
294
|
-
var SAFE_INSERT_BEFORE_TOKENS =
|
295
|
-
["text", "paren.rparen", "punctuation.operator", "comment"];
|
296
|
-
|
297
|
-
|
298
|
-
var autoInsertedBrackets = 0;
|
299
|
-
var autoInsertedRow = -1;
|
300
|
-
var autoInsertedLineEnd = "";
|
301
|
-
var maybeInsertedBrackets = 0;
|
302
|
-
var maybeInsertedRow = -1;
|
303
|
-
var maybeInsertedLineStart = "";
|
304
|
-
var maybeInsertedLineEnd = "";
|
305
|
-
|
306
|
-
var CstyleBehaviour = function () {
|
307
|
-
|
308
|
-
CstyleBehaviour.isSaneInsertion = function(editor, session) {
|
309
|
-
var cursor = editor.getCursorPosition();
|
310
|
-
var iterator = new TokenIterator(session, cursor.row, cursor.column);
|
311
|
-
if (!this.$matchTokenType(iterator.getCurrentToken() || "text", SAFE_INSERT_IN_TOKENS)) {
|
312
|
-
var iterator2 = new TokenIterator(session, cursor.row, cursor.column + 1);
|
313
|
-
if (!this.$matchTokenType(iterator2.getCurrentToken() || "text", SAFE_INSERT_IN_TOKENS))
|
314
|
-
return false;
|
315
|
-
}
|
316
|
-
iterator.stepForward();
|
317
|
-
return iterator.getCurrentTokenRow() !== cursor.row ||
|
318
|
-
this.$matchTokenType(iterator.getCurrentToken() || "text", SAFE_INSERT_BEFORE_TOKENS);
|
319
|
-
};
|
320
|
-
|
321
|
-
CstyleBehaviour.$matchTokenType = function(token, types) {
|
322
|
-
return types.indexOf(token.type || token) > -1;
|
323
|
-
};
|
324
|
-
|
325
|
-
CstyleBehaviour.recordAutoInsert = function(editor, session, bracket) {
|
326
|
-
var cursor = editor.getCursorPosition();
|
327
|
-
var line = session.doc.getLine(cursor.row);
|
328
|
-
if (!this.isAutoInsertedClosing(cursor, line, autoInsertedLineEnd[0]))
|
329
|
-
autoInsertedBrackets = 0;
|
330
|
-
autoInsertedRow = cursor.row;
|
331
|
-
autoInsertedLineEnd = bracket + line.substr(cursor.column);
|
332
|
-
autoInsertedBrackets++;
|
333
|
-
};
|
334
|
-
|
335
|
-
CstyleBehaviour.recordMaybeInsert = function(editor, session, bracket) {
|
336
|
-
var cursor = editor.getCursorPosition();
|
337
|
-
var line = session.doc.getLine(cursor.row);
|
338
|
-
if (!this.isMaybeInsertedClosing(cursor, line))
|
339
|
-
maybeInsertedBrackets = 0;
|
340
|
-
maybeInsertedRow = cursor.row;
|
341
|
-
maybeInsertedLineStart = line.substr(0, cursor.column) + bracket;
|
342
|
-
maybeInsertedLineEnd = line.substr(cursor.column);
|
343
|
-
maybeInsertedBrackets++;
|
344
|
-
};
|
345
|
-
|
346
|
-
CstyleBehaviour.isAutoInsertedClosing = function(cursor, line, bracket) {
|
347
|
-
return autoInsertedBrackets > 0 &&
|
348
|
-
cursor.row === autoInsertedRow &&
|
349
|
-
bracket === autoInsertedLineEnd[0] &&
|
350
|
-
line.substr(cursor.column) === autoInsertedLineEnd;
|
351
|
-
};
|
352
|
-
|
353
|
-
CstyleBehaviour.isMaybeInsertedClosing = function(cursor, line) {
|
354
|
-
return maybeInsertedBrackets > 0 &&
|
355
|
-
cursor.row === maybeInsertedRow &&
|
356
|
-
line.substr(cursor.column) === maybeInsertedLineEnd &&
|
357
|
-
line.substr(0, cursor.column) == maybeInsertedLineStart;
|
358
|
-
};
|
359
|
-
|
360
|
-
CstyleBehaviour.popAutoInsertedClosing = function() {
|
361
|
-
autoInsertedLineEnd = autoInsertedLineEnd.substr(1);
|
362
|
-
autoInsertedBrackets--;
|
363
|
-
};
|
364
|
-
|
365
|
-
CstyleBehaviour.clearMaybeInsertedClosing = function() {
|
366
|
-
maybeInsertedBrackets = 0;
|
367
|
-
maybeInsertedRow = -1;
|
368
|
-
};
|
369
|
-
|
370
|
-
this.add("braces", "insertion", function (state, action, editor, session, text) {
|
371
|
-
var cursor = editor.getCursorPosition();
|
372
|
-
var line = session.doc.getLine(cursor.row);
|
373
|
-
if (text == '{') {
|
374
|
-
var selection = editor.getSelectionRange();
|
375
|
-
var selected = session.doc.getTextRange(selection);
|
376
|
-
if (selected !== "" && selected !== "{" && editor.getWrapBehavioursEnabled()) {
|
377
|
-
return {
|
378
|
-
text: '{' + selected + '}',
|
379
|
-
selection: false
|
380
|
-
};
|
381
|
-
} else if (CstyleBehaviour.isSaneInsertion(editor, session)) {
|
382
|
-
if (/[\]\}\)]/.test(line[cursor.column])) {
|
383
|
-
CstyleBehaviour.recordAutoInsert(editor, session, "}");
|
384
|
-
return {
|
385
|
-
text: '{}',
|
386
|
-
selection: [1, 1]
|
387
|
-
};
|
388
|
-
} else {
|
389
|
-
CstyleBehaviour.recordMaybeInsert(editor, session, "{");
|
390
|
-
return {
|
391
|
-
text: '{',
|
392
|
-
selection: [1, 1]
|
393
|
-
};
|
394
|
-
}
|
395
|
-
}
|
396
|
-
} else if (text == '}') {
|
397
|
-
var rightChar = line.substring(cursor.column, cursor.column + 1);
|
398
|
-
if (rightChar == '}') {
|
399
|
-
var matching = session.$findOpeningBracket('}', {column: cursor.column + 1, row: cursor.row});
|
400
|
-
if (matching !== null && CstyleBehaviour.isAutoInsertedClosing(cursor, line, text)) {
|
401
|
-
CstyleBehaviour.popAutoInsertedClosing();
|
402
|
-
return {
|
403
|
-
text: '',
|
404
|
-
selection: [1, 1]
|
405
|
-
};
|
406
|
-
}
|
407
|
-
}
|
408
|
-
} else if (text == "\n" || text == "\r\n") {
|
409
|
-
var closing = "";
|
410
|
-
if (CstyleBehaviour.isMaybeInsertedClosing(cursor, line)) {
|
411
|
-
closing = lang.stringRepeat("}", maybeInsertedBrackets);
|
412
|
-
CstyleBehaviour.clearMaybeInsertedClosing();
|
413
|
-
}
|
414
|
-
var rightChar = line.substring(cursor.column, cursor.column + 1);
|
415
|
-
if (rightChar == '}' || closing !== "") {
|
416
|
-
var openBracePos = session.findMatchingBracket({row: cursor.row, column: cursor.column}, '}');
|
417
|
-
if (!openBracePos)
|
418
|
-
return null;
|
419
|
-
|
420
|
-
var indent = this.getNextLineIndent(state, line.substring(0, cursor.column), session.getTabString());
|
421
|
-
var next_indent = this.$getIndent(line);
|
422
|
-
|
423
|
-
return {
|
424
|
-
text: '\n' + indent + '\n' + next_indent + closing,
|
425
|
-
selection: [1, indent.length, 1, indent.length]
|
426
|
-
};
|
427
|
-
}
|
428
|
-
}
|
429
|
-
});
|
430
|
-
|
431
|
-
this.add("braces", "deletion", function (state, action, editor, session, range) {
|
432
|
-
var selected = session.doc.getTextRange(range);
|
433
|
-
if (!range.isMultiLine() && selected == '{') {
|
434
|
-
var line = session.doc.getLine(range.start.row);
|
435
|
-
var rightChar = line.substring(range.end.column, range.end.column + 1);
|
436
|
-
if (rightChar == '}') {
|
437
|
-
range.end.column++;
|
438
|
-
return range;
|
439
|
-
} else {
|
440
|
-
maybeInsertedBrackets--;
|
441
|
-
}
|
442
|
-
}
|
443
|
-
});
|
444
|
-
|
445
|
-
this.add("parens", "insertion", function (state, action, editor, session, text) {
|
446
|
-
if (text == '(') {
|
447
|
-
var selection = editor.getSelectionRange();
|
448
|
-
var selected = session.doc.getTextRange(selection);
|
449
|
-
if (selected !== "" && editor.getWrapBehavioursEnabled()) {
|
450
|
-
return {
|
451
|
-
text: '(' + selected + ')',
|
452
|
-
selection: false
|
453
|
-
};
|
454
|
-
} else if (CstyleBehaviour.isSaneInsertion(editor, session)) {
|
455
|
-
CstyleBehaviour.recordAutoInsert(editor, session, ")");
|
456
|
-
return {
|
457
|
-
text: '()',
|
458
|
-
selection: [1, 1]
|
459
|
-
};
|
460
|
-
}
|
461
|
-
} else if (text == ')') {
|
462
|
-
var cursor = editor.getCursorPosition();
|
463
|
-
var line = session.doc.getLine(cursor.row);
|
464
|
-
var rightChar = line.substring(cursor.column, cursor.column + 1);
|
465
|
-
if (rightChar == ')') {
|
466
|
-
var matching = session.$findOpeningBracket(')', {column: cursor.column + 1, row: cursor.row});
|
467
|
-
if (matching !== null && CstyleBehaviour.isAutoInsertedClosing(cursor, line, text)) {
|
468
|
-
CstyleBehaviour.popAutoInsertedClosing();
|
469
|
-
return {
|
470
|
-
text: '',
|
471
|
-
selection: [1, 1]
|
472
|
-
};
|
473
|
-
}
|
474
|
-
}
|
475
|
-
}
|
476
|
-
});
|
477
|
-
|
478
|
-
this.add("parens", "deletion", function (state, action, editor, session, range) {
|
479
|
-
var selected = session.doc.getTextRange(range);
|
480
|
-
if (!range.isMultiLine() && selected == '(') {
|
481
|
-
var line = session.doc.getLine(range.start.row);
|
482
|
-
var rightChar = line.substring(range.start.column + 1, range.start.column + 2);
|
483
|
-
if (rightChar == ')') {
|
484
|
-
range.end.column++;
|
485
|
-
return range;
|
486
|
-
}
|
487
|
-
}
|
488
|
-
});
|
489
|
-
|
490
|
-
this.add("brackets", "insertion", function (state, action, editor, session, text) {
|
491
|
-
if (text == '[') {
|
492
|
-
var selection = editor.getSelectionRange();
|
493
|
-
var selected = session.doc.getTextRange(selection);
|
494
|
-
if (selected !== "" && editor.getWrapBehavioursEnabled()) {
|
495
|
-
return {
|
496
|
-
text: '[' + selected + ']',
|
497
|
-
selection: false
|
498
|
-
};
|
499
|
-
} else if (CstyleBehaviour.isSaneInsertion(editor, session)) {
|
500
|
-
CstyleBehaviour.recordAutoInsert(editor, session, "]");
|
501
|
-
return {
|
502
|
-
text: '[]',
|
503
|
-
selection: [1, 1]
|
504
|
-
};
|
505
|
-
}
|
506
|
-
} else if (text == ']') {
|
507
|
-
var cursor = editor.getCursorPosition();
|
508
|
-
var line = session.doc.getLine(cursor.row);
|
509
|
-
var rightChar = line.substring(cursor.column, cursor.column + 1);
|
510
|
-
if (rightChar == ']') {
|
511
|
-
var matching = session.$findOpeningBracket(']', {column: cursor.column + 1, row: cursor.row});
|
512
|
-
if (matching !== null && CstyleBehaviour.isAutoInsertedClosing(cursor, line, text)) {
|
513
|
-
CstyleBehaviour.popAutoInsertedClosing();
|
514
|
-
return {
|
515
|
-
text: '',
|
516
|
-
selection: [1, 1]
|
517
|
-
};
|
518
|
-
}
|
519
|
-
}
|
520
|
-
}
|
521
|
-
});
|
522
|
-
|
523
|
-
this.add("brackets", "deletion", function (state, action, editor, session, range) {
|
524
|
-
var selected = session.doc.getTextRange(range);
|
525
|
-
if (!range.isMultiLine() && selected == '[') {
|
526
|
-
var line = session.doc.getLine(range.start.row);
|
527
|
-
var rightChar = line.substring(range.start.column + 1, range.start.column + 2);
|
528
|
-
if (rightChar == ']') {
|
529
|
-
range.end.column++;
|
530
|
-
return range;
|
531
|
-
}
|
532
|
-
}
|
533
|
-
});
|
534
|
-
|
535
|
-
this.add("string_dquotes", "insertion", function (state, action, editor, session, text) {
|
536
|
-
if (text == '"' || text == "'") {
|
537
|
-
var quote = text;
|
538
|
-
var selection = editor.getSelectionRange();
|
539
|
-
var selected = session.doc.getTextRange(selection);
|
540
|
-
if (selected !== "" && selected !== "'" && selected != '"' && editor.getWrapBehavioursEnabled()) {
|
541
|
-
return {
|
542
|
-
text: quote + selected + quote,
|
543
|
-
selection: false
|
544
|
-
};
|
545
|
-
} else {
|
546
|
-
var cursor = editor.getCursorPosition();
|
547
|
-
var line = session.doc.getLine(cursor.row);
|
548
|
-
var leftChar = line.substring(cursor.column-1, cursor.column);
|
549
|
-
if (leftChar == '\\') {
|
550
|
-
return null;
|
551
|
-
}
|
552
|
-
var tokens = session.getTokens(selection.start.row);
|
553
|
-
var col = 0, token;
|
554
|
-
var quotepos = -1; // Track whether we're inside an open quote.
|
555
|
-
|
556
|
-
for (var x = 0; x < tokens.length; x++) {
|
557
|
-
token = tokens[x];
|
558
|
-
if (token.type == "string") {
|
559
|
-
quotepos = -1;
|
560
|
-
} else if (quotepos < 0) {
|
561
|
-
quotepos = token.value.indexOf(quote);
|
562
|
-
}
|
563
|
-
if ((token.value.length + col) > selection.start.column) {
|
564
|
-
break;
|
565
|
-
}
|
566
|
-
col += tokens[x].value.length;
|
567
|
-
}
|
568
|
-
if (!token || (quotepos < 0 && token.type !== "comment" && (token.type !== "string" || ((selection.start.column !== token.value.length+col-1) && token.value.lastIndexOf(quote) === token.value.length-1)))) {
|
569
|
-
if (!CstyleBehaviour.isSaneInsertion(editor, session))
|
570
|
-
return;
|
571
|
-
return {
|
572
|
-
text: quote + quote,
|
573
|
-
selection: [1,1]
|
574
|
-
};
|
575
|
-
} else if (token && token.type === "string") {
|
576
|
-
var rightChar = line.substring(cursor.column, cursor.column + 1);
|
577
|
-
if (rightChar == quote) {
|
578
|
-
return {
|
579
|
-
text: '',
|
580
|
-
selection: [1, 1]
|
581
|
-
};
|
582
|
-
}
|
583
|
-
}
|
584
|
-
}
|
585
|
-
}
|
586
|
-
});
|
587
|
-
|
588
|
-
this.add("string_dquotes", "deletion", function (state, action, editor, session, range) {
|
589
|
-
var selected = session.doc.getTextRange(range);
|
590
|
-
if (!range.isMultiLine() && (selected == '"' || selected == "'")) {
|
591
|
-
var line = session.doc.getLine(range.start.row);
|
592
|
-
var rightChar = line.substring(range.start.column + 1, range.start.column + 2);
|
593
|
-
if (rightChar == '"') {
|
594
|
-
range.end.column++;
|
595
|
-
return range;
|
596
|
-
}
|
597
|
-
}
|
598
|
-
});
|
599
|
-
|
600
|
-
};
|
601
|
-
|
602
|
-
oop.inherits(CstyleBehaviour, Behaviour);
|
603
|
-
|
604
|
-
exports.CstyleBehaviour = CstyleBehaviour;
|
605
|
-
});
|
606
|
-
|
607
|
-
define('ace/mode/folding/xml', ['require', 'exports', 'module' , 'ace/lib/oop', 'ace/lib/lang', 'ace/range', 'ace/mode/folding/fold_mode', 'ace/token_iterator'], function(require, exports, module) {
|
608
|
-
|
609
|
-
|
610
|
-
var oop = require("../../lib/oop");
|
611
|
-
var lang = require("../../lib/lang");
|
612
|
-
var Range = require("../../range").Range;
|
613
|
-
var BaseFoldMode = require("./fold_mode").FoldMode;
|
614
|
-
var TokenIterator = require("../../token_iterator").TokenIterator;
|
615
|
-
|
616
|
-
var FoldMode = exports.FoldMode = function(voidElements) {
|
617
|
-
BaseFoldMode.call(this);
|
618
|
-
this.voidElements = voidElements || {};
|
619
|
-
};
|
620
|
-
oop.inherits(FoldMode, BaseFoldMode);
|
621
|
-
|
622
|
-
(function() {
|
623
|
-
|
624
|
-
this.getFoldWidget = function(session, foldStyle, row) {
|
625
|
-
var tag = this._getFirstTagInLine(session, row);
|
626
|
-
|
627
|
-
if (tag.closing)
|
628
|
-
return foldStyle == "markbeginend" ? "end" : "";
|
629
|
-
|
630
|
-
if (!tag.tagName || this.voidElements[tag.tagName.toLowerCase()])
|
631
|
-
return "";
|
632
|
-
|
633
|
-
if (tag.selfClosing)
|
634
|
-
return "";
|
635
|
-
|
636
|
-
if (tag.value.indexOf("/" + tag.tagName) !== -1)
|
637
|
-
return "";
|
638
|
-
|
639
|
-
return "start";
|
640
|
-
};
|
641
|
-
|
642
|
-
this._getFirstTagInLine = function(session, row) {
|
643
|
-
var tokens = session.getTokens(row);
|
644
|
-
var value = "";
|
645
|
-
for (var i = 0; i < tokens.length; i++) {
|
646
|
-
var token = tokens[i];
|
647
|
-
if (token.type.indexOf("meta.tag") === 0)
|
648
|
-
value += token.value;
|
649
|
-
else
|
650
|
-
value += lang.stringRepeat(" ", token.value.length);
|
651
|
-
}
|
652
|
-
|
653
|
-
return this._parseTag(value);
|
654
|
-
};
|
655
|
-
|
656
|
-
this.tagRe = /^(\s*)(<?(\/?)([-_a-zA-Z0-9:!]*)\s*(\/?)>?)/;
|
657
|
-
this._parseTag = function(tag) {
|
658
|
-
|
659
|
-
var match = this.tagRe.exec(tag);
|
660
|
-
var column = this.tagRe.lastIndex || 0;
|
661
|
-
this.tagRe.lastIndex = 0;
|
662
|
-
|
663
|
-
return {
|
664
|
-
value: tag,
|
665
|
-
match: match ? match[2] : "",
|
666
|
-
closing: match ? !!match[3] : false,
|
667
|
-
selfClosing: match ? !!match[5] || match[2] == "/>" : false,
|
668
|
-
tagName: match ? match[4] : "",
|
669
|
-
column: match[1] ? column + match[1].length : column
|
670
|
-
};
|
671
|
-
};
|
672
|
-
this._readTagForward = function(iterator) {
|
673
|
-
var token = iterator.getCurrentToken();
|
674
|
-
if (!token)
|
675
|
-
return null;
|
676
|
-
|
677
|
-
var value = "";
|
678
|
-
var start;
|
679
|
-
|
680
|
-
do {
|
681
|
-
if (token.type.indexOf("meta.tag") === 0) {
|
682
|
-
if (!start) {
|
683
|
-
var start = {
|
684
|
-
row: iterator.getCurrentTokenRow(),
|
685
|
-
column: iterator.getCurrentTokenColumn()
|
686
|
-
};
|
687
|
-
}
|
688
|
-
value += token.value;
|
689
|
-
if (value.indexOf(">") !== -1) {
|
690
|
-
var tag = this._parseTag(value);
|
691
|
-
tag.start = start;
|
692
|
-
tag.end = {
|
693
|
-
row: iterator.getCurrentTokenRow(),
|
694
|
-
column: iterator.getCurrentTokenColumn() + token.value.length
|
695
|
-
};
|
696
|
-
iterator.stepForward();
|
697
|
-
return tag;
|
698
|
-
}
|
699
|
-
}
|
700
|
-
} while(token = iterator.stepForward());
|
701
|
-
|
702
|
-
return null;
|
703
|
-
};
|
704
|
-
|
705
|
-
this._readTagBackward = function(iterator) {
|
706
|
-
var token = iterator.getCurrentToken();
|
707
|
-
if (!token)
|
708
|
-
return null;
|
709
|
-
|
710
|
-
var value = "";
|
711
|
-
var end;
|
712
|
-
|
713
|
-
do {
|
714
|
-
if (token.type.indexOf("meta.tag") === 0) {
|
715
|
-
if (!end) {
|
716
|
-
end = {
|
717
|
-
row: iterator.getCurrentTokenRow(),
|
718
|
-
column: iterator.getCurrentTokenColumn() + token.value.length
|
719
|
-
};
|
720
|
-
}
|
721
|
-
value = token.value + value;
|
722
|
-
if (value.indexOf("<") !== -1) {
|
723
|
-
var tag = this._parseTag(value);
|
724
|
-
tag.end = end;
|
725
|
-
tag.start = {
|
726
|
-
row: iterator.getCurrentTokenRow(),
|
727
|
-
column: iterator.getCurrentTokenColumn()
|
728
|
-
};
|
729
|
-
iterator.stepBackward();
|
730
|
-
return tag;
|
731
|
-
}
|
732
|
-
}
|
733
|
-
} while(token = iterator.stepBackward());
|
734
|
-
|
735
|
-
return null;
|
736
|
-
};
|
737
|
-
|
738
|
-
this._pop = function(stack, tag) {
|
739
|
-
while (stack.length) {
|
740
|
-
|
741
|
-
var top = stack[stack.length-1];
|
742
|
-
if (!tag || top.tagName == tag.tagName) {
|
743
|
-
return stack.pop();
|
744
|
-
}
|
745
|
-
else if (this.voidElements[tag.tagName]) {
|
746
|
-
return;
|
747
|
-
}
|
748
|
-
else if (this.voidElements[top.tagName]) {
|
749
|
-
stack.pop();
|
750
|
-
continue;
|
751
|
-
} else {
|
752
|
-
return null;
|
753
|
-
}
|
754
|
-
}
|
755
|
-
};
|
756
|
-
|
757
|
-
this.getFoldWidgetRange = function(session, foldStyle, row) {
|
758
|
-
var firstTag = this._getFirstTagInLine(session, row);
|
759
|
-
|
760
|
-
if (!firstTag.match)
|
761
|
-
return null;
|
762
|
-
|
763
|
-
var isBackward = firstTag.closing || firstTag.selfClosing;
|
764
|
-
var stack = [];
|
765
|
-
var tag;
|
766
|
-
|
767
|
-
if (!isBackward) {
|
768
|
-
var iterator = new TokenIterator(session, row, firstTag.column);
|
769
|
-
var start = {
|
770
|
-
row: row,
|
771
|
-
column: firstTag.column + firstTag.tagName.length + 2
|
772
|
-
};
|
773
|
-
while (tag = this._readTagForward(iterator)) {
|
774
|
-
if (tag.selfClosing) {
|
775
|
-
if (!stack.length) {
|
776
|
-
tag.start.column += tag.tagName.length + 2;
|
777
|
-
tag.end.column -= 2;
|
778
|
-
return Range.fromPoints(tag.start, tag.end);
|
779
|
-
} else
|
780
|
-
continue;
|
781
|
-
}
|
782
|
-
|
783
|
-
if (tag.closing) {
|
784
|
-
this._pop(stack, tag);
|
785
|
-
if (stack.length == 0)
|
786
|
-
return Range.fromPoints(start, tag.start);
|
787
|
-
}
|
788
|
-
else {
|
789
|
-
stack.push(tag)
|
790
|
-
}
|
791
|
-
}
|
792
|
-
}
|
793
|
-
else {
|
794
|
-
var iterator = new TokenIterator(session, row, firstTag.column + firstTag.match.length);
|
795
|
-
var end = {
|
796
|
-
row: row,
|
797
|
-
column: firstTag.column
|
798
|
-
};
|
799
|
-
|
800
|
-
while (tag = this._readTagBackward(iterator)) {
|
801
|
-
if (tag.selfClosing) {
|
802
|
-
if (!stack.length) {
|
803
|
-
tag.start.column += tag.tagName.length + 2;
|
804
|
-
tag.end.column -= 2;
|
805
|
-
return Range.fromPoints(tag.start, tag.end);
|
806
|
-
} else
|
807
|
-
continue;
|
808
|
-
}
|
809
|
-
|
810
|
-
if (!tag.closing) {
|
811
|
-
this._pop(stack, tag);
|
812
|
-
if (stack.length == 0) {
|
813
|
-
tag.start.column += tag.tagName.length + 2;
|
814
|
-
return Range.fromPoints(tag.start, end);
|
815
|
-
}
|
816
|
-
}
|
817
|
-
else {
|
818
|
-
stack.push(tag)
|
819
|
-
}
|
820
|
-
}
|
821
|
-
}
|
822
|
-
|
823
|
-
};
|
824
|
-
|
825
|
-
}).call(FoldMode.prototype);
|
826
|
-
|
827
|
-
});
|
828
|
-
|
829
|
-
define('ace/mode/javascript', ['require', 'exports', 'module' , 'ace/lib/oop', 'ace/mode/text', 'ace/tokenizer', 'ace/mode/javascript_highlight_rules', 'ace/mode/matching_brace_outdent', 'ace/range', 'ace/worker/worker_client', 'ace/mode/behaviour/cstyle', 'ace/mode/folding/cstyle'], function(require, exports, module) {
|
830
|
-
|
831
|
-
|
832
|
-
var oop = require("../lib/oop");
|
833
|
-
var TextMode = require("./text").Mode;
|
834
|
-
var Tokenizer = require("../tokenizer").Tokenizer;
|
835
|
-
var JavaScriptHighlightRules = require("./javascript_highlight_rules").JavaScriptHighlightRules;
|
836
|
-
var MatchingBraceOutdent = require("./matching_brace_outdent").MatchingBraceOutdent;
|
837
|
-
var Range = require("../range").Range;
|
838
|
-
var WorkerClient = require("../worker/worker_client").WorkerClient;
|
839
|
-
var CstyleBehaviour = require("./behaviour/cstyle").CstyleBehaviour;
|
840
|
-
var CStyleFoldMode = require("./folding/cstyle").FoldMode;
|
841
|
-
|
842
|
-
var Mode = function() {
|
843
|
-
this.$tokenizer = new Tokenizer(new JavaScriptHighlightRules().getRules());
|
844
|
-
this.$outdent = new MatchingBraceOutdent();
|
845
|
-
this.$behaviour = new CstyleBehaviour();
|
846
|
-
this.foldingRules = new CStyleFoldMode();
|
847
|
-
};
|
848
|
-
oop.inherits(Mode, TextMode);
|
849
|
-
|
850
|
-
(function() {
|
851
|
-
|
852
|
-
|
853
|
-
this.toggleCommentLines = function(state, doc, startRow, endRow) {
|
854
|
-
var outdent = true;
|
855
|
-
var re = /^(\s*)\/\//;
|
856
|
-
|
857
|
-
for (var i=startRow; i<= endRow; i++) {
|
858
|
-
if (!re.test(doc.getLine(i))) {
|
859
|
-
outdent = false;
|
860
|
-
break;
|
861
|
-
}
|
862
|
-
}
|
863
|
-
|
864
|
-
if (outdent) {
|
865
|
-
var deleteRange = new Range(0, 0, 0, 0);
|
866
|
-
for (var i=startRow; i<= endRow; i++)
|
867
|
-
{
|
868
|
-
var line = doc.getLine(i);
|
869
|
-
var m = line.match(re);
|
870
|
-
deleteRange.start.row = i;
|
871
|
-
deleteRange.end.row = i;
|
872
|
-
deleteRange.end.column = m[0].length;
|
873
|
-
doc.replace(deleteRange, m[1]);
|
874
|
-
}
|
875
|
-
}
|
876
|
-
else {
|
877
|
-
doc.indentRows(startRow, endRow, "//");
|
878
|
-
}
|
879
|
-
};
|
880
|
-
|
881
|
-
this.getNextLineIndent = function(state, line, tab) {
|
882
|
-
var indent = this.$getIndent(line);
|
883
|
-
|
884
|
-
var tokenizedLine = this.$tokenizer.getLineTokens(line, state);
|
885
|
-
var tokens = tokenizedLine.tokens;
|
886
|
-
var endState = tokenizedLine.state;
|
887
|
-
|
888
|
-
if (tokens.length && tokens[tokens.length-1].type == "comment") {
|
889
|
-
return indent;
|
890
|
-
}
|
891
|
-
|
892
|
-
if (state == "start" || state == "regex_allowed") {
|
893
|
-
var match = line.match(/^.*(?:\bcase\b.*\:|[\{\(\[])\s*$/);
|
894
|
-
if (match) {
|
895
|
-
indent += tab;
|
896
|
-
}
|
897
|
-
} else if (state == "doc-start") {
|
898
|
-
if (endState == "start" || state == "regex_allowed") {
|
899
|
-
return "";
|
900
|
-
}
|
901
|
-
var match = line.match(/^\s*(\/?)\*/);
|
902
|
-
if (match) {
|
903
|
-
if (match[1]) {
|
904
|
-
indent += " ";
|
905
|
-
}
|
906
|
-
indent += "* ";
|
907
|
-
}
|
908
|
-
}
|
909
|
-
|
910
|
-
return indent;
|
911
|
-
};
|
912
|
-
|
913
|
-
this.checkOutdent = function(state, line, input) {
|
914
|
-
return this.$outdent.checkOutdent(line, input);
|
915
|
-
};
|
916
|
-
|
917
|
-
this.autoOutdent = function(state, doc, row) {
|
918
|
-
this.$outdent.autoOutdent(doc, row);
|
919
|
-
};
|
920
|
-
|
921
|
-
this.createWorker = function(session) {
|
922
|
-
var worker = new WorkerClient(["ace"], "ace/mode/javascript_worker", "JavaScriptWorker");
|
923
|
-
worker.attachToDocument(session.getDocument());
|
924
|
-
|
925
|
-
worker.on("jslint", function(results) {
|
926
|
-
session.setAnnotations(results.data);
|
927
|
-
});
|
928
|
-
|
929
|
-
worker.on("terminate", function() {
|
930
|
-
session.clearAnnotations();
|
931
|
-
});
|
932
|
-
|
933
|
-
return worker;
|
934
|
-
};
|
935
|
-
|
936
|
-
}).call(Mode.prototype);
|
937
|
-
|
938
|
-
exports.Mode = Mode;
|
939
|
-
});
|
940
|
-
|
941
|
-
define('ace/mode/javascript_highlight_rules', ['require', 'exports', 'module' , 'ace/lib/oop', 'ace/mode/doc_comment_highlight_rules', 'ace/mode/text_highlight_rules'], function(require, exports, module) {
|
942
|
-
|
943
|
-
|
944
|
-
var oop = require("../lib/oop");
|
945
|
-
var DocCommentHighlightRules = require("./doc_comment_highlight_rules").DocCommentHighlightRules;
|
946
|
-
var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
|
947
|
-
|
948
|
-
var JavaScriptHighlightRules = function() {
|
949
|
-
var keywordMapper = this.createKeywordMapper({
|
950
|
-
"variable.language":
|
951
|
-
"Array|Boolean|Date|Function|Iterator|Number|Object|RegExp|String|Proxy|" + // Constructors
|
952
|
-
"Namespace|QName|XML|XMLList|" + // E4X
|
953
|
-
"ArrayBuffer|Float32Array|Float64Array|Int16Array|Int32Array|Int8Array|" +
|
954
|
-
"Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray|" +
|
955
|
-
"Error|EvalError|InternalError|RangeError|ReferenceError|StopIteration|" + // Errors
|
956
|
-
"SyntaxError|TypeError|URIError|" +
|
957
|
-
"decodeURI|decodeURIComponent|encodeURI|encodeURIComponent|eval|isFinite|" + // Non-constructor functions
|
958
|
-
"isNaN|parseFloat|parseInt|" +
|
959
|
-
"JSON|Math|" + // Other
|
960
|
-
"this|arguments|prototype|window|document" , // Pseudo
|
961
|
-
"keyword":
|
962
|
-
"const|yield|import|get|set|" +
|
963
|
-
"break|case|catch|continue|default|delete|do|else|finally|for|function|" +
|
964
|
-
"if|in|instanceof|new|return|switch|throw|try|typeof|let|var|while|with|debugger|" +
|
965
|
-
"__parent__|__count__|escape|unescape|with|__proto__|" +
|
966
|
-
"class|enum|extends|super|export|implements|private|public|interface|package|protected|static",
|
967
|
-
"storage.type":
|
968
|
-
"const|let|var|function",
|
969
|
-
"constant.language":
|
970
|
-
"null|Infinity|NaN|undefined",
|
971
|
-
"support.function":
|
972
|
-
"alert"
|
973
|
-
}, "identifier");
|
974
|
-
var kwBeforeRe = "case|do|else|finally|in|instanceof|return|throw|try|typeof|yield|void";
|
975
|
-
var identifierRe = "[a-zA-Z\\$_\u00a1-\uffff][a-zA-Z\\d\\$_\u00a1-\uffff]*\\b";
|
976
|
-
|
977
|
-
var escapedRe = "\\\\(?:x[0-9a-fA-F]{2}|" + // hex
|
978
|
-
"u[0-9a-fA-F]{4}|" + // unicode
|
979
|
-
"[0-2][0-7]{0,2}|" + // oct
|
980
|
-
"3[0-6][0-7]?|" + // oct
|
981
|
-
"37[0-7]?|" + // oct
|
982
|
-
"[4-7][0-7]?|" + //oct
|
983
|
-
".)";
|
984
|
-
|
985
|
-
this.$rules = {
|
986
|
-
"start" : [
|
987
|
-
{
|
988
|
-
token : "comment",
|
989
|
-
regex : /\/\/.*$/
|
990
|
-
},
|
991
|
-
DocCommentHighlightRules.getStartRule("doc-start"),
|
992
|
-
{
|
993
|
-
token : "comment", // multi line comment
|
994
|
-
regex : /\/\*/,
|
995
|
-
next : "comment"
|
996
|
-
}, {
|
997
|
-
token : "string",
|
998
|
-
regex : "'(?=.)",
|
999
|
-
next : "qstring"
|
1000
|
-
}, {
|
1001
|
-
token : "string",
|
1002
|
-
regex : '"(?=.)',
|
1003
|
-
next : "qqstring"
|
1004
|
-
}, {
|
1005
|
-
token : "constant.numeric", // hex
|
1006
|
-
regex : /0[xX][0-9a-fA-F]+\b/
|
1007
|
-
}, {
|
1008
|
-
token : "constant.numeric", // float
|
1009
|
-
regex : /[+-]?\d+(?:(?:\.\d*)?(?:[eE][+-]?\d+)?)?\b/
|
1010
|
-
}, {
|
1011
|
-
token : [
|
1012
|
-
"storage.type", "punctuation.operator", "support.function",
|
1013
|
-
"punctuation.operator", "entity.name.function", "text","keyword.operator"
|
1014
|
-
],
|
1015
|
-
regex : "(" + identifierRe + ")(\\.)(prototype)(\\.)(" + identifierRe +")(\\s*)(=)",
|
1016
|
-
next: "function_arguments"
|
1017
|
-
}, {
|
1018
|
-
token : [
|
1019
|
-
"storage.type", "punctuation.operator", "entity.name.function", "text",
|
1020
|
-
"keyword.operator", "text", "storage.type", "text", "paren.lparen"
|
1021
|
-
],
|
1022
|
-
regex : "(" + identifierRe + ")(\\.)(" + identifierRe +")(\\s*)(=)(\\s*)(function)(\\s*)(\\()",
|
1023
|
-
next: "function_arguments"
|
1024
|
-
}, {
|
1025
|
-
token : [
|
1026
|
-
"entity.name.function", "text", "keyword.operator", "text", "storage.type",
|
1027
|
-
"text", "paren.lparen"
|
1028
|
-
],
|
1029
|
-
regex : "(" + identifierRe +")(\\s*)(=)(\\s*)(function)(\\s*)(\\()",
|
1030
|
-
next: "function_arguments"
|
1031
|
-
}, {
|
1032
|
-
token : [
|
1033
|
-
"storage.type", "punctuation.operator", "entity.name.function", "text",
|
1034
|
-
"keyword.operator", "text",
|
1035
|
-
"storage.type", "text", "entity.name.function", "text", "paren.lparen"
|
1036
|
-
],
|
1037
|
-
regex : "(" + identifierRe + ")(\\.)(" + identifierRe +")(\\s*)(=)(\\s*)(function)(\\s+)(\\w+)(\\s*)(\\()",
|
1038
|
-
next: "function_arguments"
|
1039
|
-
}, {
|
1040
|
-
token : [
|
1041
|
-
"storage.type", "text", "entity.name.function", "text", "paren.lparen"
|
1042
|
-
],
|
1043
|
-
regex : "(function)(\\s+)(" + identifierRe + ")(\\s*)(\\()",
|
1044
|
-
next: "function_arguments"
|
1045
|
-
}, {
|
1046
|
-
token : [
|
1047
|
-
"entity.name.function", "text", "punctuation.operator",
|
1048
|
-
"text", "storage.type", "text", "paren.lparen"
|
1049
|
-
],
|
1050
|
-
regex : "(" + identifierRe + ")(\\s*)(:)(\\s*)(function)(\\s*)(\\()",
|
1051
|
-
next: "function_arguments"
|
1052
|
-
}, {
|
1053
|
-
token : [
|
1054
|
-
"text", "text", "storage.type", "text", "paren.lparen"
|
1055
|
-
],
|
1056
|
-
regex : "(:)(\\s*)(function)(\\s*)(\\()",
|
1057
|
-
next: "function_arguments"
|
1058
|
-
}, {
|
1059
|
-
token : "constant.language.boolean",
|
1060
|
-
regex : /(?:true|false)\b/
|
1061
|
-
}, {
|
1062
|
-
token : "keyword",
|
1063
|
-
regex : "(?:" + kwBeforeRe + ")\\b",
|
1064
|
-
next : "regex_allowed"
|
1065
|
-
}, {
|
1066
|
-
token : ["punctuation.operator", "support.function"],
|
1067
|
-
regex : /(\.)(s(?:h(?:ift|ow(?:Mod(?:elessDialog|alDialog)|Help))|croll(?:X|By(?:Pages|Lines)?|Y|To)?|t(?:opzzzz|rike)|i(?:n|zeToContent|debar|gnText)|ort|u(?:p|b(?:str(?:ing)?)?)|pli(?:ce|t)|e(?:nd|t(?:Re(?:sizable|questHeader)|M(?:i(?:nutes|lliseconds)|onth)|Seconds|Ho(?:tKeys|urs)|Year|Cursor|Time(?:out)?|Interval|ZOptions|Date|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Date|FullYear)|FullYear|Active)|arch)|qrt|lice|avePreferences|mall)|h(?:ome|andleEvent)|navigate|c(?:har(?:CodeAt|At)|o(?:s|n(?:cat|textual|firm)|mpile)|eil|lear(?:Timeout|Interval)?|a(?:ptureEvents|ll)|reate(?:StyleSheet|Popup|EventObject))|t(?:o(?:GMTString|S(?:tring|ource)|U(?:TCString|pperCase)|Lo(?:caleString|werCase))|est|a(?:n|int(?:Enabled)?))|i(?:s(?:NaN|Finite)|ndexOf|talics)|d(?:isableExternalCapture|ump|etachEvent)|u(?:n(?:shift|taint|escape|watch)|pdateCommands)|j(?:oin|avaEnabled)|p(?:o(?:p|w)|ush|lugins.refresh|a(?:ddings|rse(?:Int|Float)?)|r(?:int|ompt|eference))|e(?:scape|nableExternalCapture|val|lementFromPoint|x(?:p|ec(?:Script|Command)?))|valueOf|UTC|queryCommand(?:State|Indeterm|Enabled|Value)|f(?:i(?:nd|le(?:ModifiedDate|Size|CreatedDate|UpdatedDate)|xed)|o(?:nt(?:size|color)|rward)|loor|romCharCode)|watch|l(?:ink|o(?:ad|g)|astIndexOf)|a(?:sin|nchor|cos|t(?:tachEvent|ob|an(?:2)?)|pply|lert|b(?:s|ort))|r(?:ou(?:nd|teEvents)|e(?:size(?:By|To)|calc|turnValue|place|verse|l(?:oad|ease(?:Capture|Events)))|andom)|g(?:o|et(?:ResponseHeader|M(?:i(?:nutes|lliseconds)|onth)|Se(?:conds|lection)|Hours|Year|Time(?:zoneOffset)?|Da(?:y|te)|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Da(?:y|te)|FullYear)|FullYear|A(?:ttention|llResponseHeaders)))|m(?:in|ove(?:B(?:y|elow)|To(?:Absolute)?|Above)|ergeAttributes|a(?:tch|rgins|x))|b(?:toa|ig|o(?:ld|rderWidths)|link|ack))\b(?=\()/
|
1068
|
-
}, {
|
1069
|
-
token : ["punctuation.operator", "support.function.dom"],
|
1070
|
-
regex : /(\.)(s(?:ub(?:stringData|mit)|plitText|e(?:t(?:NamedItem|Attribute(?:Node)?)|lect))|has(?:ChildNodes|Feature)|namedItem|c(?:l(?:ick|o(?:se|neNode))|reate(?:C(?:omment|DATASection|aption)|T(?:Head|extNode|Foot)|DocumentFragment|ProcessingInstruction|E(?:ntityReference|lement)|Attribute))|tabIndex|i(?:nsert(?:Row|Before|Cell|Data)|tem)|open|delete(?:Row|C(?:ell|aption)|T(?:Head|Foot)|Data)|focus|write(?:ln)?|a(?:dd|ppend(?:Child|Data))|re(?:set|place(?:Child|Data)|move(?:NamedItem|Child|Attribute(?:Node)?)?)|get(?:NamedItem|Element(?:sBy(?:Name|TagName)|ById)|Attribute(?:Node)?)|blur)\b(?=\()/
|
1071
|
-
}, {
|
1072
|
-
token : ["punctuation.operator", "support.constant"],
|
1073
|
-
regex : /(\.)(s(?:ystemLanguage|cr(?:ipts|ollbars|een(?:X|Y|Top|Left))|t(?:yle(?:Sheets)?|atus(?:Text|bar)?)|ibling(?:Below|Above)|ource|uffixes|e(?:curity(?:Policy)?|l(?:ection|f)))|h(?:istory|ost(?:name)?|as(?:h|Focus))|y|X(?:MLDocument|SLDocument)|n(?:ext|ame(?:space(?:s|URI)|Prop))|M(?:IN_VALUE|AX_VALUE)|c(?:haracterSet|o(?:n(?:structor|trollers)|okieEnabled|lorDepth|mp(?:onents|lete))|urrent|puClass|l(?:i(?:p(?:boardData)?|entInformation)|osed|asses)|alle(?:e|r)|rypto)|t(?:o(?:olbar|p)|ext(?:Transform|Indent|Decoration|Align)|ags)|SQRT(?:1_2|2)|i(?:n(?:ner(?:Height|Width)|put)|ds|gnoreCase)|zIndex|o(?:scpu|n(?:readystatechange|Line)|uter(?:Height|Width)|p(?:sProfile|ener)|ffscreenBuffering)|NEGATIVE_INFINITY|d(?:i(?:splay|alog(?:Height|Top|Width|Left|Arguments)|rectories)|e(?:scription|fault(?:Status|Ch(?:ecked|arset)|View)))|u(?:ser(?:Profile|Language|Agent)|n(?:iqueID|defined)|pdateInterval)|_content|p(?:ixelDepth|ort|ersonalbar|kcs11|l(?:ugins|atform)|a(?:thname|dding(?:Right|Bottom|Top|Left)|rent(?:Window|Layer)?|ge(?:X(?:Offset)?|Y(?:Offset)?))|r(?:o(?:to(?:col|type)|duct(?:Sub)?|mpter)|e(?:vious|fix)))|e(?:n(?:coding|abledPlugin)|x(?:ternal|pando)|mbeds)|v(?:isibility|endor(?:Sub)?|Linkcolor)|URLUnencoded|P(?:I|OSITIVE_INFINITY)|f(?:ilename|o(?:nt(?:Size|Family|Weight)|rmName)|rame(?:s|Element)|gColor)|E|whiteSpace|l(?:i(?:stStyleType|n(?:eHeight|kColor))|o(?:ca(?:tion(?:bar)?|lName)|wsrc)|e(?:ngth|ft(?:Context)?)|a(?:st(?:M(?:odified|atch)|Index|Paren)|yer(?:s|X)|nguage))|a(?:pp(?:MinorVersion|Name|Co(?:deName|re)|Version)|vail(?:Height|Top|Width|Left)|ll|r(?:ity|guments)|Linkcolor|bove)|r(?:ight(?:Context)?|e(?:sponse(?:XML|Text)|adyState))|global|x|m(?:imeTypes|ultiline|enubar|argin(?:Right|Bottom|Top|Left))|L(?:N(?:10|2)|OG(?:10E|2E))|b(?:o(?:ttom|rder(?:Width|RightWidth|BottomWidth|Style|Color|TopWidth|LeftWidth))|ufferDepth|elow|ackground(?:Color|Image)))\b/
|
1074
|
-
}, {
|
1075
|
-
token : ["storage.type", "punctuation.operator", "support.function.firebug"],
|
1076
|
-
regex : /(console)(\.)(warn|info|log|error|time|timeEnd|assert)\b/
|
1077
|
-
}, {
|
1078
|
-
token : keywordMapper,
|
1079
|
-
regex : identifierRe
|
1080
|
-
}, {
|
1081
|
-
token : "keyword.operator",
|
1082
|
-
regex : /--|\+\+|[!$%&*+\-~]|===|==|=|!=|!==|<=|>=|<<=|>>=|>>>=|<>|<|>|!|&&|\|\||\?\:|\*=|%=|\+=|\-=|&=|\^=/,
|
1083
|
-
next : "regex_allowed"
|
1084
|
-
}, {
|
1085
|
-
token : "punctuation.operator",
|
1086
|
-
regex : /\?|\:|\,|\;|\./,
|
1087
|
-
next : "regex_allowed"
|
1088
|
-
}, {
|
1089
|
-
token : "paren.lparen",
|
1090
|
-
regex : /[\[({]/,
|
1091
|
-
next : "regex_allowed"
|
1092
|
-
}, {
|
1093
|
-
token : "paren.rparen",
|
1094
|
-
regex : /[\])}]/
|
1095
|
-
}, {
|
1096
|
-
token : "keyword.operator",
|
1097
|
-
regex : /\/=?/,
|
1098
|
-
next : "regex_allowed"
|
1099
|
-
}, {
|
1100
|
-
token: "comment",
|
1101
|
-
regex: /^#!.*$/
|
1102
|
-
}, {
|
1103
|
-
token : "text",
|
1104
|
-
regex : /\s+/
|
1105
|
-
}
|
1106
|
-
],
|
1107
|
-
"regex_allowed": [
|
1108
|
-
DocCommentHighlightRules.getStartRule("doc-start"),
|
1109
|
-
{
|
1110
|
-
token : "comment", // multi line comment
|
1111
|
-
regex : "\\/\\*",
|
1112
|
-
next : "comment_regex_allowed"
|
1113
|
-
}, {
|
1114
|
-
token : "comment",
|
1115
|
-
regex : "\\/\\/.*$"
|
1116
|
-
}, {
|
1117
|
-
token: "string.regexp",
|
1118
|
-
regex: "\\/",
|
1119
|
-
next: "regex",
|
1120
|
-
}, {
|
1121
|
-
token : "text",
|
1122
|
-
regex : "\\s+"
|
1123
|
-
}, {
|
1124
|
-
token: "empty",
|
1125
|
-
regex: "",
|
1126
|
-
next: "start"
|
1127
|
-
}
|
1128
|
-
],
|
1129
|
-
"regex": [
|
1130
|
-
{
|
1131
|
-
token: "regexp.keyword.operator",
|
1132
|
-
regex: "\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"
|
1133
|
-
}, {
|
1134
|
-
token: "string.regexp",
|
1135
|
-
regex: "/\\w*",
|
1136
|
-
next: "start",
|
1137
|
-
}, {
|
1138
|
-
token : "invalid",
|
1139
|
-
regex: /\{\d+,?(?:\d+)?}[+*]|[+*$^?][+*]|[$^][?]|\?{3,}/
|
1140
|
-
}, {
|
1141
|
-
token : "constant.language.escape",
|
1142
|
-
regex: /\(\?[:=!]|\)|{\d+,?(?:\d+)?}|{,\d+}|[+*]\?|[(|)$^+*?]/
|
1143
|
-
}, {
|
1144
|
-
token: "string.regexp",
|
1145
|
-
regex: /{|[^{\[\/\\(|)$^+*?]+/,
|
1146
|
-
}, {
|
1147
|
-
token: "constant.language.escape",
|
1148
|
-
regex: /\[\^?/,
|
1149
|
-
next: "regex_character_class",
|
1150
|
-
}, {
|
1151
|
-
token: "empty",
|
1152
|
-
regex: "",
|
1153
|
-
next: "start"
|
1154
|
-
}
|
1155
|
-
],
|
1156
|
-
"regex_character_class": [
|
1157
|
-
{
|
1158
|
-
token: "regexp.keyword.operator",
|
1159
|
-
regex: "\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"
|
1160
|
-
}, {
|
1161
|
-
token: "constant.language.escape",
|
1162
|
-
regex: "]",
|
1163
|
-
next: "regex",
|
1164
|
-
}, {
|
1165
|
-
token: "constant.language.escape",
|
1166
|
-
regex: "-"
|
1167
|
-
}, {
|
1168
|
-
token: "string.regexp.charachterclass",
|
1169
|
-
regex: /[^\]\-\\]+/,
|
1170
|
-
}, {
|
1171
|
-
token: "empty",
|
1172
|
-
regex: "",
|
1173
|
-
next: "start"
|
1174
|
-
}
|
1175
|
-
],
|
1176
|
-
"function_arguments": [
|
1177
|
-
{
|
1178
|
-
token: "variable.parameter",
|
1179
|
-
regex: identifierRe
|
1180
|
-
}, {
|
1181
|
-
token: "punctuation.operator",
|
1182
|
-
regex: "[, ]+",
|
1183
|
-
}, {
|
1184
|
-
token: "punctuation.operator",
|
1185
|
-
regex: "$",
|
1186
|
-
}, {
|
1187
|
-
token: "empty",
|
1188
|
-
regex: "",
|
1189
|
-
next: "start"
|
1190
|
-
}
|
1191
|
-
],
|
1192
|
-
"comment_regex_allowed" : [
|
1193
|
-
{
|
1194
|
-
token : "comment", // closing comment
|
1195
|
-
regex : ".*?\\*\\/",
|
1196
|
-
next : "regex_allowed"
|
1197
|
-
}, {
|
1198
|
-
token : "comment", // comment spanning whole line
|
1199
|
-
regex : ".+"
|
1200
|
-
}
|
1201
|
-
],
|
1202
|
-
"comment" : [
|
1203
|
-
{
|
1204
|
-
token : "comment", // closing comment
|
1205
|
-
regex : ".*?\\*\\/",
|
1206
|
-
next : "start"
|
1207
|
-
}, {
|
1208
|
-
token : "comment", // comment spanning whole line
|
1209
|
-
regex : ".+"
|
1210
|
-
}
|
1211
|
-
],
|
1212
|
-
"qqstring" : [
|
1213
|
-
{
|
1214
|
-
token : "constant.language.escape",
|
1215
|
-
regex : escapedRe
|
1216
|
-
}, {
|
1217
|
-
token : "string",
|
1218
|
-
regex : "\\\\$",
|
1219
|
-
next : "qqstring",
|
1220
|
-
}, {
|
1221
|
-
token : "string",
|
1222
|
-
regex : '"|$',
|
1223
|
-
next : "start",
|
1224
|
-
}, {
|
1225
|
-
token : "string",
|
1226
|
-
regex : '.|\\w+|\\s+',
|
1227
|
-
}
|
1228
|
-
],
|
1229
|
-
"qstring" : [
|
1230
|
-
{
|
1231
|
-
token : "constant.language.escape",
|
1232
|
-
regex : escapedRe
|
1233
|
-
}, {
|
1234
|
-
token : "string",
|
1235
|
-
regex : "\\\\$",
|
1236
|
-
next : "qstring",
|
1237
|
-
}, {
|
1238
|
-
token : "string",
|
1239
|
-
regex : "'|$",
|
1240
|
-
next : "start",
|
1241
|
-
}, {
|
1242
|
-
token : "string",
|
1243
|
-
regex : '.|\\w+|\\s+',
|
1244
|
-
}
|
1245
|
-
]
|
1246
|
-
};
|
1247
|
-
|
1248
|
-
this.embedRules(DocCommentHighlightRules, "doc-",
|
1249
|
-
[ DocCommentHighlightRules.getEndRule("start") ]);
|
1250
|
-
};
|
1251
|
-
|
1252
|
-
oop.inherits(JavaScriptHighlightRules, TextHighlightRules);
|
1253
|
-
|
1254
|
-
exports.JavaScriptHighlightRules = JavaScriptHighlightRules;
|
1255
|
-
});
|
1256
|
-
|
1257
|
-
define('ace/mode/doc_comment_highlight_rules', ['require', 'exports', 'module' , 'ace/lib/oop', 'ace/mode/text_highlight_rules'], function(require, exports, module) {
|
1258
|
-
|
1259
|
-
|
1260
|
-
var oop = require("../lib/oop");
|
1261
|
-
var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
|
1262
|
-
|
1263
|
-
var DocCommentHighlightRules = function() {
|
1264
|
-
|
1265
|
-
this.$rules = {
|
1266
|
-
"start" : [ {
|
1267
|
-
token : "comment.doc.tag",
|
1268
|
-
regex : "@[\\w\\d_]+" // TODO: fix email addresses
|
1269
|
-
}, {
|
1270
|
-
token : "comment.doc",
|
1271
|
-
regex : "\\s+"
|
1272
|
-
}, {
|
1273
|
-
token : "comment.doc",
|
1274
|
-
regex : "TODO"
|
1275
|
-
}, {
|
1276
|
-
token : "comment.doc",
|
1277
|
-
regex : "[^@\\*]+"
|
1278
|
-
}, {
|
1279
|
-
token : "comment.doc",
|
1280
|
-
regex : "."
|
1281
|
-
}]
|
1282
|
-
};
|
1283
|
-
};
|
1284
|
-
|
1285
|
-
oop.inherits(DocCommentHighlightRules, TextHighlightRules);
|
1286
|
-
|
1287
|
-
DocCommentHighlightRules.getStartRule = function(start) {
|
1288
|
-
return {
|
1289
|
-
token : "comment.doc", // doc comment
|
1290
|
-
regex : "\\/\\*(?=\\*)",
|
1291
|
-
next : start
|
1292
|
-
};
|
1293
|
-
};
|
1294
|
-
|
1295
|
-
DocCommentHighlightRules.getEndRule = function (start) {
|
1296
|
-
return {
|
1297
|
-
token : "comment.doc", // closing comment
|
1298
|
-
regex : "\\*\\/",
|
1299
|
-
next : start
|
1300
|
-
};
|
1301
|
-
};
|
1302
|
-
|
1303
|
-
|
1304
|
-
exports.DocCommentHighlightRules = DocCommentHighlightRules;
|
1305
|
-
|
1306
|
-
});
|
1307
|
-
|
1308
|
-
define('ace/mode/matching_brace_outdent', ['require', 'exports', 'module' , 'ace/range'], function(require, exports, module) {
|
1309
|
-
|
1310
|
-
|
1311
|
-
var Range = require("../range").Range;
|
1312
|
-
|
1313
|
-
var MatchingBraceOutdent = function() {};
|
1314
|
-
|
1315
|
-
(function() {
|
1316
|
-
|
1317
|
-
this.checkOutdent = function(line, input) {
|
1318
|
-
if (! /^\s+$/.test(line))
|
1319
|
-
return false;
|
1320
|
-
|
1321
|
-
return /^\s*\}/.test(input);
|
1322
|
-
};
|
1323
|
-
|
1324
|
-
this.autoOutdent = function(doc, row) {
|
1325
|
-
var line = doc.getLine(row);
|
1326
|
-
var match = line.match(/^(\s*\})/);
|
1327
|
-
|
1328
|
-
if (!match) return 0;
|
1329
|
-
|
1330
|
-
var column = match[1].length;
|
1331
|
-
var openBracePos = doc.findMatchingBracket({row: row, column: column});
|
1332
|
-
|
1333
|
-
if (!openBracePos || openBracePos.row == row) return 0;
|
1334
|
-
|
1335
|
-
var indent = this.$getIndent(doc.getLine(openBracePos.row));
|
1336
|
-
doc.replace(new Range(row, 0, row, column-1), indent);
|
1337
|
-
};
|
1338
|
-
|
1339
|
-
this.$getIndent = function(line) {
|
1340
|
-
var match = line.match(/^(\s+)/);
|
1341
|
-
if (match) {
|
1342
|
-
return match[1];
|
1343
|
-
}
|
1344
|
-
|
1345
|
-
return "";
|
1346
|
-
};
|
1347
|
-
|
1348
|
-
}).call(MatchingBraceOutdent.prototype);
|
1349
|
-
|
1350
|
-
exports.MatchingBraceOutdent = MatchingBraceOutdent;
|
1351
|
-
});
|
1352
|
-
|
1353
|
-
define('ace/mode/folding/cstyle', ['require', 'exports', 'module' , 'ace/lib/oop', 'ace/range', 'ace/mode/folding/fold_mode'], function(require, exports, module) {
|
1354
|
-
|
1355
|
-
|
1356
|
-
var oop = require("../../lib/oop");
|
1357
|
-
var Range = require("../../range").Range;
|
1358
|
-
var BaseFoldMode = require("./fold_mode").FoldMode;
|
1359
|
-
|
1360
|
-
var FoldMode = exports.FoldMode = function() {};
|
1361
|
-
oop.inherits(FoldMode, BaseFoldMode);
|
1362
|
-
|
1363
|
-
(function() {
|
1364
|
-
|
1365
|
-
this.foldingStartMarker = /(\{|\[)[^\}\]]*$|^\s*(\/\*)/;
|
1366
|
-
this.foldingStopMarker = /^[^\[\{]*(\}|\])|^[\s\*]*(\*\/)/;
|
1367
|
-
|
1368
|
-
this.getFoldWidgetRange = function(session, foldStyle, row) {
|
1369
|
-
var line = session.getLine(row);
|
1370
|
-
var match = line.match(this.foldingStartMarker);
|
1371
|
-
if (match) {
|
1372
|
-
var i = match.index;
|
1373
|
-
|
1374
|
-
if (match[1])
|
1375
|
-
return this.openingBracketBlock(session, match[1], row, i);
|
1376
|
-
|
1377
|
-
return session.getCommentFoldRange(row, i + match[0].length, 1);
|
1378
|
-
}
|
1379
|
-
|
1380
|
-
if (foldStyle !== "markbeginend")
|
1381
|
-
return;
|
1382
|
-
|
1383
|
-
var match = line.match(this.foldingStopMarker);
|
1384
|
-
if (match) {
|
1385
|
-
var i = match.index + match[0].length;
|
1386
|
-
|
1387
|
-
if (match[1])
|
1388
|
-
return this.closingBracketBlock(session, match[1], row, i);
|
1389
|
-
|
1390
|
-
return session.getCommentFoldRange(row, i, -1);
|
1391
|
-
}
|
1392
|
-
};
|
1393
|
-
|
1394
|
-
}).call(FoldMode.prototype);
|
1395
|
-
|
1396
|
-
});
|
1397
|
-
|
1398
|
-
define('ace/mode/css', ['require', 'exports', 'module' , 'ace/lib/oop', 'ace/mode/text', 'ace/tokenizer', 'ace/mode/css_highlight_rules', 'ace/mode/matching_brace_outdent', 'ace/worker/worker_client', 'ace/mode/behaviour/cstyle', 'ace/mode/folding/cstyle'], function(require, exports, module) {
|
1399
|
-
|
1400
|
-
|
1401
|
-
var oop = require("../lib/oop");
|
1402
|
-
var TextMode = require("./text").Mode;
|
1403
|
-
var Tokenizer = require("../tokenizer").Tokenizer;
|
1404
|
-
var CssHighlightRules = require("./css_highlight_rules").CssHighlightRules;
|
1405
|
-
var MatchingBraceOutdent = require("./matching_brace_outdent").MatchingBraceOutdent;
|
1406
|
-
var WorkerClient = require("../worker/worker_client").WorkerClient;
|
1407
|
-
var CstyleBehaviour = require("./behaviour/cstyle").CstyleBehaviour;
|
1408
|
-
var CStyleFoldMode = require("./folding/cstyle").FoldMode;
|
1409
|
-
|
1410
|
-
var Mode = function() {
|
1411
|
-
this.$tokenizer = new Tokenizer(new CssHighlightRules().getRules(), "i");
|
1412
|
-
this.$outdent = new MatchingBraceOutdent();
|
1413
|
-
this.$behaviour = new CstyleBehaviour();
|
1414
|
-
this.foldingRules = new CStyleFoldMode();
|
1415
|
-
};
|
1416
|
-
oop.inherits(Mode, TextMode);
|
1417
|
-
|
1418
|
-
(function() {
|
1419
|
-
|
1420
|
-
this.foldingRules = "cStyle";
|
1421
|
-
|
1422
|
-
this.getNextLineIndent = function(state, line, tab) {
|
1423
|
-
var indent = this.$getIndent(line);
|
1424
|
-
var tokens = this.$tokenizer.getLineTokens(line, state).tokens;
|
1425
|
-
if (tokens.length && tokens[tokens.length-1].type == "comment") {
|
1426
|
-
return indent;
|
1427
|
-
}
|
1428
|
-
|
1429
|
-
var match = line.match(/^.*\{\s*$/);
|
1430
|
-
if (match) {
|
1431
|
-
indent += tab;
|
1432
|
-
}
|
1433
|
-
|
1434
|
-
return indent;
|
1435
|
-
};
|
1436
|
-
|
1437
|
-
this.checkOutdent = function(state, line, input) {
|
1438
|
-
return this.$outdent.checkOutdent(line, input);
|
1439
|
-
};
|
1440
|
-
|
1441
|
-
this.autoOutdent = function(state, doc, row) {
|
1442
|
-
this.$outdent.autoOutdent(doc, row);
|
1443
|
-
};
|
1444
|
-
|
1445
|
-
this.createWorker = function(session) {
|
1446
|
-
var worker = new WorkerClient(["ace"], "ace/mode/css_worker", "Worker");
|
1447
|
-
worker.attachToDocument(session.getDocument());
|
1448
|
-
|
1449
|
-
worker.on("csslint", function(e) {
|
1450
|
-
session.setAnnotations(e.data);
|
1451
|
-
});
|
1452
|
-
|
1453
|
-
worker.on("terminate", function() {
|
1454
|
-
session.clearAnnotations();
|
1455
|
-
});
|
1456
|
-
|
1457
|
-
return worker;
|
1458
|
-
};
|
1459
|
-
|
1460
|
-
}).call(Mode.prototype);
|
1461
|
-
|
1462
|
-
exports.Mode = Mode;
|
1463
|
-
|
1464
|
-
});
|
1465
|
-
|
1466
|
-
define('ace/mode/css_highlight_rules', ['require', 'exports', 'module' , 'ace/lib/oop', 'ace/lib/lang', 'ace/mode/text_highlight_rules'], function(require, exports, module) {
|
1467
|
-
|
1468
|
-
|
1469
|
-
var oop = require("../lib/oop");
|
1470
|
-
var lang = require("../lib/lang");
|
1471
|
-
var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
|
1472
|
-
var supportType = exports.supportType = "animation-fill-mode|alignment-adjust|alignment-baseline|animation-delay|animation-direction|animation-duration|animation-iteration-count|animation-name|animation-play-state|animation-timing-function|animation|appearance|azimuth|backface-visibility|background-attachment|background-break|background-clip|background-color|background-image|background-origin|background-position|background-repeat|background-size|background|baseline-shift|binding|bleed|bookmark-label|bookmark-level|bookmark-state|bookmark-target|border-bottom|border-bottom-color|border-bottom-left-radius|border-bottom-right-radius|border-bottom-style|border-bottom-width|border-collapse|border-color|border-image|border-image-outset|border-image-repeat|border-image-slice|border-image-source|border-image-width|border-left|border-left-color|border-left-style|border-left-width|border-radius|border-right|border-right-color|border-right-style|border-right-width|border-spacing|border-style|border-top|border-top-color|border-top-left-radius|border-top-right-radius|border-top-style|border-top-width|border-width|border|bottom|box-align|box-decoration-break|box-direction|box-flex-group|box-flex|box-lines|box-ordinal-group|box-orient|box-pack|box-shadow|box-sizing|break-after|break-before|break-inside|caption-side|clear|clip|color-profile|color|column-count|column-fill|column-gap|column-rule|column-rule-color|column-rule-style|column-rule-width|column-span|column-width|columns|content|counter-increment|counter-reset|crop|cue-after|cue-before|cue|cursor|direction|display|dominant-baseline|drop-initial-after-adjust|drop-initial-after-align|drop-initial-before-adjust|drop-initial-before-align|drop-initial-size|drop-initial-value|elevation|empty-cells|fit|fit-position|float-offset|float|font-family|font-size|font-size-adjust|font-stretch|font-style|font-variant|font-weight|font|grid-columns|grid-rows|hanging-punctuation|height|hyphenate-after|hyphenate-before|hyphenate-character|hyphenate-lines|hyphenate-resource|hyphens|icon|image-orientation|image-rendering|image-resolution|inline-box-align|left|letter-spacing|line-height|line-stacking-ruby|line-stacking-shift|line-stacking-strategy|line-stacking|list-style-image|list-style-position|list-style-type|list-style|margin-bottom|margin-left|margin-right|margin-top|margin|mark-after|mark-before|mark|marks|marquee-direction|marquee-play-count|marquee-speed|marquee-style|max-height|max-width|min-height|min-width|move-to|nav-down|nav-index|nav-left|nav-right|nav-up|opacity|orphans|outline-color|outline-offset|outline-style|outline-width|outline|overflow-style|overflow-x|overflow-y|overflow|padding-bottom|padding-left|padding-right|padding-top|padding|page-break-after|page-break-before|page-break-inside|page-policy|page|pause-after|pause-before|pause|perspective-origin|perspective|phonemes|pitch-range|pitch|play-during|position|presentation-level|punctuation-trim|quotes|rendering-intent|resize|rest-after|rest-before|rest|richness|right|rotation-point|rotation|ruby-align|ruby-overhang|ruby-position|ruby-span|size|speak-header|speak-numeral|speak-punctuation|speak|speech-rate|stress|string-set|table-layout|target-name|target-new|target-position|target|text-align-last|text-align|text-decoration|text-emphasis|text-height|text-indent|text-justify|text-outline|text-shadow|text-transform|text-wrap|top|transform-origin|transform-style|transform|transition-delay|transition-duration|transition-property|transition-timing-function|transition|unicode-bidi|vertical-align|visibility|voice-balance|voice-duration|voice-family|voice-pitch-range|voice-pitch|voice-rate|voice-stress|voice-volume|volume|white-space-collapse|white-space|widows|width|word-break|word-spacing|word-wrap|z-index";
|
1473
|
-
var supportFunction = exports.supportFunction = "rgb|rgba|url|attr|counter|counters";
|
1474
|
-
var supportConstant = exports.supportConstant = "absolute|after-edge|after|all-scroll|all|alphabetic|always|antialiased|armenian|auto|avoid-column|avoid-page|avoid|balance|baseline|before-edge|before|below|bidi-override|block-line-height|block|bold|bolder|border-box|both|bottom|box|break-all|break-word|capitalize|caps-height|caption|center|central|char|circle|cjk-ideographic|clone|close-quote|col-resize|collapse|column|consider-shifts|contain|content-box|cover|crosshair|cubic-bezier|dashed|decimal-leading-zero|decimal|default|disabled|disc|disregard-shifts|distribute-all-lines|distribute-letter|distribute-space|distribute|dotted|double|e-resize|ease-in|ease-in-out|ease-out|ease|ellipsis|end|exclude-ruby|fill|fixed|georgian|glyphs|grid-height|groove|hand|hanging|hebrew|help|hidden|hiragana-iroha|hiragana|horizontal|icon|ideograph-alpha|ideograph-numeric|ideograph-parenthesis|ideograph-space|ideographic|inactive|include-ruby|inherit|initial|inline-block|inline-box|inline-line-height|inline-table|inline|inset|inside|inter-ideograph|inter-word|invert|italic|justify|katakana-iroha|katakana|keep-all|last|left|lighter|line-edge|line-through|line|linear|list-item|local|loose|lower-alpha|lower-greek|lower-latin|lower-roman|lowercase|lr-tb|ltr|mathematical|max-height|max-size|medium|menu|message-box|middle|move|n-resize|ne-resize|newspaper|no-change|no-close-quote|no-drop|no-open-quote|no-repeat|none|normal|not-allowed|nowrap|nw-resize|oblique|open-quote|outset|outside|overline|padding-box|page|pointer|pre-line|pre-wrap|pre|preserve-3d|progress|relative|repeat-x|repeat-y|repeat|replaced|reset-size|ridge|right|round|row-resize|rtl|s-resize|scroll|se-resize|separate|slice|small-caps|small-caption|solid|space|square|start|static|status-bar|step-end|step-start|steps|stretch|strict|sub|super|sw-resize|table-caption|table-cell|table-column-group|table-column|table-footer-group|table-header-group|table-row-group|table-row|table|tb-rl|text-after-edge|text-before-edge|text-bottom|text-size|text-top|text|thick|thin|transparent|underline|upper-alpha|upper-latin|upper-roman|uppercase|use-script|vertical-ideographic|vertical-text|visible|w-resize|wait|whitespace|z-index|zero";
|
1475
|
-
var supportConstantColor = exports.supportConstantColor = "aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow";
|
1476
|
-
var supportConstantFonts = exports.supportConstantFonts = "arial|century|comic|courier|garamond|georgia|helvetica|impact|lucida|symbol|system|tahoma|times|trebuchet|utopia|verdana|webdings|sans-serif|serif|monospace";
|
1477
|
-
|
1478
|
-
var numRe = exports.numRe = "\\-?(?:(?:[0-9]+)|(?:[0-9]*\\.[0-9]+))";
|
1479
|
-
var pseudoElements = exports.pseudoElements = "(\\:+)\\b(after|before|first-letter|first-line|moz-selection|selection)\\b";
|
1480
|
-
var pseudoClasses = exports.pseudoClasses = "(:)\\b(active|checked|disabled|empty|enabled|first-child|first-of-type|focus|hover|indeterminate|invalid|last-child|last-of-type|link|not|nth-child|nth-last-child|nth-last-of-type|nth-of-type|only-child|only-of-type|required|root|target|valid|visited)\\b";
|
1481
|
-
|
1482
|
-
var CssHighlightRules = function() {
|
1483
|
-
|
1484
|
-
var keywordMapper = this.createKeywordMapper({
|
1485
|
-
"support.function": supportFunction,
|
1486
|
-
"support.constant": supportConstant,
|
1487
|
-
"support.type": supportType,
|
1488
|
-
"support.constant.color": supportConstantColor,
|
1489
|
-
"support.constant.fonts": supportConstantFonts
|
1490
|
-
}, "text", true);
|
1491
|
-
|
1492
|
-
var base_ruleset = [
|
1493
|
-
{
|
1494
|
-
token : "comment", // multi line comment
|
1495
|
-
regex : "\\/\\*",
|
1496
|
-
next : "ruleset_comment"
|
1497
|
-
}, {
|
1498
|
-
token : "string", // single line
|
1499
|
-
regex : '["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]'
|
1500
|
-
}, {
|
1501
|
-
token : "string", // single line
|
1502
|
-
regex : "['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"
|
1503
|
-
}, {
|
1504
|
-
token : ["constant.numeric", "keyword"],
|
1505
|
-
regex : "(" + numRe + ")(ch|cm|deg|em|ex|fr|gd|grad|Hz|in|kHz|mm|ms|pc|pt|px|rad|rem|s|turn|vh|vm|vw|%)"
|
1506
|
-
}, {
|
1507
|
-
token : "constant.numeric",
|
1508
|
-
regex : numRe
|
1509
|
-
}, {
|
1510
|
-
token : "constant.numeric", // hex6 color
|
1511
|
-
regex : "#[a-f0-9]{6}"
|
1512
|
-
}, {
|
1513
|
-
token : "constant.numeric", // hex3 color
|
1514
|
-
regex : "#[a-f0-9]{3}"
|
1515
|
-
}, {
|
1516
|
-
token : ["punctuation", "entity.other.attribute-name.pseudo-element.css"],
|
1517
|
-
regex : pseudoElements
|
1518
|
-
}, {
|
1519
|
-
token : ["punctuation", "entity.other.attribute-name.pseudo-class.css"],
|
1520
|
-
regex : pseudoClasses
|
1521
|
-
}, {
|
1522
|
-
token : keywordMapper,
|
1523
|
-
regex : "\\-?[a-zA-Z_][a-zA-Z0-9_\\-]*"
|
1524
|
-
}
|
1525
|
-
];
|
1526
|
-
|
1527
|
-
var ruleset = lang.copyArray(base_ruleset);
|
1528
|
-
ruleset.unshift({
|
1529
|
-
token : "paren.rparen",
|
1530
|
-
regex : "\\}",
|
1531
|
-
next: "start"
|
1532
|
-
});
|
1533
|
-
|
1534
|
-
var media_ruleset = lang.copyArray( base_ruleset );
|
1535
|
-
media_ruleset.unshift({
|
1536
|
-
token : "paren.rparen",
|
1537
|
-
regex : "\\}",
|
1538
|
-
next: "media"
|
1539
|
-
});
|
1540
|
-
|
1541
|
-
var base_comment = [{
|
1542
|
-
token : "comment", // comment spanning whole line
|
1543
|
-
regex : ".+"
|
1544
|
-
}];
|
1545
|
-
|
1546
|
-
var comment = lang.copyArray(base_comment);
|
1547
|
-
comment.unshift({
|
1548
|
-
token : "comment", // closing comment
|
1549
|
-
regex : ".*?\\*\\/",
|
1550
|
-
next : "start"
|
1551
|
-
});
|
1552
|
-
|
1553
|
-
var media_comment = lang.copyArray(base_comment);
|
1554
|
-
media_comment.unshift({
|
1555
|
-
token : "comment", // closing comment
|
1556
|
-
regex : ".*?\\*\\/",
|
1557
|
-
next : "media"
|
1558
|
-
});
|
1559
|
-
|
1560
|
-
var ruleset_comment = lang.copyArray(base_comment);
|
1561
|
-
ruleset_comment.unshift({
|
1562
|
-
token : "comment", // closing comment
|
1563
|
-
regex : ".*?\\*\\/",
|
1564
|
-
next : "ruleset"
|
1565
|
-
});
|
1566
|
-
|
1567
|
-
this.$rules = {
|
1568
|
-
"start" : [{
|
1569
|
-
token : "comment", // multi line comment
|
1570
|
-
regex : "\\/\\*",
|
1571
|
-
next : "comment"
|
1572
|
-
}, {
|
1573
|
-
token: "paren.lparen",
|
1574
|
-
regex: "\\{",
|
1575
|
-
next: "ruleset"
|
1576
|
-
}, {
|
1577
|
-
token: "string",
|
1578
|
-
regex: "@.*?{",
|
1579
|
-
next: "media"
|
1580
|
-
},{
|
1581
|
-
token: "keyword",
|
1582
|
-
regex: "#[a-z0-9-_]+"
|
1583
|
-
},{
|
1584
|
-
token: "variable",
|
1585
|
-
regex: "\\.[a-z0-9-_]+"
|
1586
|
-
},{
|
1587
|
-
token: "string",
|
1588
|
-
regex: ":[a-z0-9-_]+"
|
1589
|
-
},{
|
1590
|
-
token: "constant",
|
1591
|
-
regex: "[a-z0-9-_]+"
|
1592
|
-
}],
|
1593
|
-
|
1594
|
-
"media" : [ {
|
1595
|
-
token : "comment", // multi line comment
|
1596
|
-
regex : "\\/\\*",
|
1597
|
-
next : "media_comment"
|
1598
|
-
}, {
|
1599
|
-
token: "paren.lparen",
|
1600
|
-
regex: "\\{",
|
1601
|
-
next: "media_ruleset"
|
1602
|
-
},{
|
1603
|
-
token: "string",
|
1604
|
-
regex: "\\}",
|
1605
|
-
next: "start"
|
1606
|
-
},{
|
1607
|
-
token: "keyword",
|
1608
|
-
regex: "#[a-z0-9-_]+"
|
1609
|
-
},{
|
1610
|
-
token: "variable",
|
1611
|
-
regex: "\\.[a-z0-9-_]+"
|
1612
|
-
},{
|
1613
|
-
token: "string",
|
1614
|
-
regex: ":[a-z0-9-_]+"
|
1615
|
-
},{
|
1616
|
-
token: "constant",
|
1617
|
-
regex: "[a-z0-9-_]+"
|
1618
|
-
}],
|
1619
|
-
|
1620
|
-
"comment" : comment,
|
1621
|
-
|
1622
|
-
"ruleset" : ruleset,
|
1623
|
-
"ruleset_comment" : ruleset_comment,
|
1624
|
-
|
1625
|
-
"media_ruleset" : media_ruleset,
|
1626
|
-
"media_comment" : media_comment
|
1627
|
-
};
|
1628
|
-
};
|
1629
|
-
|
1630
|
-
oop.inherits(CssHighlightRules, TextHighlightRules);
|
1631
|
-
|
1632
|
-
exports.CssHighlightRules = CssHighlightRules;
|
1633
|
-
|
1634
|
-
});
|
1635
|
-
|
1636
|
-
define('ace/mode/coldfusion_highlight_rules', ['require', 'exports', 'module' , 'ace/lib/oop', 'ace/mode/css_highlight_rules', 'ace/mode/javascript_highlight_rules', 'ace/mode/text_highlight_rules', 'ace/mode/xml_util'], function(require, exports, module) {
|
1637
|
-
|
1638
|
-
|
1639
|
-
var oop = require("../lib/oop");
|
1640
|
-
var CssHighlightRules = require("./css_highlight_rules").CssHighlightRules;
|
1641
|
-
var JavaScriptHighlightRules = require("./javascript_highlight_rules").JavaScriptHighlightRules;
|
1642
|
-
var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
|
1643
|
-
var xml_util = require("./xml_util");
|
1644
|
-
|
1645
|
-
var ColdfusionHighlightRules = function() {
|
1646
|
-
|
1647
|
-
this.$rules = {
|
1648
|
-
start : [ {
|
1649
|
-
token : "text",
|
1650
|
-
regex : "<\\!\\[CDATA\\[",
|
1651
|
-
next : "cdata"
|
1652
|
-
}, {
|
1653
|
-
token : "xml-pe",
|
1654
|
-
regex : "<\\?.*?\\?>"
|
1655
|
-
}, {
|
1656
|
-
token : "comment",
|
1657
|
-
regex : "<\\!--",
|
1658
|
-
next : "comment"
|
1659
|
-
}, {
|
1660
|
-
token : "meta.tag",
|
1661
|
-
regex : "<(?=script)",
|
1662
|
-
next : "script"
|
1663
|
-
}, {
|
1664
|
-
token : "meta.tag",
|
1665
|
-
regex : "<(?=style)",
|
1666
|
-
next : "style"
|
1667
|
-
}, {
|
1668
|
-
token : "meta.tag", // opening tag
|
1669
|
-
regex : "<\\/?",
|
1670
|
-
next : "tag"
|
1671
|
-
}, {
|
1672
|
-
token : "text",
|
1673
|
-
regex : "\\s+"
|
1674
|
-
}, {
|
1675
|
-
token : "text",
|
1676
|
-
regex : "[^<]+"
|
1677
|
-
} ],
|
1678
|
-
|
1679
|
-
cdata : [ {
|
1680
|
-
token : "text",
|
1681
|
-
regex : "\\]\\]>",
|
1682
|
-
next : "start"
|
1683
|
-
}, {
|
1684
|
-
token : "text",
|
1685
|
-
regex : "\\s+"
|
1686
|
-
}, {
|
1687
|
-
token : "text",
|
1688
|
-
regex : ".+"
|
1689
|
-
} ],
|
1690
|
-
|
1691
|
-
comment : [ {
|
1692
|
-
token : "comment",
|
1693
|
-
regex : ".*?-->",
|
1694
|
-
next : "start"
|
1695
|
-
}, {
|
1696
|
-
token : "comment",
|
1697
|
-
regex : ".+"
|
1698
|
-
} ]
|
1699
|
-
};
|
1700
|
-
|
1701
|
-
xml_util.tag(this.$rules, "tag", "start");
|
1702
|
-
xml_util.tag(this.$rules, "style", "css-start");
|
1703
|
-
xml_util.tag(this.$rules, "script", "js-start");
|
1704
|
-
|
1705
|
-
this.embedRules(JavaScriptHighlightRules, "js-", [{
|
1706
|
-
token: "comment",
|
1707
|
-
regex: "\\/\\/.*(?=<\\/script>)",
|
1708
|
-
next: "tag"
|
1709
|
-
}, {
|
1710
|
-
token: "meta.tag",
|
1711
|
-
regex: "<\\/(?=script)",
|
1712
|
-
next: "tag"
|
1713
|
-
}]);
|
1714
|
-
|
1715
|
-
this.embedRules(CssHighlightRules, "css-", [{
|
1716
|
-
token: "meta.tag",
|
1717
|
-
regex: "<\\/(?=style)",
|
1718
|
-
next: "tag"
|
1719
|
-
}]);
|
1720
|
-
};
|
1721
|
-
|
1722
|
-
oop.inherits(ColdfusionHighlightRules, TextHighlightRules);
|
1723
|
-
|
1724
|
-
exports.ColdfusionHighlightRules = ColdfusionHighlightRules;
|
1725
|
-
});
|