codemirror-rails 5.1 → 5.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/codemirror/rails/version.rb +2 -2
- data/vendor/assets/javascripts/codemirror.js +92 -39
- data/vendor/assets/javascripts/codemirror/addons/display/panel.js +22 -4
- data/vendor/assets/javascripts/codemirror/addons/edit/continuelist.js +5 -5
- data/vendor/assets/javascripts/codemirror/addons/hint/show-hint.js +63 -65
- data/vendor/assets/javascripts/codemirror/addons/lint/javascript-lint.js +1 -1
- data/vendor/assets/javascripts/codemirror/addons/mode/multiplex.js +14 -9
- data/vendor/assets/javascripts/codemirror/addons/scroll/annotatescrollbar.js +19 -4
- data/vendor/assets/javascripts/codemirror/addons/search/matchesonscrollbar.js +3 -1
- data/vendor/assets/javascripts/codemirror/addons/search/search.js +7 -4
- data/vendor/assets/javascripts/codemirror/addons/search/searchcursor.js +2 -2
- data/vendor/assets/javascripts/codemirror/keymaps/sublime.js +1 -1
- data/vendor/assets/javascripts/codemirror/keymaps/vim.js +117 -23
- data/vendor/assets/javascripts/codemirror/modes/clike.js +1 -1
- data/vendor/assets/javascripts/codemirror/modes/css.js +3 -1
- data/vendor/assets/javascripts/codemirror/modes/django.js +307 -24
- data/vendor/assets/javascripts/codemirror/modes/handlebars.js +53 -0
- data/vendor/assets/javascripts/codemirror/modes/javascript.js +5 -1
- data/vendor/assets/javascripts/codemirror/modes/less_test.js +3 -0
- data/vendor/assets/javascripts/codemirror/modes/markdown.js +15 -13
- data/vendor/assets/javascripts/codemirror/modes/mumps.js +148 -0
- data/vendor/assets/javascripts/codemirror/modes/python.js +2 -4
- data/vendor/assets/javascripts/codemirror/modes/scss_test.js +1 -1
- data/vendor/assets/javascripts/codemirror/modes/smarty.js +17 -6
- data/vendor/assets/javascripts/codemirror/modes/soy.js +3 -3
- data/vendor/assets/javascripts/codemirror/modes/sql.js +4 -4
- data/vendor/assets/javascripts/codemirror/modes/stylus.js +8 -3
- data/vendor/assets/javascripts/codemirror/modes/z80.js +34 -18
- data/vendor/assets/stylesheets/codemirror.css +2 -0
- data/vendor/assets/stylesheets/codemirror/themes/liquibyte.css +95 -0
- data/vendor/assets/stylesheets/codemirror/themes/monokai.css +1 -1
- data/vendor/assets/stylesheets/codemirror/themes/solarized.css +1 -1
- metadata +4 -1
@@ -126,6 +126,8 @@ div.CodeMirror-overwrite div.CodeMirror-cursor {}
|
|
126
126
|
.cm-s-default .cm-error {color: #f00;}
|
127
127
|
.cm-invalidchar {color: #f00;}
|
128
128
|
|
129
|
+
.CodeMirror-composing { border-bottom: 2px solid; }
|
130
|
+
|
129
131
|
/* Default styles for common addons */
|
130
132
|
|
131
133
|
div.CodeMirror span.CodeMirror-matchingbracket {color: #0f0;}
|
@@ -0,0 +1,95 @@
|
|
1
|
+
.cm-s-liquibyte.CodeMirror {
|
2
|
+
background-color: #000;
|
3
|
+
color: #fff;
|
4
|
+
line-height: 1.2em;
|
5
|
+
font-size: 1em;
|
6
|
+
}
|
7
|
+
.CodeMirror-focused .cm-matchhighlight {
|
8
|
+
text-decoration: underline;
|
9
|
+
text-decoration-color: #0f0;
|
10
|
+
text-decoration-style: wavy;
|
11
|
+
}
|
12
|
+
.cm-trailingspace {
|
13
|
+
text-decoration: line-through;
|
14
|
+
text-decoration-color: #f00;
|
15
|
+
text-decoration-style: dotted;
|
16
|
+
}
|
17
|
+
.cm-tab {
|
18
|
+
text-decoration: line-through;
|
19
|
+
text-decoration-color: #404040;
|
20
|
+
text-decoration-style: dotted;
|
21
|
+
}
|
22
|
+
.cm-s-liquibyte .CodeMirror-gutters { background-color: #262626; border-right: 1px solid #505050; padding-right: 0.8em; }
|
23
|
+
.cm-s-liquibyte .CodeMirror-gutter-elt div{ font-size: 1.2em; }
|
24
|
+
.cm-s-liquibyte .CodeMirror-guttermarker { }
|
25
|
+
.cm-s-liquibyte .CodeMirror-guttermarker-subtle { }
|
26
|
+
.cm-s-liquibyte .CodeMirror-linenumber { color: #606060; padding-left: 0;}
|
27
|
+
.cm-s-liquibyte .CodeMirror-cursor { border-left: 1px solid #eee !important; }
|
28
|
+
|
29
|
+
.cm-s-liquibyte span.cm-comment { color: #008000; }
|
30
|
+
.cm-s-liquibyte span.cm-def { color: #ffaf40; font-weight: bold; }
|
31
|
+
.cm-s-liquibyte span.cm-keyword { color: #c080ff; font-weight: bold; }
|
32
|
+
.cm-s-liquibyte span.cm-builtin { color: #ffaf40; font-weight: bold; }
|
33
|
+
.cm-s-liquibyte span.cm-variable { color: #5967ff; font-weight: bold; }
|
34
|
+
.cm-s-liquibyte span.cm-string { color: #ff8000; }
|
35
|
+
.cm-s-liquibyte span.cm-number { color: #0f0; font-weight: bold; }
|
36
|
+
.cm-s-liquibyte span.cm-atom { color: #bf3030; font-weight: bold; }
|
37
|
+
|
38
|
+
.cm-s-liquibyte span.cm-variable-2 { color: #007f7f; font-weight: bold; }
|
39
|
+
.cm-s-liquibyte span.cm-variable-3 { color: #c080ff; font-weight: bold; }
|
40
|
+
.cm-s-liquibyte span.cm-property { color: #999; font-weight: bold; }
|
41
|
+
.cm-s-liquibyte span.cm-operator { color: #fff; }
|
42
|
+
|
43
|
+
.cm-s-liquibyte span.cm-meta { color: #0f0; }
|
44
|
+
.cm-s-liquibyte span.cm-qualifier { color: #fff700; font-weight: bold; }
|
45
|
+
.cm-s-liquibyte span.cm-bracket { color: #cc7; }
|
46
|
+
.cm-s-liquibyte span.cm-tag { color: #ff0; font-weight: bold; }
|
47
|
+
.cm-s-liquibyte span.cm-attribute { color: #c080ff; font-weight: bold; }
|
48
|
+
.cm-s-liquibyte span.cm-error { color: #f00; }
|
49
|
+
|
50
|
+
.cm-s-liquibyte .CodeMirror-selected { background-color: rgba(255, 0, 0, 0.25) !important; }
|
51
|
+
|
52
|
+
.cm-s-liquibyte span.cm-compilation { background-color: rgba(255, 255, 255, 0.12); }
|
53
|
+
|
54
|
+
.cm-s-liquibyte .CodeMirror-activeline-background {background-color: rgba(0, 255, 0, 0.15) !important;}
|
55
|
+
|
56
|
+
/* Default styles for common addons */
|
57
|
+
div.CodeMirror span.CodeMirror-matchingbracket { color: #0f0; font-weight: bold; }
|
58
|
+
div.CodeMirror span.CodeMirror-nonmatchingbracket { color: #f00; font-weight: bold; }
|
59
|
+
.CodeMirror-matchingtag { background-color: rgba(150, 255, 0, .3); }
|
60
|
+
/* Scrollbars */
|
61
|
+
/* Simple */
|
62
|
+
div.CodeMirror-simplescroll-horizontal div:hover, div.CodeMirror-simplescroll-vertical div:hover {
|
63
|
+
background-color: rgba(80, 80, 80, .7);
|
64
|
+
}
|
65
|
+
div.CodeMirror-simplescroll-horizontal div, div.CodeMirror-simplescroll-vertical div {
|
66
|
+
background-color: rgba(80, 80, 80, .3);
|
67
|
+
border: 1px solid #404040;
|
68
|
+
border-radius: 5px;
|
69
|
+
}
|
70
|
+
div.CodeMirror-simplescroll-vertical div {
|
71
|
+
border-top: 1px solid #404040;
|
72
|
+
border-bottom: 1px solid #404040;
|
73
|
+
}
|
74
|
+
div.CodeMirror-simplescroll-horizontal div {
|
75
|
+
border-left: 1px solid #404040;
|
76
|
+
border-right: 1px solid #404040;
|
77
|
+
}
|
78
|
+
div.CodeMirror-simplescroll-vertical {
|
79
|
+
background-color: #262626;
|
80
|
+
}
|
81
|
+
div.CodeMirror-simplescroll-horizontal {
|
82
|
+
background-color: #262626;
|
83
|
+
border-top: 1px solid #404040;
|
84
|
+
}
|
85
|
+
/* Overlay */
|
86
|
+
div.CodeMirror-overlayscroll-horizontal div, div.CodeMirror-overlayscroll-vertical div {
|
87
|
+
background-color: #404040;
|
88
|
+
border-radius: 5px;
|
89
|
+
}
|
90
|
+
div.CodeMirror-overlayscroll-vertical div {
|
91
|
+
border: 1px solid #404040;
|
92
|
+
}
|
93
|
+
div.CodeMirror-overlayscroll-horizontal div {
|
94
|
+
border: 1px solid #404040;
|
95
|
+
}
|
@@ -18,7 +18,7 @@
|
|
18
18
|
.cm-s-monokai span.cm-keyword {color: #f92672;}
|
19
19
|
.cm-s-monokai span.cm-string {color: #e6db74;}
|
20
20
|
|
21
|
-
.cm-s-monokai span.cm-variable {color: #
|
21
|
+
.cm-s-monokai span.cm-variable {color: #f8f8f2;}
|
22
22
|
.cm-s-monokai span.cm-variable-2 {color: #9effff;}
|
23
23
|
.cm-s-monokai span.cm-def {color: #fd971f;}
|
24
24
|
.cm-s-monokai span.cm-bracket {color: #f8f8f2;}
|
@@ -53,7 +53,7 @@ http://ethanschoonover.com/solarized/img/solarized-palette.png
|
|
53
53
|
.cm-s-solarized .cm-number { color: #d33682; }
|
54
54
|
.cm-s-solarized .cm-def { color: #2aa198; }
|
55
55
|
|
56
|
-
.cm-s-solarized .cm-variable { color: #
|
56
|
+
.cm-s-solarized .cm-variable { color: #839496; }
|
57
57
|
.cm-s-solarized .cm-variable-2 { color: #b58900; }
|
58
58
|
.cm-s-solarized .cm-variable-3 { color: #6c71c4; }
|
59
59
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: codemirror-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '5.
|
4
|
+
version: '5.2'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nathan Fixler
|
@@ -298,6 +298,7 @@ files:
|
|
298
298
|
- vendor/assets/javascripts/codemirror/modes/go.js
|
299
299
|
- vendor/assets/javascripts/codemirror/modes/groovy.js
|
300
300
|
- vendor/assets/javascripts/codemirror/modes/haml.js
|
301
|
+
- vendor/assets/javascripts/codemirror/modes/handlebars.js
|
301
302
|
- vendor/assets/javascripts/codemirror/modes/haskell.js
|
302
303
|
- vendor/assets/javascripts/codemirror/modes/haxe.js
|
303
304
|
- vendor/assets/javascripts/codemirror/modes/htmlembedded.js
|
@@ -316,6 +317,7 @@ files:
|
|
316
317
|
- vendor/assets/javascripts/codemirror/modes/mirc.js
|
317
318
|
- vendor/assets/javascripts/codemirror/modes/mllike.js
|
318
319
|
- vendor/assets/javascripts/codemirror/modes/modelica.js
|
320
|
+
- vendor/assets/javascripts/codemirror/modes/mumps.js
|
319
321
|
- vendor/assets/javascripts/codemirror/modes/nginx.js
|
320
322
|
- vendor/assets/javascripts/codemirror/modes/ntriples.js
|
321
323
|
- vendor/assets/javascripts/codemirror/modes/octave.js
|
@@ -390,6 +392,7 @@ files:
|
|
390
392
|
- vendor/assets/stylesheets/codemirror/themes/elegant.css
|
391
393
|
- vendor/assets/stylesheets/codemirror/themes/erlang-dark.css
|
392
394
|
- vendor/assets/stylesheets/codemirror/themes/lesser-dark.css
|
395
|
+
- vendor/assets/stylesheets/codemirror/themes/liquibyte.css
|
393
396
|
- vendor/assets/stylesheets/codemirror/themes/mbo.css
|
394
397
|
- vendor/assets/stylesheets/codemirror/themes/mdn-like.css
|
395
398
|
- vendor/assets/stylesheets/codemirror/themes/midnight.css
|