codemirror-rails 3.15 → 3.16

Sign up to get free protection for your applications and to get access to all the features.
Files changed (49) hide show
  1. checksums.yaml +4 -4
  2. data/lib/codemirror/rails/version.rb +2 -2
  3. data/vendor/assets/javascripts/codemirror.js +59 -29
  4. data/vendor/assets/javascripts/codemirror/addons/comment/continuecomment.js +44 -0
  5. data/vendor/assets/javascripts/codemirror/addons/display/fullscreen.js +30 -0
  6. data/vendor/assets/javascripts/codemirror/addons/edit/continuecomment.js +1 -1
  7. data/vendor/assets/javascripts/codemirror/addons/fold/brace-fold.js +3 -3
  8. data/vendor/assets/javascripts/codemirror/addons/fold/comment-fold.js +40 -0
  9. data/vendor/assets/javascripts/codemirror/addons/hint/show-hint.js +7 -10
  10. data/vendor/assets/javascripts/codemirror/addons/scroll/scrollpastend.js +34 -0
  11. data/vendor/assets/javascripts/codemirror/addons/search/match-highlighter.js +4 -1
  12. data/vendor/assets/javascripts/codemirror/keymaps/vim.js +5 -0
  13. data/vendor/assets/javascripts/codemirror/modes/css.js +21 -19
  14. data/vendor/assets/javascripts/codemirror/modes/erlang.js +122 -102
  15. data/vendor/assets/javascripts/codemirror/modes/javascript.js +3 -2
  16. data/vendor/assets/javascripts/codemirror/modes/python.js +12 -4
  17. data/vendor/assets/javascripts/codemirror/modes/rst.js +20 -21
  18. data/vendor/assets/javascripts/codemirror/modes/velocity.js +54 -12
  19. data/vendor/assets/javascripts/codemirror/modes/xml.js +1 -1
  20. data/vendor/assets/javascripts/codemirror/modes/xquery.js +5 -1
  21. data/vendor/assets/javascripts/codemirror/modes/yaml.js +8 -8
  22. data/vendor/assets/stylesheets/codemirror.css +1 -0
  23. data/vendor/assets/stylesheets/codemirror/addons/display/fullscreen.css +6 -0
  24. data/vendor/assets/stylesheets/codemirror/themes/3024-day.css +1 -0
  25. data/vendor/assets/stylesheets/codemirror/themes/3024-night.css +1 -0
  26. data/vendor/assets/stylesheets/codemirror/themes/ambiance.css +1 -1
  27. data/vendor/assets/stylesheets/codemirror/themes/base16-dark.css +1 -0
  28. data/vendor/assets/stylesheets/codemirror/themes/base16-light.css +1 -0
  29. data/vendor/assets/stylesheets/codemirror/themes/blackboard.css +3 -0
  30. data/vendor/assets/stylesheets/codemirror/themes/cobalt.css +3 -0
  31. data/vendor/assets/stylesheets/codemirror/themes/eclipse.css +2 -4
  32. data/vendor/assets/stylesheets/codemirror/themes/elegant.css +3 -0
  33. data/vendor/assets/stylesheets/codemirror/themes/erlang-dark.css +11 -2
  34. data/vendor/assets/stylesheets/codemirror/themes/lesser-dark.css +3 -0
  35. data/vendor/assets/stylesheets/codemirror/themes/midnight.css +2 -2
  36. data/vendor/assets/stylesheets/codemirror/themes/monokai.css +1 -0
  37. data/vendor/assets/stylesheets/codemirror/themes/neat.css +3 -0
  38. data/vendor/assets/stylesheets/codemirror/themes/night.css +3 -0
  39. data/vendor/assets/stylesheets/codemirror/themes/paraiso-dark.css +34 -0
  40. data/vendor/assets/stylesheets/codemirror/themes/paraiso-light.css +34 -0
  41. data/vendor/assets/stylesheets/codemirror/themes/rubyblue.css +2 -0
  42. data/vendor/assets/stylesheets/codemirror/themes/solarized.css +2 -7
  43. data/vendor/assets/stylesheets/codemirror/themes/the-matrix.css +26 -0
  44. data/vendor/assets/stylesheets/codemirror/themes/tomorrow-night-eighties.css +1 -0
  45. data/vendor/assets/stylesheets/codemirror/themes/twilight.css +2 -0
  46. data/vendor/assets/stylesheets/codemirror/themes/vibrant-ink.css +3 -0
  47. data/vendor/assets/stylesheets/codemirror/themes/xq-dark.css +4 -1
  48. data/vendor/assets/stylesheets/codemirror/themes/xq-light.css +1 -1
  49. metadata +10 -2
@@ -42,3 +42,6 @@ Ported to CodeMirror by Peter Kroon
42
42
  .cm-s-lesser-dark span.cm-quote {color: #090;}
43
43
  .cm-s-lesser-dark span.cm-hr {color: #999;}
44
44
  .cm-s-lesser-dark span.cm-link {color: #00c;}
45
+
46
+ .cm-s-lesser-dark .CodeMirror-activeline-background {background: #3C3A3A !important;}
47
+ .cm-s-lesser-dark .CodeMirror-matchingbracket {outline:1px solid grey; color:white !important;}
@@ -5,7 +5,7 @@
5
5
  .cm-s-midnight.CodeMirror-focused span.CodeMirror-matchhighlight { background: #314D67 !important; }
6
6
 
7
7
  /*<!--activeline-->*/
8
- .cm-s-midnight .activeline {background: #253540 !important;}
8
+ .cm-s-midnight .CodeMirror-activeline-background {background: #253540 !important;}
9
9
 
10
10
  .cm-s-midnight.CodeMirror {
11
11
  background: #0F192A;
@@ -34,7 +34,7 @@
34
34
  .cm-s-midnight span.cm-def {color: #4DD;}
35
35
  .cm-s-midnight span.cm-error {background: #F92672; color: #F8F8F0;}
36
36
  .cm-s-midnight span.cm-bracket {color: #D1EDFF;}
37
- .cm-s-midnight span.cm-tag {color: #008;}
37
+ .cm-s-midnight span.cm-tag {color: #449;}
38
38
  .cm-s-midnight span.cm-link {color: #AE81FF;}
39
39
 
40
40
  .cm-s-midnight .CodeMirror-matchingbracket {
@@ -22,6 +22,7 @@
22
22
  .cm-s-monokai span.cm-tag {color: #f92672;}
23
23
  .cm-s-monokai span.cm-link {color: #ae81ff;}
24
24
 
25
+ .cm-s-monokai .CodeMirror-activeline-background {background: #373831 !important;}
25
26
  .cm-s-monokai .CodeMirror-matchingbracket {
26
27
  text-decoration: underline;
27
28
  color: white !important;
@@ -7,3 +7,6 @@
7
7
  .cm-s-neat span.cm-number, .cm-s-neat span.cm-atom { color: #3a3; }
8
8
  .cm-s-neat span.cm-meta {color: #555;}
9
9
  .cm-s-neat span.cm-link { color: #3a3; }
10
+
11
+ .cm-s-neat .CodeMirror-activeline-background {background: #e8f2ff !important;}
12
+ .cm-s-neat .CodeMirror-matchingbracket {outline:1px solid grey; color:black !important;}
@@ -19,3 +19,6 @@
19
19
  .cm-s-night span.cm-comment { color: #6900a1; }
20
20
  .cm-s-night span.cm-builtin, .cm-s-night span.cm-special { color: #ff9e59; }
21
21
  .cm-s-night span.cm-link { color: #845dc4; }
22
+
23
+ .cm-s-night .CodeMirror-activeline-background {background: #1C005A !important;}
24
+ .cm-s-night .CodeMirror-matchingbracket {outline:1px solid grey; color:white !important;}
@@ -0,0 +1,34 @@
1
+ /*
2
+
3
+ Name: Paraíso (Dark)
4
+ Author: Jan T. Sott
5
+
6
+ Color scheme by Jan T. Sott (https://github.com/idleberg/Paraiso-CodeMirror)
7
+ Inspired by the art of Rubens LP (http://www.rubenslp.com.br)
8
+
9
+ */
10
+
11
+ .cm-s-paraiso-dark.CodeMirror {background: #2f1e2e; color: #b9b6b0;}
12
+ .cm-s-paraiso-dark div.CodeMirror-selected {background: #41323f !important;}
13
+ .cm-s-paraiso-dark .CodeMirror-gutters {background: #2f1e2e; border-right: 0px;}
14
+ .cm-s-paraiso-dark .CodeMirror-linenumber {color: #776e71;}
15
+ .cm-s-paraiso-dark .CodeMirror-cursor {border-left: 1px solid #8d8687 !important;}
16
+
17
+ .cm-s-paraiso-dark span.cm-comment {color: #e96ba8;}
18
+ .cm-s-paraiso-dark span.cm-atom {color: #815ba4;}
19
+ .cm-s-paraiso-dark span.cm-number {color: #815ba4;}
20
+
21
+ .cm-s-paraiso-dark span.cm-property, .cm-s-paraiso-dark span.cm-attribute {color: #48b685;}
22
+ .cm-s-paraiso-dark span.cm-keyword {color: #ef6155;}
23
+ .cm-s-paraiso-dark span.cm-string {color: #fec418;}
24
+
25
+ .cm-s-paraiso-dark span.cm-variable {color: #48b685;}
26
+ .cm-s-paraiso-dark span.cm-variable-2 {color: #06b6ef;}
27
+ .cm-s-paraiso-dark span.cm-def {color: #f99b15;}
28
+ .cm-s-paraiso-dark span.cm-error {background: #ef6155; color: #8d8687;}
29
+ .cm-s-paraiso-dark span.cm-bracket {color: #b9b6b0;}
30
+ .cm-s-paraiso-dark span.cm-tag {color: #ef6155;}
31
+ .cm-s-paraiso-dark span.cm-link {color: #815ba4;}
32
+
33
+ .cm-s-paraiso-dark .CodeMirror-activeline-background {background: #4D344A !important;}
34
+ .cm-s-paraiso-dark .CodeMirror-matchingbracket { text-decoration: underline; color: white !important;}
@@ -0,0 +1,34 @@
1
+ /*
2
+
3
+ Name: Paraíso (Light)
4
+ Author: Jan T. Sott
5
+
6
+ Color scheme by Jan T. Sott (https://github.com/idleberg/Paraiso-CodeMirror)
7
+ Inspired by the art of Rubens LP (http://www.rubenslp.com.br)
8
+
9
+ */
10
+
11
+ .cm-s-paraiso-light.CodeMirror {background: #e7e9db; color: #41323f;}
12
+ .cm-s-paraiso-light div.CodeMirror-selected {background: #b9b6b0 !important;}
13
+ .cm-s-paraiso-light .CodeMirror-gutters {background: #e7e9db; border-right: 0px;}
14
+ .cm-s-paraiso-light .CodeMirror-linenumber {color: #8d8687;}
15
+ .cm-s-paraiso-light .CodeMirror-cursor {border-left: 1px solid #776e71 !important;}
16
+
17
+ .cm-s-paraiso-light span.cm-comment {color: #e96ba8;}
18
+ .cm-s-paraiso-light span.cm-atom {color: #815ba4;}
19
+ .cm-s-paraiso-light span.cm-number {color: #815ba4;}
20
+
21
+ .cm-s-paraiso-light span.cm-property, .cm-s-paraiso-light span.cm-attribute {color: #48b685;}
22
+ .cm-s-paraiso-light span.cm-keyword {color: #ef6155;}
23
+ .cm-s-paraiso-light span.cm-string {color: #fec418;}
24
+
25
+ .cm-s-paraiso-light span.cm-variable {color: #48b685;}
26
+ .cm-s-paraiso-light span.cm-variable-2 {color: #06b6ef;}
27
+ .cm-s-paraiso-light span.cm-def {color: #f99b15;}
28
+ .cm-s-paraiso-light span.cm-error {background: #ef6155; color: #776e71;}
29
+ .cm-s-paraiso-light span.cm-bracket {color: #41323f;}
30
+ .cm-s-paraiso-light span.cm-tag {color: #ef6155;}
31
+ .cm-s-paraiso-light span.cm-link {color: #815ba4;}
32
+
33
+ .cm-s-paraiso-light .CodeMirror-activeline-background {background: #CFD1C4 !important;}
34
+ .cm-s-paraiso-light .CodeMirror-matchingbracket { text-decoration: underline; color: white !important;}
@@ -19,3 +19,5 @@
19
19
  .cm-s-rubyblue span.cm-link { color: #F4C20B; }
20
20
  .cm-s-rubyblue span.CodeMirror-matchingbracket { color:#F0F !important; }
21
21
  .cm-s-rubyblue span.cm-builtin, .cm-s-rubyblue span.cm-special { color: #FF9D00; }
22
+
23
+ .cm-s-rubyblue .CodeMirror-activeline-background {background: #173047 !important;}
@@ -186,15 +186,10 @@ http://ethanschoonover.com/solarized/img/solarized-palette.png
186
186
  Active line. Negative margin compensates left padding of the text in the
187
187
  view-port
188
188
  */
189
- .cm-s-solarized .activeline {
190
- margin-left: -20px;
191
- }
192
-
193
- .cm-s-solarized.cm-s-dark .activeline {
189
+ .cm-s-solarized.cm-s-dark .CodeMirror-activeline-background {
194
190
  background: rgba(255, 255, 255, 0.05);
195
-
196
191
  }
197
- .cm-s-solarized.cm-s-light .activeline {
192
+ .cm-s-solarized.cm-s-light .CodeMirror-activeline-background {
198
193
  background: rgba(0, 0, 0, 0.05);
199
194
  }
200
195
 
@@ -0,0 +1,26 @@
1
+ .cm-s-the-matrix.CodeMirror { background: #000000; color: #00FF00; }
2
+ .cm-s-the-matrix span.CodeMirror-selected { background: #a8f !important; }
3
+ .cm-s-the-matrix .CodeMirror-gutters { background: #060; border-right: 2px solid #00FF00; }
4
+ .cm-s-the-matrix .CodeMirror-linenumber { color: #FFFFFF; }
5
+ .cm-s-the-matrix .CodeMirror-cursor { border-left: 1px solid #00FF00 !important; }
6
+
7
+ .cm-s-the-matrix span.cm-keyword {color: #008803; font-weight: bold;}
8
+ .cm-s-the-matrix span.cm-atom {color: #3FF;}
9
+ .cm-s-the-matrix span.cm-number {color: #FFB94F;}
10
+ .cm-s-the-matrix span.cm-def {color: #99C;}
11
+ .cm-s-the-matrix span.cm-variable {color: #F6C;}
12
+ .cm-s-the-matrix span.cm-variable-2 {color: #C6F;}
13
+ .cm-s-the-matrix span.cm-variable-3 {color: #96F;}
14
+ .cm-s-the-matrix span.cm-property {color: #62FFA0;}
15
+ .cm-s-the-matrix span.cm-operator {color: #999}
16
+ .cm-s-the-matrix span.cm-comment {color: #CCCCCC;}
17
+ .cm-s-the-matrix span.cm-string {color: #39C;}
18
+ .cm-s-the-matrix span.cm-meta {color: #C9F;}
19
+ .cm-s-the-matrix span.cm-error {color: #FF0000;}
20
+ .cm-s-the-matrix span.cm-qualifier {color: #FFF700;}
21
+ .cm-s-the-matrix span.cm-builtin {color: #30a;}
22
+ .cm-s-the-matrix span.cm-bracket {color: #cc7;}
23
+ .cm-s-the-matrix span.cm-tag {color: #FFBD40;}
24
+ .cm-s-the-matrix span.cm-attribute {color: #FFF700;}
25
+
26
+ .cm-s-the-matrix .CodeMirror-activeline-background {background: #040;}
@@ -30,4 +30,5 @@
30
30
  .cm-s-tomorrow-night-eighties span.cm-tag {color: #f2777a;}
31
31
  .cm-s-tomorrow-night-eighties span.cm-link {color: #a16a94;}
32
32
 
33
+ .cm-s-tomorrow-night-eighties .CodeMirror-activeline-background {background: #343600 !important;}
33
34
  .cm-s-tomorrow-night-eighties .CodeMirror-matchingbracket { text-decoration: underline; color: white !important;}
@@ -24,3 +24,5 @@
24
24
  .cm-s-twilight .cm-hr { color: #AEAEAE; }
25
25
  .cm-s-twilight .cm-link { color:#ad9361; font-style:italic; text-decoration:none; } /**/
26
26
 
27
+ .cm-s-twilight .CodeMirror-activeline-background {background: #27282E !important;}
28
+ .cm-s-twilight .CodeMirror-matchingbracket {outline:1px solid grey; color:white !important;}
@@ -25,3 +25,6 @@
25
25
  .cm-s-vibrant-ink .cm-header { color: #FF6400; }
26
26
  .cm-s-vibrant-ink .cm-hr { color: #AEAEAE; }
27
27
  .cm-s-vibrant-ink .cm-link { color: blue; }
28
+
29
+ .cm-s-vibrant-ink .CodeMirror-activeline-background {background: #27282E !important;}
30
+ .cm-s-vibrant-ink .CodeMirror-matchingbracket {outline:1px solid grey; color:white !important;}
@@ -21,7 +21,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
21
  THE SOFTWARE.
22
22
  */
23
23
  .cm-s-xq-dark.CodeMirror { background: #0a001f; color: #f8f8f8; }
24
- .cm-s-xq-dark span.CodeMirror-selected { background: #a8f !important; }
24
+ .cm-s-xq-dark .CodeMirror-selected { background: #27007A !important; }
25
25
  .cm-s-xq-dark .CodeMirror-gutters { background: #0a001f; border-right: 1px solid #aaa; }
26
26
  .cm-s-xq-dark .CodeMirror-linenumber { color: #f8f8f8; }
27
27
  .cm-s-xq-dark .CodeMirror-cursor { border-left: 1px solid white !important; }
@@ -44,3 +44,6 @@ THE SOFTWARE.
44
44
  .cm-s-xq-dark span.cm-bracket {color: #cc7;}
45
45
  .cm-s-xq-dark span.cm-tag {color: #FFBD40;}
46
46
  .cm-s-xq-dark span.cm-attribute {color: #FFF700;}
47
+
48
+ .cm-s-xq-dark .CodeMirror-activeline-background {background: #27282E !important;}
49
+ .cm-s-xq-dark .CodeMirror-matchingbracket {outline:1px solid grey; color:white !important;}
@@ -40,4 +40,4 @@ THE SOFTWARE.
40
40
  .cm-s-xq-light span.cm-attribute {color: #7F007F;}
41
41
 
42
42
  .cm-s-xq-light .CodeMirror-activeline-background {background: #e8f2ff !important;}
43
- .cm-s-xq-light .CodeMirror-matchingbracket {border:1px solid grey;color:black !important;background:yellow;}
43
+ .cm-s-xq-light .CodeMirror-matchingbracket {outline:1px solid grey;color:black !important;background:yellow;}
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: codemirror-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: '3.15'
4
+ version: '3.16'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Fixler
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-08-11 00:00:00.000000000 Z
11
+ date: 2013-08-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties
@@ -148,7 +148,9 @@ files:
148
148
  - test/test_helper.rb
149
149
  - vendor/assets/javascripts/codemirror.js
150
150
  - vendor/assets/javascripts/codemirror/addons/comment/comment.js
151
+ - vendor/assets/javascripts/codemirror/addons/comment/continuecomment.js
151
152
  - vendor/assets/javascripts/codemirror/addons/dialog/dialog.js
153
+ - vendor/assets/javascripts/codemirror/addons/display/fullscreen.js
152
154
  - vendor/assets/javascripts/codemirror/addons/display/placeholder.js
153
155
  - vendor/assets/javascripts/codemirror/addons/edit/closebrackets.js
154
156
  - vendor/assets/javascripts/codemirror/addons/edit/closetag.js
@@ -158,6 +160,7 @@ files:
158
160
  - vendor/assets/javascripts/codemirror/addons/edit/matchtags.js
159
161
  - vendor/assets/javascripts/codemirror/addons/edit/trailingspace.js
160
162
  - vendor/assets/javascripts/codemirror/addons/fold/brace-fold.js
163
+ - vendor/assets/javascripts/codemirror/addons/fold/comment-fold.js
161
164
  - vendor/assets/javascripts/codemirror/addons/fold/foldcode.js
162
165
  - vendor/assets/javascripts/codemirror/addons/fold/foldgutter.js
163
166
  - vendor/assets/javascripts/codemirror/addons/fold/indent-fold.js
@@ -182,6 +185,7 @@ files:
182
185
  - vendor/assets/javascripts/codemirror/addons/runmode/runmode-standalone.js
183
186
  - vendor/assets/javascripts/codemirror/addons/runmode/runmode.js
184
187
  - vendor/assets/javascripts/codemirror/addons/runmode/runmode.node.js
188
+ - vendor/assets/javascripts/codemirror/addons/scroll/scrollpastend.js
185
189
  - vendor/assets/javascripts/codemirror/addons/search/match-highlighter.js
186
190
  - vendor/assets/javascripts/codemirror/addons/search/search.js
187
191
  - vendor/assets/javascripts/codemirror/addons/search/searchcursor.js
@@ -263,6 +267,7 @@ files:
263
267
  - vendor/assets/javascripts/codemirror/modes/z80.js
264
268
  - vendor/assets/stylesheets/codemirror.css
265
269
  - vendor/assets/stylesheets/codemirror/addons/dialog/dialog.css
270
+ - vendor/assets/stylesheets/codemirror/addons/display/fullscreen.css
266
271
  - vendor/assets/stylesheets/codemirror/addons/hint/show-hint.css
267
272
  - vendor/assets/stylesheets/codemirror/addons/lint/lint.css
268
273
  - vendor/assets/stylesheets/codemirror/addons/merge/merge.css
@@ -286,8 +291,11 @@ files:
286
291
  - vendor/assets/stylesheets/codemirror/themes/monokai.css
287
292
  - vendor/assets/stylesheets/codemirror/themes/neat.css
288
293
  - vendor/assets/stylesheets/codemirror/themes/night.css
294
+ - vendor/assets/stylesheets/codemirror/themes/paraiso-dark.css
295
+ - vendor/assets/stylesheets/codemirror/themes/paraiso-light.css
289
296
  - vendor/assets/stylesheets/codemirror/themes/rubyblue.css
290
297
  - vendor/assets/stylesheets/codemirror/themes/solarized.css
298
+ - vendor/assets/stylesheets/codemirror/themes/the-matrix.css
291
299
  - vendor/assets/stylesheets/codemirror/themes/tomorrow-night-eighties.css
292
300
  - vendor/assets/stylesheets/codemirror/themes/twilight.css
293
301
  - vendor/assets/stylesheets/codemirror/themes/vibrant-ink.css