ace-rails-ap 0.0.3 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/ace/rails/version.rb +1 -1
- data/vendor/assets/javascripts/ace.js +15680 -1
- data/vendor/assets/javascripts/keybinding-emacs.js +367 -1
- data/vendor/assets/javascripts/keybinding-vim.js +1635 -1
- data/vendor/assets/javascripts/mode-c9search.js +275 -0
- data/vendor/assets/javascripts/mode-c_cpp.js +744 -1
- data/vendor/assets/javascripts/mode-clojure.js +364 -1
- data/vendor/assets/javascripts/mode-coffee.js +527 -1
- data/vendor/assets/javascripts/mode-coldfusion.js +1966 -1
- data/vendor/assets/javascripts/mode-csharp.js +633 -1
- data/vendor/assets/javascripts/mode-css.js +499 -1
- data/vendor/assets/javascripts/mode-diff.js +250 -0
- data/vendor/assets/javascripts/{mode-c_cpp-uncompressed.js → mode-glsl.js} +147 -244
- data/vendor/assets/javascripts/mode-golang.js +681 -1
- data/vendor/assets/javascripts/mode-groovy.js +1240 -1
- data/vendor/assets/javascripts/mode-haxe.js +633 -1
- data/vendor/assets/javascripts/mode-html.js +2064 -1
- data/vendor/assets/javascripts/mode-java.js +1202 -1
- data/vendor/assets/javascripts/mode-javascript.js +1069 -1
- data/vendor/assets/javascripts/mode-json.js +588 -1
- data/vendor/assets/javascripts/{mode-haxe-uncompressed.js → mode-jsx.js} +189 -312
- data/vendor/assets/javascripts/mode-latex.js +95 -1
- data/vendor/assets/javascripts/mode-less.js +512 -1
- data/vendor/assets/javascripts/mode-liquid.js +1125 -1
- data/vendor/assets/javascripts/mode-lua.js +551 -1
- data/vendor/assets/javascripts/{mode-html-uncompressed.js → mode-luahtml.js} +544 -604
- data/vendor/assets/javascripts/{mode-coldfusion-uncompressed.js → mode-luapage.js} +2326 -2180
- data/vendor/assets/javascripts/mode-markdown.js +2369 -1
- data/vendor/assets/javascripts/mode-ocaml.js +464 -1
- data/vendor/assets/javascripts/mode-perl.js +432 -1
- data/vendor/assets/javascripts/mode-pgsql.js +970 -1
- data/vendor/assets/javascripts/mode-php.js +1718 -1
- data/vendor/assets/javascripts/mode-powershell.js +610 -1
- data/vendor/assets/javascripts/mode-python.js +397 -1
- data/vendor/assets/javascripts/mode-ruby.js +318 -1
- data/vendor/assets/javascripts/mode-scad.js +732 -1
- data/vendor/assets/javascripts/mode-scala.js +1237 -1
- data/vendor/assets/javascripts/mode-scss.js +537 -1
- data/vendor/assets/javascripts/mode-sh.js +250 -1
- data/vendor/assets/javascripts/mode-sql.js +140 -1
- data/vendor/assets/javascripts/mode-svg.js +1681 -1
- data/vendor/assets/javascripts/mode-tcl.js +320 -0
- data/vendor/assets/javascripts/mode-textile.js +182 -1
- data/vendor/assets/javascripts/mode-xml.js +829 -1
- data/vendor/assets/javascripts/mode-xquery.js +605 -1
- data/vendor/assets/javascripts/mode-yaml.js +189 -0
- data/vendor/assets/javascripts/theme-chrome.js +213 -1
- data/vendor/assets/javascripts/theme-clouds.js +167 -1
- data/vendor/assets/javascripts/theme-clouds_midnight.js +168 -1
- data/vendor/assets/javascripts/theme-cobalt.js +194 -1
- data/vendor/assets/javascripts/theme-crimson_editor.js +200 -1
- data/vendor/assets/javascripts/theme-dawn.js +198 -1
- data/vendor/assets/javascripts/theme-dreamweaver.js +230 -1
- data/vendor/assets/javascripts/theme-eclipse.js +157 -1
- data/vendor/assets/javascripts/theme-github.js +182 -0
- data/vendor/assets/javascripts/theme-idle_fingers.js +186 -1
- data/vendor/assets/javascripts/theme-kr_theme.js +189 -1
- data/vendor/assets/javascripts/theme-merbivore.js +189 -1
- data/vendor/assets/javascripts/theme-merbivore_soft.js +195 -1
- data/vendor/assets/javascripts/theme-mono_industrial.js +197 -1
- data/vendor/assets/javascripts/theme-monokai.js +194 -1
- data/vendor/assets/javascripts/theme-pastel_on_dark.js +199 -1
- data/vendor/assets/javascripts/theme-solarized_dark.js +180 -1
- data/vendor/assets/javascripts/theme-solarized_light.js +179 -1
- data/vendor/assets/javascripts/theme-textmate.js +216 -0
- data/vendor/assets/javascripts/theme-tomorrow.js +213 -1
- data/vendor/assets/javascripts/theme-tomorrow_night.js +213 -1
- data/vendor/assets/javascripts/theme-tomorrow_night_blue.js +213 -1
- data/vendor/assets/javascripts/theme-tomorrow_night_bright.js +213 -1
- data/vendor/assets/javascripts/theme-tomorrow_night_eighties.js +209 -1
- data/vendor/assets/javascripts/theme-twilight.js +211 -1
- data/vendor/assets/javascripts/theme-vibrant_ink.js +190 -1
- data/vendor/assets/javascripts/worker-coffee.js +83 -893
- data/vendor/assets/javascripts/worker-css.js +88 -1402
- data/vendor/assets/javascripts/worker-javascript.js +97 -812
- data/vendor/assets/javascripts/worker-json.js +84 -761
- data/vendor/assets/javascripts/worker-xquery.js +66464 -0
- metadata +12 -195
- data/vendor/assets/javascripts/ace-compat-noconflict.js +0 -1
- data/vendor/assets/javascripts/ace-compat-uncompressed-noconflict.js +0 -480
- data/vendor/assets/javascripts/ace-compat-uncompressed.js +0 -480
- data/vendor/assets/javascripts/ace-compat.js +0 -1
- data/vendor/assets/javascripts/ace-noconflict.js +0 -10
- data/vendor/assets/javascripts/ace-uncompressed-noconflict.js +0 -19976
- data/vendor/assets/javascripts/ace-uncompressed.js +0 -19976
- data/vendor/assets/javascripts/keybinding-emacs-noconflict.js +0 -1
- data/vendor/assets/javascripts/keybinding-emacs-uncompressed-noconflict.js +0 -150
- data/vendor/assets/javascripts/keybinding-emacs-uncompressed.js +0 -150
- data/vendor/assets/javascripts/keybinding-vim-noconflict.js +0 -1
- data/vendor/assets/javascripts/keybinding-vim-uncompressed-noconflict.js +0 -138
- data/vendor/assets/javascripts/keybinding-vim-uncompressed.js +0 -138
- data/vendor/assets/javascripts/mode-c_cpp-noconflict.js +0 -1
- data/vendor/assets/javascripts/mode-c_cpp-uncompressed-noconflict.js +0 -919
- data/vendor/assets/javascripts/mode-clojure-noconflict.js +0 -1
- data/vendor/assets/javascripts/mode-clojure-uncompressed-noconflict.js +0 -422
- data/vendor/assets/javascripts/mode-clojure-uncompressed.js +0 -422
- data/vendor/assets/javascripts/mode-coffee-noconflict.js +0 -1
- data/vendor/assets/javascripts/mode-coffee-uncompressed-noconflict.js +0 -607
- data/vendor/assets/javascripts/mode-coffee-uncompressed.js +0 -607
- data/vendor/assets/javascripts/mode-coldfusion-noconflict.js +0 -1
- data/vendor/assets/javascripts/mode-coldfusion-uncompressed-noconflict.js +0 -2458
- data/vendor/assets/javascripts/mode-csharp-noconflict.js +0 -1
- data/vendor/assets/javascripts/mode-csharp-uncompressed-noconflict.js +0 -769
- data/vendor/assets/javascripts/mode-csharp-uncompressed.js +0 -769
- data/vendor/assets/javascripts/mode-css-noconflict.js +0 -1
- data/vendor/assets/javascripts/mode-css-uncompressed-noconflict.js +0 -641
- data/vendor/assets/javascripts/mode-css-uncompressed.js +0 -641
- data/vendor/assets/javascripts/mode-golang-noconflict.js +0 -1
- data/vendor/assets/javascripts/mode-golang-uncompressed-noconflict.js +0 -378
- data/vendor/assets/javascripts/mode-golang-uncompressed.js +0 -378
- data/vendor/assets/javascripts/mode-groovy-noconflict.js +0 -1
- data/vendor/assets/javascripts/mode-groovy-uncompressed-noconflict.js +0 -1393
- data/vendor/assets/javascripts/mode-groovy-uncompressed.js +0 -1393
- data/vendor/assets/javascripts/mode-haxe-noconflict.js +0 -1
- data/vendor/assets/javascripts/mode-haxe-uncompressed-noconflict.js +0 -769
- data/vendor/assets/javascripts/mode-html-noconflict.js +0 -1
- data/vendor/assets/javascripts/mode-html-uncompressed-noconflict.js +0 -2475
- data/vendor/assets/javascripts/mode-java-noconflict.js +0 -1
- data/vendor/assets/javascripts/mode-java-uncompressed-noconflict.js +0 -1395
- data/vendor/assets/javascripts/mode-java-uncompressed.js +0 -1395
- data/vendor/assets/javascripts/mode-javascript-noconflict.js +0 -1
- data/vendor/assets/javascripts/mode-javascript-uncompressed-noconflict.js +0 -1226
- data/vendor/assets/javascripts/mode-javascript-uncompressed.js +0 -1226
- data/vendor/assets/javascripts/mode-json-noconflict.js +0 -1
- data/vendor/assets/javascripts/mode-json-uncompressed-noconflict.js +0 -701
- data/vendor/assets/javascripts/mode-json-uncompressed.js +0 -701
- data/vendor/assets/javascripts/mode-latex-noconflict.js +0 -1
- data/vendor/assets/javascripts/mode-latex-uncompressed-noconflict.js +0 -95
- data/vendor/assets/javascripts/mode-latex-uncompressed.js +0 -95
- data/vendor/assets/javascripts/mode-less-noconflict.js +0 -1
- data/vendor/assets/javascripts/mode-less-uncompressed-noconflict.js +0 -655
- data/vendor/assets/javascripts/mode-less-uncompressed.js +0 -655
- data/vendor/assets/javascripts/mode-liquid-noconflict.js +0 -1
- data/vendor/assets/javascripts/mode-liquid-uncompressed-noconflict.js +0 -1353
- data/vendor/assets/javascripts/mode-liquid-uncompressed.js +0 -1353
- data/vendor/assets/javascripts/mode-lua-noconflict.js +0 -1
- data/vendor/assets/javascripts/mode-lua-uncompressed-noconflict.js +0 -523
- data/vendor/assets/javascripts/mode-lua-uncompressed.js +0 -523
- data/vendor/assets/javascripts/mode-markdown-noconflict.js +0 -1
- data/vendor/assets/javascripts/mode-markdown-uncompressed-noconflict.js +0 -2925
- data/vendor/assets/javascripts/mode-markdown-uncompressed.js +0 -2925
- data/vendor/assets/javascripts/mode-ocaml-noconflict.js +0 -1
- data/vendor/assets/javascripts/mode-ocaml-uncompressed-noconflict.js +0 -539
- data/vendor/assets/javascripts/mode-ocaml-uncompressed.js +0 -539
- data/vendor/assets/javascripts/mode-perl-noconflict.js +0 -1
- data/vendor/assets/javascripts/mode-perl-uncompressed-noconflict.js +0 -574
- data/vendor/assets/javascripts/mode-perl-uncompressed.js +0 -574
- data/vendor/assets/javascripts/mode-pgsql-noconflict.js +0 -1
- data/vendor/assets/javascripts/mode-pgsql-uncompressed-noconflict.js +0 -1104
- data/vendor/assets/javascripts/mode-pgsql-uncompressed.js +0 -1104
- data/vendor/assets/javascripts/mode-php-noconflict.js +0 -1
- data/vendor/assets/javascripts/mode-php-uncompressed-noconflict.js +0 -1885
- data/vendor/assets/javascripts/mode-php-uncompressed.js +0 -1885
- data/vendor/assets/javascripts/mode-powershell-noconflict.js +0 -1
- data/vendor/assets/javascripts/mode-powershell-uncompressed-noconflict.js +0 -710
- data/vendor/assets/javascripts/mode-powershell-uncompressed.js +0 -710
- data/vendor/assets/javascripts/mode-python-noconflict.js +0 -1
- data/vendor/assets/javascripts/mode-python-uncompressed-noconflict.js +0 -507
- data/vendor/assets/javascripts/mode-python-uncompressed.js +0 -507
- data/vendor/assets/javascripts/mode-ruby-noconflict.js +0 -1
- data/vendor/assets/javascripts/mode-ruby-uncompressed-noconflict.js +0 -391
- data/vendor/assets/javascripts/mode-ruby-uncompressed.js +0 -391
- data/vendor/assets/javascripts/mode-scad-noconflict.js +0 -1
- data/vendor/assets/javascripts/mode-scad-uncompressed-noconflict.js +0 -907
- data/vendor/assets/javascripts/mode-scad-uncompressed.js +0 -907
- data/vendor/assets/javascripts/mode-scala-noconflict.js +0 -1
- data/vendor/assets/javascripts/mode-scala-uncompressed-noconflict.js +0 -1395
- data/vendor/assets/javascripts/mode-scala-uncompressed.js +0 -1395
- data/vendor/assets/javascripts/mode-scss-noconflict.js +0 -1
- data/vendor/assets/javascripts/mode-scss-uncompressed-noconflict.js +0 -679
- data/vendor/assets/javascripts/mode-scss-uncompressed.js +0 -679
- data/vendor/assets/javascripts/mode-sh-noconflict.js +0 -1
- data/vendor/assets/javascripts/mode-sh-uncompressed-noconflict.js +0 -289
- data/vendor/assets/javascripts/mode-sh-uncompressed.js +0 -289
- data/vendor/assets/javascripts/mode-sql-noconflict.js +0 -1
- data/vendor/assets/javascripts/mode-sql-uncompressed-noconflict.js +0 -159
- data/vendor/assets/javascripts/mode-sql-uncompressed.js +0 -159
- data/vendor/assets/javascripts/mode-svg-noconflict.js +0 -1
- data/vendor/assets/javascripts/mode-svg-uncompressed-noconflict.js +0 -2137
- data/vendor/assets/javascripts/mode-svg-uncompressed.js +0 -2137
- data/vendor/assets/javascripts/mode-text-noconflict.js +0 -0
- data/vendor/assets/javascripts/mode-text-uncompressed-noconflict.js +0 -0
- data/vendor/assets/javascripts/mode-text-uncompressed.js +0 -0
- data/vendor/assets/javascripts/mode-textile-noconflict.js +0 -1
- data/vendor/assets/javascripts/mode-textile-uncompressed-noconflict.js +0 -254
- data/vendor/assets/javascripts/mode-textile-uncompressed.js +0 -254
- data/vendor/assets/javascripts/mode-xml-noconflict.js +0 -1
- data/vendor/assets/javascripts/mode-xml-uncompressed-noconflict.js +0 -1012
- data/vendor/assets/javascripts/mode-xml-uncompressed.js +0 -1012
- data/vendor/assets/javascripts/mode-xquery-noconflict.js +0 -1
- data/vendor/assets/javascripts/mode-xquery-uncompressed-noconflict.js +0 -540
- data/vendor/assets/javascripts/mode-xquery-uncompressed.js +0 -540
- data/vendor/assets/javascripts/theme-chrome-noconflict.js +0 -1
- data/vendor/assets/javascripts/theme-chrome-uncompressed-noconflict.js +0 -207
- data/vendor/assets/javascripts/theme-chrome-uncompressed.js +0 -207
- data/vendor/assets/javascripts/theme-clouds-noconflict.js +0 -1
- data/vendor/assets/javascripts/theme-clouds-uncompressed-noconflict.js +0 -160
- data/vendor/assets/javascripts/theme-clouds-uncompressed.js +0 -160
- data/vendor/assets/javascripts/theme-clouds_midnight-noconflict.js +0 -1
- data/vendor/assets/javascripts/theme-clouds_midnight-uncompressed-noconflict.js +0 -161
- data/vendor/assets/javascripts/theme-clouds_midnight-uncompressed.js +0 -161
- data/vendor/assets/javascripts/theme-cobalt-noconflict.js +0 -1
- data/vendor/assets/javascripts/theme-cobalt-uncompressed-noconflict.js +0 -187
- data/vendor/assets/javascripts/theme-cobalt-uncompressed.js +0 -187
- data/vendor/assets/javascripts/theme-crimson_editor-noconflict.js +0 -1
- data/vendor/assets/javascripts/theme-crimson_editor-uncompressed-noconflict.js +0 -198
- data/vendor/assets/javascripts/theme-crimson_editor-uncompressed.js +0 -198
- data/vendor/assets/javascripts/theme-dawn-noconflict.js +0 -1
- data/vendor/assets/javascripts/theme-dawn-uncompressed-noconflict.js +0 -191
- data/vendor/assets/javascripts/theme-dawn-uncompressed.js +0 -191
- data/vendor/assets/javascripts/theme-dreamweaver-noconflict.js +0 -1
- data/vendor/assets/javascripts/theme-dreamweaver-uncompressed-noconflict.js +0 -227
- data/vendor/assets/javascripts/theme-dreamweaver-uncompressed.js +0 -227
- data/vendor/assets/javascripts/theme-eclipse-noconflict.js +0 -1
- data/vendor/assets/javascripts/theme-eclipse-uncompressed-noconflict.js +0 -147
- data/vendor/assets/javascripts/theme-eclipse-uncompressed.js +0 -147
- data/vendor/assets/javascripts/theme-idle_fingers-noconflict.js +0 -1
- data/vendor/assets/javascripts/theme-idle_fingers-uncompressed-noconflict.js +0 -179
- data/vendor/assets/javascripts/theme-idle_fingers-uncompressed.js +0 -179
- data/vendor/assets/javascripts/theme-kr_theme-noconflict.js +0 -1
- data/vendor/assets/javascripts/theme-kr_theme-uncompressed-noconflict.js +0 -182
- data/vendor/assets/javascripts/theme-kr_theme-uncompressed.js +0 -182
- data/vendor/assets/javascripts/theme-merbivore-noconflict.js +0 -1
- data/vendor/assets/javascripts/theme-merbivore-uncompressed-noconflict.js +0 -182
- data/vendor/assets/javascripts/theme-merbivore-uncompressed.js +0 -182
- data/vendor/assets/javascripts/theme-merbivore_soft-noconflict.js +0 -1
- data/vendor/assets/javascripts/theme-merbivore_soft-uncompressed-noconflict.js +0 -188
- data/vendor/assets/javascripts/theme-merbivore_soft-uncompressed.js +0 -188
- data/vendor/assets/javascripts/theme-mono_industrial-noconflict.js +0 -1
- data/vendor/assets/javascripts/theme-mono_industrial-uncompressed-noconflict.js +0 -190
- data/vendor/assets/javascripts/theme-mono_industrial-uncompressed.js +0 -190
- data/vendor/assets/javascripts/theme-monokai-noconflict.js +0 -1
- data/vendor/assets/javascripts/theme-monokai-uncompressed-noconflict.js +0 -191
- data/vendor/assets/javascripts/theme-monokai-uncompressed.js +0 -191
- data/vendor/assets/javascripts/theme-pastel_on_dark-noconflict.js +0 -1
- data/vendor/assets/javascripts/theme-pastel_on_dark-uncompressed-noconflict.js +0 -192
- data/vendor/assets/javascripts/theme-pastel_on_dark-uncompressed.js +0 -192
- data/vendor/assets/javascripts/theme-solarized_dark-noconflict.js +0 -1
- data/vendor/assets/javascripts/theme-solarized_dark-uncompressed-noconflict.js +0 -176
- data/vendor/assets/javascripts/theme-solarized_dark-uncompressed.js +0 -176
- data/vendor/assets/javascripts/theme-solarized_light-noconflict.js +0 -1
- data/vendor/assets/javascripts/theme-solarized_light-uncompressed-noconflict.js +0 -172
- data/vendor/assets/javascripts/theme-solarized_light-uncompressed.js +0 -172
- data/vendor/assets/javascripts/theme-textmate-noconflict.js +0 -0
- data/vendor/assets/javascripts/theme-textmate-uncompressed-noconflict.js +0 -0
- data/vendor/assets/javascripts/theme-textmate-uncompressed.js +0 -0
- data/vendor/assets/javascripts/theme-tomorrow-noconflict.js +0 -1
- data/vendor/assets/javascripts/theme-tomorrow-uncompressed-noconflict.js +0 -206
- data/vendor/assets/javascripts/theme-tomorrow-uncompressed.js +0 -206
- data/vendor/assets/javascripts/theme-tomorrow_night-noconflict.js +0 -1
- data/vendor/assets/javascripts/theme-tomorrow_night-uncompressed-noconflict.js +0 -206
- data/vendor/assets/javascripts/theme-tomorrow_night-uncompressed.js +0 -206
- data/vendor/assets/javascripts/theme-tomorrow_night_blue-noconflict.js +0 -1
- data/vendor/assets/javascripts/theme-tomorrow_night_blue-uncompressed-noconflict.js +0 -209
- data/vendor/assets/javascripts/theme-tomorrow_night_blue-uncompressed.js +0 -209
- data/vendor/assets/javascripts/theme-tomorrow_night_bright-noconflict.js +0 -1
- data/vendor/assets/javascripts/theme-tomorrow_night_bright-uncompressed-noconflict.js +0 -206
- data/vendor/assets/javascripts/theme-tomorrow_night_bright-uncompressed.js +0 -206
- data/vendor/assets/javascripts/theme-tomorrow_night_eighties-noconflict.js +0 -1
- data/vendor/assets/javascripts/theme-tomorrow_night_eighties-uncompressed-noconflict.js +0 -202
- data/vendor/assets/javascripts/theme-tomorrow_night_eighties-uncompressed.js +0 -202
- data/vendor/assets/javascripts/theme-twilight-noconflict.js +0 -1
- data/vendor/assets/javascripts/theme-twilight-uncompressed-noconflict.js +0 -204
- data/vendor/assets/javascripts/theme-twilight-uncompressed.js +0 -204
- data/vendor/assets/javascripts/theme-vibrant_ink-noconflict.js +0 -1
- data/vendor/assets/javascripts/theme-vibrant_ink-uncompressed-noconflict.js +0 -183
- data/vendor/assets/javascripts/theme-vibrant_ink-uncompressed.js +0 -183
@@ -1 +1,432 @@
|
|
1
|
-
|
1
|
+
/* ***** BEGIN LICENSE BLOCK *****
|
2
|
+
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
3
|
+
*
|
4
|
+
* The contents of this file are subject to the Mozilla Public License Version
|
5
|
+
* 1.1 (the "License"); you may not use this file except in compliance with
|
6
|
+
* the License. You may obtain a copy of the License at
|
7
|
+
* http://www.mozilla.org/MPL/
|
8
|
+
*
|
9
|
+
* Software distributed under the License is distributed on an "AS IS" basis,
|
10
|
+
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
11
|
+
* for the specific language governing rights and limitations under the
|
12
|
+
* License.
|
13
|
+
*
|
14
|
+
* The Original Code is Ajax.org Code Editor (ACE).
|
15
|
+
*
|
16
|
+
* The Initial Developer of the Original Code is
|
17
|
+
* Ajax.org B.V.
|
18
|
+
* Portions created by the Initial Developer are Copyright (C) 2010
|
19
|
+
* the Initial Developer. All Rights Reserved.
|
20
|
+
*
|
21
|
+
* Contributor(s):
|
22
|
+
* Panagiotis Astithas <pastith AT gmail DOT com>
|
23
|
+
*
|
24
|
+
* Alternatively, the contents of this file may be used under the terms of
|
25
|
+
* either the GNU General Public License Version 2 or later (the "GPL"), or
|
26
|
+
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
27
|
+
* in which case the provisions of the GPL or the LGPL are applicable instead
|
28
|
+
* of those above. If you wish to allow use of your version of this file only
|
29
|
+
* under the terms of either the GPL or the LGPL, and not to allow others to
|
30
|
+
* use your version of this file under the terms of the MPL, indicate your
|
31
|
+
* decision by deleting the provisions above and replace them with the notice
|
32
|
+
* and other provisions required by the GPL or the LGPL. If you do not delete
|
33
|
+
* the provisions above, a recipient may use your version of this file under
|
34
|
+
* the terms of any one of the MPL, the GPL or the LGPL.
|
35
|
+
*
|
36
|
+
* ***** END LICENSE BLOCK ***** */
|
37
|
+
|
38
|
+
define('ace/mode/perl', ['require', 'exports', 'module' , 'ace/lib/oop', 'ace/mode/text', 'ace/tokenizer', 'ace/mode/perl_highlight_rules', 'ace/mode/matching_brace_outdent', 'ace/range', 'ace/mode/folding/cstyle'], function(require, exports, module) {
|
39
|
+
|
40
|
+
|
41
|
+
var oop = require("../lib/oop");
|
42
|
+
var TextMode = require("./text").Mode;
|
43
|
+
var Tokenizer = require("../tokenizer").Tokenizer;
|
44
|
+
var PerlHighlightRules = require("./perl_highlight_rules").PerlHighlightRules;
|
45
|
+
var MatchingBraceOutdent = require("./matching_brace_outdent").MatchingBraceOutdent;
|
46
|
+
var Range = require("../range").Range;
|
47
|
+
var CStyleFoldMode = require("./folding/cstyle").FoldMode;
|
48
|
+
|
49
|
+
var Mode = function() {
|
50
|
+
this.$tokenizer = new Tokenizer(new PerlHighlightRules().getRules());
|
51
|
+
this.$outdent = new MatchingBraceOutdent();
|
52
|
+
this.foldingRules = new CStyleFoldMode();
|
53
|
+
};
|
54
|
+
oop.inherits(Mode, TextMode);
|
55
|
+
|
56
|
+
(function() {
|
57
|
+
|
58
|
+
this.toggleCommentLines = function(state, doc, startRow, endRow) {
|
59
|
+
var outdent = true;
|
60
|
+
var re = /^(\s*)#/;
|
61
|
+
|
62
|
+
for (var i=startRow; i<= endRow; i++) {
|
63
|
+
if (!re.test(doc.getLine(i))) {
|
64
|
+
outdent = false;
|
65
|
+
break;
|
66
|
+
}
|
67
|
+
}
|
68
|
+
|
69
|
+
if (outdent) {
|
70
|
+
var deleteRange = new Range(0, 0, 0, 0);
|
71
|
+
for (var i=startRow; i<= endRow; i++)
|
72
|
+
{
|
73
|
+
var line = doc.getLine(i);
|
74
|
+
var m = line.match(re);
|
75
|
+
deleteRange.start.row = i;
|
76
|
+
deleteRange.end.row = i;
|
77
|
+
deleteRange.end.column = m[0].length;
|
78
|
+
doc.replace(deleteRange, m[1]);
|
79
|
+
}
|
80
|
+
}
|
81
|
+
else {
|
82
|
+
doc.indentRows(startRow, endRow, "#");
|
83
|
+
}
|
84
|
+
};
|
85
|
+
|
86
|
+
this.getNextLineIndent = function(state, line, tab) {
|
87
|
+
var indent = this.$getIndent(line);
|
88
|
+
|
89
|
+
var tokenizedLine = this.$tokenizer.getLineTokens(line, state);
|
90
|
+
var tokens = tokenizedLine.tokens;
|
91
|
+
|
92
|
+
if (tokens.length && tokens[tokens.length-1].type == "comment") {
|
93
|
+
return indent;
|
94
|
+
}
|
95
|
+
|
96
|
+
if (state == "start") {
|
97
|
+
var match = line.match(/^.*[\{\(\[\:]\s*$/);
|
98
|
+
if (match) {
|
99
|
+
indent += tab;
|
100
|
+
}
|
101
|
+
}
|
102
|
+
|
103
|
+
return indent;
|
104
|
+
};
|
105
|
+
|
106
|
+
this.checkOutdent = function(state, line, input) {
|
107
|
+
return this.$outdent.checkOutdent(line, input);
|
108
|
+
};
|
109
|
+
|
110
|
+
this.autoOutdent = function(state, doc, row) {
|
111
|
+
this.$outdent.autoOutdent(doc, row);
|
112
|
+
};
|
113
|
+
|
114
|
+
}).call(Mode.prototype);
|
115
|
+
|
116
|
+
exports.Mode = Mode;
|
117
|
+
});
|
118
|
+
|
119
|
+
define('ace/mode/perl_highlight_rules', ['require', 'exports', 'module' , 'ace/lib/oop', 'ace/lib/lang', 'ace/mode/text_highlight_rules'], function(require, exports, module) {
|
120
|
+
|
121
|
+
|
122
|
+
var oop = require("../lib/oop");
|
123
|
+
var lang = require("../lib/lang");
|
124
|
+
var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
|
125
|
+
|
126
|
+
var PerlHighlightRules = function() {
|
127
|
+
|
128
|
+
var keywords = lang.arrayToMap(
|
129
|
+
("base|constant|continue|else|elsif|for|foreach|format|goto|if|last|local|my|next|" +
|
130
|
+
"no|package|parent|redo|require|scalar|sub|unless|until|while|use|vars").split("|")
|
131
|
+
);
|
132
|
+
|
133
|
+
var buildinConstants = lang.arrayToMap(
|
134
|
+
("ARGV|ENV|INC|SIG").split("|")
|
135
|
+
);
|
136
|
+
|
137
|
+
var builtinFunctions = lang.arrayToMap(
|
138
|
+
("getprotobynumber|getprotobyname|getservbyname|gethostbyaddr|" +
|
139
|
+
"gethostbyname|getservbyport|getnetbyaddr|getnetbyname|getsockname|" +
|
140
|
+
"getpeername|setpriority|getprotoent|setprotoent|getpriority|" +
|
141
|
+
"endprotoent|getservent|setservent|endservent|sethostent|socketpair|" +
|
142
|
+
"getsockopt|gethostent|endhostent|setsockopt|setnetent|quotemeta|" +
|
143
|
+
"localtime|prototype|getnetent|endnetent|rewinddir|wantarray|getpwuid|" +
|
144
|
+
"closedir|getlogin|readlink|endgrent|getgrgid|getgrnam|shmwrite|" +
|
145
|
+
"shutdown|readline|endpwent|setgrent|readpipe|formline|truncate|" +
|
146
|
+
"dbmclose|syswrite|setpwent|getpwnam|getgrent|getpwent|ucfirst|sysread|" +
|
147
|
+
"setpgrp|shmread|sysseek|sysopen|telldir|defined|opendir|connect|" +
|
148
|
+
"lcfirst|getppid|binmode|syscall|sprintf|getpgrp|readdir|seekdir|" +
|
149
|
+
"waitpid|reverse|unshift|symlink|dbmopen|semget|msgrcv|rename|listen|" +
|
150
|
+
"chroot|msgsnd|shmctl|accept|unpack|exists|fileno|shmget|system|" +
|
151
|
+
"unlink|printf|gmtime|msgctl|semctl|values|rindex|substr|splice|" +
|
152
|
+
"length|msgget|select|socket|return|caller|delete|alarm|ioctl|index|" +
|
153
|
+
"undef|lstat|times|srand|chown|fcntl|close|write|umask|rmdir|study|" +
|
154
|
+
"sleep|chomp|untie|print|utime|mkdir|atan2|split|crypt|flock|chmod|" +
|
155
|
+
"BEGIN|bless|chdir|semop|shift|reset|link|stat|chop|grep|fork|dump|" +
|
156
|
+
"join|open|tell|pipe|exit|glob|warn|each|bind|sort|pack|eval|push|" +
|
157
|
+
"keys|getc|kill|seek|sqrt|send|wait|rand|tied|read|time|exec|recv|" +
|
158
|
+
"eof|chr|int|ord|exp|pos|pop|sin|log|abs|oct|hex|tie|cos|vec|END|ref|" +
|
159
|
+
"map|die|uc|lc|do").split("|")
|
160
|
+
);
|
161
|
+
|
162
|
+
// regexp must not have capturing parentheses. Use (?:) instead.
|
163
|
+
// regexps are ordered -> the first match is used
|
164
|
+
|
165
|
+
this.$rules = {
|
166
|
+
"start" : [
|
167
|
+
{
|
168
|
+
token : "comment",
|
169
|
+
regex : "#.*$"
|
170
|
+
}, {
|
171
|
+
token : "string.regexp",
|
172
|
+
regex : "[/](?:(?:\\[(?:\\\\]|[^\\]])+\\])|(?:\\\\/|[^\\]/]))*[/]\\w*\\s*(?=[).,;]|$)"
|
173
|
+
}, {
|
174
|
+
token : "string", // single line
|
175
|
+
regex : '["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]'
|
176
|
+
}, {
|
177
|
+
token : "string", // multi line string start
|
178
|
+
merge : true,
|
179
|
+
regex : '["].*\\\\$',
|
180
|
+
next : "qqstring"
|
181
|
+
}, {
|
182
|
+
token : "string", // single line
|
183
|
+
regex : "['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"
|
184
|
+
}, {
|
185
|
+
token : "string", // multi line string start
|
186
|
+
merge : true,
|
187
|
+
regex : "['].*\\\\$",
|
188
|
+
next : "qstring"
|
189
|
+
}, {
|
190
|
+
token : "constant.numeric", // hex
|
191
|
+
regex : "0x[0-9a-fA-F]+\\b"
|
192
|
+
}, {
|
193
|
+
token : "constant.numeric", // float
|
194
|
+
regex : "[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"
|
195
|
+
}, {
|
196
|
+
token : function(value) {
|
197
|
+
if (keywords.hasOwnProperty(value))
|
198
|
+
return "keyword";
|
199
|
+
else if (buildinConstants.hasOwnProperty(value))
|
200
|
+
return "constant.language";
|
201
|
+
else if (builtinFunctions.hasOwnProperty(value))
|
202
|
+
return "support.function";
|
203
|
+
else
|
204
|
+
return "identifier";
|
205
|
+
},
|
206
|
+
regex : "[a-zA-Z_$][a-zA-Z0-9_$]*\\b"
|
207
|
+
}, {
|
208
|
+
token : "keyword.operator",
|
209
|
+
regex : "\\.\\.\\.|\\|\\|=|>>=|<<=|<=>|&&=|=>|!~|\\^=|&=|\\|=|\\.=|x=|%=|\\/=|\\*=|\\-=|\\+=|=~|\\*\\*|\\-\\-|\\.\\.|\\|\\||&&|\\+\\+|\\->|!=|==|>=|<=|>>|<<|,|=|\\?\\:|\\^|\\||x|%|\\/|\\*|<|&|\\\\|~|!|>|\\.|\\-|\\+|\\-C|\\-b|\\-S|\\-u|\\-t|\\-p|\\-l|\\-d|\\-f|\\-g|\\-s|\\-z|\\-k|\\-e|\\-O|\\-T|\\-B|\\-M|\\-A|\\-X|\\-W|\\-c|\\-R|\\-o|\\-x|\\-w|\\-r|\\b(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|xor)"
|
210
|
+
}, {
|
211
|
+
token : "lparen",
|
212
|
+
regex : "[[({]"
|
213
|
+
}, {
|
214
|
+
token : "rparen",
|
215
|
+
regex : "[\\])}]"
|
216
|
+
}, {
|
217
|
+
token : "text",
|
218
|
+
regex : "\\s+"
|
219
|
+
}
|
220
|
+
],
|
221
|
+
"qqstring" : [
|
222
|
+
{
|
223
|
+
token : "string",
|
224
|
+
regex : '(?:(?:\\\\.)|(?:[^"\\\\]))*?"',
|
225
|
+
next : "start"
|
226
|
+
}, {
|
227
|
+
token : "string",
|
228
|
+
merge : true,
|
229
|
+
regex : '.+'
|
230
|
+
}
|
231
|
+
],
|
232
|
+
"qstring" : [
|
233
|
+
{
|
234
|
+
token : "string",
|
235
|
+
regex : "(?:(?:\\\\.)|(?:[^'\\\\]))*?'",
|
236
|
+
next : "start"
|
237
|
+
}, {
|
238
|
+
token : "string",
|
239
|
+
merge : true,
|
240
|
+
regex : '.+'
|
241
|
+
}
|
242
|
+
]
|
243
|
+
};
|
244
|
+
};
|
245
|
+
|
246
|
+
oop.inherits(PerlHighlightRules, TextHighlightRules);
|
247
|
+
|
248
|
+
exports.PerlHighlightRules = PerlHighlightRules;
|
249
|
+
});
|
250
|
+
|
251
|
+
define('ace/mode/matching_brace_outdent', ['require', 'exports', 'module' , 'ace/range'], function(require, exports, module) {
|
252
|
+
|
253
|
+
|
254
|
+
var Range = require("../range").Range;
|
255
|
+
|
256
|
+
var MatchingBraceOutdent = function() {};
|
257
|
+
|
258
|
+
(function() {
|
259
|
+
|
260
|
+
this.checkOutdent = function(line, input) {
|
261
|
+
if (! /^\s+$/.test(line))
|
262
|
+
return false;
|
263
|
+
|
264
|
+
return /^\s*\}/.test(input);
|
265
|
+
};
|
266
|
+
|
267
|
+
this.autoOutdent = function(doc, row) {
|
268
|
+
var line = doc.getLine(row);
|
269
|
+
var match = line.match(/^(\s*\})/);
|
270
|
+
|
271
|
+
if (!match) return 0;
|
272
|
+
|
273
|
+
var column = match[1].length;
|
274
|
+
var openBracePos = doc.findMatchingBracket({row: row, column: column});
|
275
|
+
|
276
|
+
if (!openBracePos || openBracePos.row == row) return 0;
|
277
|
+
|
278
|
+
var indent = this.$getIndent(doc.getLine(openBracePos.row));
|
279
|
+
doc.replace(new Range(row, 0, row, column-1), indent);
|
280
|
+
};
|
281
|
+
|
282
|
+
this.$getIndent = function(line) {
|
283
|
+
var match = line.match(/^(\s+)/);
|
284
|
+
if (match) {
|
285
|
+
return match[1];
|
286
|
+
}
|
287
|
+
|
288
|
+
return "";
|
289
|
+
};
|
290
|
+
|
291
|
+
}).call(MatchingBraceOutdent.prototype);
|
292
|
+
|
293
|
+
exports.MatchingBraceOutdent = MatchingBraceOutdent;
|
294
|
+
});
|
295
|
+
|
296
|
+
define('ace/mode/folding/cstyle', ['require', 'exports', 'module' , 'ace/lib/oop', 'ace/range', 'ace/mode/folding/fold_mode'], function(require, exports, module) {
|
297
|
+
|
298
|
+
|
299
|
+
var oop = require("../../lib/oop");
|
300
|
+
var Range = require("../../range").Range;
|
301
|
+
var BaseFoldMode = require("./fold_mode").FoldMode;
|
302
|
+
|
303
|
+
var FoldMode = exports.FoldMode = function() {};
|
304
|
+
oop.inherits(FoldMode, BaseFoldMode);
|
305
|
+
|
306
|
+
(function() {
|
307
|
+
|
308
|
+
this.foldingStartMarker = /(\{|\[)[^\}\]]*$|^\s*(\/\*)/;
|
309
|
+
this.foldingStopMarker = /^[^\[\{]*(\}|\])|^[\s\*]*(\*\/)/;
|
310
|
+
|
311
|
+
this.getFoldWidgetRange = function(session, foldStyle, row) {
|
312
|
+
var line = session.getLine(row);
|
313
|
+
var match = line.match(this.foldingStartMarker);
|
314
|
+
if (match) {
|
315
|
+
var i = match.index;
|
316
|
+
|
317
|
+
if (match[1])
|
318
|
+
return this.openingBracketBlock(session, match[1], row, i);
|
319
|
+
|
320
|
+
var range = session.getCommentFoldRange(row, i + match[0].length);
|
321
|
+
range.end.column -= 2;
|
322
|
+
return range;
|
323
|
+
}
|
324
|
+
|
325
|
+
if (foldStyle !== "markbeginend")
|
326
|
+
return;
|
327
|
+
|
328
|
+
var match = line.match(this.foldingStopMarker);
|
329
|
+
if (match) {
|
330
|
+
var i = match.index + match[0].length;
|
331
|
+
|
332
|
+
if (match[2]) {
|
333
|
+
var range = session.getCommentFoldRange(row, i);
|
334
|
+
range.end.column -= 2;
|
335
|
+
return range;
|
336
|
+
}
|
337
|
+
|
338
|
+
var end = {row: row, column: i};
|
339
|
+
var start = session.$findOpeningBracket(match[1], end);
|
340
|
+
|
341
|
+
if (!start)
|
342
|
+
return;
|
343
|
+
|
344
|
+
start.column++;
|
345
|
+
end.column--;
|
346
|
+
|
347
|
+
return Range.fromPoints(start, end);
|
348
|
+
}
|
349
|
+
};
|
350
|
+
|
351
|
+
}).call(FoldMode.prototype);
|
352
|
+
|
353
|
+
});
|
354
|
+
|
355
|
+
define('ace/mode/folding/fold_mode', ['require', 'exports', 'module' , 'ace/range'], function(require, exports, module) {
|
356
|
+
|
357
|
+
|
358
|
+
var Range = require("../../range").Range;
|
359
|
+
|
360
|
+
var FoldMode = exports.FoldMode = function() {};
|
361
|
+
|
362
|
+
(function() {
|
363
|
+
|
364
|
+
this.foldingStartMarker = null;
|
365
|
+
this.foldingStopMarker = null;
|
366
|
+
|
367
|
+
// must return "" if there's no fold, to enable caching
|
368
|
+
this.getFoldWidget = function(session, foldStyle, row) {
|
369
|
+
var line = session.getLine(row);
|
370
|
+
if (this.foldingStartMarker.test(line))
|
371
|
+
return "start";
|
372
|
+
if (foldStyle == "markbeginend"
|
373
|
+
&& this.foldingStopMarker
|
374
|
+
&& this.foldingStopMarker.test(line))
|
375
|
+
return "end";
|
376
|
+
return "";
|
377
|
+
};
|
378
|
+
|
379
|
+
this.getFoldWidgetRange = function(session, foldStyle, row) {
|
380
|
+
return null;
|
381
|
+
};
|
382
|
+
|
383
|
+
this.indentationBlock = function(session, row, column) {
|
384
|
+
var re = /\S/;
|
385
|
+
var line = session.getLine(row);
|
386
|
+
var startLevel = line.search(re);
|
387
|
+
if (startLevel == -1)
|
388
|
+
return;
|
389
|
+
|
390
|
+
var startColumn = column || line.length;
|
391
|
+
var maxRow = session.getLength();
|
392
|
+
var startRow = row;
|
393
|
+
var endRow = row;
|
394
|
+
|
395
|
+
while (++row < maxRow) {
|
396
|
+
var level = session.getLine(row).search(re);
|
397
|
+
|
398
|
+
if (level == -1)
|
399
|
+
continue;
|
400
|
+
|
401
|
+
if (level <= startLevel)
|
402
|
+
break;
|
403
|
+
|
404
|
+
endRow = row;
|
405
|
+
}
|
406
|
+
|
407
|
+
if (endRow > startRow) {
|
408
|
+
var endColumn = session.getLine(endRow).length;
|
409
|
+
return new Range(startRow, startColumn, endRow, endColumn);
|
410
|
+
}
|
411
|
+
};
|
412
|
+
|
413
|
+
this.openingBracketBlock = function(session, bracket, row, column, typeRe) {
|
414
|
+
var start = {row: row, column: column + 1};
|
415
|
+
var end = session.$findClosingBracket(bracket, start, typeRe);
|
416
|
+
if (!end)
|
417
|
+
return;
|
418
|
+
|
419
|
+
var fw = session.foldWidgets[end.row];
|
420
|
+
if (fw == null)
|
421
|
+
fw = this.getFoldWidget(session, end.row);
|
422
|
+
|
423
|
+
if (fw == "start" && end.row > start.row) {
|
424
|
+
end.row --;
|
425
|
+
end.column = session.getLine(end.row).length;
|
426
|
+
}
|
427
|
+
return Range.fromPoints(start, end);
|
428
|
+
};
|
429
|
+
|
430
|
+
}).call(FoldMode.prototype);
|
431
|
+
|
432
|
+
});
|
@@ -1 +1,970 @@
|
|
1
|
-
define("ace/mode/pgsql",["require","exports","module","ace/lib/oop","ace/mode/text","ace/tokenizer","ace/mode/pgsql_highlight_rules","ace/range"],function(a,b,c){var d=a("ace/lib/oop"),e=a("ace/mode/text").Mode,f=a("ace/tokenizer").Tokenizer,g=a("ace/mode/pgsql_highlight_rules").PgsqlHighlightRules,h=a("ace/range").Range,i=function(){this.$tokenizer=new f((new g).getRules())};d.inherits(i,e),function(){this.toggleCommentLines=function(a,b,c,d){var e=!0,f=/^(\s*)--/;for(var g=c;g<=d;g++)if(!f.test(b.getLine(g))){e=!1;break}if(e){var i=new h(0,0,0,0);for(var g=c;g<=d;g++){var j=b.getLine(g),k=j.match(f);i.start.row=g,i.end.row=g,i.end.column=k[0].length,b.replace(i,k[1])}}else b.indentRows(c,d,"--")},this.getNextLineIndent=function(a,b,c){return a=="start"||a=="keyword.statementEnd"?"":this.$getIndent(b)}}.call(i.prototype),b.Mode=i}),define("ace/mode/pgsql_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/doc_comment_highlight_rules","ace/mode/text_highlight_rules","ace/mode/perl_highlight_rules","ace/mode/python_highlight_rules"],function(a,b,c){var d=a("ace/lib/oop"),e=a("ace/lib/lang"),f=a("./doc_comment_highlight_rules").DocCommentHighlightRules,g=a("./text_highlight_rules").TextHighlightRules,h=a("./perl_highlight_rules").PerlHighlightRules,i=a("./python_highlight_rules").PythonHighlightRules,j=function(){var a=e.arrayToMap("abort|absolute|abstime|access|aclitem|action|add|admin|after|aggregate|all|also|alter|always|analyse|analyze|and|any|anyarray|anyelement|anyenum|anynonarray|array|as|asc|assertion|assignment|asymmetric|at|attribute|authorization|backward|before|begin|between|bigint|binary|bit|bool|boolean|both|box|bpchar|by|bytea|cache|called|cascade|cascaded|case|cast|catalog|chain|char|character|characteristics|check|checkpoint|cid|cidr|circle|class|close|cluster|coalesce|collate|collation|column|comment|comments|commit|committed|concurrently|configuration|connection|constraint|constraints|content|continue|conversion|copy|cost|create|cross|cstring|csv|current|current_catalog|current_date|current_role|current_schema|current_time|current_timestamp|current_user|cursor|cycle|data|database|date|day|deallocate|dec|decimal|declare|default|defaults|deferrable|deferred|definer|delete|delimiter|delimiters|desc|dictionary|disable|discard|distinct|do|document|domain|double|drop|each|else|enable|encoding|encrypted|end|enum|escape|except|exclude|excluding|exclusive|execute|exists|explain|extension|external|extract|false|family|fdw_handler|fetch|first|float|float4|float8|following|for|force|foreign|forward|freeze|from|full|function|functions|global|grant|granted|greatest|group|gtsvector|handler|having|header|hold|hour|identity|if|ilike|immediate|immutable|implicit|in|including|increment|index|indexes|inet|inherit|inherits|initially|inline|inner|inout|input|insensitive|insert|instead|int|int2|int2vector|int4|int8|integer|internal|intersect|interval|into|invoker|is|isnull|isolation|join|key|label|language|language_handler|large|last|lc_collate|lc_ctype|leading|least|left|level|like|limit|line|listen|load|local|localtime|localtimestamp|location|lock|lseg|macaddr|mapping|match|maxvalue|minute|minvalue|mode|money|month|move|name|names|national|natural|nchar|next|no|none|not|nothing|notify|notnull|nowait|null|nullif|nulls|numeric|object|of|off|offset|oid|oids|oidvector|on|only|opaque|operator|option|options|or|order|out|outer|over|overlaps|overlay|owned|owner|parser|partial|partition|passing|password|path|pg_attribute|pg_auth_members|pg_authid|pg_class|pg_database|pg_node_tree|pg_proc|pg_type|placing|plans|point|polygon|position|preceding|precision|prepare|prepared|preserve|primary|prior|privileges|procedural|procedure|quote|range|read|real|reassign|recheck|record|recursive|ref|refcursor|references|regclass|regconfig|regdictionary|regoper|regoperator|regproc|regprocedure|regtype|reindex|relative|release|reltime|rename|repeatable|replace|replica|reset|restart|restrict|returning|returns|revoke|right|role|rollback|row|rows|rule|savepoint|schema|scroll|search|second|security|select|sequence|sequences|serializable|server|session|session_user|set|setof|share|show|similar|simple|smallint|smgr|some|stable|standalone|start|statement|statistics|stdin|stdout|storage|strict|strip|substring|symmetric|sysid|system|table|tables|tablespace|temp|template|temporary|text|then|tid|time|timestamp|timestamptz|timetz|tinterval|to|trailing|transaction|treat|trigger|trim|true|truncate|trusted|tsquery|tsvector|txid_snapshot|type|unbounded|uncommitted|unencrypted|union|unique|unknown|unlisten|unlogged|until|update|user|using|uuid|vacuum|valid|validate|validator|value|values|varbit|varchar|variadic|varying|verbose|version|view|void|volatile|when|where|whitespace|window|with|without|work|wrapper|write|xid|xml|xmlattributes|xmlconcat|xmlelement|xmlexists|xmlforest|xmlparse|xmlpi|xmlroot|xmlserialize|year|yes|zone".split("|")),b=e.arrayToMap("RI_FKey_cascade_del|RI_FKey_cascade_upd|RI_FKey_check_ins|RI_FKey_check_upd|RI_FKey_noaction_del|RI_FKey_noaction_upd|RI_FKey_restrict_del|RI_FKey_restrict_upd|RI_FKey_setdefault_del|RI_FKey_setdefault_upd|RI_FKey_setnull_del|RI_FKey_setnull_upd|abbrev|abs|abstime|abstimeeq|abstimege|abstimegt|abstimein|abstimele|abstimelt|abstimene|abstimeout|abstimerecv|abstimesend|aclcontains|aclexplode|aclinsert|aclitemeq|aclitemin|aclitemout|aclremove|acos|age|any_in|any_out|anyarray_in|anyarray_out|anyarray_recv|anyarray_send|anyelement_in|anyelement_out|anyenum_in|anyenum_out|anynonarray_in|anynonarray_out|anytextcat|area|areajoinsel|areasel|array_agg|array_agg_finalfn|array_agg_transfn|array_append|array_cat|array_dims|array_eq|array_fill|array_ge|array_gt|array_in|array_larger|array_le|array_length|array_lower|array_lt|array_ndims|array_ne|array_out|array_prepend|array_recv|array_send|array_smaller|array_to_string|array_upper|arraycontained|arraycontains|arrayoverlap|ascii|ascii_to_mic|ascii_to_utf8|asin|atan|atan2|avg|big5_to_euc_tw|big5_to_mic|big5_to_utf8|bit_and|bit_in|bit_length|bit_or|bit_out|bit_recv|bit_send|bitand|bitcat|bitcmp|biteq|bitge|bitgt|bitle|bitlt|bitne|bitnot|bitor|bitshiftleft|bitshiftright|bittypmodin|bittypmodout|bitxor|bool|bool_and|bool_or|booland_statefunc|booleq|boolge|boolgt|boolin|boolle|boollt|boolne|boolor_statefunc|boolout|boolrecv|boolsend|box|box_above|box_above_eq|box_add|box_below|box_below_eq|box_center|box_contain|box_contain_pt|box_contained|box_distance|box_div|box_eq|box_ge|box_gt|box_in|box_intersect|box_le|box_left|box_lt|box_mul|box_out|box_overabove|box_overbelow|box_overlap|box_overleft|box_overright|box_recv|box_right|box_same|box_send|box_sub|bpchar_larger|bpchar_pattern_ge|bpchar_pattern_gt|bpchar_pattern_le|bpchar_pattern_lt|bpchar_smaller|bpcharcmp|bpchareq|bpcharge|bpchargt|bpchariclike|bpcharicnlike|bpcharicregexeq|bpcharicregexne|bpcharin|bpcharle|bpcharlike|bpcharlt|bpcharne|bpcharnlike|bpcharout|bpcharrecv|bpcharregexeq|bpcharregexne|bpcharsend|bpchartypmodin|bpchartypmodout|broadcast|btabstimecmp|btarraycmp|btbeginscan|btboolcmp|btbpchar_pattern_cmp|btbuild|btbuildempty|btbulkdelete|btcharcmp|btcostestimate|btendscan|btfloat48cmp|btfloat4cmp|btfloat84cmp|btfloat8cmp|btgetbitmap|btgettuple|btinsert|btint24cmp|btint28cmp|btint2cmp|btint42cmp|btint48cmp|btint4cmp|btint82cmp|btint84cmp|btint8cmp|btmarkpos|btnamecmp|btoidcmp|btoidvectorcmp|btoptions|btrecordcmp|btreltimecmp|btrescan|btrestrpos|btrim|bttext_pattern_cmp|bttextcmp|bttidcmp|bttintervalcmp|btvacuumcleanup|byteacat|byteacmp|byteaeq|byteage|byteagt|byteain|byteale|bytealike|bytealt|byteane|byteanlike|byteaout|bytearecv|byteasend|cash_cmp|cash_div_cash|cash_div_flt4|cash_div_flt8|cash_div_int2|cash_div_int4|cash_eq|cash_ge|cash_gt|cash_in|cash_le|cash_lt|cash_mi|cash_mul_flt4|cash_mul_flt8|cash_mul_int2|cash_mul_int4|cash_ne|cash_out|cash_pl|cash_recv|cash_send|cash_words|cashlarger|cashsmaller|cbrt|ceil|ceiling|center|char|char_length|character_length|chareq|charge|chargt|charin|charle|charlt|charne|charout|charrecv|charsend|chr|cideq|cidin|cidout|cidr|cidr_in|cidr_out|cidr_recv|cidr_send|cidrecv|cidsend|circle|circle_above|circle_add_pt|circle_below|circle_center|circle_contain|circle_contain_pt|circle_contained|circle_distance|circle_div_pt|circle_eq|circle_ge|circle_gt|circle_in|circle_le|circle_left|circle_lt|circle_mul_pt|circle_ne|circle_out|circle_overabove|circle_overbelow|circle_overlap|circle_overleft|circle_overright|circle_recv|circle_right|circle_same|circle_send|circle_sub_pt|clock_timestamp|close_lb|close_ls|close_lseg|close_pb|close_pl|close_ps|close_sb|close_sl|col_description|concat|concat_ws|contjoinsel|contsel|convert|convert_from|convert_to|corr|cos|cot|count|covar_pop|covar_samp|cstring_in|cstring_out|cstring_recv|cstring_send|cume_dist|current_database|current_query|current_schema|current_schemas|current_setting|current_user|currtid|currtid2|currval|cursor_to_xml|cursor_to_xmlschema|database_to_xml|database_to_xml_and_xmlschema|database_to_xmlschema|date|date_cmp|date_cmp_timestamp|date_cmp_timestamptz|date_eq|date_eq_timestamp|date_eq_timestamptz|date_ge|date_ge_timestamp|date_ge_timestamptz|date_gt|date_gt_timestamp|date_gt_timestamptz|date_in|date_larger|date_le|date_le_timestamp|date_le_timestamptz|date_lt|date_lt_timestamp|date_lt_timestamptz|date_mi|date_mi_interval|date_mii|date_ne|date_ne_timestamp|date_ne_timestamptz|date_out|date_part|date_pl_interval|date_pli|date_recv|date_send|date_smaller|date_trunc|datetime_pl|datetimetz_pl|dcbrt|decode|degrees|dense_rank|dexp|diagonal|diameter|dispell_init|dispell_lexize|dist_cpoly|dist_lb|dist_pb|dist_pc|dist_pl|dist_ppath|dist_ps|dist_sb|dist_sl|div|dlog1|dlog10|domain_in|domain_recv|dpow|dround|dsimple_init|dsimple_lexize|dsnowball_init|dsnowball_lexize|dsqrt|dsynonym_init|dsynonym_lexize|dtrunc|encode|enum_cmp|enum_eq|enum_first|enum_ge|enum_gt|enum_in|enum_larger|enum_last|enum_le|enum_lt|enum_ne|enum_out|enum_range|enum_recv|enum_send|enum_smaller|eqjoinsel|eqsel|euc_cn_to_mic|euc_cn_to_utf8|euc_jis_2004_to_shift_jis_2004|euc_jis_2004_to_utf8|euc_jp_to_mic|euc_jp_to_sjis|euc_jp_to_utf8|euc_kr_to_mic|euc_kr_to_utf8|euc_tw_to_big5|euc_tw_to_mic|euc_tw_to_utf8|every|exp|factorial|family|fdw_handler_in|fdw_handler_out|first_value|float4|float48div|float48eq|float48ge|float48gt|float48le|float48lt|float48mi|float48mul|float48ne|float48pl|float4_accum|float4abs|float4div|float4eq|float4ge|float4gt|float4in|float4larger|float4le|float4lt|float4mi|float4mul|float4ne|float4out|float4pl|float4recv|float4send|float4smaller|float4um|float4up|float8|float84div|float84eq|float84ge|float84gt|float84le|float84lt|float84mi|float84mul|float84ne|float84pl|float8_accum|float8_avg|float8_corr|float8_covar_pop|float8_covar_samp|float8_regr_accum|float8_regr_avgx|float8_regr_avgy|float8_regr_intercept|float8_regr_r2|float8_regr_slope|float8_regr_sxx|float8_regr_sxy|float8_regr_syy|float8_stddev_pop|float8_stddev_samp|float8_var_pop|float8_var_samp|float8abs|float8div|float8eq|float8ge|float8gt|float8in|float8larger|float8le|float8lt|float8mi|float8mul|float8ne|float8out|float8pl|float8recv|float8send|float8smaller|float8um|float8up|floor|flt4_mul_cash|flt8_mul_cash|fmgr_c_validator|fmgr_internal_validator|fmgr_sql_validator|format|format_type|gb18030_to_utf8|gbk_to_utf8|generate_series|generate_subscripts|get_bit|get_byte|get_current_ts_config|getdatabaseencoding|getpgusername|gin_cmp_prefix|gin_cmp_tslexeme|gin_extract_tsquery|gin_extract_tsvector|gin_tsquery_consistent|ginarrayconsistent|ginarrayextract|ginbeginscan|ginbuild|ginbuildempty|ginbulkdelete|gincostestimate|ginendscan|gingetbitmap|gininsert|ginmarkpos|ginoptions|ginqueryarrayextract|ginrescan|ginrestrpos|ginvacuumcleanup|gist_box_compress|gist_box_consistent|gist_box_decompress|gist_box_penalty|gist_box_picksplit|gist_box_same|gist_box_union|gist_circle_compress|gist_circle_consistent|gist_point_compress|gist_point_consistent|gist_point_distance|gist_poly_compress|gist_poly_consistent|gistbeginscan|gistbuild|gistbuildempty|gistbulkdelete|gistcostestimate|gistendscan|gistgetbitmap|gistgettuple|gistinsert|gistmarkpos|gistoptions|gistrescan|gistrestrpos|gistvacuumcleanup|gtsquery_compress|gtsquery_consistent|gtsquery_decompress|gtsquery_penalty|gtsquery_picksplit|gtsquery_same|gtsquery_union|gtsvector_compress|gtsvector_consistent|gtsvector_decompress|gtsvector_penalty|gtsvector_picksplit|gtsvector_same|gtsvector_union|gtsvectorin|gtsvectorout|has_any_column_privilege|has_column_privilege|has_database_privilege|has_foreign_data_wrapper_privilege|has_function_privilege|has_language_privilege|has_schema_privilege|has_sequence_privilege|has_server_privilege|has_table_privilege|has_tablespace_privilege|hash_aclitem|hash_array|hash_numeric|hashbeginscan|hashbpchar|hashbuild|hashbuildempty|hashbulkdelete|hashchar|hashcostestimate|hashendscan|hashenum|hashfloat4|hashfloat8|hashgetbitmap|hashgettuple|hashinet|hashinsert|hashint2|hashint2vector|hashint4|hashint8|hashmacaddr|hashmarkpos|hashname|hashoid|hashoidvector|hashoptions|hashrescan|hashrestrpos|hashtext|hashvacuumcleanup|hashvarlena|height|host|hostmask|iclikejoinsel|iclikesel|icnlikejoinsel|icnlikesel|icregexeqjoinsel|icregexeqsel|icregexnejoinsel|icregexnesel|inet_client_addr|inet_client_port|inet_in|inet_out|inet_recv|inet_send|inet_server_addr|inet_server_port|inetand|inetmi|inetmi_int8|inetnot|inetor|inetpl|initcap|int2|int24div|int24eq|int24ge|int24gt|int24le|int24lt|int24mi|int24mul|int24ne|int24pl|int28div|int28eq|int28ge|int28gt|int28le|int28lt|int28mi|int28mul|int28ne|int28pl|int2_accum|int2_avg_accum|int2_mul_cash|int2_sum|int2abs|int2and|int2div|int2eq|int2ge|int2gt|int2in|int2larger|int2le|int2lt|int2mi|int2mod|int2mul|int2ne|int2not|int2or|int2out|int2pl|int2recv|int2send|int2shl|int2shr|int2smaller|int2um|int2up|int2vectoreq|int2vectorin|int2vectorout|int2vectorrecv|int2vectorsend|int2xor|int4|int42div|int42eq|int42ge|int42gt|int42le|int42lt|int42mi|int42mul|int42ne|int42pl|int48div|int48eq|int48ge|int48gt|int48le|int48lt|int48mi|int48mul|int48ne|int48pl|int4_accum|int4_avg_accum|int4_mul_cash|int4_sum|int4abs|int4and|int4div|int4eq|int4ge|int4gt|int4in|int4inc|int4larger|int4le|int4lt|int4mi|int4mod|int4mul|int4ne|int4not|int4or|int4out|int4pl|int4recv|int4send|int4shl|int4shr|int4smaller|int4um|int4up|int4xor|int8|int82div|int82eq|int82ge|int82gt|int82le|int82lt|int82mi|int82mul|int82ne|int82pl|int84div|int84eq|int84ge|int84gt|int84le|int84lt|int84mi|int84mul|int84ne|int84pl|int8_accum|int8_avg|int8_avg_accum|int8_sum|int8abs|int8and|int8div|int8eq|int8ge|int8gt|int8in|int8inc|int8inc_any|int8inc_float8_float8|int8larger|int8le|int8lt|int8mi|int8mod|int8mul|int8ne|int8not|int8or|int8out|int8pl|int8pl_inet|int8recv|int8send|int8shl|int8shr|int8smaller|int8um|int8up|int8xor|integer_pl_date|inter_lb|inter_sb|inter_sl|internal_in|internal_out|interval_accum|interval_avg|interval_cmp|interval_div|interval_eq|interval_ge|interval_gt|interval_hash|interval_in|interval_larger|interval_le|interval_lt|interval_mi|interval_mul|interval_ne|interval_out|interval_pl|interval_pl_date|interval_pl_time|interval_pl_timestamp|interval_pl_timestamptz|interval_pl_timetz|interval_recv|interval_send|interval_smaller|interval_um|intervaltypmodin|intervaltypmodout|intinterval|isclosed|isfinite|ishorizontal|iso8859_1_to_utf8|iso8859_to_utf8|iso_to_koi8r|iso_to_mic|iso_to_win1251|iso_to_win866|isopen|isparallel|isperp|isvertical|johab_to_utf8|justify_days|justify_hours|justify_interval|koi8r_to_iso|koi8r_to_mic|koi8r_to_utf8|koi8r_to_win1251|koi8r_to_win866|koi8u_to_utf8|lag|language_handler_in|language_handler_out|last_value|lastval|latin1_to_mic|latin2_to_mic|latin2_to_win1250|latin3_to_mic|latin4_to_mic|lead|left|length|like|like_escape|likejoinsel|likesel|line|line_distance|line_eq|line_horizontal|line_in|line_interpt|line_intersect|line_out|line_parallel|line_perp|line_recv|line_send|line_vertical|ln|lo_close|lo_creat|lo_create|lo_export|lo_import|lo_lseek|lo_open|lo_tell|lo_truncate|lo_unlink|log|loread|lower|lowrite|lpad|lseg|lseg_center|lseg_distance|lseg_eq|lseg_ge|lseg_gt|lseg_horizontal|lseg_in|lseg_interpt|lseg_intersect|lseg_le|lseg_length|lseg_lt|lseg_ne|lseg_out|lseg_parallel|lseg_perp|lseg_recv|lseg_send|lseg_vertical|ltrim|macaddr_cmp|macaddr_eq|macaddr_ge|macaddr_gt|macaddr_in|macaddr_le|macaddr_lt|macaddr_ne|macaddr_out|macaddr_recv|macaddr_send|makeaclitem|masklen|max|md5|mic_to_ascii|mic_to_big5|mic_to_euc_cn|mic_to_euc_jp|mic_to_euc_kr|mic_to_euc_tw|mic_to_iso|mic_to_koi8r|mic_to_latin1|mic_to_latin2|mic_to_latin3|mic_to_latin4|mic_to_sjis|mic_to_win1250|mic_to_win1251|mic_to_win866|min|mktinterval|mod|money|mul_d_interval|name|nameeq|namege|namegt|nameiclike|nameicnlike|nameicregexeq|nameicregexne|namein|namele|namelike|namelt|namene|namenlike|nameout|namerecv|nameregexeq|nameregexne|namesend|neqjoinsel|neqsel|netmask|network|network_cmp|network_eq|network_ge|network_gt|network_le|network_lt|network_ne|network_sub|network_subeq|network_sup|network_supeq|nextval|nlikejoinsel|nlikesel|notlike|now|npoints|nth_value|ntile|numeric_abs|numeric_accum|numeric_add|numeric_avg|numeric_avg_accum|numeric_cmp|numeric_div|numeric_div_trunc|numeric_eq|numeric_exp|numeric_fac|numeric_ge|numeric_gt|numeric_in|numeric_inc|numeric_larger|numeric_le|numeric_ln|numeric_log|numeric_lt|numeric_mod|numeric_mul|numeric_ne|numeric_out|numeric_power|numeric_recv|numeric_send|numeric_smaller|numeric_sqrt|numeric_stddev_pop|numeric_stddev_samp|numeric_sub|numeric_uminus|numeric_uplus|numeric_var_pop|numeric_var_samp|numerictypmodin|numerictypmodout|numnode|obj_description|octet_length|oid|oideq|oidge|oidgt|oidin|oidlarger|oidle|oidlt|oidne|oidout|oidrecv|oidsend|oidsmaller|oidvectoreq|oidvectorge|oidvectorgt|oidvectorin|oidvectorle|oidvectorlt|oidvectorne|oidvectorout|oidvectorrecv|oidvectorsend|oidvectortypes|on_pb|on_pl|on_ppath|on_ps|on_sb|on_sl|opaque_in|opaque_out|overlaps|overlay|path|path_add|path_add_pt|path_center|path_contain_pt|path_distance|path_div_pt|path_in|path_inter|path_length|path_mul_pt|path_n_eq|path_n_ge|path_n_gt|path_n_le|path_n_lt|path_npoints|path_out|path_recv|path_send|path_sub_pt|pclose|percent_rank|pg_advisory_lock|pg_advisory_lock_shared|pg_advisory_unlock|pg_advisory_unlock_all|pg_advisory_unlock_shared|pg_advisory_xact_lock|pg_advisory_xact_lock_shared|pg_available_extension_versions|pg_available_extensions|pg_backend_pid|pg_cancel_backend|pg_char_to_encoding|pg_client_encoding|pg_collation_is_visible|pg_column_size|pg_conf_load_time|pg_conversion_is_visible|pg_create_restore_point|pg_current_xlog_insert_location|pg_current_xlog_location|pg_cursor|pg_database_size|pg_describe_object|pg_encoding_max_length|pg_encoding_to_char|pg_extension_config_dump|pg_extension_update_paths|pg_function_is_visible|pg_get_constraintdef|pg_get_expr|pg_get_function_arguments|pg_get_function_identity_arguments|pg_get_function_result|pg_get_functiondef|pg_get_indexdef|pg_get_keywords|pg_get_ruledef|pg_get_serial_sequence|pg_get_triggerdef|pg_get_userbyid|pg_get_viewdef|pg_has_role|pg_indexes_size|pg_is_in_recovery|pg_is_other_temp_schema|pg_is_xlog_replay_paused|pg_last_xact_replay_timestamp|pg_last_xlog_receive_location|pg_last_xlog_replay_location|pg_listening_channels|pg_lock_status|pg_ls_dir|pg_my_temp_schema|pg_node_tree_in|pg_node_tree_out|pg_node_tree_recv|pg_node_tree_send|pg_notify|pg_opclass_is_visible|pg_operator_is_visible|pg_options_to_table|pg_postmaster_start_time|pg_prepared_statement|pg_prepared_xact|pg_read_binary_file|pg_read_file|pg_relation_filenode|pg_relation_filepath|pg_relation_size|pg_reload_conf|pg_rotate_logfile|pg_sequence_parameters|pg_show_all_settings|pg_size_pretty|pg_sleep|pg_start_backup|pg_stat_clear_snapshot|pg_stat_file|pg_stat_get_activity|pg_stat_get_analyze_count|pg_stat_get_autoanalyze_count|pg_stat_get_autovacuum_count|pg_stat_get_backend_activity|pg_stat_get_backend_activity_start|pg_stat_get_backend_client_addr|pg_stat_get_backend_client_port|pg_stat_get_backend_dbid|pg_stat_get_backend_idset|pg_stat_get_backend_pid|pg_stat_get_backend_start|pg_stat_get_backend_userid|pg_stat_get_backend_waiting|pg_stat_get_backend_xact_start|pg_stat_get_bgwriter_buf_written_checkpoints|pg_stat_get_bgwriter_buf_written_clean|pg_stat_get_bgwriter_maxwritten_clean|pg_stat_get_bgwriter_requested_checkpoints|pg_stat_get_bgwriter_stat_reset_time|pg_stat_get_bgwriter_timed_checkpoints|pg_stat_get_blocks_fetched|pg_stat_get_blocks_hit|pg_stat_get_buf_alloc|pg_stat_get_buf_fsync_backend|pg_stat_get_buf_written_backend|pg_stat_get_db_blocks_fetched|pg_stat_get_db_blocks_hit|pg_stat_get_db_conflict_all|pg_stat_get_db_conflict_bufferpin|pg_stat_get_db_conflict_lock|pg_stat_get_db_conflict_snapshot|pg_stat_get_db_conflict_startup_deadlock|pg_stat_get_db_conflict_tablespace|pg_stat_get_db_numbackends|pg_stat_get_db_stat_reset_time|pg_stat_get_db_tuples_deleted|pg_stat_get_db_tuples_fetched|pg_stat_get_db_tuples_inserted|pg_stat_get_db_tuples_returned|pg_stat_get_db_tuples_updated|pg_stat_get_db_xact_commit|pg_stat_get_db_xact_rollback|pg_stat_get_dead_tuples|pg_stat_get_function_calls|pg_stat_get_function_self_time|pg_stat_get_function_time|pg_stat_get_last_analyze_time|pg_stat_get_last_autoanalyze_time|pg_stat_get_last_autovacuum_time|pg_stat_get_last_vacuum_time|pg_stat_get_live_tuples|pg_stat_get_numscans|pg_stat_get_tuples_deleted|pg_stat_get_tuples_fetched|pg_stat_get_tuples_hot_updated|pg_stat_get_tuples_inserted|pg_stat_get_tuples_returned|pg_stat_get_tuples_updated|pg_stat_get_vacuum_count|pg_stat_get_wal_senders|pg_stat_get_xact_blocks_fetched|pg_stat_get_xact_blocks_hit|pg_stat_get_xact_function_calls|pg_stat_get_xact_function_self_time|pg_stat_get_xact_function_time|pg_stat_get_xact_numscans|pg_stat_get_xact_tuples_deleted|pg_stat_get_xact_tuples_fetched|pg_stat_get_xact_tuples_hot_updated|pg_stat_get_xact_tuples_inserted|pg_stat_get_xact_tuples_returned|pg_stat_get_xact_tuples_updated|pg_stat_reset|pg_stat_reset_shared|pg_stat_reset_single_function_counters|pg_stat_reset_single_table_counters|pg_stop_backup|pg_switch_xlog|pg_table_is_visible|pg_table_size|pg_tablespace_databases|pg_tablespace_size|pg_terminate_backend|pg_timezone_abbrevs|pg_timezone_names|pg_total_relation_size|pg_try_advisory_lock|pg_try_advisory_lock_shared|pg_try_advisory_xact_lock|pg_try_advisory_xact_lock_shared|pg_ts_config_is_visible|pg_ts_dict_is_visible|pg_ts_parser_is_visible|pg_ts_template_is_visible|pg_type_is_visible|pg_typeof|pg_xlog_replay_pause|pg_xlog_replay_resume|pg_xlogfile_name|pg_xlogfile_name_offset|pi|plainto_tsquery|plpgsql_call_handler|plpgsql_inline_handler|plpgsql_validator|point|point_above|point_add|point_below|point_distance|point_div|point_eq|point_horiz|point_in|point_left|point_mul|point_ne|point_out|point_recv|point_right|point_send|point_sub|point_vert|poly_above|poly_below|poly_center|poly_contain|poly_contain_pt|poly_contained|poly_distance|poly_in|poly_left|poly_npoints|poly_out|poly_overabove|poly_overbelow|poly_overlap|poly_overleft|poly_overright|poly_recv|poly_right|poly_same|poly_send|polygon|popen|position|positionjoinsel|positionsel|postgresql_fdw_validator|pow|power|prsd_end|prsd_headline|prsd_lextype|prsd_nexttoken|prsd_start|pt_contained_circle|pt_contained_poly|query_to_xml|query_to_xml_and_xmlschema|query_to_xmlschema|querytree|quote_ident|quote_literal|quote_nullable|radians|radius|random|rank|record_eq|record_ge|record_gt|record_in|record_le|record_lt|record_ne|record_out|record_recv|record_send|regclass|regclassin|regclassout|regclassrecv|regclasssend|regconfigin|regconfigout|regconfigrecv|regconfigsend|regdictionaryin|regdictionaryout|regdictionaryrecv|regdictionarysend|regexeqjoinsel|regexeqsel|regexnejoinsel|regexnesel|regexp_matches|regexp_replace|regexp_split_to_array|regexp_split_to_table|regoperatorin|regoperatorout|regoperatorrecv|regoperatorsend|regoperin|regoperout|regoperrecv|regopersend|regprocedurein|regprocedureout|regprocedurerecv|regproceduresend|regprocin|regprocout|regprocrecv|regprocsend|regr_avgx|regr_avgy|regr_count|regr_intercept|regr_r2|regr_slope|regr_sxx|regr_sxy|regr_syy|regtypein|regtypeout|regtyperecv|regtypesend|reltime|reltimeeq|reltimege|reltimegt|reltimein|reltimele|reltimelt|reltimene|reltimeout|reltimerecv|reltimesend|repeat|replace|reverse|right|round|row_number|rpad|rtrim|scalargtjoinsel|scalargtsel|scalarltjoinsel|scalarltsel|schema_to_xml|schema_to_xml_and_xmlschema|schema_to_xmlschema|session_user|set_bit|set_byte|set_config|set_masklen|setseed|setval|setweight|shell_in|shell_out|shift_jis_2004_to_euc_jis_2004|shift_jis_2004_to_utf8|shobj_description|sign|similar_escape|sin|sjis_to_euc_jp|sjis_to_mic|sjis_to_utf8|slope|smgreq|smgrin|smgrne|smgrout|split_part|sqrt|statement_timestamp|stddev|stddev_pop|stddev_samp|string_agg|string_agg_finalfn|string_agg_transfn|string_to_array|strip|strpos|substr|substring|sum|suppress_redundant_updates_trigger|table_to_xml|table_to_xml_and_xmlschema|table_to_xmlschema|tan|text|text_ge|text_gt|text_larger|text_le|text_lt|text_pattern_ge|text_pattern_gt|text_pattern_le|text_pattern_lt|text_smaller|textanycat|textcat|texteq|texticlike|texticnlike|texticregexeq|texticregexne|textin|textlen|textlike|textne|textnlike|textout|textrecv|textregexeq|textregexne|textsend|thesaurus_init|thesaurus_lexize|tideq|tidge|tidgt|tidin|tidlarger|tidle|tidlt|tidne|tidout|tidrecv|tidsend|tidsmaller|time_cmp|time_eq|time_ge|time_gt|time_hash|time_in|time_larger|time_le|time_lt|time_mi_interval|time_mi_time|time_ne|time_out|time_pl_interval|time_recv|time_send|time_smaller|timedate_pl|timemi|timenow|timeofday|timepl|timestamp_cmp|timestamp_cmp_date|timestamp_cmp_timestamptz|timestamp_eq|timestamp_eq_date|timestamp_eq_timestamptz|timestamp_ge|timestamp_ge_date|timestamp_ge_timestamptz|timestamp_gt|timestamp_gt_date|timestamp_gt_timestamptz|timestamp_hash|timestamp_in|timestamp_larger|timestamp_le|timestamp_le_date|timestamp_le_timestamptz|timestamp_lt|timestamp_lt_date|timestamp_lt_timestamptz|timestamp_mi|timestamp_mi_interval|timestamp_ne|timestamp_ne_date|timestamp_ne_timestamptz|timestamp_out|timestamp_pl_interval|timestamp_recv|timestamp_send|timestamp_smaller|timestamptypmodin|timestamptypmodout|timestamptz_cmp|timestamptz_cmp_date|timestamptz_cmp_timestamp|timestamptz_eq|timestamptz_eq_date|timestamptz_eq_timestamp|timestamptz_ge|timestamptz_ge_date|timestamptz_ge_timestamp|timestamptz_gt|timestamptz_gt_date|timestamptz_gt_timestamp|timestamptz_in|timestamptz_larger|timestamptz_le|timestamptz_le_date|timestamptz_le_timestamp|timestamptz_lt|timestamptz_lt_date|timestamptz_lt_timestamp|timestamptz_mi|timestamptz_mi_interval|timestamptz_ne|timestamptz_ne_date|timestamptz_ne_timestamp|timestamptz_out|timestamptz_pl_interval|timestamptz_recv|timestamptz_send|timestamptz_smaller|timestamptztypmodin|timestamptztypmodout|timetypmodin|timetypmodout|timetz_cmp|timetz_eq|timetz_ge|timetz_gt|timetz_hash|timetz_in|timetz_larger|timetz_le|timetz_lt|timetz_mi_interval|timetz_ne|timetz_out|timetz_pl_interval|timetz_recv|timetz_send|timetz_smaller|timetzdate_pl|timetztypmodin|timetztypmodout|timezone|tinterval|tintervalct|tintervalend|tintervaleq|tintervalge|tintervalgt|tintervalin|tintervalle|tintervalleneq|tintervallenge|tintervallengt|tintervallenle|tintervallenlt|tintervallenne|tintervallt|tintervalne|tintervalout|tintervalov|tintervalrecv|tintervalrel|tintervalsame|tintervalsend|tintervalstart|to_ascii|to_char|to_date|to_hex|to_number|to_timestamp|to_tsquery|to_tsvector|transaction_timestamp|translate|trigger_in|trigger_out|trunc|ts_debug|ts_headline|ts_lexize|ts_match_qv|ts_match_tq|ts_match_tt|ts_match_vq|ts_parse|ts_rank|ts_rank_cd|ts_rewrite|ts_stat|ts_token_type|ts_typanalyze|tsmatchjoinsel|tsmatchsel|tsq_mcontained|tsq_mcontains|tsquery_and|tsquery_cmp|tsquery_eq|tsquery_ge|tsquery_gt|tsquery_le|tsquery_lt|tsquery_ne|tsquery_not|tsquery_or|tsqueryin|tsqueryout|tsqueryrecv|tsquerysend|tsvector_cmp|tsvector_concat|tsvector_eq|tsvector_ge|tsvector_gt|tsvector_le|tsvector_lt|tsvector_ne|tsvector_update_trigger|tsvector_update_trigger_column|tsvectorin|tsvectorout|tsvectorrecv|tsvectorsend|txid_current|txid_current_snapshot|txid_snapshot_in|txid_snapshot_out|txid_snapshot_recv|txid_snapshot_send|txid_snapshot_xip|txid_snapshot_xmax|txid_snapshot_xmin|txid_visible_in_snapshot|uhc_to_utf8|unique_key_recheck|unknownin|unknownout|unknownrecv|unknownsend|unnest|upper|utf8_to_ascii|utf8_to_big5|utf8_to_euc_cn|utf8_to_euc_jis_2004|utf8_to_euc_jp|utf8_to_euc_kr|utf8_to_euc_tw|utf8_to_gb18030|utf8_to_gbk|utf8_to_iso8859|utf8_to_iso8859_1|utf8_to_johab|utf8_to_koi8r|utf8_to_koi8u|utf8_to_shift_jis_2004|utf8_to_sjis|utf8_to_uhc|utf8_to_win|uuid_cmp|uuid_eq|uuid_ge|uuid_gt|uuid_hash|uuid_in|uuid_le|uuid_lt|uuid_ne|uuid_out|uuid_recv|uuid_send|var_pop|var_samp|varbit_in|varbit_out|varbit_recv|varbit_send|varbitcmp|varbiteq|varbitge|varbitgt|varbitle|varbitlt|varbitne|varbittypmodin|varbittypmodout|varcharin|varcharout|varcharrecv|varcharsend|varchartypmodin|varchartypmodout|variance|version|void_in|void_out|void_recv|void_send|width|width_bucket|win1250_to_latin2|win1250_to_mic|win1251_to_iso|win1251_to_koi8r|win1251_to_mic|win1251_to_win866|win866_to_iso|win866_to_koi8r|win866_to_mic|win866_to_win1251|win_to_utf8|xideq|xideqint4|xidin|xidout|xidrecv|xidsend|xml|xml_in|xml_is_well_formed|xml_is_well_formed_content|xml_is_well_formed_document|xml_out|xml_recv|xml_send|xmlagg|xmlcomment|xmlconcat2|xmlexists|xmlvalidate|xpath|xpath_exists".split("|")),c=[{token:"string",regex:"['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"},{token:"variable.language",regex:'".*?"'},{token:"constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:function(c){return c=c.toLowerCase(),a.hasOwnProperty(c)?"keyword":b.hasOwnProperty(c)?"support.function":"identifier"},regex:"[a-zA-Z_][a-zA-Z0-9_$]*\\b"},{token:"keyword.operator",regex:"!|!!|!~|!~\\*|!~~|!~~\\*|#|##|#<|#<=|#<>|#=|#>|#>=|%|\\&|\\&\\&|\\&<|\\&<\\||\\&>|\\*|\\+|\\-|/|<|<#>|<\\->|<<|<<=|<<\\||<=|<>|<\\?>|<@|<\\^|=|>|>=|>>|>>=|>\\^|\\?#|\\?\\-|\\?\\-\\||\\?\\||\\?\\|\\||@|@\\-@|@>|@@|@@@|\\^|\\||\\|\\&>|\\|/|\\|>>|\\|\\||\\|\\|/|~|~\\*|~<=~|~<~|~=|~>=~|~>~|~~|~~\\*"},{token:"lparen.paren",regex:"[\\(]"},{token:"paren.rparen",regex:"[\\)]"},{token:"text",regex:"\\s+"}];this.$rules={start:[{token:"comment",regex:"--.*$"},f.getStartRule("doc-start"),{token:"comment",merge:!0,regex:"\\/\\*",next:"comment"},{token:"keyword.statementBegin",regex:"^[a-zA-Z]+",next:"statement"},{token:"support.buildin",regex:"^\\\\[\\S]+.*$"}],statement:[{token:"comment",regex:"--.*$"},{token:"comment",merge:!0,regex:"\\/\\*",next:"commentStatement"},{token:"statementEnd",regex:";",next:"start"},{token:"string",regex:"\\$perl\\$",next:"perl-start"},{token:"string",regex:"\\$python\\$",next:"python-start"},{token:"string",regex:"\\$[\\w_0-9]*\\$$",next:"dollarSql"},{token:"string",regex:"\\$[\\w_0-9]*\\$",next:"dollarStatementString"}].concat(c),dollarSql:[{token:"comment",regex:"--.*$"},{token:"comment",merge:!0,regex:"\\/\\*",next:"commentDollarSql"},{token:"string",regex:"^\\$[\\w_0-9]*\\$",next:"statement"},{token:"string",regex:"\\$[\\w_0-9]*\\$",next:"dollarSqlString"}].concat(c),comment:[{token:"comment",regex:".*?\\*\\/",next:"start"},{token:"comment",merge:!0,regex:".+"}],commentStatement:[{token:"comment",regex:".*?\\*\\/",next:"statement"},{token:"comment",merge:!0,regex:".+"}],commentDollarSql:[{token:"comment",regex:".*?\\*\\/",next:"dollarSql"},{token:"comment",merge:!0,regex:".+"}],dollarStatementString:[{token:"string",regex:".*?\\$[\\w_0-9]*\\$",next:"statement"},{token:"string",merge:!0,regex:".+"}],dollarSqlString:[{token:"string",regex:".*?\\$[\\w_0-9]*\\$",next:"dollarSql"},{token:"string",merge:!0,regex:".+"}]},this.embedRules(f,"doc-",[f.getEndRule("start")]),this.embedRules(h,"perl-",[{token:"string",regex:"\\$perl\\$",next:"statement"}]),this.embedRules(i,"python-",[{token:"string",regex:"\\$python\\$",next:"statement"}])};d.inherits(j,g),b.PgsqlHighlightRules=j}),define("ace/mode/doc_comment_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(a,b,c){"use strict";var d=a("../lib/oop"),e=a("./text_highlight_rules").TextHighlightRules,f=function(){this.$rules={start:[{token:"comment.doc.tag",regex:"@[\\w\\d_]+"},{token:"comment.doc",merge:!0,regex:"\\s+"},{token:"comment.doc",merge:!0,regex:"TODO"},{token:"comment.doc",merge:!0,regex:"[^@\\*]+"},{token:"comment.doc",merge:!0,regex:"."}]}};d.inherits(f,e),f.getStartRule=function(a){return{token:"comment.doc",merge:!0,regex:"\\/\\*(?=\\*)",next:a}},f.getEndRule=function(a){return{token:"comment.doc",merge:!0,regex:"\\*\\/",next:a}},b.DocCommentHighlightRules=f}),define("ace/mode/perl_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text_highlight_rules"],function(a,b,c){"use strict";var d=a("../lib/oop"),e=a("../lib/lang"),f=a("./text_highlight_rules").TextHighlightRules,g=function(){var a=e.arrayToMap("base|constant|continue|else|elsif|for|foreach|format|goto|if|last|local|my|next|no|package|parent|redo|require|scalar|sub|unless|until|while|use|vars".split("|")),b=e.arrayToMap("ARGV|ENV|INC|SIG".split("|")),c=e.arrayToMap("getprotobynumber|getprotobyname|getservbyname|gethostbyaddr|gethostbyname|getservbyport|getnetbyaddr|getnetbyname|getsockname|getpeername|setpriority|getprotoent|setprotoent|getpriority|endprotoent|getservent|setservent|endservent|sethostent|socketpair|getsockopt|gethostent|endhostent|setsockopt|setnetent|quotemeta|localtime|prototype|getnetent|endnetent|rewinddir|wantarray|getpwuid|closedir|getlogin|readlink|endgrent|getgrgid|getgrnam|shmwrite|shutdown|readline|endpwent|setgrent|readpipe|formline|truncate|dbmclose|syswrite|setpwent|getpwnam|getgrent|getpwent|ucfirst|sysread|setpgrp|shmread|sysseek|sysopen|telldir|defined|opendir|connect|lcfirst|getppid|binmode|syscall|sprintf|getpgrp|readdir|seekdir|waitpid|reverse|unshift|symlink|dbmopen|semget|msgrcv|rename|listen|chroot|msgsnd|shmctl|accept|unpack|exists|fileno|shmget|system|unlink|printf|gmtime|msgctl|semctl|values|rindex|substr|splice|length|msgget|select|socket|return|caller|delete|alarm|ioctl|index|undef|lstat|times|srand|chown|fcntl|close|write|umask|rmdir|study|sleep|chomp|untie|print|utime|mkdir|atan2|split|crypt|flock|chmod|BEGIN|bless|chdir|semop|shift|reset|link|stat|chop|grep|fork|dump|join|open|tell|pipe|exit|glob|warn|each|bind|sort|pack|eval|push|keys|getc|kill|seek|sqrt|send|wait|rand|tied|read|time|exec|recv|eof|chr|int|ord|exp|pos|pop|sin|log|abs|oct|hex|tie|cos|vec|END|ref|map|die|uc|lc|do".split("|"));this.$rules={start:[{token:"comment",regex:"#.*$"},{token:"string.regexp",regex:"[/](?:(?:\\[(?:\\\\]|[^\\]])+\\])|(?:\\\\/|[^\\]/]))*[/]\\w*\\s*(?=[).,;]|$)"},{token:"string",regex:'["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]'},{token:"string",merge:!0,regex:'["].*\\\\$',next:"qqstring"},{token:"string",regex:"['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"},{token:"string",merge:!0,regex:"['].*\\\\$",next:"qstring"},{token:"constant.numeric",regex:"0x[0-9a-fA-F]+\\b"},{token:"constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:function(d){return a.hasOwnProperty(d)?"keyword":b.hasOwnProperty(d)?"constant.language":c.hasOwnProperty(d)?"support.function":"identifier"},regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"},{token:"keyword.operator",regex:"\\.\\.\\.|\\|\\|=|>>=|<<=|<=>|&&=|=>|!~|\\^=|&=|\\|=|\\.=|x=|%=|\\/=|\\*=|\\-=|\\+=|=~|\\*\\*|\\-\\-|\\.\\.|\\|\\||&&|\\+\\+|\\->|!=|==|>=|<=|>>|<<|,|=|\\?\\:|\\^|\\||x|%|\\/|\\*|<|&|\\\\|~|!|>|\\.|\\-|\\+|\\-C|\\-b|\\-S|\\-u|\\-t|\\-p|\\-l|\\-d|\\-f|\\-g|\\-s|\\-z|\\-k|\\-e|\\-O|\\-T|\\-B|\\-M|\\-A|\\-X|\\-W|\\-c|\\-R|\\-o|\\-x|\\-w|\\-r|\\b(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|xor)"},{token:"lparen",regex:"[[({]"},{token:"rparen",regex:"[\\])}]"},{token:"text",regex:"\\s+"}],qqstring:[{token:"string",regex:'(?:(?:\\\\.)|(?:[^"\\\\]))*?"',next:"start"},{token:"string",merge:!0,regex:".+"}],qstring:[{token:"string",regex:"(?:(?:\\\\.)|(?:[^'\\\\]))*?'",next:"start"},{token:"string",merge:!0,regex:".+"}]}};d.inherits(g,f),b.PerlHighlightRules=g}),define("ace/mode/python_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text_highlight_rules"],function(a,b,c){"use strict";var d=a("../lib/oop"),e=a("../lib/lang"),f=a("./text_highlight_rules").TextHighlightRules,g=function(){var a=e.arrayToMap("and|as|assert|break|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|not|or|pass|print|raise|return|try|while|with|yield".split("|")),b=e.arrayToMap("True|False|None|NotImplemented|Ellipsis|__debug__".split("|")),c=e.arrayToMap("abs|divmod|input|open|staticmethod|all|enumerate|int|ord|str|any|eval|isinstance|pow|sum|basestring|execfile|issubclass|print|super|binfile|iter|property|tuple|bool|filter|len|range|type|bytearray|float|list|raw_input|unichr|callable|format|locals|reduce|unicode|chr|frozenset|long|reload|vars|classmethod|getattr|map|repr|xrange|cmp|globals|max|reversed|zip|compile|hasattr|memoryview|round|__import__|complex|hash|min|set|apply|delattr|help|next|setattr|buffer|dict|hex|object|slice|coerce|dir|id|oct|sorted|intern".split("|")),d=e.arrayToMap("".split("|")),f="(?:r|u|ur|R|U|UR|Ur|uR)?",g="(?:(?:[1-9]\\d*)|(?:0))",h="(?:0[oO]?[0-7]+)",i="(?:0[xX][\\dA-Fa-f]+)",j="(?:0[bB][01]+)",k="(?:"+g+"|"+h+"|"+i+"|"+j+")",l="(?:[eE][+-]?\\d+)",m="(?:\\.\\d+)",n="(?:\\d+)",o="(?:(?:"+n+"?"+m+")|(?:"+n+"\\.))",p="(?:(?:"+o+"|"+n+")"+l+")",q="(?:"+p+"|"+o+")";this.$rules={start:[{token:"comment",regex:"#.*$"},{token:"string",regex:f+'"{3}(?:[^\\\\]|\\\\.)*?"{3}'},{token:"string",merge:!0,regex:f+'"{3}.*$',next:"qqstring"},{token:"string",regex:f+'"(?:[^\\\\]|\\\\.)*?"'},{token:"string",regex:f+"'{3}(?:[^\\\\]|\\\\.)*?'{3}"},{token:"string",merge:!0,regex:f+"'{3}.*$",next:"qstring"},{token:"string",regex:f+"'(?:[^\\\\]|\\\\.)*?'"},{token:"constant.numeric",regex:"(?:"+q+"|\\d+)[jJ]\\b"},{token:"constant.numeric",regex:q},{token:"constant.numeric",regex:k+"[lL]\\b"},{token:"constant.numeric",regex:k+"\\b"},{token:function(e){return a.hasOwnProperty(e)?"keyword":b.hasOwnProperty(e)?"constant.language":d.hasOwnProperty(e)?"invalid.illegal":c.hasOwnProperty(e)?"support.function":e=="debugger"?"invalid.deprecated":"identifier"},regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"},{token:"keyword.operator",regex:"\\+|\\-|\\*|\\*\\*|\\/|\\/\\/|%|<<|>>|&|\\||\\^|~|<|>|<=|=>|==|!=|<>|="},{token:"lparen.paren",regex:"[\\[\\(\\{]"},{token:"paren.rparen",regex:"[\\]\\)\\}]"},{token:"text",regex:"\\s+"}],qqstring:[{token:"string",regex:'(?:[^\\\\]|\\\\.)*?"{3}',next:"start"},{token:"string",merge:!0,regex:".+"}],qstring:[{token:"string",regex:"(?:[^\\\\]|\\\\.)*?'{3}",next:"start"},{token:"string",merge:!0,regex:".+"}]}};d.inherits(g,f),b.PythonHighlightRules=g})
|
1
|
+
/* ***** BEGIN LICENSE BLOCK *****
|
2
|
+
* The Original Code is Ajax.org Code Editor (ACE).
|
3
|
+
*
|
4
|
+
* Contributor(s):
|
5
|
+
* Jonathan Camile <jonathan.camile AT gmail DOT com>
|
6
|
+
*
|
7
|
+
* Alternatively, the contents of this file may be used under the terms of
|
8
|
+
* either the GNU General Public License Version 2 or later (the "GPL"), or
|
9
|
+
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
10
|
+
* in which case the provisions of the GPL or the LGPL are applicable instead
|
11
|
+
* of those above. If you wish to allow use of your version of this file only
|
12
|
+
* under the terms of either the GPL or the LGPL, and not to allow others to
|
13
|
+
* use your version of this file under the terms of the MPL, indicate your
|
14
|
+
* decision by deleting the provisions above and replace them with the notice
|
15
|
+
* and other provisions required by the GPL or the LGPL. If you do not delete
|
16
|
+
* the provisions above, a recipient may use your version of this file under
|
17
|
+
* the terms of any one of the MPL, the GPL or the LGPL.
|
18
|
+
*
|
19
|
+
* ***** END LICENSE BLOCK ***** */
|
20
|
+
|
21
|
+
define('ace/mode/pgsql', ['require', 'exports', 'module' , 'ace/lib/oop', 'ace/mode/text', 'ace/tokenizer', 'ace/mode/pgsql_highlight_rules', 'ace/range'], function(require, exports, module) {
|
22
|
+
|
23
|
+
var oop = require("ace/lib/oop");
|
24
|
+
var TextMode = require("ace/mode/text").Mode;
|
25
|
+
var Tokenizer = require("ace/tokenizer").Tokenizer;
|
26
|
+
var PgsqlHighlightRules = require("ace/mode/pgsql_highlight_rules").PgsqlHighlightRules;
|
27
|
+
var Range = require("ace/range").Range;
|
28
|
+
// var EditSession = require("ace/edit_session").EditSession;
|
29
|
+
|
30
|
+
var Mode = function() {
|
31
|
+
this.$tokenizer = new Tokenizer(new PgsqlHighlightRules().getRules());
|
32
|
+
};
|
33
|
+
oop.inherits(Mode, TextMode);
|
34
|
+
|
35
|
+
(function() {
|
36
|
+
|
37
|
+
this.toggleCommentLines = function(state, doc, startRow, endRow) {
|
38
|
+
var outdent = true;
|
39
|
+
// var outentedRows = [];
|
40
|
+
var re = /^(\s*)--/;
|
41
|
+
|
42
|
+
for (var i=startRow; i<= endRow; i++) {
|
43
|
+
if (!re.test(doc.getLine(i))) {
|
44
|
+
outdent = false;
|
45
|
+
break;
|
46
|
+
}
|
47
|
+
}
|
48
|
+
|
49
|
+
if (outdent) {
|
50
|
+
var deleteRange = new Range(0, 0, 0, 0);
|
51
|
+
for (var i=startRow; i<= endRow; i++)
|
52
|
+
{
|
53
|
+
var line = doc.getLine(i);
|
54
|
+
var m = line.match(re);
|
55
|
+
deleteRange.start.row = i;
|
56
|
+
deleteRange.end.row = i;
|
57
|
+
deleteRange.end.column = m[0].length;
|
58
|
+
doc.replace(deleteRange, m[1]);
|
59
|
+
}
|
60
|
+
}
|
61
|
+
else {
|
62
|
+
doc.indentRows(startRow, endRow, "--");
|
63
|
+
}
|
64
|
+
};
|
65
|
+
|
66
|
+
|
67
|
+
this.getNextLineIndent = function(state, line, tab) {
|
68
|
+
if (state == "start" || state == "keyword.statementEnd") {
|
69
|
+
return "";
|
70
|
+
} else {
|
71
|
+
return this.$getIndent(line); // Keep whatever indent the previous line has
|
72
|
+
}
|
73
|
+
}
|
74
|
+
|
75
|
+
}).call(Mode.prototype);
|
76
|
+
|
77
|
+
exports.Mode = Mode;
|
78
|
+
});
|
79
|
+
|
80
|
+
|
81
|
+
define('ace/mode/pgsql_highlight_rules', ['require', 'exports', 'module' , 'ace/lib/oop', 'ace/lib/lang', 'ace/mode/doc_comment_highlight_rules', 'ace/mode/text_highlight_rules', 'ace/mode/perl_highlight_rules', 'ace/mode/python_highlight_rules'], function(require, exports, module) {
|
82
|
+
|
83
|
+
var oop = require("ace/lib/oop");
|
84
|
+
var lang = require("ace/lib/lang");
|
85
|
+
var DocCommentHighlightRules = require("./doc_comment_highlight_rules").DocCommentHighlightRules;
|
86
|
+
var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
|
87
|
+
// Supporting perl and python for now -- both in pg core and ace
|
88
|
+
var PerlHighlightRules = require("./perl_highlight_rules").PerlHighlightRules;
|
89
|
+
var PythonHighlightRules = require("./python_highlight_rules").PythonHighlightRules;
|
90
|
+
|
91
|
+
var PgsqlHighlightRules = function() {
|
92
|
+
|
93
|
+
// Keywords, functions, operators last updated for pg 9.1.
|
94
|
+
var keywords = lang.arrayToMap(
|
95
|
+
("abort|absolute|abstime|access|aclitem|action|add|admin|after|aggregate|all|also|alter|always|" +
|
96
|
+
"analyse|analyze|and|any|anyarray|anyelement|anyenum|anynonarray|array|as|asc|assertion|" +
|
97
|
+
"assignment|asymmetric|at|attribute|authorization|backward|before|begin|between|bigint|" +
|
98
|
+
"binary|bit|bool|boolean|both|box|bpchar|by|bytea|cache|called|cascade|cascaded|case|cast|" +
|
99
|
+
"catalog|chain|char|character|characteristics|check|checkpoint|cid|cidr|circle|class|close|" +
|
100
|
+
"cluster|coalesce|collate|collation|column|comment|comments|commit|committed|concurrently|" +
|
101
|
+
"configuration|connection|constraint|constraints|content|continue|conversion|copy|cost|" +
|
102
|
+
"create|cross|cstring|csv|current|current_catalog|current_date|current_role|" +
|
103
|
+
"current_schema|current_time|current_timestamp|current_user|cursor|cycle|data|database|" +
|
104
|
+
"date|day|deallocate|dec|decimal|declare|default|defaults|deferrable|deferred|definer|delete|" +
|
105
|
+
"delimiter|delimiters|desc|dictionary|disable|discard|distinct|do|document|domain|double|" +
|
106
|
+
"drop|each|else|enable|encoding|encrypted|end|enum|escape|except|exclude|excluding|exclusive|" +
|
107
|
+
"execute|exists|explain|extension|external|extract|false|family|fdw_handler|fetch|first|" +
|
108
|
+
"float|float4|float8|following|for|force|foreign|forward|freeze|from|full|function|functions|" +
|
109
|
+
"global|grant|granted|greatest|group|gtsvector|handler|having|header|hold|hour|identity|if|" +
|
110
|
+
"ilike|immediate|immutable|implicit|in|including|increment|index|indexes|inet|inherit|" +
|
111
|
+
"inherits|initially|inline|inner|inout|input|insensitive|insert|instead|int|int2|int2vector|" +
|
112
|
+
"int4|int8|integer|internal|intersect|interval|into|invoker|is|isnull|isolation|join|key|label|" +
|
113
|
+
"language|language_handler|large|last|lc_collate|lc_ctype|leading|least|left|level|like|" +
|
114
|
+
"limit|line|listen|load|local|localtime|localtimestamp|location|lock|lseg|macaddr|mapping|" +
|
115
|
+
"match|maxvalue|minute|minvalue|mode|money|month|move|name|names|national|natural|nchar|next|no|" +
|
116
|
+
"none|not|nothing|notify|notnull|nowait|null|nullif|nulls|numeric|object|of|off|offset|oid|oids|" +
|
117
|
+
"oidvector|on|only|opaque|operator|option|options|or|order|out|outer|over|overlaps|overlay|" +
|
118
|
+
"owned|owner|parser|partial|partition|passing|password|path|pg_attribute|pg_auth_members|" +
|
119
|
+
"pg_authid|pg_class|pg_database|pg_node_tree|pg_proc|pg_type|placing|plans|point|polygon|" +
|
120
|
+
"position|preceding|precision|prepare|prepared|preserve|primary|prior|privileges|" +
|
121
|
+
"procedural|procedure|quote|range|read|real|reassign|recheck|record|recursive|ref|refcursor|" +
|
122
|
+
"references|regclass|regconfig|regdictionary|regoper|regoperator|regproc|regprocedure|" +
|
123
|
+
"regtype|reindex|relative|release|reltime|rename|repeatable|replace|replica|reset|restart|" +
|
124
|
+
"restrict|returning|returns|revoke|right|role|rollback|row|rows|rule|savepoint|schema|scroll|" +
|
125
|
+
"search|second|security|select|sequence|sequences|serializable|server|session|session_user|" +
|
126
|
+
"set|setof|share|show|similar|simple|smallint|smgr|some|stable|standalone|start|statement|" +
|
127
|
+
"statistics|stdin|stdout|storage|strict|strip|substring|symmetric|sysid|system|table|tables|" +
|
128
|
+
"tablespace|temp|template|temporary|text|then|tid|time|timestamp|timestamptz|timetz|" +
|
129
|
+
"tinterval|to|trailing|transaction|treat|trigger|trim|true|truncate|trusted|tsquery|tsvector|" +
|
130
|
+
"txid_snapshot|type|unbounded|uncommitted|unencrypted|union|unique|unknown|unlisten|" +
|
131
|
+
"unlogged|until|update|user|using|uuid|vacuum|valid|validate|validator|value|values|varbit|" +
|
132
|
+
"varchar|variadic|varying|verbose|version|view|void|volatile|when|where|whitespace|window|" +
|
133
|
+
"with|without|work|wrapper|write|xid|xml|xmlattributes|xmlconcat|xmlelement|xmlexists|" +
|
134
|
+
"xmlforest|xmlparse|xmlpi|xmlroot|xmlserialize|year|yes|zone").split("|")
|
135
|
+
);
|
136
|
+
|
137
|
+
|
138
|
+
var builtinFunctions = lang.arrayToMap(
|
139
|
+
("RI_FKey_cascade_del|RI_FKey_cascade_upd|RI_FKey_check_ins|RI_FKey_check_upd|" +
|
140
|
+
"RI_FKey_noaction_del|RI_FKey_noaction_upd|RI_FKey_restrict_del|RI_FKey_restrict_upd|" +
|
141
|
+
"RI_FKey_setdefault_del|RI_FKey_setdefault_upd|RI_FKey_setnull_del|" +
|
142
|
+
"RI_FKey_setnull_upd|abbrev|abs|abstime|abstimeeq|abstimege|abstimegt|abstimein|abstimele|" +
|
143
|
+
"abstimelt|abstimene|abstimeout|abstimerecv|abstimesend|aclcontains|aclexplode|aclinsert|" +
|
144
|
+
"aclitemeq|aclitemin|aclitemout|aclremove|acos|age|any_in|any_out|anyarray_in|anyarray_out|" +
|
145
|
+
"anyarray_recv|anyarray_send|anyelement_in|anyelement_out|anyenum_in|anyenum_out|" +
|
146
|
+
"anynonarray_in|anynonarray_out|anytextcat|area|areajoinsel|areasel|array_agg|" +
|
147
|
+
"array_agg_finalfn|array_agg_transfn|array_append|array_cat|array_dims|array_eq|" +
|
148
|
+
"array_fill|array_ge|array_gt|array_in|array_larger|array_le|array_length|array_lower|" +
|
149
|
+
"array_lt|array_ndims|array_ne|array_out|array_prepend|array_recv|array_send|" +
|
150
|
+
"array_smaller|array_to_string|array_upper|arraycontained|arraycontains|arrayoverlap|" +
|
151
|
+
"ascii|ascii_to_mic|ascii_to_utf8|asin|atan|atan2|avg|big5_to_euc_tw|big5_to_mic|" +
|
152
|
+
"big5_to_utf8|bit_and|bit_in|bit_length|bit_or|bit_out|bit_recv|bit_send|bitand|bitcat|" +
|
153
|
+
"bitcmp|biteq|bitge|bitgt|bitle|bitlt|bitne|bitnot|bitor|bitshiftleft|bitshiftright|" +
|
154
|
+
"bittypmodin|bittypmodout|bitxor|bool|bool_and|bool_or|booland_statefunc|booleq|boolge|" +
|
155
|
+
"boolgt|boolin|boolle|boollt|boolne|boolor_statefunc|boolout|boolrecv|boolsend|box|" +
|
156
|
+
"box_above|box_above_eq|box_add|box_below|box_below_eq|box_center|box_contain|" +
|
157
|
+
"box_contain_pt|box_contained|box_distance|box_div|box_eq|box_ge|box_gt|box_in|" +
|
158
|
+
"box_intersect|box_le|box_left|box_lt|box_mul|box_out|box_overabove|box_overbelow|" +
|
159
|
+
"box_overlap|box_overleft|box_overright|box_recv|box_right|box_same|box_send|box_sub|" +
|
160
|
+
"bpchar_larger|bpchar_pattern_ge|bpchar_pattern_gt|bpchar_pattern_le|" +
|
161
|
+
"bpchar_pattern_lt|bpchar_smaller|bpcharcmp|bpchareq|bpcharge|bpchargt|bpchariclike|" +
|
162
|
+
"bpcharicnlike|bpcharicregexeq|bpcharicregexne|bpcharin|bpcharle|bpcharlike|bpcharlt|" +
|
163
|
+
"bpcharne|bpcharnlike|bpcharout|bpcharrecv|bpcharregexeq|bpcharregexne|bpcharsend|" +
|
164
|
+
"bpchartypmodin|bpchartypmodout|broadcast|btabstimecmp|btarraycmp|btbeginscan|btboolcmp|" +
|
165
|
+
"btbpchar_pattern_cmp|btbuild|btbuildempty|btbulkdelete|btcharcmp|btcostestimate|" +
|
166
|
+
"btendscan|btfloat48cmp|btfloat4cmp|btfloat84cmp|btfloat8cmp|btgetbitmap|btgettuple|" +
|
167
|
+
"btinsert|btint24cmp|btint28cmp|btint2cmp|btint42cmp|btint48cmp|btint4cmp|btint82cmp|" +
|
168
|
+
"btint84cmp|btint8cmp|btmarkpos|btnamecmp|btoidcmp|btoidvectorcmp|btoptions|btrecordcmp|" +
|
169
|
+
"btreltimecmp|btrescan|btrestrpos|btrim|bttext_pattern_cmp|bttextcmp|bttidcmp|" +
|
170
|
+
"bttintervalcmp|btvacuumcleanup|byteacat|byteacmp|byteaeq|byteage|byteagt|byteain|byteale|" +
|
171
|
+
"bytealike|bytealt|byteane|byteanlike|byteaout|bytearecv|byteasend|cash_cmp|cash_div_cash|" +
|
172
|
+
"cash_div_flt4|cash_div_flt8|cash_div_int2|cash_div_int4|cash_eq|cash_ge|cash_gt|cash_in|" +
|
173
|
+
"cash_le|cash_lt|cash_mi|cash_mul_flt4|cash_mul_flt8|cash_mul_int2|cash_mul_int4|cash_ne|" +
|
174
|
+
"cash_out|cash_pl|cash_recv|cash_send|cash_words|cashlarger|cashsmaller|cbrt|ceil|ceiling|" +
|
175
|
+
"center|char|char_length|character_length|chareq|charge|chargt|charin|charle|charlt|charne|" +
|
176
|
+
"charout|charrecv|charsend|chr|cideq|cidin|cidout|cidr|cidr_in|cidr_out|cidr_recv|cidr_send|" +
|
177
|
+
"cidrecv|cidsend|circle|circle_above|circle_add_pt|circle_below|circle_center|" +
|
178
|
+
"circle_contain|circle_contain_pt|circle_contained|circle_distance|circle_div_pt|" +
|
179
|
+
"circle_eq|circle_ge|circle_gt|circle_in|circle_le|circle_left|circle_lt|circle_mul_pt|" +
|
180
|
+
"circle_ne|circle_out|circle_overabove|circle_overbelow|circle_overlap|circle_overleft|" +
|
181
|
+
"circle_overright|circle_recv|circle_right|circle_same|circle_send|circle_sub_pt|" +
|
182
|
+
"clock_timestamp|close_lb|close_ls|close_lseg|close_pb|close_pl|close_ps|close_sb|" +
|
183
|
+
"close_sl|col_description|concat|concat_ws|contjoinsel|contsel|convert|convert_from|" +
|
184
|
+
"convert_to|corr|cos|cot|count|covar_pop|covar_samp|cstring_in|cstring_out|cstring_recv|" +
|
185
|
+
"cstring_send|cume_dist|current_database|current_query|current_schema|current_schemas|" +
|
186
|
+
"current_setting|current_user|currtid|currtid2|currval|cursor_to_xml|" +
|
187
|
+
"cursor_to_xmlschema|database_to_xml|database_to_xml_and_xmlschema|" +
|
188
|
+
"database_to_xmlschema|date|date_cmp|date_cmp_timestamp|date_cmp_timestamptz|date_eq|" +
|
189
|
+
"date_eq_timestamp|date_eq_timestamptz|date_ge|date_ge_timestamp|date_ge_timestamptz|" +
|
190
|
+
"date_gt|date_gt_timestamp|date_gt_timestamptz|date_in|date_larger|date_le|" +
|
191
|
+
"date_le_timestamp|date_le_timestamptz|date_lt|date_lt_timestamp|date_lt_timestamptz|" +
|
192
|
+
"date_mi|date_mi_interval|date_mii|date_ne|date_ne_timestamp|date_ne_timestamptz|" +
|
193
|
+
"date_out|date_part|date_pl_interval|date_pli|date_recv|date_send|date_smaller|" +
|
194
|
+
"date_trunc|datetime_pl|datetimetz_pl|dcbrt|decode|degrees|dense_rank|dexp|diagonal|" +
|
195
|
+
"diameter|dispell_init|dispell_lexize|dist_cpoly|dist_lb|dist_pb|dist_pc|dist_pl|" +
|
196
|
+
"dist_ppath|dist_ps|dist_sb|dist_sl|div|dlog1|dlog10|domain_in|domain_recv|dpow|dround|" +
|
197
|
+
"dsimple_init|dsimple_lexize|dsnowball_init|dsnowball_lexize|dsqrt|dsynonym_init|" +
|
198
|
+
"dsynonym_lexize|dtrunc|encode|enum_cmp|enum_eq|enum_first|enum_ge|enum_gt|enum_in|" +
|
199
|
+
"enum_larger|enum_last|enum_le|enum_lt|enum_ne|enum_out|enum_range|enum_recv|enum_send|" +
|
200
|
+
"enum_smaller|eqjoinsel|eqsel|euc_cn_to_mic|euc_cn_to_utf8|" +
|
201
|
+
"euc_jis_2004_to_shift_jis_2004|euc_jis_2004_to_utf8|euc_jp_to_mic|euc_jp_to_sjis|" +
|
202
|
+
"euc_jp_to_utf8|euc_kr_to_mic|euc_kr_to_utf8|euc_tw_to_big5|euc_tw_to_mic|" +
|
203
|
+
"euc_tw_to_utf8|every|exp|factorial|family|fdw_handler_in|fdw_handler_out|first_value|" +
|
204
|
+
"float4|float48div|float48eq|float48ge|float48gt|float48le|float48lt|float48mi|float48mul|" +
|
205
|
+
"float48ne|float48pl|float4_accum|float4abs|float4div|float4eq|float4ge|float4gt|float4in|" +
|
206
|
+
"float4larger|float4le|float4lt|float4mi|float4mul|float4ne|float4out|float4pl|float4recv|" +
|
207
|
+
"float4send|float4smaller|float4um|float4up|float8|float84div|float84eq|float84ge|" +
|
208
|
+
"float84gt|float84le|float84lt|float84mi|float84mul|float84ne|float84pl|float8_accum|" +
|
209
|
+
"float8_avg|float8_corr|float8_covar_pop|float8_covar_samp|float8_regr_accum|" +
|
210
|
+
"float8_regr_avgx|float8_regr_avgy|float8_regr_intercept|float8_regr_r2|" +
|
211
|
+
"float8_regr_slope|float8_regr_sxx|float8_regr_sxy|float8_regr_syy|float8_stddev_pop|" +
|
212
|
+
"float8_stddev_samp|float8_var_pop|float8_var_samp|float8abs|float8div|float8eq|" +
|
213
|
+
"float8ge|float8gt|float8in|float8larger|float8le|float8lt|float8mi|float8mul|float8ne|" +
|
214
|
+
"float8out|float8pl|float8recv|float8send|float8smaller|float8um|float8up|floor|" +
|
215
|
+
"flt4_mul_cash|flt8_mul_cash|fmgr_c_validator|fmgr_internal_validator|" +
|
216
|
+
"fmgr_sql_validator|format|format_type|gb18030_to_utf8|gbk_to_utf8|generate_series|" +
|
217
|
+
"generate_subscripts|get_bit|get_byte|get_current_ts_config|getdatabaseencoding|" +
|
218
|
+
"getpgusername|gin_cmp_prefix|gin_cmp_tslexeme|gin_extract_tsquery|" +
|
219
|
+
"gin_extract_tsvector|gin_tsquery_consistent|ginarrayconsistent|ginarrayextract|" +
|
220
|
+
"ginbeginscan|ginbuild|ginbuildempty|ginbulkdelete|gincostestimate|ginendscan|" +
|
221
|
+
"gingetbitmap|gininsert|ginmarkpos|ginoptions|ginqueryarrayextract|ginrescan|" +
|
222
|
+
"ginrestrpos|ginvacuumcleanup|gist_box_compress|gist_box_consistent|" +
|
223
|
+
"gist_box_decompress|gist_box_penalty|gist_box_picksplit|gist_box_same|gist_box_union|" +
|
224
|
+
"gist_circle_compress|gist_circle_consistent|gist_point_compress|" +
|
225
|
+
"gist_point_consistent|gist_point_distance|gist_poly_compress|gist_poly_consistent|" +
|
226
|
+
"gistbeginscan|gistbuild|gistbuildempty|gistbulkdelete|gistcostestimate|gistendscan|" +
|
227
|
+
"gistgetbitmap|gistgettuple|gistinsert|gistmarkpos|gistoptions|gistrescan|gistrestrpos|" +
|
228
|
+
"gistvacuumcleanup|gtsquery_compress|gtsquery_consistent|gtsquery_decompress|" +
|
229
|
+
"gtsquery_penalty|gtsquery_picksplit|gtsquery_same|gtsquery_union|gtsvector_compress|" +
|
230
|
+
"gtsvector_consistent|gtsvector_decompress|gtsvector_penalty|gtsvector_picksplit|" +
|
231
|
+
"gtsvector_same|gtsvector_union|gtsvectorin|gtsvectorout|has_any_column_privilege|" +
|
232
|
+
"has_column_privilege|has_database_privilege|has_foreign_data_wrapper_privilege|" +
|
233
|
+
"has_function_privilege|has_language_privilege|has_schema_privilege|" +
|
234
|
+
"has_sequence_privilege|has_server_privilege|has_table_privilege|" +
|
235
|
+
"has_tablespace_privilege|hash_aclitem|hash_array|hash_numeric|hashbeginscan|" +
|
236
|
+
"hashbpchar|hashbuild|hashbuildempty|hashbulkdelete|hashchar|hashcostestimate|" +
|
237
|
+
"hashendscan|hashenum|hashfloat4|hashfloat8|hashgetbitmap|hashgettuple|hashinet|" +
|
238
|
+
"hashinsert|hashint2|hashint2vector|hashint4|hashint8|hashmacaddr|hashmarkpos|hashname|" +
|
239
|
+
"hashoid|hashoidvector|hashoptions|hashrescan|hashrestrpos|hashtext|hashvacuumcleanup|" +
|
240
|
+
"hashvarlena|height|host|hostmask|iclikejoinsel|iclikesel|icnlikejoinsel|icnlikesel|" +
|
241
|
+
"icregexeqjoinsel|icregexeqsel|icregexnejoinsel|icregexnesel|inet_client_addr|" +
|
242
|
+
"inet_client_port|inet_in|inet_out|inet_recv|inet_send|inet_server_addr|" +
|
243
|
+
"inet_server_port|inetand|inetmi|inetmi_int8|inetnot|inetor|inetpl|initcap|int2|int24div|" +
|
244
|
+
"int24eq|int24ge|int24gt|int24le|int24lt|int24mi|int24mul|int24ne|int24pl|int28div|int28eq|" +
|
245
|
+
"int28ge|int28gt|int28le|int28lt|int28mi|int28mul|int28ne|int28pl|int2_accum|" +
|
246
|
+
"int2_avg_accum|int2_mul_cash|int2_sum|int2abs|int2and|int2div|int2eq|int2ge|int2gt|int2in|" +
|
247
|
+
"int2larger|int2le|int2lt|int2mi|int2mod|int2mul|int2ne|int2not|int2or|int2out|int2pl|" +
|
248
|
+
"int2recv|int2send|int2shl|int2shr|int2smaller|int2um|int2up|int2vectoreq|int2vectorin|" +
|
249
|
+
"int2vectorout|int2vectorrecv|int2vectorsend|int2xor|int4|int42div|int42eq|int42ge|" +
|
250
|
+
"int42gt|int42le|int42lt|int42mi|int42mul|int42ne|int42pl|int48div|int48eq|int48ge|int48gt|" +
|
251
|
+
"int48le|int48lt|int48mi|int48mul|int48ne|int48pl|int4_accum|int4_avg_accum|int4_mul_cash|" +
|
252
|
+
"int4_sum|int4abs|int4and|int4div|int4eq|int4ge|int4gt|int4in|int4inc|int4larger|int4le|" +
|
253
|
+
"int4lt|int4mi|int4mod|int4mul|int4ne|int4not|int4or|int4out|int4pl|int4recv|int4send|" +
|
254
|
+
"int4shl|int4shr|int4smaller|int4um|int4up|int4xor|int8|int82div|int82eq|int82ge|int82gt|" +
|
255
|
+
"int82le|int82lt|int82mi|int82mul|int82ne|int82pl|int84div|int84eq|int84ge|int84gt|int84le|" +
|
256
|
+
"int84lt|int84mi|int84mul|int84ne|int84pl|int8_accum|int8_avg|int8_avg_accum|int8_sum|" +
|
257
|
+
"int8abs|int8and|int8div|int8eq|int8ge|int8gt|int8in|int8inc|int8inc_any|" +
|
258
|
+
"int8inc_float8_float8|int8larger|int8le|int8lt|int8mi|int8mod|int8mul|int8ne|int8not|" +
|
259
|
+
"int8or|int8out|int8pl|int8pl_inet|int8recv|int8send|int8shl|int8shr|int8smaller|int8um|" +
|
260
|
+
"int8up|int8xor|integer_pl_date|inter_lb|inter_sb|inter_sl|internal_in|internal_out|" +
|
261
|
+
"interval_accum|interval_avg|interval_cmp|interval_div|interval_eq|interval_ge|" +
|
262
|
+
"interval_gt|interval_hash|interval_in|interval_larger|interval_le|interval_lt|" +
|
263
|
+
"interval_mi|interval_mul|interval_ne|interval_out|interval_pl|interval_pl_date|" +
|
264
|
+
"interval_pl_time|interval_pl_timestamp|interval_pl_timestamptz|interval_pl_timetz|" +
|
265
|
+
"interval_recv|interval_send|interval_smaller|interval_um|intervaltypmodin|" +
|
266
|
+
"intervaltypmodout|intinterval|isclosed|isfinite|ishorizontal|iso8859_1_to_utf8|" +
|
267
|
+
"iso8859_to_utf8|iso_to_koi8r|iso_to_mic|iso_to_win1251|iso_to_win866|isopen|isparallel|" +
|
268
|
+
"isperp|isvertical|johab_to_utf8|justify_days|justify_hours|justify_interval|" +
|
269
|
+
"koi8r_to_iso|koi8r_to_mic|koi8r_to_utf8|koi8r_to_win1251|koi8r_to_win866|" +
|
270
|
+
"koi8u_to_utf8|lag|language_handler_in|language_handler_out|last_value|lastval|" +
|
271
|
+
"latin1_to_mic|latin2_to_mic|latin2_to_win1250|latin3_to_mic|latin4_to_mic|lead|left|" +
|
272
|
+
"length|like|like_escape|likejoinsel|likesel|line|line_distance|line_eq|line_horizontal|" +
|
273
|
+
"line_in|line_interpt|line_intersect|line_out|line_parallel|line_perp|line_recv|" +
|
274
|
+
"line_send|line_vertical|ln|lo_close|lo_creat|lo_create|lo_export|lo_import|lo_lseek|" +
|
275
|
+
"lo_open|lo_tell|lo_truncate|lo_unlink|log|loread|lower|lowrite|lpad|lseg|lseg_center|" +
|
276
|
+
"lseg_distance|lseg_eq|lseg_ge|lseg_gt|lseg_horizontal|lseg_in|lseg_interpt|" +
|
277
|
+
"lseg_intersect|lseg_le|lseg_length|lseg_lt|lseg_ne|lseg_out|lseg_parallel|lseg_perp|" +
|
278
|
+
"lseg_recv|lseg_send|lseg_vertical|ltrim|macaddr_cmp|macaddr_eq|macaddr_ge|macaddr_gt|" +
|
279
|
+
"macaddr_in|macaddr_le|macaddr_lt|macaddr_ne|macaddr_out|macaddr_recv|macaddr_send|" +
|
280
|
+
"makeaclitem|masklen|max|md5|mic_to_ascii|mic_to_big5|mic_to_euc_cn|mic_to_euc_jp|" +
|
281
|
+
"mic_to_euc_kr|mic_to_euc_tw|mic_to_iso|mic_to_koi8r|mic_to_latin1|mic_to_latin2|" +
|
282
|
+
"mic_to_latin3|mic_to_latin4|mic_to_sjis|mic_to_win1250|mic_to_win1251|mic_to_win866|" +
|
283
|
+
"min|mktinterval|mod|money|mul_d_interval|name|nameeq|namege|namegt|nameiclike|nameicnlike|" +
|
284
|
+
"nameicregexeq|nameicregexne|namein|namele|namelike|namelt|namene|namenlike|nameout|" +
|
285
|
+
"namerecv|nameregexeq|nameregexne|namesend|neqjoinsel|neqsel|netmask|network|network_cmp|" +
|
286
|
+
"network_eq|network_ge|network_gt|network_le|network_lt|network_ne|network_sub|" +
|
287
|
+
"network_subeq|network_sup|network_supeq|nextval|nlikejoinsel|nlikesel|notlike|now|" +
|
288
|
+
"npoints|nth_value|ntile|numeric_abs|numeric_accum|numeric_add|numeric_avg|" +
|
289
|
+
"numeric_avg_accum|numeric_cmp|numeric_div|numeric_div_trunc|numeric_eq|numeric_exp|" +
|
290
|
+
"numeric_fac|numeric_ge|numeric_gt|numeric_in|numeric_inc|numeric_larger|numeric_le|" +
|
291
|
+
"numeric_ln|numeric_log|numeric_lt|numeric_mod|numeric_mul|numeric_ne|numeric_out|" +
|
292
|
+
"numeric_power|numeric_recv|numeric_send|numeric_smaller|numeric_sqrt|" +
|
293
|
+
"numeric_stddev_pop|numeric_stddev_samp|numeric_sub|numeric_uminus|numeric_uplus|" +
|
294
|
+
"numeric_var_pop|numeric_var_samp|numerictypmodin|numerictypmodout|numnode|" +
|
295
|
+
"obj_description|octet_length|oid|oideq|oidge|oidgt|oidin|oidlarger|oidle|oidlt|oidne|oidout|" +
|
296
|
+
"oidrecv|oidsend|oidsmaller|oidvectoreq|oidvectorge|oidvectorgt|oidvectorin|oidvectorle|" +
|
297
|
+
"oidvectorlt|oidvectorne|oidvectorout|oidvectorrecv|oidvectorsend|oidvectortypes|on_pb|" +
|
298
|
+
"on_pl|on_ppath|on_ps|on_sb|on_sl|opaque_in|opaque_out|overlaps|overlay|path|path_add|" +
|
299
|
+
"path_add_pt|path_center|path_contain_pt|path_distance|path_div_pt|path_in|path_inter|" +
|
300
|
+
"path_length|path_mul_pt|path_n_eq|path_n_ge|path_n_gt|path_n_le|path_n_lt|path_npoints|" +
|
301
|
+
"path_out|path_recv|path_send|path_sub_pt|pclose|percent_rank|pg_advisory_lock|" +
|
302
|
+
"pg_advisory_lock_shared|pg_advisory_unlock|pg_advisory_unlock_all|" +
|
303
|
+
"pg_advisory_unlock_shared|pg_advisory_xact_lock|pg_advisory_xact_lock_shared|" +
|
304
|
+
"pg_available_extension_versions|pg_available_extensions|pg_backend_pid|" +
|
305
|
+
"pg_cancel_backend|pg_char_to_encoding|pg_client_encoding|pg_collation_is_visible|" +
|
306
|
+
"pg_column_size|pg_conf_load_time|pg_conversion_is_visible|pg_create_restore_point|" +
|
307
|
+
"pg_current_xlog_insert_location|pg_current_xlog_location|pg_cursor|pg_database_size|" +
|
308
|
+
"pg_describe_object|pg_encoding_max_length|pg_encoding_to_char|" +
|
309
|
+
"pg_extension_config_dump|pg_extension_update_paths|pg_function_is_visible|" +
|
310
|
+
"pg_get_constraintdef|pg_get_expr|pg_get_function_arguments|" +
|
311
|
+
"pg_get_function_identity_arguments|pg_get_function_result|pg_get_functiondef|" +
|
312
|
+
"pg_get_indexdef|pg_get_keywords|pg_get_ruledef|pg_get_serial_sequence|" +
|
313
|
+
"pg_get_triggerdef|pg_get_userbyid|pg_get_viewdef|pg_has_role|pg_indexes_size|" +
|
314
|
+
"pg_is_in_recovery|pg_is_other_temp_schema|pg_is_xlog_replay_paused|" +
|
315
|
+
"pg_last_xact_replay_timestamp|pg_last_xlog_receive_location|" +
|
316
|
+
"pg_last_xlog_replay_location|pg_listening_channels|pg_lock_status|pg_ls_dir|" +
|
317
|
+
"pg_my_temp_schema|pg_node_tree_in|pg_node_tree_out|pg_node_tree_recv|" +
|
318
|
+
"pg_node_tree_send|pg_notify|pg_opclass_is_visible|pg_operator_is_visible|" +
|
319
|
+
"pg_options_to_table|pg_postmaster_start_time|pg_prepared_statement|pg_prepared_xact|" +
|
320
|
+
"pg_read_binary_file|pg_read_file|pg_relation_filenode|pg_relation_filepath|" +
|
321
|
+
"pg_relation_size|pg_reload_conf|pg_rotate_logfile|pg_sequence_parameters|" +
|
322
|
+
"pg_show_all_settings|pg_size_pretty|pg_sleep|pg_start_backup|pg_stat_clear_snapshot|" +
|
323
|
+
"pg_stat_file|pg_stat_get_activity|pg_stat_get_analyze_count|" +
|
324
|
+
"pg_stat_get_autoanalyze_count|pg_stat_get_autovacuum_count|" +
|
325
|
+
"pg_stat_get_backend_activity|pg_stat_get_backend_activity_start|" +
|
326
|
+
"pg_stat_get_backend_client_addr|pg_stat_get_backend_client_port|" +
|
327
|
+
"pg_stat_get_backend_dbid|pg_stat_get_backend_idset|pg_stat_get_backend_pid|" +
|
328
|
+
"pg_stat_get_backend_start|pg_stat_get_backend_userid|pg_stat_get_backend_waiting|" +
|
329
|
+
"pg_stat_get_backend_xact_start|pg_stat_get_bgwriter_buf_written_checkpoints|" +
|
330
|
+
"pg_stat_get_bgwriter_buf_written_clean|pg_stat_get_bgwriter_maxwritten_clean|" +
|
331
|
+
"pg_stat_get_bgwriter_requested_checkpoints|pg_stat_get_bgwriter_stat_reset_time|" +
|
332
|
+
"pg_stat_get_bgwriter_timed_checkpoints|pg_stat_get_blocks_fetched|" +
|
333
|
+
"pg_stat_get_blocks_hit|pg_stat_get_buf_alloc|pg_stat_get_buf_fsync_backend|" +
|
334
|
+
"pg_stat_get_buf_written_backend|pg_stat_get_db_blocks_fetched|" +
|
335
|
+
"pg_stat_get_db_blocks_hit|pg_stat_get_db_conflict_all|" +
|
336
|
+
"pg_stat_get_db_conflict_bufferpin|pg_stat_get_db_conflict_lock|" +
|
337
|
+
"pg_stat_get_db_conflict_snapshot|pg_stat_get_db_conflict_startup_deadlock|" +
|
338
|
+
"pg_stat_get_db_conflict_tablespace|pg_stat_get_db_numbackends|" +
|
339
|
+
"pg_stat_get_db_stat_reset_time|pg_stat_get_db_tuples_deleted|" +
|
340
|
+
"pg_stat_get_db_tuples_fetched|pg_stat_get_db_tuples_inserted|" +
|
341
|
+
"pg_stat_get_db_tuples_returned|pg_stat_get_db_tuples_updated|" +
|
342
|
+
"pg_stat_get_db_xact_commit|pg_stat_get_db_xact_rollback|pg_stat_get_dead_tuples|" +
|
343
|
+
"pg_stat_get_function_calls|pg_stat_get_function_self_time|" +
|
344
|
+
"pg_stat_get_function_time|pg_stat_get_last_analyze_time|" +
|
345
|
+
"pg_stat_get_last_autoanalyze_time|pg_stat_get_last_autovacuum_time|" +
|
346
|
+
"pg_stat_get_last_vacuum_time|pg_stat_get_live_tuples|pg_stat_get_numscans|" +
|
347
|
+
"pg_stat_get_tuples_deleted|pg_stat_get_tuples_fetched|" +
|
348
|
+
"pg_stat_get_tuples_hot_updated|pg_stat_get_tuples_inserted|" +
|
349
|
+
"pg_stat_get_tuples_returned|pg_stat_get_tuples_updated|pg_stat_get_vacuum_count|" +
|
350
|
+
"pg_stat_get_wal_senders|pg_stat_get_xact_blocks_fetched|" +
|
351
|
+
"pg_stat_get_xact_blocks_hit|pg_stat_get_xact_function_calls|" +
|
352
|
+
"pg_stat_get_xact_function_self_time|pg_stat_get_xact_function_time|" +
|
353
|
+
"pg_stat_get_xact_numscans|pg_stat_get_xact_tuples_deleted|" +
|
354
|
+
"pg_stat_get_xact_tuples_fetched|pg_stat_get_xact_tuples_hot_updated|" +
|
355
|
+
"pg_stat_get_xact_tuples_inserted|pg_stat_get_xact_tuples_returned|" +
|
356
|
+
"pg_stat_get_xact_tuples_updated|pg_stat_reset|pg_stat_reset_shared|" +
|
357
|
+
"pg_stat_reset_single_function_counters|pg_stat_reset_single_table_counters|" +
|
358
|
+
"pg_stop_backup|pg_switch_xlog|pg_table_is_visible|pg_table_size|" +
|
359
|
+
"pg_tablespace_databases|pg_tablespace_size|pg_terminate_backend|pg_timezone_abbrevs|" +
|
360
|
+
"pg_timezone_names|pg_total_relation_size|pg_try_advisory_lock|" +
|
361
|
+
"pg_try_advisory_lock_shared|pg_try_advisory_xact_lock|" +
|
362
|
+
"pg_try_advisory_xact_lock_shared|pg_ts_config_is_visible|pg_ts_dict_is_visible|" +
|
363
|
+
"pg_ts_parser_is_visible|pg_ts_template_is_visible|pg_type_is_visible|pg_typeof|" +
|
364
|
+
"pg_xlog_replay_pause|pg_xlog_replay_resume|pg_xlogfile_name|pg_xlogfile_name_offset|" +
|
365
|
+
"pi|plainto_tsquery|plpgsql_call_handler|plpgsql_inline_handler|plpgsql_validator|" +
|
366
|
+
"point|point_above|point_add|point_below|point_distance|point_div|point_eq|point_horiz|" +
|
367
|
+
"point_in|point_left|point_mul|point_ne|point_out|point_recv|point_right|point_send|" +
|
368
|
+
"point_sub|point_vert|poly_above|poly_below|poly_center|poly_contain|poly_contain_pt|" +
|
369
|
+
"poly_contained|poly_distance|poly_in|poly_left|poly_npoints|poly_out|poly_overabove|" +
|
370
|
+
"poly_overbelow|poly_overlap|poly_overleft|poly_overright|poly_recv|poly_right|" +
|
371
|
+
"poly_same|poly_send|polygon|popen|position|positionjoinsel|positionsel|" +
|
372
|
+
"postgresql_fdw_validator|pow|power|prsd_end|prsd_headline|prsd_lextype|prsd_nexttoken|" +
|
373
|
+
"prsd_start|pt_contained_circle|pt_contained_poly|query_to_xml|" +
|
374
|
+
"query_to_xml_and_xmlschema|query_to_xmlschema|querytree|quote_ident|quote_literal|" +
|
375
|
+
"quote_nullable|radians|radius|random|rank|record_eq|record_ge|record_gt|record_in|" +
|
376
|
+
"record_le|record_lt|record_ne|record_out|record_recv|record_send|regclass|regclassin|" +
|
377
|
+
"regclassout|regclassrecv|regclasssend|regconfigin|regconfigout|regconfigrecv|" +
|
378
|
+
"regconfigsend|regdictionaryin|regdictionaryout|regdictionaryrecv|regdictionarysend|" +
|
379
|
+
"regexeqjoinsel|regexeqsel|regexnejoinsel|regexnesel|regexp_matches|regexp_replace|" +
|
380
|
+
"regexp_split_to_array|regexp_split_to_table|regoperatorin|regoperatorout|" +
|
381
|
+
"regoperatorrecv|regoperatorsend|regoperin|regoperout|regoperrecv|regopersend|" +
|
382
|
+
"regprocedurein|regprocedureout|regprocedurerecv|regproceduresend|regprocin|regprocout|" +
|
383
|
+
"regprocrecv|regprocsend|regr_avgx|regr_avgy|regr_count|regr_intercept|regr_r2|" +
|
384
|
+
"regr_slope|regr_sxx|regr_sxy|regr_syy|regtypein|regtypeout|regtyperecv|regtypesend|" +
|
385
|
+
"reltime|reltimeeq|reltimege|reltimegt|reltimein|reltimele|reltimelt|reltimene|reltimeout|" +
|
386
|
+
"reltimerecv|reltimesend|repeat|replace|reverse|right|round|row_number|rpad|rtrim|" +
|
387
|
+
"scalargtjoinsel|scalargtsel|scalarltjoinsel|scalarltsel|schema_to_xml|" +
|
388
|
+
"schema_to_xml_and_xmlschema|schema_to_xmlschema|session_user|set_bit|set_byte|" +
|
389
|
+
"set_config|set_masklen|setseed|setval|setweight|shell_in|shell_out|" +
|
390
|
+
"shift_jis_2004_to_euc_jis_2004|shift_jis_2004_to_utf8|shobj_description|sign|" +
|
391
|
+
"similar_escape|sin|sjis_to_euc_jp|sjis_to_mic|sjis_to_utf8|slope|smgreq|smgrin|smgrne|" +
|
392
|
+
"smgrout|split_part|sqrt|statement_timestamp|stddev|stddev_pop|stddev_samp|string_agg|" +
|
393
|
+
"string_agg_finalfn|string_agg_transfn|string_to_array|strip|strpos|substr|substring|sum|" +
|
394
|
+
"suppress_redundant_updates_trigger|table_to_xml|table_to_xml_and_xmlschema|" +
|
395
|
+
"table_to_xmlschema|tan|text|text_ge|text_gt|text_larger|text_le|text_lt|text_pattern_ge|" +
|
396
|
+
"text_pattern_gt|text_pattern_le|text_pattern_lt|text_smaller|textanycat|textcat|texteq|" +
|
397
|
+
"texticlike|texticnlike|texticregexeq|texticregexne|textin|textlen|textlike|textne|" +
|
398
|
+
"textnlike|textout|textrecv|textregexeq|textregexne|textsend|thesaurus_init|" +
|
399
|
+
"thesaurus_lexize|tideq|tidge|tidgt|tidin|tidlarger|tidle|tidlt|tidne|tidout|tidrecv|tidsend|" +
|
400
|
+
"tidsmaller|time_cmp|time_eq|time_ge|time_gt|time_hash|time_in|time_larger|time_le|time_lt|" +
|
401
|
+
"time_mi_interval|time_mi_time|time_ne|time_out|time_pl_interval|time_recv|time_send|" +
|
402
|
+
"time_smaller|timedate_pl|timemi|timenow|timeofday|timepl|timestamp_cmp|" +
|
403
|
+
"timestamp_cmp_date|timestamp_cmp_timestamptz|timestamp_eq|timestamp_eq_date|" +
|
404
|
+
"timestamp_eq_timestamptz|timestamp_ge|timestamp_ge_date|timestamp_ge_timestamptz|" +
|
405
|
+
"timestamp_gt|timestamp_gt_date|timestamp_gt_timestamptz|timestamp_hash|timestamp_in|" +
|
406
|
+
"timestamp_larger|timestamp_le|timestamp_le_date|timestamp_le_timestamptz|" +
|
407
|
+
"timestamp_lt|timestamp_lt_date|timestamp_lt_timestamptz|timestamp_mi|" +
|
408
|
+
"timestamp_mi_interval|timestamp_ne|timestamp_ne_date|timestamp_ne_timestamptz|" +
|
409
|
+
"timestamp_out|timestamp_pl_interval|timestamp_recv|timestamp_send|timestamp_smaller|" +
|
410
|
+
"timestamptypmodin|timestamptypmodout|timestamptz_cmp|timestamptz_cmp_date|" +
|
411
|
+
"timestamptz_cmp_timestamp|timestamptz_eq|timestamptz_eq_date|" +
|
412
|
+
"timestamptz_eq_timestamp|timestamptz_ge|timestamptz_ge_date|" +
|
413
|
+
"timestamptz_ge_timestamp|timestamptz_gt|timestamptz_gt_date|" +
|
414
|
+
"timestamptz_gt_timestamp|timestamptz_in|timestamptz_larger|timestamptz_le|" +
|
415
|
+
"timestamptz_le_date|timestamptz_le_timestamp|timestamptz_lt|timestamptz_lt_date|" +
|
416
|
+
"timestamptz_lt_timestamp|timestamptz_mi|timestamptz_mi_interval|timestamptz_ne|" +
|
417
|
+
"timestamptz_ne_date|timestamptz_ne_timestamp|timestamptz_out|" +
|
418
|
+
"timestamptz_pl_interval|timestamptz_recv|timestamptz_send|timestamptz_smaller|" +
|
419
|
+
"timestamptztypmodin|timestamptztypmodout|timetypmodin|timetypmodout|timetz_cmp|" +
|
420
|
+
"timetz_eq|timetz_ge|timetz_gt|timetz_hash|timetz_in|timetz_larger|timetz_le|timetz_lt|" +
|
421
|
+
"timetz_mi_interval|timetz_ne|timetz_out|timetz_pl_interval|timetz_recv|timetz_send|" +
|
422
|
+
"timetz_smaller|timetzdate_pl|timetztypmodin|timetztypmodout|timezone|tinterval|" +
|
423
|
+
"tintervalct|tintervalend|tintervaleq|tintervalge|tintervalgt|tintervalin|tintervalle|" +
|
424
|
+
"tintervalleneq|tintervallenge|tintervallengt|tintervallenle|tintervallenlt|" +
|
425
|
+
"tintervallenne|tintervallt|tintervalne|tintervalout|tintervalov|tintervalrecv|" +
|
426
|
+
"tintervalrel|tintervalsame|tintervalsend|tintervalstart|to_ascii|to_char|to_date|to_hex|" +
|
427
|
+
"to_number|to_timestamp|to_tsquery|to_tsvector|transaction_timestamp|translate|" +
|
428
|
+
"trigger_in|trigger_out|trunc|ts_debug|ts_headline|ts_lexize|ts_match_qv|ts_match_tq|" +
|
429
|
+
"ts_match_tt|ts_match_vq|ts_parse|ts_rank|ts_rank_cd|ts_rewrite|ts_stat|ts_token_type|" +
|
430
|
+
"ts_typanalyze|tsmatchjoinsel|tsmatchsel|tsq_mcontained|tsq_mcontains|tsquery_and|" +
|
431
|
+
"tsquery_cmp|tsquery_eq|tsquery_ge|tsquery_gt|tsquery_le|tsquery_lt|tsquery_ne|" +
|
432
|
+
"tsquery_not|tsquery_or|tsqueryin|tsqueryout|tsqueryrecv|tsquerysend|tsvector_cmp|" +
|
433
|
+
"tsvector_concat|tsvector_eq|tsvector_ge|tsvector_gt|tsvector_le|tsvector_lt|" +
|
434
|
+
"tsvector_ne|tsvector_update_trigger|tsvector_update_trigger_column|tsvectorin|" +
|
435
|
+
"tsvectorout|tsvectorrecv|tsvectorsend|txid_current|txid_current_snapshot|" +
|
436
|
+
"txid_snapshot_in|txid_snapshot_out|txid_snapshot_recv|txid_snapshot_send|" +
|
437
|
+
"txid_snapshot_xip|txid_snapshot_xmax|txid_snapshot_xmin|txid_visible_in_snapshot|" +
|
438
|
+
"uhc_to_utf8|unique_key_recheck|unknownin|unknownout|unknownrecv|unknownsend|unnest|" +
|
439
|
+
"upper|utf8_to_ascii|utf8_to_big5|utf8_to_euc_cn|utf8_to_euc_jis_2004|utf8_to_euc_jp|" +
|
440
|
+
"utf8_to_euc_kr|utf8_to_euc_tw|utf8_to_gb18030|utf8_to_gbk|utf8_to_iso8859|" +
|
441
|
+
"utf8_to_iso8859_1|utf8_to_johab|utf8_to_koi8r|utf8_to_koi8u|utf8_to_shift_jis_2004|" +
|
442
|
+
"utf8_to_sjis|utf8_to_uhc|utf8_to_win|uuid_cmp|uuid_eq|uuid_ge|uuid_gt|uuid_hash|uuid_in|" +
|
443
|
+
"uuid_le|uuid_lt|uuid_ne|uuid_out|uuid_recv|uuid_send|var_pop|var_samp|varbit_in|" +
|
444
|
+
"varbit_out|varbit_recv|varbit_send|varbitcmp|varbiteq|varbitge|varbitgt|varbitle|" +
|
445
|
+
"varbitlt|varbitne|varbittypmodin|varbittypmodout|varcharin|varcharout|varcharrecv|" +
|
446
|
+
"varcharsend|varchartypmodin|varchartypmodout|variance|version|void_in|void_out|" +
|
447
|
+
"void_recv|void_send|width|width_bucket|win1250_to_latin2|win1250_to_mic|win1251_to_iso|" +
|
448
|
+
"win1251_to_koi8r|win1251_to_mic|win1251_to_win866|win866_to_iso|win866_to_koi8r|" +
|
449
|
+
"win866_to_mic|win866_to_win1251|win_to_utf8|xideq|xideqint4|xidin|xidout|xidrecv|xidsend|" +
|
450
|
+
"xml|xml_in|xml_is_well_formed|xml_is_well_formed_content|xml_is_well_formed_document|" +
|
451
|
+
"xml_out|xml_recv|xml_send|xmlagg|xmlcomment|xmlconcat2|xmlexists|xmlvalidate|xpath|" +
|
452
|
+
"xpath_exists").split("|")
|
453
|
+
);
|
454
|
+
|
455
|
+
var sqlRules = [
|
456
|
+
{
|
457
|
+
token : "string", // single line string -- assume dollar strings if multi-line for now
|
458
|
+
regex : "['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"
|
459
|
+
}, {
|
460
|
+
token : "variable.language", // pg identifier
|
461
|
+
regex : '".*?"'
|
462
|
+
}, {
|
463
|
+
token : "constant.numeric", // float
|
464
|
+
regex : "[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"
|
465
|
+
}, {
|
466
|
+
token : function(value) {
|
467
|
+
value = value.toLowerCase();
|
468
|
+
if (keywords.hasOwnProperty(value)) {
|
469
|
+
return "keyword";
|
470
|
+
} else if (builtinFunctions.hasOwnProperty(value)) {
|
471
|
+
return "support.function";
|
472
|
+
} else {
|
473
|
+
return "identifier";
|
474
|
+
}
|
475
|
+
},
|
476
|
+
regex : "[a-zA-Z_][a-zA-Z0-9_$]*\\b" // TODO - Unicode in identifiers
|
477
|
+
}, {
|
478
|
+
token : "keyword.operator",
|
479
|
+
regex : "!|!!|!~|!~\\*|!~~|!~~\\*|#|##|#<|#<=|#<>|#=|#>|#>=|%|\\&|\\&\\&|\\&<|\\&<\\||\\&>|\\*|\\+|" +
|
480
|
+
"\\-|/|<|<#>|<\\->|<<|<<=|<<\\||<=|<>|<\\?>|<@|<\\^|=|>|>=|>>|>>=|>\\^|\\?#|\\?\\-|\\?\\-\\||" +
|
481
|
+
"\\?\\||\\?\\|\\||@|@\\-@|@>|@@|@@@|\\^|\\||\\|\\&>|\\|/|\\|>>|\\|\\||\\|\\|/|~|~\\*|~<=~|~<~|" +
|
482
|
+
"~=|~>=~|~>~|~~|~~\\*"
|
483
|
+
}, {
|
484
|
+
token : "paren.lparen",
|
485
|
+
regex : "[\\(]"
|
486
|
+
}, {
|
487
|
+
token : "paren.rparen",
|
488
|
+
regex : "[\\)]"
|
489
|
+
}, {
|
490
|
+
token : "text",
|
491
|
+
regex : "\\s+"
|
492
|
+
}
|
493
|
+
];
|
494
|
+
|
495
|
+
|
496
|
+
this.$rules = {
|
497
|
+
"start" : [
|
498
|
+
{
|
499
|
+
token : "comment",
|
500
|
+
regex : "--.*$"
|
501
|
+
},
|
502
|
+
DocCommentHighlightRules.getStartRule("doc-start"),
|
503
|
+
{
|
504
|
+
token : "comment", // multi-line comment
|
505
|
+
merge : true,
|
506
|
+
regex : "\\/\\*",
|
507
|
+
next : "comment"
|
508
|
+
},{
|
509
|
+
token : "keyword.statementBegin",
|
510
|
+
regex : "^[a-zA-Z]+", // Could enumerate starting keywords but this allows things to work when new statements are added.
|
511
|
+
next : "statement"
|
512
|
+
},{
|
513
|
+
token : "support.buildin", // psql directive
|
514
|
+
regex : "^\\\\[\\S]+.*$"
|
515
|
+
}
|
516
|
+
],
|
517
|
+
|
518
|
+
"statement" : [
|
519
|
+
{
|
520
|
+
token : "comment",
|
521
|
+
regex : "--.*$"
|
522
|
+
}, {
|
523
|
+
token : "comment", // multi-line comment
|
524
|
+
merge : true,
|
525
|
+
regex : "\\/\\*",
|
526
|
+
next : "commentStatement"
|
527
|
+
}, {
|
528
|
+
token : "statementEnd",
|
529
|
+
regex : ";",
|
530
|
+
next : "start"
|
531
|
+
}, {
|
532
|
+
token : "string", // perl, python, tcl are in the pg default dist (no tcl highlighter)
|
533
|
+
regex : "\\$perl\\$",
|
534
|
+
next : "perl-start"
|
535
|
+
}, {
|
536
|
+
token : "string",
|
537
|
+
regex : "\\$python\\$",
|
538
|
+
next : "python-start"
|
539
|
+
},{
|
540
|
+
token : "string",
|
541
|
+
regex : "\\$[\\w_0-9]*\\$$", // dollar quote at the end of a line
|
542
|
+
next : "dollarSql"
|
543
|
+
}, {
|
544
|
+
token : "string",
|
545
|
+
regex : "\\$[\\w_0-9]*\\$",
|
546
|
+
next : "dollarStatementString"
|
547
|
+
}
|
548
|
+
].concat(sqlRules),
|
549
|
+
|
550
|
+
"dollarSql" : [
|
551
|
+
{
|
552
|
+
token : "comment",
|
553
|
+
regex : "--.*$"
|
554
|
+
}, {
|
555
|
+
token : "comment", // multi-line comment
|
556
|
+
merge : true,
|
557
|
+
regex : "\\/\\*",
|
558
|
+
next : "commentDollarSql"
|
559
|
+
}, {
|
560
|
+
token : "string", // end quoting with dollar at the start of a line
|
561
|
+
regex : "^\\$[\\w_0-9]*\\$",
|
562
|
+
next : "statement"
|
563
|
+
}, {
|
564
|
+
token : "string",
|
565
|
+
regex : "\\$[\\w_0-9]*\\$",
|
566
|
+
next : "dollarSqlString"
|
567
|
+
}
|
568
|
+
].concat(sqlRules),
|
569
|
+
|
570
|
+
"comment" : [
|
571
|
+
{
|
572
|
+
token : "comment", // closing comment
|
573
|
+
regex : ".*?\\*\\/",
|
574
|
+
next : "start"
|
575
|
+
}, {
|
576
|
+
token : "comment", // comment spanning whole line
|
577
|
+
merge : true,
|
578
|
+
regex : ".+"
|
579
|
+
}
|
580
|
+
],
|
581
|
+
|
582
|
+
"commentStatement" : [
|
583
|
+
{
|
584
|
+
token : "comment", // closing comment
|
585
|
+
regex : ".*?\\*\\/",
|
586
|
+
next : "statement"
|
587
|
+
}, {
|
588
|
+
token : "comment", // comment spanning whole line
|
589
|
+
merge : true,
|
590
|
+
regex : ".+"
|
591
|
+
}
|
592
|
+
],
|
593
|
+
|
594
|
+
"commentDollarSql" : [
|
595
|
+
{
|
596
|
+
token : "comment", // closing comment
|
597
|
+
regex : ".*?\\*\\/",
|
598
|
+
next : "dollarSql"
|
599
|
+
}, {
|
600
|
+
token : "comment", // comment spanning whole line
|
601
|
+
merge : true,
|
602
|
+
regex : ".+"
|
603
|
+
}
|
604
|
+
],
|
605
|
+
|
606
|
+
"dollarStatementString" : [
|
607
|
+
{
|
608
|
+
token : "string", // closing dollarstring
|
609
|
+
regex : ".*?\\$[\\w_0-9]*\\$",
|
610
|
+
next : "statement"
|
611
|
+
}, {
|
612
|
+
token : "string", // dollarstring spanning whole line
|
613
|
+
merge : true,
|
614
|
+
regex : ".+"
|
615
|
+
}
|
616
|
+
],
|
617
|
+
|
618
|
+
"dollarSqlString" : [
|
619
|
+
{
|
620
|
+
token : "string", // closing dollarstring
|
621
|
+
regex : ".*?\\$[\\w_0-9]*\\$",
|
622
|
+
next : "dollarSql"
|
623
|
+
}, {
|
624
|
+
token : "string", // dollarstring spanning whole line
|
625
|
+
merge : true,
|
626
|
+
regex : ".+"
|
627
|
+
}
|
628
|
+
]
|
629
|
+
};
|
630
|
+
|
631
|
+
this.embedRules(DocCommentHighlightRules, "doc-", [ DocCommentHighlightRules.getEndRule("start") ]);
|
632
|
+
this.embedRules(PerlHighlightRules, "perl-", [{token : "string", regex : "\\$perl\\$", next : "statement"}]);
|
633
|
+
this.embedRules(PythonHighlightRules, "python-", [{token : "string", regex : "\\$python\\$", next : "statement"}]);
|
634
|
+
};
|
635
|
+
|
636
|
+
oop.inherits(PgsqlHighlightRules, TextHighlightRules);
|
637
|
+
|
638
|
+
exports.PgsqlHighlightRules = PgsqlHighlightRules;
|
639
|
+
});
|
640
|
+
|
641
|
+
define('ace/mode/doc_comment_highlight_rules', ['require', 'exports', 'module' , 'ace/lib/oop', 'ace/mode/text_highlight_rules'], function(require, exports, module) {
|
642
|
+
|
643
|
+
|
644
|
+
var oop = require("../lib/oop");
|
645
|
+
var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
|
646
|
+
|
647
|
+
var DocCommentHighlightRules = function() {
|
648
|
+
|
649
|
+
this.$rules = {
|
650
|
+
"start" : [ {
|
651
|
+
token : "comment.doc.tag",
|
652
|
+
regex : "@[\\w\\d_]+" // TODO: fix email addresses
|
653
|
+
}, {
|
654
|
+
token : "comment.doc",
|
655
|
+
merge : true,
|
656
|
+
regex : "\\s+"
|
657
|
+
}, {
|
658
|
+
token : "comment.doc",
|
659
|
+
merge : true,
|
660
|
+
regex : "TODO"
|
661
|
+
}, {
|
662
|
+
token : "comment.doc",
|
663
|
+
merge : true,
|
664
|
+
regex : "[^@\\*]+"
|
665
|
+
}, {
|
666
|
+
token : "comment.doc",
|
667
|
+
merge : true,
|
668
|
+
regex : "."
|
669
|
+
}]
|
670
|
+
};
|
671
|
+
};
|
672
|
+
|
673
|
+
oop.inherits(DocCommentHighlightRules, TextHighlightRules);
|
674
|
+
|
675
|
+
DocCommentHighlightRules.getStartRule = function(start) {
|
676
|
+
return {
|
677
|
+
token : "comment.doc", // doc comment
|
678
|
+
merge : true,
|
679
|
+
regex : "\\/\\*(?=\\*)",
|
680
|
+
next : start
|
681
|
+
};
|
682
|
+
};
|
683
|
+
|
684
|
+
DocCommentHighlightRules.getEndRule = function (start) {
|
685
|
+
return {
|
686
|
+
token : "comment.doc", // closing comment
|
687
|
+
merge : true,
|
688
|
+
regex : "\\*\\/",
|
689
|
+
next : start
|
690
|
+
};
|
691
|
+
};
|
692
|
+
|
693
|
+
|
694
|
+
exports.DocCommentHighlightRules = DocCommentHighlightRules;
|
695
|
+
|
696
|
+
});
|
697
|
+
|
698
|
+
define('ace/mode/perl_highlight_rules', ['require', 'exports', 'module' , 'ace/lib/oop', 'ace/lib/lang', 'ace/mode/text_highlight_rules'], function(require, exports, module) {
|
699
|
+
|
700
|
+
|
701
|
+
var oop = require("../lib/oop");
|
702
|
+
var lang = require("../lib/lang");
|
703
|
+
var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
|
704
|
+
|
705
|
+
var PerlHighlightRules = function() {
|
706
|
+
|
707
|
+
var keywords = lang.arrayToMap(
|
708
|
+
("base|constant|continue|else|elsif|for|foreach|format|goto|if|last|local|my|next|" +
|
709
|
+
"no|package|parent|redo|require|scalar|sub|unless|until|while|use|vars").split("|")
|
710
|
+
);
|
711
|
+
|
712
|
+
var buildinConstants = lang.arrayToMap(
|
713
|
+
("ARGV|ENV|INC|SIG").split("|")
|
714
|
+
);
|
715
|
+
|
716
|
+
var builtinFunctions = lang.arrayToMap(
|
717
|
+
("getprotobynumber|getprotobyname|getservbyname|gethostbyaddr|" +
|
718
|
+
"gethostbyname|getservbyport|getnetbyaddr|getnetbyname|getsockname|" +
|
719
|
+
"getpeername|setpriority|getprotoent|setprotoent|getpriority|" +
|
720
|
+
"endprotoent|getservent|setservent|endservent|sethostent|socketpair|" +
|
721
|
+
"getsockopt|gethostent|endhostent|setsockopt|setnetent|quotemeta|" +
|
722
|
+
"localtime|prototype|getnetent|endnetent|rewinddir|wantarray|getpwuid|" +
|
723
|
+
"closedir|getlogin|readlink|endgrent|getgrgid|getgrnam|shmwrite|" +
|
724
|
+
"shutdown|readline|endpwent|setgrent|readpipe|formline|truncate|" +
|
725
|
+
"dbmclose|syswrite|setpwent|getpwnam|getgrent|getpwent|ucfirst|sysread|" +
|
726
|
+
"setpgrp|shmread|sysseek|sysopen|telldir|defined|opendir|connect|" +
|
727
|
+
"lcfirst|getppid|binmode|syscall|sprintf|getpgrp|readdir|seekdir|" +
|
728
|
+
"waitpid|reverse|unshift|symlink|dbmopen|semget|msgrcv|rename|listen|" +
|
729
|
+
"chroot|msgsnd|shmctl|accept|unpack|exists|fileno|shmget|system|" +
|
730
|
+
"unlink|printf|gmtime|msgctl|semctl|values|rindex|substr|splice|" +
|
731
|
+
"length|msgget|select|socket|return|caller|delete|alarm|ioctl|index|" +
|
732
|
+
"undef|lstat|times|srand|chown|fcntl|close|write|umask|rmdir|study|" +
|
733
|
+
"sleep|chomp|untie|print|utime|mkdir|atan2|split|crypt|flock|chmod|" +
|
734
|
+
"BEGIN|bless|chdir|semop|shift|reset|link|stat|chop|grep|fork|dump|" +
|
735
|
+
"join|open|tell|pipe|exit|glob|warn|each|bind|sort|pack|eval|push|" +
|
736
|
+
"keys|getc|kill|seek|sqrt|send|wait|rand|tied|read|time|exec|recv|" +
|
737
|
+
"eof|chr|int|ord|exp|pos|pop|sin|log|abs|oct|hex|tie|cos|vec|END|ref|" +
|
738
|
+
"map|die|uc|lc|do").split("|")
|
739
|
+
);
|
740
|
+
|
741
|
+
// regexp must not have capturing parentheses. Use (?:) instead.
|
742
|
+
// regexps are ordered -> the first match is used
|
743
|
+
|
744
|
+
this.$rules = {
|
745
|
+
"start" : [
|
746
|
+
{
|
747
|
+
token : "comment",
|
748
|
+
regex : "#.*$"
|
749
|
+
}, {
|
750
|
+
token : "string.regexp",
|
751
|
+
regex : "[/](?:(?:\\[(?:\\\\]|[^\\]])+\\])|(?:\\\\/|[^\\]/]))*[/]\\w*\\s*(?=[).,;]|$)"
|
752
|
+
}, {
|
753
|
+
token : "string", // single line
|
754
|
+
regex : '["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]'
|
755
|
+
}, {
|
756
|
+
token : "string", // multi line string start
|
757
|
+
merge : true,
|
758
|
+
regex : '["].*\\\\$',
|
759
|
+
next : "qqstring"
|
760
|
+
}, {
|
761
|
+
token : "string", // single line
|
762
|
+
regex : "['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"
|
763
|
+
}, {
|
764
|
+
token : "string", // multi line string start
|
765
|
+
merge : true,
|
766
|
+
regex : "['].*\\\\$",
|
767
|
+
next : "qstring"
|
768
|
+
}, {
|
769
|
+
token : "constant.numeric", // hex
|
770
|
+
regex : "0x[0-9a-fA-F]+\\b"
|
771
|
+
}, {
|
772
|
+
token : "constant.numeric", // float
|
773
|
+
regex : "[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"
|
774
|
+
}, {
|
775
|
+
token : function(value) {
|
776
|
+
if (keywords.hasOwnProperty(value))
|
777
|
+
return "keyword";
|
778
|
+
else if (buildinConstants.hasOwnProperty(value))
|
779
|
+
return "constant.language";
|
780
|
+
else if (builtinFunctions.hasOwnProperty(value))
|
781
|
+
return "support.function";
|
782
|
+
else
|
783
|
+
return "identifier";
|
784
|
+
},
|
785
|
+
regex : "[a-zA-Z_$][a-zA-Z0-9_$]*\\b"
|
786
|
+
}, {
|
787
|
+
token : "keyword.operator",
|
788
|
+
regex : "\\.\\.\\.|\\|\\|=|>>=|<<=|<=>|&&=|=>|!~|\\^=|&=|\\|=|\\.=|x=|%=|\\/=|\\*=|\\-=|\\+=|=~|\\*\\*|\\-\\-|\\.\\.|\\|\\||&&|\\+\\+|\\->|!=|==|>=|<=|>>|<<|,|=|\\?\\:|\\^|\\||x|%|\\/|\\*|<|&|\\\\|~|!|>|\\.|\\-|\\+|\\-C|\\-b|\\-S|\\-u|\\-t|\\-p|\\-l|\\-d|\\-f|\\-g|\\-s|\\-z|\\-k|\\-e|\\-O|\\-T|\\-B|\\-M|\\-A|\\-X|\\-W|\\-c|\\-R|\\-o|\\-x|\\-w|\\-r|\\b(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|xor)"
|
789
|
+
}, {
|
790
|
+
token : "lparen",
|
791
|
+
regex : "[[({]"
|
792
|
+
}, {
|
793
|
+
token : "rparen",
|
794
|
+
regex : "[\\])}]"
|
795
|
+
}, {
|
796
|
+
token : "text",
|
797
|
+
regex : "\\s+"
|
798
|
+
}
|
799
|
+
],
|
800
|
+
"qqstring" : [
|
801
|
+
{
|
802
|
+
token : "string",
|
803
|
+
regex : '(?:(?:\\\\.)|(?:[^"\\\\]))*?"',
|
804
|
+
next : "start"
|
805
|
+
}, {
|
806
|
+
token : "string",
|
807
|
+
merge : true,
|
808
|
+
regex : '.+'
|
809
|
+
}
|
810
|
+
],
|
811
|
+
"qstring" : [
|
812
|
+
{
|
813
|
+
token : "string",
|
814
|
+
regex : "(?:(?:\\\\.)|(?:[^'\\\\]))*?'",
|
815
|
+
next : "start"
|
816
|
+
}, {
|
817
|
+
token : "string",
|
818
|
+
merge : true,
|
819
|
+
regex : '.+'
|
820
|
+
}
|
821
|
+
]
|
822
|
+
};
|
823
|
+
};
|
824
|
+
|
825
|
+
oop.inherits(PerlHighlightRules, TextHighlightRules);
|
826
|
+
|
827
|
+
exports.PerlHighlightRules = PerlHighlightRules;
|
828
|
+
});
|
829
|
+
|
830
|
+
define('ace/mode/python_highlight_rules', ['require', 'exports', 'module' , 'ace/lib/oop', 'ace/lib/lang', 'ace/mode/text_highlight_rules'], function(require, exports, module) {
|
831
|
+
|
832
|
+
|
833
|
+
var oop = require("../lib/oop");
|
834
|
+
var lang = require("../lib/lang");
|
835
|
+
var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
|
836
|
+
|
837
|
+
var PythonHighlightRules = function() {
|
838
|
+
|
839
|
+
var keywords = lang.arrayToMap(
|
840
|
+
("and|as|assert|break|class|continue|def|del|elif|else|except|exec|" +
|
841
|
+
"finally|for|from|global|if|import|in|is|lambda|not|or|pass|print|" +
|
842
|
+
"raise|return|try|while|with|yield").split("|")
|
843
|
+
);
|
844
|
+
|
845
|
+
var builtinConstants = lang.arrayToMap(
|
846
|
+
("True|False|None|NotImplemented|Ellipsis|__debug__").split("|")
|
847
|
+
);
|
848
|
+
|
849
|
+
var builtinFunctions = lang.arrayToMap(
|
850
|
+
("abs|divmod|input|open|staticmethod|all|enumerate|int|ord|str|any|" +
|
851
|
+
"eval|isinstance|pow|sum|basestring|execfile|issubclass|print|super|" +
|
852
|
+
"binfile|iter|property|tuple|bool|filter|len|range|type|bytearray|" +
|
853
|
+
"float|list|raw_input|unichr|callable|format|locals|reduce|unicode|" +
|
854
|
+
"chr|frozenset|long|reload|vars|classmethod|getattr|map|repr|xrange|" +
|
855
|
+
"cmp|globals|max|reversed|zip|compile|hasattr|memoryview|round|" +
|
856
|
+
"__import__|complex|hash|min|set|apply|delattr|help|next|setattr|" +
|
857
|
+
"buffer|dict|hex|object|slice|coerce|dir|id|oct|sorted|intern").split("|")
|
858
|
+
);
|
859
|
+
|
860
|
+
var futureReserved = lang.arrayToMap(
|
861
|
+
("").split("|")
|
862
|
+
);
|
863
|
+
|
864
|
+
var strPre = "(?:r|u|ur|R|U|UR|Ur|uR)?";
|
865
|
+
|
866
|
+
var decimalInteger = "(?:(?:[1-9]\\d*)|(?:0))";
|
867
|
+
var octInteger = "(?:0[oO]?[0-7]+)";
|
868
|
+
var hexInteger = "(?:0[xX][\\dA-Fa-f]+)";
|
869
|
+
var binInteger = "(?:0[bB][01]+)";
|
870
|
+
var integer = "(?:" + decimalInteger + "|" + octInteger + "|" + hexInteger + "|" + binInteger + ")";
|
871
|
+
|
872
|
+
var exponent = "(?:[eE][+-]?\\d+)";
|
873
|
+
var fraction = "(?:\\.\\d+)";
|
874
|
+
var intPart = "(?:\\d+)";
|
875
|
+
var pointFloat = "(?:(?:" + intPart + "?" + fraction + ")|(?:" + intPart + "\\.))";
|
876
|
+
var exponentFloat = "(?:(?:" + pointFloat + "|" + intPart + ")" + exponent + ")";
|
877
|
+
var floatNumber = "(?:" + exponentFloat + "|" + pointFloat + ")";
|
878
|
+
|
879
|
+
this.$rules = {
|
880
|
+
"start" : [ {
|
881
|
+
token : "comment",
|
882
|
+
regex : "#.*$"
|
883
|
+
}, {
|
884
|
+
token : "string", // """ string
|
885
|
+
regex : strPre + '"{3}(?:[^\\\\]|\\\\.)*?"{3}'
|
886
|
+
}, {
|
887
|
+
token : "string", // multi line """ string start
|
888
|
+
merge : true,
|
889
|
+
regex : strPre + '"{3}.*$',
|
890
|
+
next : "qqstring"
|
891
|
+
}, {
|
892
|
+
token : "string", // " string
|
893
|
+
regex : strPre + '"(?:[^\\\\]|\\\\.)*?"'
|
894
|
+
}, {
|
895
|
+
token : "string", // ''' string
|
896
|
+
regex : strPre + "'{3}(?:[^\\\\]|\\\\.)*?'{3}"
|
897
|
+
}, {
|
898
|
+
token : "string", // multi line ''' string start
|
899
|
+
merge : true,
|
900
|
+
regex : strPre + "'{3}.*$",
|
901
|
+
next : "qstring"
|
902
|
+
}, {
|
903
|
+
token : "string", // ' string
|
904
|
+
regex : strPre + "'(?:[^\\\\]|\\\\.)*?'"
|
905
|
+
}, {
|
906
|
+
token : "constant.numeric", // imaginary
|
907
|
+
regex : "(?:" + floatNumber + "|\\d+)[jJ]\\b"
|
908
|
+
}, {
|
909
|
+
token : "constant.numeric", // float
|
910
|
+
regex : floatNumber
|
911
|
+
}, {
|
912
|
+
token : "constant.numeric", // long integer
|
913
|
+
regex : integer + "[lL]\\b"
|
914
|
+
}, {
|
915
|
+
token : "constant.numeric", // integer
|
916
|
+
regex : integer + "\\b"
|
917
|
+
}, {
|
918
|
+
token : function(value) {
|
919
|
+
if (keywords.hasOwnProperty(value))
|
920
|
+
return "keyword";
|
921
|
+
else if (builtinConstants.hasOwnProperty(value))
|
922
|
+
return "constant.language";
|
923
|
+
else if (futureReserved.hasOwnProperty(value))
|
924
|
+
return "invalid.illegal";
|
925
|
+
else if (builtinFunctions.hasOwnProperty(value))
|
926
|
+
return "support.function";
|
927
|
+
else if (value == "debugger")
|
928
|
+
return "invalid.deprecated";
|
929
|
+
else
|
930
|
+
return "identifier";
|
931
|
+
},
|
932
|
+
regex : "[a-zA-Z_$][a-zA-Z0-9_$]*\\b"
|
933
|
+
}, {
|
934
|
+
token : "keyword.operator",
|
935
|
+
regex : "\\+|\\-|\\*|\\*\\*|\\/|\\/\\/|%|<<|>>|&|\\||\\^|~|<|>|<=|=>|==|!=|<>|="
|
936
|
+
}, {
|
937
|
+
token : "paren.lparen",
|
938
|
+
regex : "[\\[\\(\\{]"
|
939
|
+
}, {
|
940
|
+
token : "paren.rparen",
|
941
|
+
regex : "[\\]\\)\\}]"
|
942
|
+
}, {
|
943
|
+
token : "text",
|
944
|
+
regex : "\\s+"
|
945
|
+
} ],
|
946
|
+
"qqstring" : [ {
|
947
|
+
token : "string", // multi line """ string end
|
948
|
+
regex : '(?:[^\\\\]|\\\\.)*?"{3}',
|
949
|
+
next : "start"
|
950
|
+
}, {
|
951
|
+
token : "string",
|
952
|
+
merge : true,
|
953
|
+
regex : '.+'
|
954
|
+
} ],
|
955
|
+
"qstring" : [ {
|
956
|
+
token : "string", // multi line ''' string end
|
957
|
+
regex : "(?:[^\\\\]|\\\\.)*?'{3}",
|
958
|
+
next : "start"
|
959
|
+
}, {
|
960
|
+
token : "string",
|
961
|
+
merge : true,
|
962
|
+
regex : '.+'
|
963
|
+
} ]
|
964
|
+
};
|
965
|
+
};
|
966
|
+
|
967
|
+
oop.inherits(PythonHighlightRules, TextHighlightRules);
|
968
|
+
|
969
|
+
exports.PythonHighlightRules = PythonHighlightRules;
|
970
|
+
});
|