marty 2.4.7 → 2.4.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (225) hide show
  1. checksums.yaml +4 -4
  2. data/Dockerfile.dummy +8 -5
  3. data/Gemfile.lock +1 -1
  4. data/README.md +8 -0
  5. data/app/assets/javascripts/marty/application.js +1 -0
  6. data/app/assets/javascripts/marty/codemirror/codemirror.js +9730 -0
  7. data/app/{components/marty/script_form/client → assets/javascripts/marty/codemirror}/mode/delorean/delorean.js +0 -0
  8. data/app/assets/javascripts/marty/codemirror/mode/javascript/javascript.js +900 -0
  9. data/app/assets/javascripts/marty/codemirror/mode/python/python.js +399 -0
  10. data/app/{components/marty/script_form/client → assets/javascripts/marty/codemirror}/mode/ruby/ruby.js +135 -34
  11. data/app/{components/marty/script_form/client/Ext.ux.form.field.CodeMirror.js → assets/javascripts/marty/extjs/extensions/marty.js} +87 -6
  12. data/app/assets/stylesheets/marty/application.css +1 -13
  13. data/app/assets/stylesheets/marty/codemirror/codemirror.css +346 -0
  14. data/app/{components/marty/script_form/client → assets/stylesheets/marty/codemirror}/delorean.css +0 -0
  15. data/app/components/marty/auth_app/client/auth_app.js +82 -80
  16. data/app/components/marty/data_grid_view.rb +1 -54
  17. data/app/components/marty/data_grid_view/client/data_grid_view.js +49 -0
  18. data/app/components/marty/form.rb +1 -5
  19. data/app/components/marty/form/client/form.js +5 -0
  20. data/app/components/marty/grid.rb +1 -146
  21. data/app/components/marty/grid/client/grid.js +146 -0
  22. data/app/components/marty/import_view.rb +1 -32
  23. data/app/components/marty/import_view/client/import_view.js +32 -0
  24. data/app/components/marty/live_search_grid_panel.rb +1 -21
  25. data/app/components/marty/live_search_grid_panel/client/live_search_grid_panel.js +27 -0
  26. data/app/components/marty/main_auth_app.rb +4 -145
  27. data/app/components/marty/main_auth_app/client/main_auth_app.js +124 -0
  28. data/app/components/marty/mcfly_grid_panel.rb +1 -17
  29. data/app/components/marty/mcfly_grid_panel/client/mcfly_grid_panel.js +37 -0
  30. data/app/components/marty/new_posting_form.rb +1 -6
  31. data/app/components/marty/new_posting_form/client/new_posting_form.js +6 -0
  32. data/app/components/marty/panel.rb +1 -5
  33. data/app/components/marty/panel/client/panel.js +5 -0
  34. data/app/components/marty/posting_grid.rb +4 -55
  35. data/app/components/marty/posting_grid/client/posting_grid.js +50 -0
  36. data/app/components/marty/promise_view.rb +2 -75
  37. data/app/components/marty/promise_view/client/promise_view.css +12 -9
  38. data/app/components/marty/promise_view/client/promise_view.js +57 -0
  39. data/app/components/marty/report_form.rb +3 -69
  40. data/app/components/marty/report_form/client/report_form.js +78 -0
  41. data/app/components/marty/report_select.rb +1 -45
  42. data/app/components/marty/report_select/client/report_select.js +50 -0
  43. data/app/components/marty/reporting.rb +1 -8
  44. data/app/components/marty/reporting/client/reporting.js +8 -0
  45. data/app/components/marty/script_form.rb +2 -63
  46. data/app/components/marty/script_form/client/script_form.js +44 -0
  47. data/app/components/marty/script_tester.rb +1 -7
  48. data/app/components/marty/script_tester/client/script_tester.js +7 -0
  49. data/app/components/marty/scripting.rb +1 -55
  50. data/app/components/marty/scripting/client/scripting.js +62 -0
  51. data/app/components/marty/simple_app/client/simple_app.js +21 -13
  52. data/app/models/marty/promise.rb +22 -1
  53. data/app/views/layouts/marty/application.html.erb +8 -6
  54. data/docker-compose.dummy.yml +2 -0
  55. data/lib/marty/monkey.rb +0 -16
  56. data/lib/marty/version.rb +1 -1
  57. data/spec/dummy/config/initializers/assets.rb +1 -0
  58. data/spec/features/reporting_spec.rb +1 -0
  59. data/spec/features/scripting_spec.rb +4 -4
  60. data/spec/spec_helper.rb +1 -0
  61. data/spec/support/chromedriver.rb +5 -1
  62. data/spec/support/shared_connection_db_helpers.rb +42 -2
  63. metadata +29 -168
  64. data/app/assets/images/marty/.gitkeep +0 -0
  65. data/app/components/marty/mcfly_grid_panel/client/dup_in_form.js +0 -20
  66. data/app/components/marty/script_form/client/codemirror.css +0 -172
  67. data/app/components/marty/script_form/client/codemirror.js +0 -3130
  68. data/app/components/marty/script_form/client/mode/clike/clike.js +0 -284
  69. data/app/components/marty/script_form/client/mode/clike/index.html +0 -102
  70. data/app/components/marty/script_form/client/mode/clike/scala.html +0 -766
  71. data/app/components/marty/script_form/client/mode/clojure/clojure.js +0 -206
  72. data/app/components/marty/script_form/client/mode/clojure/index.html +0 -67
  73. data/app/components/marty/script_form/client/mode/coffeescript/LICENSE +0 -22
  74. data/app/components/marty/script_form/client/mode/coffeescript/coffeescript.js +0 -346
  75. data/app/components/marty/script_form/client/mode/coffeescript/index.html +0 -728
  76. data/app/components/marty/script_form/client/mode/commonlisp/commonlisp.js +0 -101
  77. data/app/components/marty/script_form/client/mode/commonlisp/index.html +0 -165
  78. data/app/components/marty/script_form/client/mode/css/css.js +0 -448
  79. data/app/components/marty/script_form/client/mode/css/index.html +0 -58
  80. data/app/components/marty/script_form/client/mode/css/test.js +0 -501
  81. data/app/components/marty/script_form/client/mode/diff/diff.js +0 -32
  82. data/app/components/marty/script_form/client/mode/diff/index.html +0 -105
  83. data/app/components/marty/script_form/client/mode/ecl/ecl.js +0 -203
  84. data/app/components/marty/script_form/client/mode/ecl/index.html +0 -42
  85. data/app/components/marty/script_form/client/mode/erlang/erlang.js +0 -463
  86. data/app/components/marty/script_form/client/mode/erlang/index.html +0 -63
  87. data/app/components/marty/script_form/client/mode/gfm/gfm.js +0 -150
  88. data/app/components/marty/script_form/client/mode/gfm/index.html +0 -48
  89. data/app/components/marty/script_form/client/mode/go/go.js +0 -170
  90. data/app/components/marty/script_form/client/mode/go/index.html +0 -73
  91. data/app/components/marty/script_form/client/mode/groovy/groovy.js +0 -210
  92. data/app/components/marty/script_form/client/mode/groovy/index.html +0 -72
  93. data/app/components/marty/script_form/client/mode/haskell/haskell.js +0 -242
  94. data/app/components/marty/script_form/client/mode/haskell/index.html +0 -61
  95. data/app/components/marty/script_form/client/mode/haxe/haxe.js +0 -429
  96. data/app/components/marty/script_form/client/mode/haxe/index.html +0 -91
  97. data/app/components/marty/script_form/client/mode/htmlembedded/htmlembedded.js +0 -72
  98. data/app/components/marty/script_form/client/mode/htmlembedded/index.html +0 -50
  99. data/app/components/marty/script_form/client/mode/htmlmixed/htmlmixed.js +0 -84
  100. data/app/components/marty/script_form/client/mode/htmlmixed/index.html +0 -52
  101. data/app/components/marty/script_form/client/mode/javascript/index.html +0 -78
  102. data/app/components/marty/script_form/client/mode/javascript/javascript.js +0 -361
  103. data/app/components/marty/script_form/client/mode/jinja2/index.html +0 -38
  104. data/app/components/marty/script_form/client/mode/jinja2/jinja2.js +0 -42
  105. data/app/components/marty/script_form/client/mode/less/index.html +0 -740
  106. data/app/components/marty/script_form/client/mode/less/less.js +0 -266
  107. data/app/components/marty/script_form/client/mode/lua/index.html +0 -73
  108. data/app/components/marty/script_form/client/mode/lua/lua.js +0 -140
  109. data/app/components/marty/script_form/client/mode/markdown/index.html +0 -343
  110. data/app/components/marty/script_form/client/mode/markdown/markdown.js +0 -382
  111. data/app/components/marty/script_form/client/mode/markdown/test.js +0 -1084
  112. data/app/components/marty/script_form/client/mode/mysql/index.html +0 -42
  113. data/app/components/marty/script_form/client/mode/mysql/mysql.js +0 -186
  114. data/app/components/marty/script_form/client/mode/ntriples/index.html +0 -33
  115. data/app/components/marty/script_form/client/mode/ntriples/ntriples.js +0 -172
  116. data/app/components/marty/script_form/client/mode/ocaml/index.html +0 -130
  117. data/app/components/marty/script_form/client/mode/ocaml/ocaml.js +0 -114
  118. data/app/components/marty/script_form/client/mode/pascal/LICENSE +0 -7
  119. data/app/components/marty/script_form/client/mode/pascal/index.html +0 -49
  120. data/app/components/marty/script_form/client/mode/pascal/pascal.js +0 -94
  121. data/app/components/marty/script_form/client/mode/perl/LICENSE +0 -19
  122. data/app/components/marty/script_form/client/mode/perl/index.html +0 -63
  123. data/app/components/marty/script_form/client/mode/perl/perl.js +0 -816
  124. data/app/components/marty/script_form/client/mode/php/index.html +0 -49
  125. data/app/components/marty/script_form/client/mode/php/php.js +0 -148
  126. data/app/components/marty/script_form/client/mode/pig/index.html +0 -43
  127. data/app/components/marty/script_form/client/mode/pig/pig.js +0 -172
  128. data/app/components/marty/script_form/client/mode/plsql/index.html +0 -63
  129. data/app/components/marty/script_form/client/mode/plsql/plsql.js +0 -217
  130. data/app/components/marty/script_form/client/mode/properties/index.html +0 -41
  131. data/app/components/marty/script_form/client/mode/properties/properties.js +0 -63
  132. data/app/components/marty/script_form/client/mode/python/LICENSE.txt +0 -21
  133. data/app/components/marty/script_form/client/mode/python/index.html +0 -123
  134. data/app/components/marty/script_form/client/mode/python/python.js +0 -338
  135. data/app/components/marty/script_form/client/mode/r/LICENSE +0 -24
  136. data/app/components/marty/script_form/client/mode/r/index.html +0 -74
  137. data/app/components/marty/script_form/client/mode/r/r.js +0 -141
  138. data/app/components/marty/script_form/client/mode/rpm/changes/changes.js +0 -19
  139. data/app/components/marty/script_form/client/mode/rpm/changes/index.html +0 -54
  140. data/app/components/marty/script_form/client/mode/rpm/spec/index.html +0 -100
  141. data/app/components/marty/script_form/client/mode/rpm/spec/spec.css +0 -5
  142. data/app/components/marty/script_form/client/mode/rpm/spec/spec.js +0 -66
  143. data/app/components/marty/script_form/client/mode/rst/index.html +0 -526
  144. data/app/components/marty/script_form/client/mode/rst/rst.js +0 -326
  145. data/app/components/marty/script_form/client/mode/ruby/LICENSE +0 -24
  146. data/app/components/marty/script_form/client/mode/ruby/index.html +0 -172
  147. data/app/components/marty/script_form/client/mode/rust/index.html +0 -49
  148. data/app/components/marty/script_form/client/mode/rust/rust.js +0 -432
  149. data/app/components/marty/script_form/client/mode/scheme/index.html +0 -65
  150. data/app/components/marty/script_form/client/mode/scheme/scheme.js +0 -230
  151. data/app/components/marty/script_form/client/mode/shell/index.html +0 -50
  152. data/app/components/marty/script_form/client/mode/shell/shell.js +0 -118
  153. data/app/components/marty/script_form/client/mode/sieve/LICENSE +0 -23
  154. data/app/components/marty/script_form/client/mode/sieve/index.html +0 -81
  155. data/app/components/marty/script_form/client/mode/sieve/sieve.js +0 -156
  156. data/app/components/marty/script_form/client/mode/smalltalk/index.html +0 -56
  157. data/app/components/marty/script_form/client/mode/smalltalk/smalltalk.js +0 -139
  158. data/app/components/marty/script_form/client/mode/smarty/index.html +0 -83
  159. data/app/components/marty/script_form/client/mode/smarty/smarty.js +0 -148
  160. data/app/components/marty/script_form/client/mode/sparql/index.html +0 -41
  161. data/app/components/marty/script_form/client/mode/sparql/sparql.js +0 -143
  162. data/app/components/marty/script_form/client/mode/stex/index.html +0 -98
  163. data/app/components/marty/script_form/client/mode/stex/stex.js +0 -182
  164. data/app/components/marty/script_form/client/mode/stex/test.js +0 -343
  165. data/app/components/marty/script_form/client/mode/tiddlywiki/index.html +0 -141
  166. data/app/components/marty/script_form/client/mode/tiddlywiki/tiddlywiki.css +0 -14
  167. data/app/components/marty/script_form/client/mode/tiddlywiki/tiddlywiki.js +0 -384
  168. data/app/components/marty/script_form/client/mode/tiki/index.html +0 -83
  169. data/app/components/marty/script_form/client/mode/tiki/tiki.css +0 -26
  170. data/app/components/marty/script_form/client/mode/tiki/tiki.js +0 -309
  171. data/app/components/marty/script_form/client/mode/vb/LICENSE.txt +0 -21
  172. data/app/components/marty/script_form/client/mode/vb/index.html +0 -89
  173. data/app/components/marty/script_form/client/mode/vb/vb.js +0 -260
  174. data/app/components/marty/script_form/client/mode/vbscript/index.html +0 -43
  175. data/app/components/marty/script_form/client/mode/vbscript/vbscript.js +0 -26
  176. data/app/components/marty/script_form/client/mode/velocity/index.html +0 -104
  177. data/app/components/marty/script_form/client/mode/velocity/velocity.js +0 -146
  178. data/app/components/marty/script_form/client/mode/verilog/index.html +0 -211
  179. data/app/components/marty/script_form/client/mode/verilog/verilog.js +0 -194
  180. data/app/components/marty/script_form/client/mode/xml/index.html +0 -45
  181. data/app/components/marty/script_form/client/mode/xml/xml.js +0 -318
  182. data/app/components/marty/script_form/client/mode/xquery/LICENSE +0 -20
  183. data/app/components/marty/script_form/client/mode/xquery/index.html +0 -223
  184. data/app/components/marty/script_form/client/mode/xquery/test/index.html +0 -27
  185. data/app/components/marty/script_form/client/mode/xquery/test/testBase.js +0 -42
  186. data/app/components/marty/script_form/client/mode/xquery/test/testEmptySequenceKeyword.js +0 -16
  187. data/app/components/marty/script_form/client/mode/xquery/test/testMultiAttr.js +0 -16
  188. data/app/components/marty/script_form/client/mode/xquery/test/testNamespaces.js +0 -91
  189. data/app/components/marty/script_form/client/mode/xquery/test/testProcessingInstructions.js +0 -16
  190. data/app/components/marty/script_form/client/mode/xquery/test/testQuotes.js +0 -19
  191. data/app/components/marty/script_form/client/mode/xquery/xquery.js +0 -451
  192. data/app/components/marty/script_form/client/mode/yaml/index.html +0 -68
  193. data/app/components/marty/script_form/client/mode/yaml/yaml.js +0 -95
  194. data/app/components/marty/script_form/client/theme/ambiance.css +0 -81
  195. data/app/components/marty/script_form/client/theme/blackboard.css +0 -25
  196. data/app/components/marty/script_form/client/theme/cobalt.css +0 -18
  197. data/app/components/marty/script_form/client/theme/eclipse.css +0 -25
  198. data/app/components/marty/script_form/client/theme/elegant.css +0 -10
  199. data/app/components/marty/script_form/client/theme/erlang-dark.css +0 -21
  200. data/app/components/marty/script_form/client/theme/lesser-dark.css +0 -44
  201. data/app/components/marty/script_form/client/theme/monokai.css +0 -28
  202. data/app/components/marty/script_form/client/theme/neat.css +0 -9
  203. data/app/components/marty/script_form/client/theme/night.css +0 -21
  204. data/app/components/marty/script_form/client/theme/rubyblue.css +0 -21
  205. data/app/components/marty/script_form/client/theme/vibrant-ink.css +0 -27
  206. data/app/components/marty/script_form/client/theme/xq-dark.css +0 -46
  207. data/app/components/marty/script_form/client/util/closetag.js +0 -164
  208. data/app/components/marty/script_form/client/util/dialog.css +0 -27
  209. data/app/components/marty/script_form/client/util/dialog.js +0 -70
  210. data/app/components/marty/script_form/client/util/foldcode.js +0 -196
  211. data/app/components/marty/script_form/client/util/formatting.js +0 -193
  212. data/app/components/marty/script_form/client/util/javascript-hint.js +0 -134
  213. data/app/components/marty/script_form/client/util/loadmode.js +0 -51
  214. data/app/components/marty/script_form/client/util/match-highlighter.js +0 -44
  215. data/app/components/marty/script_form/client/util/multiplex.js +0 -77
  216. data/app/components/marty/script_form/client/util/overlay.js +0 -54
  217. data/app/components/marty/script_form/client/util/pig-hint.js +0 -123
  218. data/app/components/marty/script_form/client/util/runmode-standalone.js +0 -90
  219. data/app/components/marty/script_form/client/util/runmode.js +0 -53
  220. data/app/components/marty/script_form/client/util/search.js +0 -118
  221. data/app/components/marty/script_form/client/util/searchcursor.js +0 -119
  222. data/app/components/marty/script_form/client/util/simple-hint.css +0 -16
  223. data/app/components/marty/script_form/client/util/simple-hint.js +0 -97
  224. data/app/components/marty/script_form/client/util/xml-hint.js +0 -137
  225. data/lib/marty/javascript/grid_view_in_form.js +0 -81
@@ -1,217 +0,0 @@
1
- CodeMirror.defineMode("plsql", function(config, parserConfig) {
2
- var indentUnit = config.indentUnit,
3
- keywords = parserConfig.keywords,
4
- functions = parserConfig.functions,
5
- types = parserConfig.types,
6
- sqlplus = parserConfig.sqlplus,
7
- multiLineStrings = parserConfig.multiLineStrings;
8
- var isOperatorChar = /[+\-*&%=<>!?:\/|]/;
9
- function chain(stream, state, f) {
10
- state.tokenize = f;
11
- return f(stream, state);
12
- }
13
-
14
- var type;
15
- function ret(tp, style) {
16
- type = tp;
17
- return style;
18
- }
19
-
20
- function tokenBase(stream, state) {
21
- var ch = stream.next();
22
- // start of string?
23
- if (ch == '"' || ch == "'")
24
- return chain(stream, state, tokenString(ch));
25
- // is it one of the special signs []{}().,;? Seperator?
26
- else if (/[\[\]{}\(\),;\.]/.test(ch))
27
- return ret(ch);
28
- // start of a number value?
29
- else if (/\d/.test(ch)) {
30
- stream.eatWhile(/[\w\.]/);
31
- return ret("number", "number");
32
- }
33
- // multi line comment or simple operator?
34
- else if (ch == "/") {
35
- if (stream.eat("*")) {
36
- return chain(stream, state, tokenComment);
37
- }
38
- else {
39
- stream.eatWhile(isOperatorChar);
40
- return ret("operator", "operator");
41
- }
42
- }
43
- // single line comment or simple operator?
44
- else if (ch == "-") {
45
- if (stream.eat("-")) {
46
- stream.skipToEnd();
47
- return ret("comment", "comment");
48
- }
49
- else {
50
- stream.eatWhile(isOperatorChar);
51
- return ret("operator", "operator");
52
- }
53
- }
54
- // pl/sql variable?
55
- else if (ch == "@" || ch == "$") {
56
- stream.eatWhile(/[\w\d\$_]/);
57
- return ret("word", "variable");
58
- }
59
- // is it a operator?
60
- else if (isOperatorChar.test(ch)) {
61
- stream.eatWhile(isOperatorChar);
62
- return ret("operator", "operator");
63
- }
64
- else {
65
- // get the whole word
66
- stream.eatWhile(/[\w\$_]/);
67
- // is it one of the listed keywords?
68
- if (keywords && keywords.propertyIsEnumerable(stream.current().toLowerCase())) return ret("keyword", "keyword");
69
- // is it one of the listed functions?
70
- if (functions && functions.propertyIsEnumerable(stream.current().toLowerCase())) return ret("keyword", "builtin");
71
- // is it one of the listed types?
72
- if (types && types.propertyIsEnumerable(stream.current().toLowerCase())) return ret("keyword", "variable-2");
73
- // is it one of the listed sqlplus keywords?
74
- if (sqlplus && sqlplus.propertyIsEnumerable(stream.current().toLowerCase())) return ret("keyword", "variable-3");
75
- // default: just a "variable"
76
- return ret("word", "variable");
77
- }
78
- }
79
-
80
- function tokenString(quote) {
81
- return function(stream, state) {
82
- var escaped = false, next, end = false;
83
- while ((next = stream.next()) != null) {
84
- if (next == quote && !escaped) {end = true; break;}
85
- escaped = !escaped && next == "\\";
86
- }
87
- if (end || !(escaped || multiLineStrings))
88
- state.tokenize = tokenBase;
89
- return ret("string", "plsql-string");
90
- };
91
- }
92
-
93
- function tokenComment(stream, state) {
94
- var maybeEnd = false, ch;
95
- while (ch = stream.next()) {
96
- if (ch == "/" && maybeEnd) {
97
- state.tokenize = tokenBase;
98
- break;
99
- }
100
- maybeEnd = (ch == "*");
101
- }
102
- return ret("comment", "plsql-comment");
103
- }
104
-
105
- // Interface
106
-
107
- return {
108
- startState: function(basecolumn) {
109
- return {
110
- tokenize: tokenBase,
111
- startOfLine: true
112
- };
113
- },
114
-
115
- token: function(stream, state) {
116
- if (stream.eatSpace()) return null;
117
- var style = state.tokenize(stream, state);
118
- return style;
119
- }
120
- };
121
- });
122
-
123
- (function() {
124
- function keywords(str) {
125
- var obj = {}, words = str.split(" ");
126
- for (var i = 0; i < words.length; ++i) obj[words[i]] = true;
127
- return obj;
128
- }
129
- var cKeywords = "abort accept access add all alter and any array arraylen as asc assert assign at attributes audit " +
130
- "authorization avg " +
131
- "base_table begin between binary_integer body boolean by " +
132
- "case cast char char_base check close cluster clusters colauth column comment commit compress connect " +
133
- "connected constant constraint crash create current currval cursor " +
134
- "data_base database date dba deallocate debugoff debugon decimal declare default definition delay delete " +
135
- "desc digits dispose distinct do drop " +
136
- "else elsif enable end entry escape exception exception_init exchange exclusive exists exit external " +
137
- "fast fetch file for force form from function " +
138
- "generic goto grant group " +
139
- "having " +
140
- "identified if immediate in increment index indexes indicator initial initrans insert interface intersect " +
141
- "into is " +
142
- "key " +
143
- "level library like limited local lock log logging long loop " +
144
- "master maxextents maxtrans member minextents minus mislabel mode modify multiset " +
145
- "new next no noaudit nocompress nologging noparallel not nowait number_base " +
146
- "object of off offline on online only open option or order out " +
147
- "package parallel partition pctfree pctincrease pctused pls_integer positive positiven pragma primary prior " +
148
- "private privileges procedure public " +
149
- "raise range raw read rebuild record ref references refresh release rename replace resource restrict return " +
150
- "returning reverse revoke rollback row rowid rowlabel rownum rows run " +
151
- "savepoint schema segment select separate session set share snapshot some space split sql start statement " +
152
- "storage subtype successful synonym " +
153
- "tabauth table tables tablespace task terminate then to trigger truncate type " +
154
- "union unique unlimited unrecoverable unusable update use using " +
155
- "validate value values variable view views " +
156
- "when whenever where while with work";
157
-
158
- var cFunctions = "abs acos add_months ascii asin atan atan2 average " +
159
- "bfilename " +
160
- "ceil chartorowid chr concat convert cos cosh count " +
161
- "decode deref dual dump dup_val_on_index " +
162
- "empty error exp " +
163
- "false floor found " +
164
- "glb greatest " +
165
- "hextoraw " +
166
- "initcap instr instrb isopen " +
167
- "last_day least lenght lenghtb ln lower lpad ltrim lub " +
168
- "make_ref max min mod months_between " +
169
- "new_time next_day nextval nls_charset_decl_len nls_charset_id nls_charset_name nls_initcap nls_lower " +
170
- "nls_sort nls_upper nlssort no_data_found notfound null nvl " +
171
- "others " +
172
- "power " +
173
- "rawtohex reftohex round rowcount rowidtochar rpad rtrim " +
174
- "sign sin sinh soundex sqlcode sqlerrm sqrt stddev substr substrb sum sysdate " +
175
- "tan tanh to_char to_date to_label to_multi_byte to_number to_single_byte translate true trunc " +
176
- "uid upper user userenv " +
177
- "variance vsize";
178
-
179
- var cTypes = "bfile blob " +
180
- "character clob " +
181
- "dec " +
182
- "float " +
183
- "int integer " +
184
- "mlslabel " +
185
- "natural naturaln nchar nclob number numeric nvarchar2 " +
186
- "real rowtype " +
187
- "signtype smallint string " +
188
- "varchar varchar2";
189
-
190
- var cSqlplus = "appinfo arraysize autocommit autoprint autorecovery autotrace " +
191
- "blockterminator break btitle " +
192
- "cmdsep colsep compatibility compute concat copycommit copytypecheck " +
193
- "define describe " +
194
- "echo editfile embedded escape exec execute " +
195
- "feedback flagger flush " +
196
- "heading headsep " +
197
- "instance " +
198
- "linesize lno loboffset logsource long longchunksize " +
199
- "markup " +
200
- "native newpage numformat numwidth " +
201
- "pagesize pause pno " +
202
- "recsep recsepchar release repfooter repheader " +
203
- "serveroutput shiftinout show showmode size spool sqlblanklines sqlcase sqlcode sqlcontinue sqlnumber " +
204
- "sqlpluscompatibility sqlprefix sqlprompt sqlterminator suffix " +
205
- "tab term termout time timing trimout trimspool ttitle " +
206
- "underline " +
207
- "verify version " +
208
- "wrap";
209
-
210
- CodeMirror.defineMIME("text/x-plsql", {
211
- name: "plsql",
212
- keywords: keywords(cKeywords),
213
- functions: keywords(cFunctions),
214
- types: keywords(cTypes),
215
- sqlplus: keywords(cSqlplus)
216
- });
217
- }());
@@ -1,41 +0,0 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8">
5
- <title>CodeMirror: Properties files mode</title>
6
- <link rel="stylesheet" href="../../lib/codemirror.css">
7
- <script src="../../lib/codemirror.js"></script>
8
- <script src="properties.js"></script>
9
- <style>.CodeMirror {border-top: 1px solid #ddd; border-bottom: 1px solid #ddd;}</style>
10
- <link rel="stylesheet" href="../../doc/docs.css">
11
- </head>
12
- <body>
13
- <h1>CodeMirror: Properties files mode</h1>
14
- <form><textarea id="code" name="code">
15
- # This is a properties file
16
- a.key = A value
17
- another.key = http://example.com
18
- ! Exclamation mark as comment
19
- but.not=Within ! A value # indeed
20
- # Spaces at the beginning of a line
21
- spaces.before.key=value
22
- backslash=Used for multi\
23
- line entries,\
24
- that's convenient.
25
- # Unicode sequences
26
- unicode.key=This is \u0020 Unicode
27
- no.multiline=here
28
- # Colons
29
- colons : can be used too
30
- # Spaces
31
- spaces\ in\ keys=Not very common...
32
- </textarea></form>
33
- <script>
34
- var editor = CodeMirror.fromTextArea(document.getElementById("code"), {});
35
- </script>
36
-
37
- <p><strong>MIME types defined:</strong> <code>text/x-properties</code>,
38
- <code>text/x-ini</code>.</p>
39
-
40
- </body>
41
- </html>
@@ -1,63 +0,0 @@
1
- CodeMirror.defineMode("properties", function() {
2
- return {
3
- token: function(stream, state) {
4
- var sol = stream.sol() || state.afterSection;
5
- var eol = stream.eol();
6
-
7
- state.afterSection = false;
8
-
9
- if (sol) {
10
- if (state.nextMultiline) {
11
- state.inMultiline = true;
12
- state.nextMultiline = false;
13
- } else {
14
- state.position = "def";
15
- }
16
- }
17
-
18
- if (eol && ! state.nextMultiline) {
19
- state.inMultiline = false;
20
- state.position = "def";
21
- }
22
-
23
- if (sol) {
24
- while(stream.eatSpace());
25
- }
26
-
27
- var ch = stream.next();
28
-
29
- if (sol && (ch === "#" || ch === "!" || ch === ";")) {
30
- state.position = "comment";
31
- stream.skipToEnd();
32
- return "comment";
33
- } else if (sol && ch === "[") {
34
- state.afterSection = true;
35
- stream.skipTo("]"); stream.eat("]");
36
- return "header";
37
- } else if (ch === "=" || ch === ":") {
38
- state.position = "quote";
39
- return null;
40
- } else if (ch === "\\" && state.position === "quote") {
41
- if (stream.next() !== "u") { // u = Unicode sequence \u1234
42
- // Multiline value
43
- state.nextMultiline = true;
44
- }
45
- }
46
-
47
- return state.position;
48
- },
49
-
50
- startState: function() {
51
- return {
52
- position : "def", // Current position, "def", "quote" or "comment"
53
- nextMultiline : false, // Is the next line multiline value
54
- inMultiline : false, // Is the current line a multiline value
55
- afterSection : false // Did we just open a section
56
- };
57
- }
58
-
59
- };
60
- });
61
-
62
- CodeMirror.defineMIME("text/x-properties", "properties");
63
- CodeMirror.defineMIME("text/x-ini", "properties");
@@ -1,21 +0,0 @@
1
- The MIT License
2
-
3
- Copyright (c) 2010 Timothy Farrell
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in
13
- all copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
- THE SOFTWARE.
@@ -1,123 +0,0 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8">
5
- <title>CodeMirror: Python mode</title>
6
- <link rel="stylesheet" href="../../lib/codemirror.css">
7
- <script src="../../lib/codemirror.js"></script>
8
- <script src="python.js"></script>
9
- <link rel="stylesheet" href="../../doc/docs.css">
10
- <style type="text/css">.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style>
11
- </head>
12
- <body>
13
- <h1>CodeMirror: Python mode</h1>
14
-
15
- <div><textarea id="code" name="code">
16
- # Literals
17
- 1234
18
- 0.0e101
19
- .123
20
- 0b01010011100
21
- 0o01234567
22
- 0x0987654321abcdef
23
- 7
24
- 2147483647
25
- 3L
26
- 79228162514264337593543950336L
27
- 0x100000000L
28
- 79228162514264337593543950336
29
- 0xdeadbeef
30
- 3.14j
31
- 10.j
32
- 10j
33
- .001j
34
- 1e100j
35
- 3.14e-10j
36
-
37
-
38
- # String Literals
39
- 'For\''
40
- "God\""
41
- """so loved
42
- the world"""
43
- '''that he gave
44
- his only begotten\' '''
45
- 'that whosoever believeth \
46
- in him'
47
- ''
48
-
49
- # Identifiers
50
- __a__
51
- a.b
52
- a.b.c
53
-
54
- # Operators
55
- + - * / % & | ^ ~ < >
56
- == != <= >= <> << >> // **
57
- and or not in is
58
-
59
- # Delimiters
60
- () [] {} , : ` = ; @ . # Note that @ and . require the proper context.
61
- += -= *= /= %= &= |= ^=
62
- //= >>= <<= **=
63
-
64
- # Keywords
65
- as assert break class continue def del elif else except
66
- finally for from global if import lambda pass raise
67
- return try while with yield
68
-
69
- # Python 2 Keywords (otherwise Identifiers)
70
- exec print
71
-
72
- # Python 3 Keywords (otherwise Identifiers)
73
- nonlocal
74
-
75
- # Types
76
- bool classmethod complex dict enumerate float frozenset int list object
77
- property reversed set slice staticmethod str super tuple type
78
-
79
- # Python 2 Types (otherwise Identifiers)
80
- basestring buffer file long unicode xrange
81
-
82
- # Python 3 Types (otherwise Identifiers)
83
- bytearray bytes filter map memoryview open range zip
84
-
85
- # Some Example code
86
- import os
87
- from package import ParentClass
88
-
89
- @nonsenseDecorator
90
- def doesNothing():
91
- pass
92
-
93
- class ExampleClass(ParentClass):
94
- @staticmethod
95
- def example(inputStr):
96
- a = list(inputStr)
97
- a.reverse()
98
- return ''.join(a)
99
-
100
- def __init__(self, mixin = 'Hello'):
101
- self.mixin = mixin
102
-
103
- </textarea></div>
104
- <script>
105
- var editor = CodeMirror.fromTextArea(document.getElementById("code"), {
106
- mode: {name: "python",
107
- version: 2,
108
- singleLineStringErrors: false},
109
- lineNumbers: true,
110
- indentUnit: 4,
111
- tabMode: "shift",
112
- matchBrackets: true
113
- });
114
- </script>
115
- <h2>Configuration Options:</h2>
116
- <ul>
117
- <li>version - 2/3 - The version of Python to recognize. Default is 2.</li>
118
- <li>singleLineStringErrors - true/false - If you have a single-line string that is not terminated at the end of the line, this will show subsequent lines as errors if true, otherwise it will consider the newline as the end of the string. Default is false.</li>
119
- </ul>
120
-
121
- <p><strong>MIME types defined:</strong> <code>text/x-python</code>.</p>
122
- </body>
123
- </html>