-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathhighlights.erb
264 lines (245 loc) · 11.7 KB
/
highlights.erb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
<%
base03 = [ "8", "#002732"] # L*a*b 13 -12 -12
base02 = [ "0", "#073642"] # L*a*b 20 -12 -12
base01 = ["10", "#586e75"] # L*a*b 45 -07 -07
base00 = ["11", "#657b83"] # L*a*b 50 -07 -07
base0 = ["12", "#839496"] # L*a*b 60 -06 -03
base1 = ["14", "#93a1a1"] # L*a*b 65 -05 -02
base2 = [ "7", "#eee8d5"] # L*a*b 92 00 10
base3 = ["15", "#fdf6e3"] # L*a*b 97 00 10
yellow = [ "3", "#b58900"] # L*a*b 60 10 65
orange = [ "9", "#cb4b16"] # L*a*b 50 50 55
red = [ "1", "#dc322f"] # L*a*b 50 65 45
magenta = [ "5", "#d33682"] # L*a*b 50 65 -05
violet = ["13", "#6c71c4"] # L*a*b 50 15 -45
blue = [ "4", "#268bd2"] # L*a*b 55 -10 -45
cyan = [ "6", "#2aa198"] # L*a*b 60 -35 -05
green = [ "2", "#719e07"] # L*a*b 60 -30 60 experimental
bgred = ["52", "#620000"] # L*a*b 10 65 45
bgblue = ["18", "#002c67"] # L*a*b 15 -10 -45
bgblue1 = ["20", "#004e8d"] # L*a*b 30 -10 -45
bggreen = ["22", "#1c4a00"] # L*a*b 27 -30 60
if background == "light"
base03, base3 = base3, base03
base02, base2 = base2, base02
base01, base1 = base1, base01
base00, base0 = base0, base00
bgred = ["223", "#ffc6ac"] # L*a*b 100 65 45
bgblue = ["159", "#b0ffff"] # L*a*b 97 -10 -45
bgblue1 = ["117", "#92e2ff"] # L*a*b 87 -10 -45
bggreen = ["191", "#caf76d"] # L*a*b 90 -30 60
end
def attr(attr)
" cterm=" << (attr == "italic" ? "NONE" :
(attr == "undercurl" ? "underline" : attr)) << " gui=" << attr
end
def color(level, colors)
colors = [colors, colors] if !colors.is_a?(Array)
" cterm" << level << "=" << colors[0] << " gui" << level << "=" << colors[1]
end
def sp(colors)
colors.nil? ? "" : " guisp=" << colors[1]
end
def hi(attr: "NONE", fg: "NONE", bg: "NONE", sp: nil)
res = attr(attr) << color("fg", fg) << color("bg", bg) << sp(sp)
end
%>
hi Normal<%= hi(fg: base0, bg: base03) %>
hi ColorColumn<%= hi(bg: base02) %>
hi Comment<%= hi(attr: "italic", fg: base01) %>
hi ConId<%= hi(fg: yellow) %>
hi Conceal<%= hi(fg: blue) %>
hi Constant<%= hi(fg: cyan) %>
hi Cursor<%= hi(attr: "reverse", fg: base3, bg: base03) %>
hi CursorColumn<%= hi(bg: base02) %>
hi CursorLine<%= hi(bg: base02) %>
hi CursorLineNr<%= hi(fg: base01) %>
hi DiffAdd<%= hi(bg: bggreen) %>
hi DiffChange<%= hi(bg: bgblue) %>
hi DiffDelete<%= hi(fg: bgred, bg: bgred) %>
hi DiffText<%= hi(bg: bgblue1) %>
hi Directory<%= hi(fg: blue) %>
hi Error<%= hi(attr: "bold", fg: red) %>
hi ErrorMsg<%= hi(attr: "reverse", fg: red) %>
hi FoldColumn<%= hi(fg: base0, bg: base02) %>
hi Folded<%= hi(attr: "bold,underline", fg: base0, bg: base02) %>
hi Identifier<%= hi(fg: blue) %>
hi Ignore<%= hi %>
hi IncSearch<%= hi(attr: "bold,reverse", fg: orange) %>
hi LineNr<%= hi(fg: base01, bg: base02) %>
hi MatchParen<%= hi(attr: "bold", fg: base2, bg: magenta) %>
hi ModeMsg<%= hi(fg: blue) %>
hi MoreMsg<%= hi(fg: blue) %>
hi NonText<%= hi(attr: "bold", fg: base00) %>
hi Pmenu<%= hi(attr: "reverse", fg: base0, bg: base02) %>
hi PmenuSbar<%= hi(attr: "reverse", fg: base2, bg: base0) %>
hi PmenuSel<%= hi(fg: base2, bg: base01) %>
hi PmenuThumb<%= hi(attr: "reverse", fg: base0, bg: base03) %>
hi PreProc<%= hi(fg: orange) %>
hi Question<%= hi(attr: "bold", fg: cyan) %>
hi QuickFixLine<%= hi(bg: base02) %>
hi Search<%= hi(attr: "reverse", fg: yellow) %>
hi SignColumn<%= hi(fg: base0, bg: base02) %>
hi Special<%= hi(fg: red) %>
hi SpecialKey<%= hi(attr: "bold", fg: base00, bg: base02) %>
hi SpellBad<%= hi(attr: "undercurl", sp: red) %>
hi SpellCap<%= hi(attr: "undercurl", sp: violet) %>
hi SpellLocal<%= hi(attr: "undercurl", sp: yellow) %>
hi SpellRare<%= hi(attr: "undercurl", sp: cyan) %>
hi Statement<%= hi(fg: green) %>
hi StatusLine<%= hi(attr: "reverse", fg: base1, bg: base03) %>
hi StatusLineNC<%= hi(attr: "reverse", fg: base00, bg: base02) %>
hi TabLine<%= hi(attr: "underline", fg: base0, bg: base02) %>
hi TabLineFill<%= hi(attr: "underline", fg: base0, bg: base02) %>
hi TabLineSel<%= hi(attr: "underline", fg: base2, bg: base01) %>
hi Title<%= hi(attr: "bold", fg: orange) %>
hi Todo<%= hi(attr: "bold", fg: magenta) %>
hi Type<%= hi(fg: yellow) %>
hi Underlined<%= hi(fg: violet) %>
hi VarId<%= hi(fg: blue) %>
hi VertSplit<%= hi(fg: base00, bg: base00) %>
hi Visual<%= hi(attr: "reverse", fg: base01, bg: base03) %>
hi VisualNOS<%= hi(attr: "reverse", bg: base02) %>
hi WarningMsg<%= hi(attr: "bold", fg: red) %>
hi WildMenu<%= hi(attr: "reverse", fg: base2, bg: base02) %>
hi cPreCondit<%= hi(fg: orange) %>
hi gitcommitBranch<%= hi(attr: "bold", fg: magenta) %>
hi gitcommitComment<%= hi(attr: "italic", fg: base01) %>
hi gitcommitDiscardedFile<%= hi(attr: "bold", fg: red) %>
hi gitcommitDiscardedType<%= hi(fg: red) %>
hi gitcommitFile<%= hi(attr: "bold", fg: base0) %>
hi gitcommitHeader<%= hi(fg: base01) %>
hi gitcommitOnBranch<%= hi(attr: "bold", fg: base01) %>
hi gitcommitSelectedFile<%= hi(attr: "bold", fg: green) %>
hi gitcommitSelectedType<%= hi(fg: green) %>
hi gitcommitUnmerged<%= hi(attr: "bold", fg: green) %>
hi gitcommitUnmergedFile<%= hi(attr: "bold", fg: yellow) %>
hi gitcommitUntrackedFile<%= hi(attr: "bold", fg: cyan) %>
hi helpExample<%= hi(fg: base1) %>
hi helpHyperTextEntry<%= hi(fg: green) %>
hi helpHyperTextJump<%= hi(attr: "underline", fg: blue) %>
hi helpNote<%= hi(fg: magenta) %>
hi helpOption<%= hi(fg: cyan) %>
hi helpVim<%= hi(fg: magenta) %>
hi hsImport<%= hi(fg: magenta) %>
hi hsImportLabel<%= hi(fg: cyan) %>
hi hsModuleName<%= hi(attr: "underline", fg: green) %>
hi hsModuleStartLabel<%= hi(fg: magenta) %>
hi hsNiceOperator<%= hi(fg: cyan) %>
hi hsStatement<%= hi(fg: cyan) %>
hi hsString<%= hi(fg: base00) %>
hi hsStructure<%= hi(fg: cyan) %>
hi hsType<%= hi(fg: yellow) %>
hi hsTypedef<%= hi(fg: cyan) %>
hi hsVarSym<%= hi(fg: cyan) %>
hi hs_DeclareFunction<%= hi(fg: orange) %>
hi hs_OpFunctionName<%= hi(fg: yellow) %>
hi hs_hlFunctionName<%= hi(fg: blue) %>
hi htmlArg<%= hi(fg: base00) %>
hi htmlEndTag<%= hi(fg: base01) %>
hi htmlSpecialTagName<%= hi(attr: "italic", fg: blue) %>
hi htmlTag<%= hi(fg: base01) %>
hi htmlTagN<%= hi(attr: "bold", fg: base1) %>
hi htmlTagName<%= hi(attr: "bold", fg: blue) %>
hi javaScript<%= hi(fg: yellow) %>
hi pandocBlockQuote<%= hi(fg: blue) %>
hi pandocBlockQuoteLeader1<%= hi(fg: blue) %>
hi pandocBlockQuoteLeader2<%= hi(fg: cyan) %>
hi pandocBlockQuoteLeader3<%= hi(fg: yellow) %>
hi pandocBlockQuoteLeader4<%= hi(fg: red) %>
hi pandocBlockQuoteLeader5<%= hi(fg: base0) %>
hi pandocBlockQuoteLeader6<%= hi(fg: base01) %>
hi pandocCitation<%= hi(fg: magenta) %>
hi pandocCitationDelim<%= hi(fg: magenta) %>
hi pandocCitationID<%= hi(attr: "underline", fg: magenta) %>
hi pandocCitationRef<%= hi(fg: magenta) %>
hi pandocComment<%= hi(attr: "italic", fg: base01) %>
hi pandocDefinitionBlock<%= hi(fg: violet) %>
hi pandocDefinitionIndctr<%= hi(attr: "bold", fg: violet) %>
hi pandocDefinitionTerm<%= hi(attr: "bold,reverse", fg: violet) %>
hi pandocEmphasis<%= hi(attr: "italic", fg: base0) %>
hi pandocEmphasisDefinition<%= hi(attr: "italic", fg: violet) %>
hi pandocEmphasisHeading<%= hi(attr: "bold", fg: orange) %>
hi pandocEmphasisNested<%= hi(attr: "bold", fg: base0) %>
hi pandocEmphasisNestedDefinition<%= hi(attr: "bold", fg: violet) %>
hi pandocEmphasisNestedHeading<%= hi(attr: "bold", fg: orange) %>
hi pandocEmphasisNestedTable<%= hi(attr: "bold", fg: blue) %>
hi pandocEmphasisTable<%= hi(attr: "italic", fg: blue) %>
hi pandocEscapePair<%= hi(attr: "bold", fg: red) %>
hi pandocFootnote<%= hi(fg: green) %>
hi pandocFootnoteDefLink<%= hi(attr: "bold", fg: green) %>
hi pandocFootnoteInline<%= hi(attr: "bold,underline", fg: green) %>
hi pandocFootnoteLink<%= hi(attr: "underline", fg: green) %>
hi pandocHeading<%= hi(attr: "bold", fg: orange) %>
hi pandocHeadingMarker<%= hi(attr: "bold", fg: yellow) %>
hi pandocImageCaption<%= hi(attr: "bold,underline", fg: violet) %>
hi pandocLinkDefinition<%= hi(attr: "underline", fg: cyan) %>
hi pandocLinkDefinitionID<%= hi(attr: "bold", fg: blue) %>
hi pandocLinkDelim<%= hi(fg: base01) %>
hi pandocLinkLabel<%= hi(attr: "underline", fg: blue) %>
hi pandocLinkText<%= hi(attr: "bold,underline", fg: blue) %>
hi pandocLinkTitle<%= hi(attr: "underline", fg: base00) %>
hi pandocLinkTitleDelim<%= hi(attr: "underline", fg: base01) %>
hi pandocLinkURL<%= hi(attr: "underline", fg: base00) %>
hi pandocListMarker<%= hi(fg: magenta) %>
hi pandocListReference<%= hi(attr: "underline", fg: magenta) %>
hi pandocMetadata<%= hi(attr: "bold", fg: blue) %>
hi pandocMetadataDelim<%= hi(fg: base01) %>
hi pandocMetadataKey<%= hi(fg: blue) %>
hi pandocNonBreakingSpace<%= hi(attr: "reverse", fg: red) %>
hi pandocRule<%= hi(attr: "bold", fg: blue) %>
hi pandocRuleLine<%= hi(attr: "bold", fg: blue) %>
hi pandocStrikeout<%= hi(attr: "reverse", fg: base01) %>
hi pandocStrikeoutDefinition<%= hi(attr: "reverse", fg: violet) %>
hi pandocStrikeoutHeading<%= hi(attr: "reverse", fg: orange) %>
hi pandocStrikeoutTable<%= hi(attr: "reverse", fg: blue) %>
hi pandocStrongEmphasis<%= hi(attr: "bold", fg: base0) %>
hi pandocStrongEmphasisDefinition<%= hi(attr: "bold", fg: violet) %>
hi pandocStrongEmphasisEmphasis<%= hi(attr: "bold", fg: base0) %>
hi pandocStrongEmphasisEmphasisDefinition<%= hi(attr: "bold", fg: violet) %>
hi pandocStrongEmphasisEmphasisHeading<%= hi(attr: "bold", fg: orange) %>
hi pandocStrongEmphasisEmphasisTable<%= hi(attr: "bold", fg: blue) %>
hi pandocStrongEmphasisHeading<%= hi(attr: "bold", fg: orange) %>
hi pandocStrongEmphasisNested<%= hi(attr: "bold", fg: base0) %>
hi pandocStrongEmphasisNestedDefinition<%= hi(attr: "bold", fg: violet) %>
hi pandocStrongEmphasisNestedHeading<%= hi(attr: "bold", fg: orange) %>
hi pandocStrongEmphasisNestedTable<%= hi(attr: "bold", fg: blue) %>
hi pandocStrongEmphasisTable<%= hi(attr: "bold", fg: blue) %>
hi pandocStyleDelim<%= hi(fg: base01) %>
hi pandocSubscript<%= hi(fg: violet) %>
hi pandocSubscriptDefinition<%= hi(fg: violet) %>
hi pandocSubscriptHeading<%= hi(attr: "bold", fg: orange) %>
hi pandocSubscriptTable<%= hi(fg: blue) %>
hi pandocSuperscript<%= hi(fg: violet) %>
hi pandocSuperscriptDefinition<%= hi(fg: violet) %>
hi pandocSuperscriptHeading<%= hi(attr: "bold", fg: orange) %>
hi pandocSuperscriptTable<%= hi(fg: blue) %>
hi pandocTable<%= hi(fg: blue) %>
hi pandocTableStructure<%= hi(fg: blue) %>
hi pandocTableZebraDark<%= hi(fg: blue, bg: base02) %>
hi pandocTableZebraLight<%= hi(fg: blue, bg: base03) %>
hi pandocTitleBlock<%= hi(fg: blue) %>
hi pandocTitleBlockTitle<%= hi(attr: "bold", fg: blue) %>
hi pandocTitleComment<%= hi(attr: "bold", fg: blue) %>
hi pandocVerbatimBlock<%= hi(fg: yellow) %>
hi pandocVerbatimInline<%= hi(fg: yellow) %>
hi pandocVerbatimInlineDefinition<%= hi(fg: violet) %>
hi pandocVerbatimInlineHeading<%= hi(attr: "bold", fg: orange) %>
hi pandocVerbatimInlineTable<%= hi(fg: blue) %>
hi perlHereDoc<%= hi(fg: base1, bg: base03) %>
hi perlStatementFileDesc<%= hi(fg: cyan, bg: base03) %>
hi perlVarPlain<%= hi(fg: yellow, bg: base03) %>
hi rubyDefine<%= hi(attr: "bold", fg: base1, bg: base03) %>
hi texMathMatcher<%= hi(fg: yellow, bg: base03) %>
hi texMathZoneX<%= hi(fg: yellow, bg: base03) %>
hi texRefLabel<%= hi(fg: yellow, bg: base03) %>
hi texStatement<%= hi(fg: cyan, bg: base03) %>
hi vimCmdSep<%= hi(attr: "bold", fg: blue) %>
hi vimCommand<%= hi(fg: yellow) %>
hi vimCommentString<%= hi(fg: violet) %>
hi vimGroup<%= hi(attr: "bold,underline", fg: blue) %>
hi vimHiGroup<%= hi(fg: blue) %>
hi vimHiLink<%= hi(fg: blue) %>
hi vimIsCommand<%= hi(fg: base00) %>
hi vimSynMtchOpt<%= hi(fg: yellow) %>
hi vimSynType<%= hi(fg: cyan) %>