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