davinci-text 1.0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (67) hide show
  1. checksums.yaml +7 -0
  2. data/.byebug_history +86 -0
  3. data/.circleci/config.yml +57 -0
  4. data/.gitignore +53 -0
  5. data/CODE_OF_CONDUCT.md +74 -0
  6. data/Gemfile +4 -0
  7. data/Gemfile.lock +50 -0
  8. data/LICENSE.txt +21 -0
  9. data/README.md +91 -0
  10. data/REFERENCE.md +71 -0
  11. data/Rakefile +4 -0
  12. data/bin/davinci +16 -0
  13. data/controllers/atom_input_controller.rb +146 -0
  14. data/controllers/atom_output_controller.rb +107 -0
  15. data/controllers/cl_args_controller.rb +62 -0
  16. data/controllers/menu_controller.rb +148 -0
  17. data/controllers/sublime_input_controller.rb +97 -0
  18. data/controllers/sublime_output_controller.rb +62 -0
  19. data/davinci-text.gemspec +34 -0
  20. data/example_files/atom/atom-dark-syntax/CONTRIBUTING.md +1 -0
  21. data/example_files/atom/atom-dark-syntax/ISSUE_TEMPLATE.md +40 -0
  22. data/example_files/atom/atom-dark-syntax/LICENSE.md +20 -0
  23. data/example_files/atom/atom-dark-syntax/PULL_REQUEST_TEMPLATE.md +28 -0
  24. data/example_files/atom/atom-dark-syntax/README.md +9 -0
  25. data/example_files/atom/atom-dark-syntax/index.less +7 -0
  26. data/example_files/atom/atom-dark-syntax/output.less +384 -0
  27. data/example_files/atom/atom-dark-syntax/package.json +11 -0
  28. data/example_files/atom/atom-dark-syntax/styles/editor.less +50 -0
  29. data/example_files/atom/atom-dark-syntax/styles/syntax-variables.less +44 -0
  30. data/example_files/atom/atom-dark-syntax/styles/syntax.less +283 -0
  31. data/example_files/atom/loved-syntax/CONTRIBUTING.md +1 -0
  32. data/example_files/atom/loved-syntax/LICENSE.md +20 -0
  33. data/example_files/atom/loved-syntax/README.md +14 -0
  34. data/example_files/atom/loved-syntax/index.less +18 -0
  35. data/example_files/atom/loved-syntax/output.less +648 -0
  36. data/example_files/atom/loved-syntax/package.json +15 -0
  37. data/example_files/atom/loved-syntax/styles/colors.less +44 -0
  38. data/example_files/atom/loved-syntax/styles/editor.less +96 -0
  39. data/example_files/atom/loved-syntax/styles/syntax-variables.less +56 -0
  40. data/example_files/atom/loved-syntax/styles/syntax/_base.less +311 -0
  41. data/example_files/atom/loved-syntax/styles/syntax/c.less +5 -0
  42. data/example_files/atom/loved-syntax/styles/syntax/cpp.less +5 -0
  43. data/example_files/atom/loved-syntax/styles/syntax/cs.less +5 -0
  44. data/example_files/atom/loved-syntax/styles/syntax/css.less +13 -0
  45. data/example_files/atom/loved-syntax/styles/syntax/gfm.less +9 -0
  46. data/example_files/atom/loved-syntax/styles/syntax/go.less +5 -0
  47. data/example_files/atom/loved-syntax/styles/syntax/ini.less +5 -0
  48. data/example_files/atom/loved-syntax/styles/syntax/java.less +24 -0
  49. data/example_files/atom/loved-syntax/styles/syntax/javascript.less +17 -0
  50. data/example_files/atom/loved-syntax/styles/syntax/json.less +21 -0
  51. data/example_files/atom/loved-syntax/styles/syntax/python.less +9 -0
  52. data/example_files/atom/loved-syntax/styles/syntax/ruby.less +5 -0
  53. data/example_files/sublime/material.tmTheme +1011 -0
  54. data/example_files/sublime/monokai.tmTheme +432 -0
  55. data/lib/.byebug_history +3 -0
  56. data/lib/templates/atom/.gitignore +3 -0
  57. data/lib/templates/atom/LICENSE.md +20 -0
  58. data/lib/templates/atom/README.md +5 -0
  59. data/lib/templates/atom/index.less +1 -0
  60. data/lib/templates/atom/package.json +15 -0
  61. data/lib/templates/atom/styles/base.less +307 -0
  62. data/lib/templates/atom/styles/colors.less +15 -0
  63. data/lib/templates/atom/styles/syntax-variables.less +31 -0
  64. data/lib/templates/sublime/newTheme.tmTheme +438 -0
  65. data/lib/utility.rb +21 -0
  66. data/lib/version.rb +3 -0
  67. metadata +209 -0
@@ -0,0 +1,15 @@
1
+ {
2
+ "name": "loved-syntax",
3
+ "theme": "syntax",
4
+ "version": "1.0.2",
5
+ "description": "Love never ends",
6
+ "keywords": [
7
+ "dark",
8
+ "syntax"
9
+ ],
10
+ "repository": "https://github.com/DanielPintilei/atom-loved-syntax",
11
+ "license": "MIT",
12
+ "engines": {
13
+ "atom": ">0.50.0"
14
+ }
15
+ }
@@ -0,0 +1,44 @@
1
+
2
+ // Palette -----------------------------------
3
+ @base03: hsl(206, 11%, 44%);
4
+ @base04: hsl(223, 11%, 69%);
5
+ @base05: hsl(219, 13%, 78%);
6
+ @base08: hsl(342, 74%, 69%);
7
+ @base09: hsl(27, 65%, 76%);
8
+ @base0A: hsl(13, 88%, 73%);
9
+ @base0B: hsl(96, 10%, 60%);
10
+ @base0C: hsl(180, 20%, 58%);
11
+ @base0D: hsl(210, 35%, 58%);
12
+ @base0E: hsl(300, 20%, 62%);
13
+ @base0F: hsl(15, 26%, 53%);
14
+
15
+ // Config -----------------------------------
16
+ @syntax-hue: 218;
17
+ @syntax-saturation: 35%;
18
+ @syntax-brightness: 14%;
19
+
20
+
21
+ // Monochrome -----------------------------------
22
+ @mono-1: @base05; // default text
23
+ @mono-2: @base04;
24
+ @mono-3: @base03;
25
+
26
+ // Colors -----------------------------------
27
+ @hue-1: @base0C;
28
+ @hue-2: @base0D;
29
+ @hue-3: @base0E;
30
+ @hue-4: @base0B;
31
+
32
+ @hue-5: @base08;
33
+ @hue-5-2: @base0F;
34
+
35
+ @hue-6: @base09;
36
+ @hue-6-2: @base0A;
37
+
38
+
39
+ // Base colors -----------------------------------
40
+ @syntax-fg: @mono-1;
41
+ @syntax-bg: hsl(@syntax-hue, @syntax-saturation, @syntax-brightness);
42
+ @syntax-gutter: darken(@syntax-fg, 26%);
43
+ @syntax-guide: fade(@syntax-fg, 15%);
44
+ @syntax-accent: hsl(342, 100%, 68% );
@@ -0,0 +1,96 @@
1
+
2
+ // Editor styles (background, gutter, guides)
3
+
4
+ atom-text-editor {
5
+ background-color: @syntax-background-color;
6
+ color: @syntax-text-color;
7
+
8
+ .line.cursor-line {
9
+ background-color: @syntax-cursor-line;
10
+ }
11
+
12
+ .invisible {
13
+ color: @syntax-text-color;
14
+ }
15
+
16
+ .cursor {
17
+ border-left: 2px solid @syntax-cursor-color;
18
+ }
19
+
20
+ .selection .region {
21
+ background-color: @syntax-selection-color;
22
+ }
23
+
24
+ .bracket-matcher .region {
25
+ border-bottom: 1px solid @syntax-cursor-color;
26
+ box-sizing: border-box;
27
+ }
28
+
29
+ .invisible-character {
30
+ color: @syntax-invisible-character-color;
31
+ }
32
+
33
+ .indent-guide {
34
+ color: @syntax-indent-guide-color;
35
+ }
36
+
37
+ .wrap-guide {
38
+ background-color: @syntax-wrap-guide-color;
39
+ }
40
+
41
+ // find + replace
42
+ .find-result .region.region.region,
43
+ .current-result .region.region.region {
44
+ border-radius: 2px;
45
+ background-color: @syntax-result-marker-color;
46
+ transition: border-color .4s;
47
+ }
48
+ .find-result .region.region.region {
49
+ border: 2px solid transparent;
50
+ }
51
+ .current-result .region.region.region {
52
+ border: 2px solid @syntax-result-marker-color-selected;
53
+ transition-duration: .1s;
54
+ }
55
+
56
+ .gutter {
57
+
58
+ .line-number {
59
+ color: @syntax-gutter-text-color;
60
+ -webkit-font-smoothing: antialiased;
61
+
62
+ &.cursor-line {
63
+ color: @syntax-gutter-text-color-selected;
64
+ background-color: @syntax-gutter-background-color-selected;
65
+ }
66
+ &.cursor-line-no-selection {
67
+ background-color: transparent;
68
+ }
69
+
70
+ .icon-right {
71
+ color: @syntax-text-color;
72
+ }
73
+ }
74
+
75
+ &:not(.git-diff-icon) .line-number.git-line-removed {
76
+ &.git-line-removed::before {
77
+ bottom: -3px;
78
+ }
79
+ &::after {
80
+ content: "";
81
+ position: absolute;
82
+ left: 0px;
83
+ bottom: 0px;
84
+ width: 25px;
85
+ border-bottom: 1px dotted fade(@syntax-color-removed, 50%);
86
+ pointer-events: none;
87
+ }
88
+ }
89
+ }
90
+
91
+ .gutter .line-number.folded,
92
+ .gutter .line-number:after,
93
+ .fold-marker:after {
94
+ color: @syntax-gutter-text-color-selected;
95
+ }
96
+ }
@@ -0,0 +1,56 @@
1
+ @import "colors.less";
2
+
3
+ // Official Syntax Variables -----------------------------------
4
+
5
+ // General colors
6
+ @syntax-text-color: @syntax-fg;
7
+ @syntax-cursor-color: @syntax-accent;
8
+ @syntax-selection-color: lighten(@syntax-background-color, 10%);
9
+ @syntax-selection-flash-color: @syntax-accent;
10
+ @syntax-background-color: @syntax-bg;
11
+
12
+ // Guide colors
13
+ @syntax-wrap-guide-color: @syntax-guide;
14
+ @syntax-indent-guide-color: @syntax-guide;
15
+ @syntax-invisible-character-color: @syntax-guide;
16
+
17
+ // For find and replace markers
18
+ @syntax-result-marker-color: fade(@syntax-accent, 24%);
19
+ @syntax-result-marker-color-selected: @syntax-accent;
20
+
21
+ // Gutter colors
22
+ @syntax-gutter-text-color: @syntax-gutter;
23
+ @syntax-gutter-text-color-selected: @syntax-fg;
24
+ @syntax-gutter-background-color: @syntax-bg; // unused
25
+ @syntax-gutter-background-color-selected: lighten(@syntax-bg, 2%);
26
+
27
+ // Git colors - For git diff info. i.e. in the gutter
28
+ @syntax-color-renamed: hsl(208, 100%, 60%);
29
+ @syntax-color-added: hsl(150, 60%, 54%);
30
+ @syntax-color-modified: hsl(40, 60%, 70%);
31
+ @syntax-color-removed: hsl(0, 70%, 60%);
32
+
33
+ // For language entity colors
34
+ @syntax-color-variable: @hue-5;
35
+ @syntax-color-constant: @hue-6;
36
+ @syntax-color-property: @syntax-fg;
37
+ @syntax-color-value: @syntax-fg;
38
+ @syntax-color-function: @hue-2;
39
+ @syntax-color-method: @hue-2;
40
+ @syntax-color-class: @hue-6-2;
41
+ @syntax-color-keyword: @hue-3;
42
+ @syntax-color-tag: @hue-5;
43
+ @syntax-color-attribute: @hue-6;
44
+ @syntax-color-import: @hue-3;
45
+ @syntax-color-snippet: @hue-4;
46
+
47
+
48
+ // Custom Syntax Variables -----------------------------------
49
+ // Don't use in packages
50
+
51
+ @syntax-cursor-line: hsla(@syntax-hue, 100%, 80%, .04); // needs to be semi-transparent to show serach results
52
+
53
+ @syntax-deprecated-fg: darken(@syntax-color-modified, 50%);
54
+ @syntax-deprecated-bg: @syntax-color-modified;
55
+ @syntax-illegal-fg: white;
56
+ @syntax-illegal-bg: @syntax-color-removed;
@@ -0,0 +1,311 @@
1
+ // Language syntax highlighting
2
+
3
+ .syntax--comment {
4
+ color: @mono-3;
5
+ font-style: italic;
6
+
7
+ .syntax--markup.syntax--link {
8
+ color: @mono-3;
9
+ }
10
+ }
11
+
12
+ .syntax--entity {
13
+
14
+ &.syntax--name.syntax--type {
15
+ color: @hue-6-2;
16
+ }
17
+
18
+ &.syntax--other.syntax--inherited-class {
19
+ color: @hue-4;
20
+ }
21
+ }
22
+
23
+ .syntax--keyword {
24
+ color: @hue-3;
25
+
26
+ &.syntax--control {
27
+ color: @hue-3;
28
+ }
29
+
30
+ &.syntax--operator {
31
+ color: @mono-1;
32
+ }
33
+
34
+ &.syntax--other.syntax--special-method {
35
+ color: @hue-2;
36
+ }
37
+
38
+ &.syntax--other.syntax--unit {
39
+ color: @hue-6;
40
+ }
41
+ }
42
+
43
+ .syntax--storage {
44
+ color: @hue-3;
45
+
46
+ &.syntax--type {
47
+ &.syntax--annotation,
48
+ &.syntax--primitive {
49
+ color: @hue-3;
50
+ }
51
+ }
52
+
53
+ &.syntax--modifier {
54
+ &.syntax--package,
55
+ &.syntax--import {
56
+ color: @mono-1;
57
+ }
58
+ }
59
+ }
60
+
61
+ .syntax--constant {
62
+ color: @hue-6;
63
+
64
+ &.syntax--variable {
65
+ color: @hue-6;
66
+ }
67
+
68
+ &.syntax--character.syntax--escape {
69
+ color: @hue-1;
70
+ }
71
+
72
+ &.syntax--numeric {
73
+ color: @hue-6;
74
+ .syntax--unit {
75
+ color: @hue-5-2;
76
+ }
77
+ }
78
+
79
+ &.syntax--other.syntax--color {
80
+ color: @hue-1;
81
+ }
82
+
83
+ &.syntax--other.syntax--symbol {
84
+ color: @hue-1;
85
+ }
86
+ }
87
+
88
+ .syntax--variable {
89
+ color: @hue-5;
90
+
91
+ &.syntax--interpolation {
92
+ color: @hue-5-2;
93
+ }
94
+
95
+ &.syntax--parameter {
96
+ color: @mono-1;
97
+ }
98
+ }
99
+
100
+ .syntax--string {
101
+ color: @hue-4;
102
+
103
+
104
+ &.syntax--regexp {
105
+ color: @hue-1;
106
+
107
+ .syntax--source.syntax--ruby.syntax--embedded {
108
+ color: @hue-6-2;
109
+ }
110
+ }
111
+
112
+ &.syntax--other.syntax--link {
113
+ color: @hue-5;
114
+ }
115
+ }
116
+
117
+ .syntax--punctuation {
118
+ &.syntax--definition {
119
+ &.syntax--comment {
120
+ color: @mono-3;
121
+ }
122
+
123
+ &.syntax--method-parameters,
124
+ &.syntax--function-parameters,
125
+ &.syntax--parameters,
126
+ &.syntax--separator,
127
+ &.syntax--seperator,
128
+ &.syntax--array {
129
+ color: @mono-1;
130
+ }
131
+
132
+ &.syntax--heading,
133
+ &.syntax--identity {
134
+ color: @hue-2;
135
+ }
136
+
137
+ &.syntax--bold {
138
+ color: @hue-6-2;
139
+ font-weight: bold;
140
+ }
141
+
142
+ &.syntax--italic {
143
+ color: @hue-3;
144
+ font-style: italic;
145
+ }
146
+ }
147
+
148
+ &.syntax--section {
149
+ &.syntax--embedded {
150
+ color: @hue-5-2;
151
+ }
152
+
153
+ &.syntax--method,
154
+ &.syntax--class,
155
+ &.syntax--inner-class {
156
+ color: @mono-1;
157
+ }
158
+ }
159
+ }
160
+
161
+ .syntax--support {
162
+ &.syntax--class {
163
+ color: @hue-6-2;
164
+ }
165
+
166
+ &.syntax--type {
167
+ color: @hue-1;
168
+ }
169
+
170
+ &.syntax--function {
171
+ color: @hue-1;
172
+
173
+ &.syntax--any-method {
174
+ color: @hue-2;
175
+ }
176
+ }
177
+ }
178
+
179
+ .syntax--entity {
180
+ &.syntax--name.syntax--function {
181
+ color: @hue-2;
182
+ }
183
+
184
+ &.syntax--name.syntax--class,
185
+ &.syntax--name.syntax--type.syntax--class {
186
+ color: @hue-6-2;
187
+ }
188
+
189
+ &.syntax--name.syntax--section {
190
+ color: @hue-2;
191
+ }
192
+
193
+ &.syntax--name.syntax--tag {
194
+ color: @hue-5;
195
+ }
196
+
197
+ &.syntax--other.syntax--attribute-name {
198
+ color: @hue-6;
199
+
200
+ &.syntax--id {
201
+ color: @hue-2;
202
+ }
203
+ }
204
+ }
205
+
206
+ .syntax--meta {
207
+ &.syntax--class {
208
+ color: @hue-6-2;
209
+
210
+ &.syntax--body {
211
+ color: @mono-1;
212
+ }
213
+ }
214
+
215
+ &.syntax--method-call,
216
+ &.syntax--method {
217
+ color: @mono-1;
218
+ }
219
+
220
+ &.syntax--definition {
221
+ &.syntax--variable {
222
+ color: @hue-5;
223
+ }
224
+ }
225
+
226
+ &.syntax--link {
227
+ color: @hue-6;
228
+ }
229
+
230
+ &.syntax--require {
231
+ color: @hue-2;
232
+ }
233
+
234
+ &.syntax--selector {
235
+ color: @hue-3;
236
+ }
237
+
238
+ &.syntax--separator {
239
+ background-color: #373b41;
240
+ color: @mono-1;
241
+ }
242
+
243
+ &.syntax--tag {
244
+ color: @mono-1;
245
+ }
246
+ }
247
+
248
+ .syntax--underline {
249
+ text-decoration: underline;
250
+ }
251
+
252
+ .syntax--none {
253
+ color: @mono-1;
254
+ }
255
+
256
+ .syntax--invalid {
257
+ &.syntax--deprecated {
258
+ color: @syntax-deprecated-fg !important;
259
+ background-color: @syntax-deprecated-bg !important;
260
+ }
261
+ &.syntax--illegal {
262
+ color: @syntax-illegal-fg !important;
263
+ background-color: @syntax-illegal-bg !important;
264
+ }
265
+ }
266
+
267
+ // Languages -------------------------------------------------
268
+
269
+ .syntax--markup {
270
+ &.syntax--bold {
271
+ color: @hue-6;
272
+ font-weight: bold;
273
+ }
274
+
275
+ &.syntax--changed {
276
+ color: @hue-3;
277
+ }
278
+
279
+ &.syntax--deleted {
280
+ color: @hue-5;
281
+ }
282
+
283
+ &.syntax--italic {
284
+ color: @hue-3;
285
+ font-style: italic;
286
+ }
287
+
288
+ &.syntax--heading {
289
+ color: @hue-5;
290
+
291
+ .syntax--punctuation.syntax--definition.syntax--heading {
292
+ color: @hue-2;
293
+ }
294
+ }
295
+
296
+ &.syntax--link {
297
+ color: @hue-1;
298
+ }
299
+
300
+ &.syntax--inserted {
301
+ color: @hue-4;
302
+ }
303
+
304
+ &.syntax--quote {
305
+ color: @hue-6;
306
+ }
307
+
308
+ &.syntax--raw {
309
+ color: @hue-4;
310
+ }
311
+ }