codemirror-rails 2.3 → 2.21

Sign up to get free protection for your applications and to get access to all the features.
Files changed (71) hide show
  1. data/README.md +0 -16
  2. data/codemirror-rails.gemspec +1 -1
  3. data/lib/codemirror/rails/version.rb +2 -2
  4. data/vendor/assets/javascripts/codemirror.js +323 -687
  5. data/vendor/assets/javascripts/codemirror/modes/clike.js +3 -40
  6. data/vendor/assets/javascripts/codemirror/modes/clojure.js +14 -14
  7. data/vendor/assets/javascripts/codemirror/modes/coffeescript.js +0 -6
  8. data/vendor/assets/javascripts/codemirror/modes/css.js +1 -1
  9. data/vendor/assets/javascripts/codemirror/modes/diff.js +5 -24
  10. data/vendor/assets/javascripts/codemirror/modes/gfm.js +4 -40
  11. data/vendor/assets/javascripts/codemirror/modes/go.js +22 -20
  12. data/vendor/assets/javascripts/codemirror/modes/htmlembedded.js +1 -1
  13. data/vendor/assets/javascripts/codemirror/modes/htmlmixed.js +2 -4
  14. data/vendor/assets/javascripts/codemirror/modes/javascript.js +7 -8
  15. data/vendor/assets/javascripts/codemirror/modes/less.js +54 -100
  16. data/vendor/assets/javascripts/codemirror/modes/markdown.js +49 -52
  17. data/vendor/assets/javascripts/codemirror/modes/pascal.js +46 -2
  18. data/vendor/assets/javascripts/codemirror/modes/perl.js +1 -1
  19. data/vendor/assets/javascripts/codemirror/modes/php.js +25 -54
  20. data/vendor/assets/javascripts/codemirror/modes/python.js +16 -14
  21. data/vendor/assets/javascripts/codemirror/modes/rpm-spec.js +1 -1
  22. data/vendor/assets/javascripts/codemirror/modes/rst.js +1 -1
  23. data/vendor/assets/javascripts/codemirror/modes/ruby.js +9 -4
  24. data/vendor/assets/javascripts/codemirror/modes/scheme.js +46 -74
  25. data/vendor/assets/javascripts/codemirror/modes/smalltalk.js +16 -16
  26. data/vendor/assets/javascripts/codemirror/modes/stex.js +6 -21
  27. data/vendor/assets/javascripts/codemirror/modes/tiddlywiki.js +45 -55
  28. data/vendor/assets/javascripts/codemirror/modes/xml.js +14 -79
  29. data/vendor/assets/javascripts/codemirror/{utils/overlay.js → overlay.js} +2 -3
  30. data/vendor/assets/javascripts/codemirror/runmode.js +27 -0
  31. data/vendor/assets/stylesheets/codemirror.css +2 -63
  32. data/vendor/assets/stylesheets/codemirror/modes/tiddlywiki.css +21 -14
  33. data/vendor/assets/stylesheets/codemirror/themes/eclipse.css +1 -1
  34. data/vendor/assets/stylesheets/codemirror/themes/elegant.css +2 -2
  35. data/vendor/assets/stylesheets/codemirror/themes/neat.css +3 -3
  36. data/vendor/assets/stylesheets/codemirror/themes/night.css +1 -1
  37. data/vendor/assets/stylesheets/codemirror/themes/rubyblue.css +2 -2
  38. metadata +6 -39
  39. data/vendor/assets/javascripts/codemirror/keymaps/emacs.js +0 -29
  40. data/vendor/assets/javascripts/codemirror/keymaps/vim.js +0 -766
  41. data/vendor/assets/javascripts/codemirror/modes/ecl.js +0 -203
  42. data/vendor/assets/javascripts/codemirror/modes/erlang.js +0 -251
  43. data/vendor/assets/javascripts/codemirror/modes/pig.js +0 -172
  44. data/vendor/assets/javascripts/codemirror/modes/properties.js +0 -63
  45. data/vendor/assets/javascripts/codemirror/modes/shell.js +0 -103
  46. data/vendor/assets/javascripts/codemirror/modes/smarty.js +0 -148
  47. data/vendor/assets/javascripts/codemirror/modes/tiki.js +0 -316
  48. data/vendor/assets/javascripts/codemirror/modes/vbscript.js +0 -26
  49. data/vendor/assets/javascripts/codemirror/modes/xquery.js +0 -448
  50. data/vendor/assets/javascripts/codemirror/utils/closetag.js +0 -146
  51. data/vendor/assets/javascripts/codemirror/utils/dialog.js +0 -63
  52. data/vendor/assets/javascripts/codemirror/utils/foldcode.js +0 -196
  53. data/vendor/assets/javascripts/codemirror/utils/formatting.js +0 -297
  54. data/vendor/assets/javascripts/codemirror/utils/javascript-hint.js +0 -134
  55. data/vendor/assets/javascripts/codemirror/utils/loadmode.js +0 -51
  56. data/vendor/assets/javascripts/codemirror/utils/match-highlighter.js +0 -44
  57. data/vendor/assets/javascripts/codemirror/utils/multiplex.js +0 -72
  58. data/vendor/assets/javascripts/codemirror/utils/pig-hint.js +0 -123
  59. data/vendor/assets/javascripts/codemirror/utils/runmode.js +0 -49
  60. data/vendor/assets/javascripts/codemirror/utils/search.js +0 -118
  61. data/vendor/assets/javascripts/codemirror/utils/searchcursor.js +0 -117
  62. data/vendor/assets/javascripts/codemirror/utils/simple-hint.js +0 -72
  63. data/vendor/assets/stylesheets/codemirror/modes/tiki.css +0 -26
  64. data/vendor/assets/stylesheets/codemirror/themes/ambiance.css +0 -81
  65. data/vendor/assets/stylesheets/codemirror/themes/blackboard.css +0 -25
  66. data/vendor/assets/stylesheets/codemirror/themes/erlang-dark.css +0 -21
  67. data/vendor/assets/stylesheets/codemirror/themes/lesser-dark.css +0 -44
  68. data/vendor/assets/stylesheets/codemirror/themes/vibrant-ink.css +0 -27
  69. data/vendor/assets/stylesheets/codemirror/themes/xq-dark.css +0 -46
  70. data/vendor/assets/stylesheets/codemirror/utils/dialog.css +0 -23
  71. data/vendor/assets/stylesheets/codemirror/utils/simple-hint.css +0 -16
@@ -1,44 +0,0 @@
1
- /*
2
- http://lesscss.org/ dark theme
3
- Ported to CodeMirror by Peter Kroon
4
- */
5
- .cm-s-lesser-dark {
6
- line-height: 1.3em;
7
- }
8
- .cm-s-lesser-dark {
9
- font-family: 'Bitstream Vera Sans Mono', 'DejaVu Sans Mono', 'Monaco', Courier, monospace !important;
10
- }
11
-
12
- .cm-s-lesser-dark { background: #262626; color: #EBEFE7; text-shadow: 0 -1px 1px #262626; }
13
- .cm-s-lesser-dark div.CodeMirror-selected {background: #45443B !important;} /* 33322B*/
14
- .cm-s-lesser-dark .CodeMirror-cursor { border-left: 1px solid white !important; }
15
- .cm-s-lesser-dark .CodeMirror-lines { margin-left:3px; margin-right:3px; }/*editable code holder*/
16
-
17
- div.CodeMirror span.CodeMirror-matchingbracket { color: #7EFC7E; }/*65FC65*/
18
-
19
- .cm-s-lesser-dark .CodeMirror-gutter { background: #262626; border-right:1px solid #aaa; padding-right:3px; min-width:2.5em; }
20
- .cm-s-lesser-dark .CodeMirror-gutter-text { color: #777; }
21
-
22
- .cm-s-lesser-dark span.cm-keyword { color: #599eff; }
23
- .cm-s-lesser-dark span.cm-atom { color: #C2B470; }
24
- .cm-s-lesser-dark span.cm-number { color: #B35E4D; }
25
- .cm-s-lesser-dark span.cm-def {color: white;}
26
- .cm-s-lesser-dark span.cm-variable { color:#D9BF8C; }
27
- .cm-s-lesser-dark span.cm-variable-2 { color: #669199; }
28
- .cm-s-lesser-dark span.cm-variable-3 { color: white; }
29
- .cm-s-lesser-dark span.cm-property {color: #92A75C;}
30
- .cm-s-lesser-dark span.cm-operator {color: #92A75C;}
31
- .cm-s-lesser-dark span.cm-comment { color: #666; }
32
- .cm-s-lesser-dark span.cm-string { color: #BCD279; }
33
- .cm-s-lesser-dark span.cm-string-2 {color: #f50;}
34
- .cm-s-lesser-dark span.cm-meta { color: #738C73; }
35
- .cm-s-lesser-dark span.cm-error { color: #9d1e15; }
36
- .cm-s-lesser-dark span.cm-qualifier {color: #555;}
37
- .cm-s-lesser-dark span.cm-builtin { color: #ff9e59; }
38
- .cm-s-lesser-dark span.cm-bracket { color: #EBEFE7; }
39
- .cm-s-lesser-dark span.cm-tag { color: #669199; }
40
- .cm-s-lesser-dark span.cm-attribute {color: #00c;}
41
- .cm-s-lesser-dark span.cm-header {color: #a0a;}
42
- .cm-s-lesser-dark span.cm-quote {color: #090;}
43
- .cm-s-lesser-dark span.cm-hr {color: #999;}
44
- .cm-s-lesser-dark span.cm-link {color: #00c;}
@@ -1,27 +0,0 @@
1
- /* Taken from the popular Visual Studio Vibrant Ink Schema */
2
-
3
- .cm-s-vibrant-ink { background: black; color: white; }
4
- .cm-s-vibrant-ink .CodeMirror-selected { background: #35493c !important; }
5
-
6
- .cm-s-vibrant-ink .CodeMirror-gutter { background: #002240; border-right: 1px solid #aaa; }
7
- .cm-s-vibrant-ink .CodeMirror-gutter-text { color: #d0d0d0; }
8
- .cm-s-vibrant-ink .CodeMirror-cursor { border-left: 1px solid white !important; }
9
-
10
- .cm-s-vibrant-ink .cm-keyword { color: #CC7832; }
11
- .cm-s-vibrant-ink .cm-atom { color: #FC0; }
12
- .cm-s-vibrant-ink .cm-number { color: #FFEE98; }
13
- .cm-s-vibrant-ink .cm-def { color: #8DA6CE; }
14
- .cm-s-vibrant-ink span.cm-variable-2, .cm-s-cobalt span.cm-tag { color: #FFC66D }
15
- .cm-s-vibrant-ink span.cm-variable-3, .cm-s-cobalt span.cm-def { color: #FFC66D }
16
- .cm-s-vibrant-ink .cm-operator { color: #888; }
17
- .cm-s-vibrant-ink .cm-comment { color: gray; font-weight: bold; }
18
- .cm-s-vibrant-ink .cm-string { color: #A5C25C }
19
- .cm-s-vibrant-ink .cm-string-2 { color: red }
20
- .cm-s-vibrant-ink .cm-meta { color: #D8FA3C; }
21
- .cm-s-vibrant-ink .cm-error { border-bottom: 1px solid red; }
22
- .cm-s-vibrant-ink .cm-builtin { color: #8DA6CE; }
23
- .cm-s-vibrant-ink .cm-tag { color: #8DA6CE; }
24
- .cm-s-vibrant-ink .cm-attribute { color: #8DA6CE; }
25
- .cm-s-vibrant-ink .cm-header { color: #FF6400; }
26
- .cm-s-vibrant-ink .cm-hr { color: #AEAEAE; }
27
- .cm-s-vibrant-ink .cm-link { color: blue; }
@@ -1,46 +0,0 @@
1
- /*
2
- Copyright (C) 2011 by MarkLogic Corporation
3
- Author: Mike Brevoort <mike@brevoort.com>
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.
22
- */
23
- .cm-s-xq-dark { background: #0a001f; color: #f8f8f8; }
24
- .cm-s-xq-dark span.CodeMirror-selected { background: #a8f !important; }
25
- .cm-s-xq-dark .CodeMirror-gutter { background: #0a001f; border-right: 1px solid #aaa; }
26
- .cm-s-xq-dark .CodeMirror-gutter-text { color: #f8f8f8; }
27
- .cm-s-xq-dark .CodeMirror-cursor { border-left: 1px solid white !important; }
28
-
29
- .cm-s-xq-dark span.cm-keyword {color: #FFBD40;}
30
- .cm-s-xq-dark span.cm-atom {color: #6C8CD5;}
31
- .cm-s-xq-dark span.cm-number {color: #164;}
32
- .cm-s-xq-dark span.cm-def {color: #FFF; text-decoration:underline;}
33
- .cm-s-xq-dark span.cm-variable {color: #FFF;}
34
- .cm-s-xq-dark span.cm-variable-2 {color: #EEE;}
35
- .cm-s-xq-dark span.cm-variable-3 {color: #DDD;}
36
- .cm-s-xq-dark span.cm-property {}
37
- .cm-s-xq-dark span.cm-operator {}
38
- .cm-s-xq-dark span.cm-comment {color: gray;}
39
- .cm-s-xq-dark span.cm-string {color: #9FEE00;}
40
- .cm-s-xq-dark span.cm-meta {color: yellow;}
41
- .cm-s-xq-dark span.cm-error {color: #f00;}
42
- .cm-s-xq-dark span.cm-qualifier {color: #FFF700;}
43
- .cm-s-xq-dark span.cm-builtin {color: #30a;}
44
- .cm-s-xq-dark span.cm-bracket {color: #cc7;}
45
- .cm-s-xq-dark span.cm-tag {color: #FFBD40;}
46
- .cm-s-xq-dark span.cm-attribute {color: #FFF700;}
@@ -1,23 +0,0 @@
1
- .CodeMirror-dialog {
2
- position: relative;
3
- }
4
-
5
- .CodeMirror-dialog > div {
6
- position: absolute;
7
- top: 0; left: 0; right: 0;
8
- background: white;
9
- border-bottom: 1px solid #eee;
10
- z-index: 15;
11
- padding: .1em .8em;
12
- overflow: hidden;
13
- color: #333;
14
- }
15
-
16
- .CodeMirror-dialog input {
17
- border: none;
18
- outline: none;
19
- background: transparent;
20
- width: 20em;
21
- color: inherit;
22
- font-family: monospace;
23
- }
@@ -1,16 +0,0 @@
1
- .CodeMirror-completions {
2
- position: absolute;
3
- z-index: 10;
4
- overflow: hidden;
5
- -webkit-box-shadow: 2px 3px 5px rgba(0,0,0,.2);
6
- -moz-box-shadow: 2px 3px 5px rgba(0,0,0,.2);
7
- box-shadow: 2px 3px 5px rgba(0,0,0,.2);
8
- }
9
- .CodeMirror-completions select {
10
- background: #fafafa;
11
- outline: none;
12
- border: none;
13
- padding: 0;
14
- margin: 0;
15
- font-family: monospace;
16
- }