tangled
alpha
login
or
join now
algmyr.se
/
vim-wombat-lua
0
fork
atom
this repo has no description
0
fork
atom
overview
issues
pulls
pipelines
Mostly formatting and structure I think
algmyr.se
2 years ago
9aa5e5b0
2ae9bbec
+188
-188
1 changed file
expand all
collapse all
unified
split
lua
wombat_lua.lua
+188
-188
lua/wombat_lua.lua
···
7
7
local s = styles
8
8
9
9
local my_colors = {
10
10
+
-- Syntax elements
10
11
constant = '#E5786D',
11
12
namespace = '#E5786D',
12
13
statement = '#88B8F6',
···
17
18
special = '#EADEAD',
18
19
string = '#95E454',
19
20
escape = '#D787FF',
20
20
-
character = '#D787FF',
21
21
+
character = '#E5786D',
21
22
23
23
+
-- Diffing
24
24
+
diff_add = '#006600',
25
25
+
diff_delete = '#880000',
26
26
+
diff_change = '#444400',
27
27
+
sign_add = '#33cc33',
28
28
+
sign_change = '#cccc33',
29
29
+
sign_change_delete = '#ee9933',
30
30
+
sign_delete = '#cc3333',
31
31
+
sign_delete_first_line = '#cc3333',
32
32
+
33
33
+
-- Misc highlight
34
34
+
comment = '#9C998E',
35
35
+
non_text = '#9C998E',
36
36
+
bright_text = '#ffffd7',
37
37
+
38
38
+
-- UI
22
39
search = '#D787FF',
23
40
search_bg = '#636066',
24
41
fold = '#E3E0D7', -- norm, for now
···
27
44
match_paren_bg = '#857B6F',
28
45
visual_bg = '#554D4B',
29
46
30
30
-
comment = '#9C998E',
31
31
-
non_text = '#9C998E',
32
32
-
33
47
bg_accent = '#1C1C1C',
34
48
norm_accent = '#9C998E',
35
49
main_bg = '#242424',
···
37
51
bg_very_subtle = '#303030',
38
52
bg_subtle = '#444444',
39
53
40
40
-
mid_gray = '#636066',
54
54
+
mid_gray = '#838086',
41
55
42
42
-
bright_text = '#ffffd7',
43
43
-
44
44
-
warning = '#E4E967',
45
45
-
error = '#FF2026',
56
56
+
-- LSP and diagnostics
57
57
+
annotation = '#00bbbb',
58
58
+
warning = '#E7ED30',
59
59
+
error = '#FF444A',
46
60
todo = '#D4D987',
47
61
48
48
-
diff_add = '#006600',
49
49
-
diff_delete = '#880000',
50
50
-
diff_change = '#444400',
51
51
-
52
52
-
annotation = '#00bbbb',
53
53
-
62
62
+
-- TODO
54
63
note = '#00FF00',
55
64
note_bg = '#0000FF',
56
65
57
66
unknown = '#FF2026',
58
58
-
59
59
-
sign_add = '#33cc33',
60
60
-
sign_change = '#cccc33',
61
61
-
sign_change_delete = '#ee9933',
62
62
-
sign_delete = '#cc3333',
63
63
-
sign_delete_first_line = '#cc3333',
64
67
}
65
68
66
69
for key, value in pairs(my_colors) do
···
68
71
end
69
72
70
73
-- General {{{1
71
71
-
Group.new("Normal", c.norm, c.main_bg)
72
72
-
Group.new("Cursor", c.main_bg, c.norm)
73
73
-
Group.new("Visual", c.none, c.visual_bg)
74
74
-
Group.new("VisualNOS", c.none, c.bg_very_subtle)
75
75
-
Group.new("Search", c.search, c.search_bg)
76
76
-
Group.new("Folded", c.fold, c.fold_bg)
77
77
-
78
78
-
Group.new('VertSplit', c.norm_accent, c.bg_accent)
79
79
-
80
80
-
Group.new("LineNr", c.norm_accent, c.bg_accent, s.none)
81
81
-
82
82
-
Group.new("CursorLine", c.none, c.bg_very_subtle, s.none)
83
83
-
Group.new("CursorColumn", c.none, c.bg_very_subtle, s.none)
84
84
-
Group.new("ColorColumn", c.none, c.error, s.none)
85
85
-
86
86
-
Group.new("MatchParen", c.match_paren, c.match_paren_bg, s.bold)
87
87
-
88
88
-
Group.new("Title", c.bright_text, c.none, styles.bold)
74
74
+
Group.new("Normal", c.norm, c.main_bg)
75
75
+
Group.new("Cursor", c.main_bg, c.norm)
76
76
+
Group.new("Visual", c.none, c.visual_bg)
77
77
+
Group.new("VisualNOS", c.none, c.bg_very_subtle)
78
78
+
Group.new("Search", c.search, c.search_bg)
79
79
+
Group.new("Folded", c.fold, c.fold_bg)
80
80
+
Group.new('VertSplit', c.norm_accent, c.bg_accent)
81
81
+
Group.new("LineNr", c.norm_accent, c.bg_accent, s.none)
82
82
+
Group.new("CursorLine", c.none, c.bg_very_subtle, s.none)
83
83
+
Group.new("CursorColumn", c.none, c.bg_very_subtle, s.none)
84
84
+
Group.new("ColorColumn", c.none, c.error, s.none)
85
85
+
Group.new("MatchParen", c.match_paren, c.match_paren_bg, s.bold)
86
86
+
Group.new("Title", c.bright_text, c.none, styles.bold)
89
87
90
88
-- Pmenu (and pmenu scrollbar) {{{1
91
91
-
Group.new("Pmenu", c.norm, c.bg_accent, s.none)
92
92
-
Group.new("PmenuSel", c.norm, c.bg_very_subtle, s.bold)
89
89
+
Group.new("Pmenu", c.norm, c.bg_accent, s.none)
90
90
+
Group.new("PmenuSel", c.norm, c.bg_very_subtle, s.bold)
93
91
--Group.new("PmenuSbar", c.norm, c.bg_subtle, s.none)
94
92
--Group.new("PmenuThumb", c.norm, c.bg_subtle, s.none)
95
93
···
99
97
Group.new("DiffChange", c.none, c.diff_change)
100
98
Group.new("DiffText", c.none, c.diff_change, s.underline+s.bold)
101
99
102
102
-
-- Misc {{{1
103
103
-
Group.new("SpecialKey", c.mid_gray, c.none, s.none)
104
104
-
Group.new("Error", c.error, c.none, s.none)
105
105
-
Group.new("Warning", c.warning, c.none, s.none)
106
106
-
Group.new("Underlined", c.none, c.none, s.underline)
107
107
-
Group.new("Ignore", c.main_bg, c.none, s.none)
108
108
-
109
109
-
-- Messages, setting ErrorMsg to bold will make errors rather visible,
110
110
-
-- setting ErrorMsg to have a bg color even more so. :)
111
111
-
-- Sadly this is also noisy af, not recommended for day to day usage.
112
112
-
-- Should probably be a config option, like a debug mode.
113
113
-
Group.new("ErrorMsg", c.error, c.none, s.none)
114
114
-
Group.new("WarningMsg", c.warning, c.none, s.none)
115
115
-
Group.new("MoreMsg", c.mid_gray, c.none, s.none)
116
116
-
Group.link("ModeMsg", g.MoreMsg)
117
117
-
118
118
-
Group.new("NonText", c.non_text, c.none, s.none)
119
119
-
Group.new("Note", c.none, c.none, s.bold) -- e.g. TODO and FIXME
120
120
-
121
121
-
-- ? {{{1
122
122
-
--Group.new("Directory", c.dark_blue, c.none, s.none)
123
123
-
--Group.new("IncSearch", c.light_black, c.yellow, s.none)
124
124
-
--Group.new("CursorLineNr", c.purple, c.bg_very_subtle, s.none)
125
125
-
--Group.new("Question", c.unknown, c.none, s.none)
126
126
-
--Group.new("WildMenu", c.main_bg, c.norm, s.none)
127
127
-
--Group.new("Folded", c.medium_gray, c.none, s.none)
128
128
-
Group.new("SignColumn", c.none, c.bg_accent, s.none)
129
129
-
Group.new("FoldColumn", c.mid_gray, c.bg_accent, s.none)
130
130
-
131
131
-
--Group.new("TabLine", c.norm, c.bg_very_subtle, s.none)
132
132
-
--Group.new("TabLineSel", c.purple, c.bg_subtle, s.bold)
133
133
-
--Group.new("TabLineFill", c.norm, c.bg_very_subtle, s.none)
134
134
-
135
135
-
--Group.new("MatchParen", c.norm, c.bg_subtle, s.none)
136
136
-
--Group.new("qfLineNr", c.medium_gray, c.none, s.none)
137
137
-
--Group.new("htmlH1", c.norm, c.bg, s.none)
138
138
-
--Group.new("htmlH2", c.norm, c.bg, s.none)
139
139
-
--Group.new("htmlH3", c.norm, c.bg, s.none)
140
140
-
--Group.new("htmlH4", c.norm, c.bg, s.none)
141
141
-
--Group.new("htmlH5", c.norm, c.bg, s.none)
142
142
-
--Group.new("htmlH6", c.norm, c.bg, s.none)
143
143
-
144
144
-
-- Signify {{{1
145
145
-
-- Unsure why I have to specify the bg here, seems the default uses the diff
146
146
-
-- line color?
100
100
+
-- Unsure why I have to specify the bg here,
101
101
+
-- seems the default uses the diff line color?
147
102
Group.new("SignAdd", c.sign_add, c.bg_accent, s.none)
148
103
Group.new("SignChange", c.sign_change, c.bg_accent, s.none)
149
104
Group.new("SignChangeDelete", c.sign_change_delete, c.bg_accent, s.none)
···
156
111
Group.link("SignifySignDelete", g.SignDelete)
157
112
Group.link("SignifySignDeleteFirstLine", g.SignDeleteFirstLine)
158
113
159
159
-
Group.link("GitGutterAdd", g.SignAdd)
160
160
-
Group.link("GitGutterDelete", g.SignDelete)
161
161
-
Group.link("GitGutterChange", g.SignChange)
162
162
-
Group.link("GitGutterChangeDelete", g.SignChangeDelete)
114
114
+
Group.link("GitGutterAdd", g.SignAdd)
115
115
+
Group.link("GitGutterDelete", g.SignDelete)
116
116
+
Group.link("GitGutterChange", g.SignChange)
117
117
+
Group.link("GitGutterChangeDelete", g.SignChangeDelete)
163
118
119
119
+
-- Misc {{{1
120
120
+
Group.new("SpecialKey", c.mid_gray, c.none, s.none)
121
121
+
Group.new("Underlined", c.none, c.none, s.underline)
122
122
+
Group.new("Ignore", c.main_bg, c.none, s.none)
123
123
+
124
124
+
Group.new("Error", c.error, c.none, s.none)
125
125
+
Group.new("Warning", c.warning, c.none, s.none)
126
126
+
Group.new("Hint", c.annotation, c.none, s.none)
127
127
+
Group.new("Info", c.annotation, c.none, s.none)
128
128
+
129
129
+
-- Messages, setting ErrorMsg to bold will make errors rather visible,
130
130
+
-- setting ErrorMsg to have a bg color even more so. :)
131
131
+
-- Sadly this is also noisy af, not recommended for day to day usage.
132
132
+
-- Should probably be a config option, like a debug mode.
133
133
+
Group.new("ErrorMsg", c.error, c.none, s.none)
134
134
+
Group.new("WarningMsg", c.warning, c.none, s.none)
135
135
+
Group.new("MoreMsg", c.mid_gray, c.none, s.none)
136
136
+
Group.link("ModeMsg", g.MoreMsg)
137
137
+
138
138
+
Group.new("NonText", c.non_text, c.none, s.none)
139
139
+
Group.new("Note", c.none, c.none, s.bold) -- e.g. TODO and FIXME
140
140
+
141
141
+
-- ? {{{1
142
142
+
--Group.new("Directory", c.dark_blue, c.none, s.none)
143
143
+
--Group.new("IncSearch", c.light_black, c.yellow, s.none)
144
144
+
--Group.new("CursorLineNr", c.purple, c.bg_very_subtle, s.none)
145
145
+
--Group.new("Question", c.unknown, c.none, s.none)
146
146
+
--Group.new("WildMenu", c.main_bg, c.norm, s.none)
147
147
+
--Group.new("Folded", c.medium_gray, c.none, s.none)
148
148
+
149
149
+
Group.new("SignColumn", c.none, c.bg_accent, s.none)
150
150
+
Group.new("FoldColumn", c.mid_gray, c.bg_accent, s.none)
151
151
+
152
152
+
--Group.new("TabLine", c.norm, c.bg_very_subtle, s.none)
153
153
+
--Group.new("TabLineSel", c.purple, c.bg_subtle, s.bold)
154
154
+
--Group.new("TabLineFill", c.norm, c.bg_very_subtle, s.none)
155
155
+
156
156
+
--Group.new("MatchParen", c.norm, c.bg_subtle, s.none)
157
157
+
--Group.new("qfLineNr", c.medium_gray, c.none, s.none)
158
158
+
--Group.new("htmlH1", c.norm, c.bg, s.none)
159
159
+
--Group.new("htmlH2", c.norm, c.bg, s.none)
160
160
+
--Group.new("htmlH3", c.norm, c.bg, s.none)
161
161
+
--Group.new("htmlH4", c.norm, c.bg, s.none)
162
162
+
--Group.new("htmlH5", c.norm, c.bg, s.none)
163
163
+
--Group.new("htmlH6", c.norm, c.bg, s.none)
164
164
165
165
-- Syntax - Main groups {{{1
166
166
-
Group.new("Statement", c.statement, c.none, s.none)
167
167
-
Group.link("Keyword", g.Statement)
168
168
-
Group.link("Conditional", g.Statement)
169
169
-
Group.link("Repeat", g.Statement)
170
170
-
Group.link("Label", g.Statement)
171
171
-
Group.link("Keyword", g.Statement)
172
172
-
Group.link("Exception", g.Statement)
166
166
+
Group.new("Statement", c.statement, c.none, s.none)
167
167
+
Group.link("Keyword", g.Statement)
168
168
+
Group.link("Conditional", g.Statement)
169
169
+
Group.link("Repeat", g.Statement)
170
170
+
Group.link("Label", g.Statement)
171
171
+
Group.link("Keyword", g.Statement)
172
172
+
Group.link("Exception", g.Statement)
173
173
174
174
Group.new("Constant", c.constant, c.none, s.none)
175
175
-
Group.link("Number", g.Constant)
176
176
-
Group.link("Boolean", g.Constant)
177
177
-
Group.link("Float", g.Constant)
175
175
+
Group.link("Number", g.Constant)
176
176
+
Group.link("Boolean", g.Constant)
177
177
+
Group.link("Float", g.Constant)
178
178
179
179
Group.link("PreProc", g.Constant)
180
180
Group.link("Include", g.PreProc)
···
183
183
Group.link("PreCondit", g.PreProc)
184
184
185
185
Group.new("Identifier", c.identifier, c.none, s.none)
186
186
-
Group.new("Function", c.func, c.none, s.none)
186
186
+
Group.new("Function", c.func, c.none, s.none)
187
187
188
188
-
Group.new("Type", c.type, c.none, s.none)
188
188
+
Group.new("Type", c.type, c.none, s.none)
189
189
Group.link("StorageClass", g.Type)
190
190
Group.link("Structure", g.Type)
191
191
Group.link("Typedef", g.Type)
192
192
193
193
-
Group.new("Special", c.special, c.none, s.none)
193
193
+
Group.new("Special", c.special, c.none, s.none)
194
194
Group.link("SpecialChar", g.Special)
195
195
Group.link("Tag", g.Special)
196
196
Group.link("Delimiter", g.Special)
197
197
Group.link("SpecialComment", g.Special)
198
198
Group.link("Debug", g.Special)
199
199
200
200
-
Group.new("String", c.string, c.none)
201
201
-
Group.new("Character", c.character, c.none)
202
202
-
Group.new("StringEscape", c.escape, c.none)
200
200
+
Group.new("String", c.string, c.none)
201
201
+
Group.new("Character", c.character, c.none)
202
202
+
Group.new("StringEscape", c.escape, c.none)
203
203
--Group.link("Character", g.String)
204
204
205
205
-
Group.new("Comment", c.comment, c.none)
206
206
-
205
205
+
Group.new("Comment", c.comment, c.none)
207
206
Group.new("Operator", c.operator, c.none)
208
208
-
209
209
-
Group.new("Todo", c.main_bg, c.todo)
207
207
+
Group.new("Todo", c.main_bg, c.todo)
210
208
211
211
-
-- Not sure for what this is.
212
212
-
Group.new("Noop", c.norm_accent, c.none, s.none)
209
209
+
Group.new("Noop", c.norm_accent, c.none, s.none)
213
210
Group.link("CocFadeOut", g.Noop)
214
211
215
215
-
Group.new("Annotation", c.annotation, c.none)
216
216
-
Group.link("CocInlayHint", g.Annotation)
212
212
+
Group.new("Annotation", c.annotation, c.none)
213
213
+
Group.link("CocInlayHint", g.Annotation)
217
214
Group.link("DiagnosticHint", g.Annotation)
218
215
219
219
-
220
220
-
221
221
-
222
222
-
223
223
-
-- WIP
216
216
+
Group.link("DiagnosticSignHint", g.Hint)
217
217
+
Group.link("DiagnosticSignInfo", g.Info)
218
218
+
Group.link("DiagnosticSignWarn", g.Warning)
219
219
+
Group.link("DiagnosticSignError", g.Error)
220
220
+
Group.link("DiagnosticHint", g.Hint)
221
221
+
Group.link("DiagnosticInfo", g.Info)
222
222
+
Group.link("DiagnosticWarn", g.Warning)
223
223
+
Group.link("DiagnosticError", g.Error)
224
224
225
225
-- Syntax - Treesitter {{{1
226
226
Group.new("UnknownThing", c.norm, c.unknown)
···
229
229
-- https://github.com/nvim-treesitter/nvim-treesitter/blob/master/CONTRIBUTING.md#highlights
230
230
231
231
-- Misc {{{2
232
232
-
Group.link("@comment", g.Comment) -- line and block comments
233
233
-
Group.link("@error", g.ErrorMsg) -- syntax/parser errors
234
234
-
--Group.link("@none", g.UnknownThing) -- completely disable the highlight
235
235
-
--Group.link("@preproc" g.UnknownThing) -- various preprocessor directives & shebangs
236
236
-
--Group.link("@define" g.UnknownThing) -- preprocessor definition directives
237
237
-
Group.link("@operator", g.Operator) -- symbolic operators (e.g. `+` / `*`)
232
232
+
Group.link("@comment", g.Comment) -- line and block comments
233
233
+
Group.link("@error", g.ErrorMsg) -- syntax/parser errors
234
234
+
--Group.link("@none", g.UnknownThing) -- completely disable the highlight
235
235
+
--Group.link("@preproc", g.UnknownThing) -- various preprocessor directives & shebangs
236
236
+
--Group.link("@define", g.UnknownThing) -- preprocessor definition directives
237
237
+
Group.link("@operator", g.Operator) -- symbolic operators (e.g. `+` / `*`)
238
238
239
239
-- Punctuation {{{2
240
240
-
Group.link("@punctuation.delimiter", g.Special) -- delimiters (e.g. `;` / `.` / `,`)
241
241
-
Group.link("@punctuation.bracket", g.Special) -- brackets (e.g. `()` / `{}` / `[]`)
242
242
-
Group.link("@punctuation.special", g.Special) -- special symbols (e.g. `{}` in string interpolation)
240
240
+
Group.link("@punctuation.delimiter", g.Special) -- delimiters (e.g. `;` / `.` / `,`)
241
241
+
Group.link("@punctuation.bracket", g.Special) -- brackets (e.g. `()` / `{}` / `[]`)
242
242
+
Group.link("@punctuation.special", g.Special) -- special symbols (e.g. `{}` in string interpolation)
243
243
244
244
-- Literals {{{2
245
245
-
Group.link("@string", g.String) -- string literals
246
246
-
Group.link("@string.regex", g.String) -- regular expressions
247
247
-
Group.link("@string.escape", g.StringEscape) -- escape sequences
248
248
-
Group.link("@string.special", g.String) -- other special strings (e.g. dates)
245
245
+
Group.link("@string", g.String) -- string literals
246
246
+
Group.link("@string.regex", g.String) -- regular expressions
247
247
+
Group.link("@string.escape", g.StringEscape) -- escape sequences
248
248
+
Group.link("@string.special", g.String) -- other special strings (e.g. dates)
249
249
250
250
-
Group.link("@character", g.Character) -- character literals
251
251
-
Group.link("@character.special", g.Character) -- special characters (e.g. wildcards)
250
250
+
Group.link("@character", g.Character) -- character literals
251
251
+
Group.link("@character.special", g.Character) -- special characters (e.g. wildcards)
252
252
253
253
-
Group.link("@boolean", g.Boolean) -- boolean literals
254
254
-
Group.link("@number", g.Number) -- numeric literals
255
255
-
Group.link("@float", g.Float) -- floating-point number literals
253
253
+
Group.link("@boolean", g.Boolean) -- boolean literals
254
254
+
Group.link("@number", g.Number) -- numeric literals
255
255
+
Group.link("@float", g.Float) -- floating-point number literals
256
256
257
257
-- Functions {{{2
258
258
-
Group.link("@function", g.Function) -- function definitions
259
259
-
Group.link("@function.builtin", g.Function) -- built-in functions
260
260
-
--Group.link("@function.call", g.UnknownThing) -- function calls
261
261
-
Group.link("@function.macro", g.Function) -- preprocessor macros
258
258
+
Group.link("@function", g.Function) -- function definitions
259
259
+
Group.link("@function.builtin", g.Function) -- built-in functions
260
260
+
--Group.link("@function.call", g.UnknownThing) -- function calls
261
261
+
Group.link("@function.macro", g.Function) -- preprocessor macros
262
262
263
263
-
Group.link("@method", g.Function) -- method definitions
264
264
-
-- Group.link("@method.call", g.UnknownThing) -- method calls
263
263
+
Group.link("@method", g.Function) -- method definitions
264
264
+
-- Group.link("@method.call", g.UnknownThing) -- method calls
265
265
266
266
-
Group.link("@constructor", g.Function) -- constructor calls and definitions
267
267
-
Group.link("@parameter", g.Normal) -- parameters of a function
266
266
+
Group.link("@constructor", g.Function) -- constructor calls and definitions
267
267
+
Group.link("@parameter", g.Normal) -- parameters of a function
268
268
269
269
-- Keywords {{{2
270
270
-
Group.link("@keyword", g.Keyword) -- various keywords
271
271
-
Group.link("@keyword.function", g.Keyword) -- keywords that define a function (e.g. `func` in Go, `def` in Python)
272
272
-
Group.link("@keyword.operator", g.Keyword) -- operators that are English words (e.g. `and` / `or`)
273
273
-
Group.link("@keyword.return", g.Keyword) -- keywords like `return` and `yield`
270
270
+
Group.link("@keyword", g.Keyword) -- various keywords
271
271
+
Group.link("@keyword.function", g.Keyword) -- keywords that define a function (e.g. `func` in Go, `def` in Python)
272
272
+
Group.link("@keyword.operator", g.Keyword) -- operators that are English words (e.g. `and` / `or`)
273
273
+
Group.link("@keyword.return", g.Keyword) -- keywords like `return` and `yield`
274
274
275
275
-
Group.link("@conditional", g.Conditional) -- keywords related to conditionals (e.g. `if` / `else`)
276
276
-
Group.link("@repeat", g.Repeat) -- keywords related to loops (e.g. `for` / `while`)
277
277
-
--Group.link("@debug" g.UnknownThing) -- keywords related to debugging
278
278
-
Group.link("@label", g.Label) -- GOTO and other labels (e.g. `label:` in C)
279
279
-
Group.link("@include", g.Include) -- keywords for including modules (e.g. `import` / `from` in Python)
280
280
-
Group.link("@exception", g.Exception) -- keywords related to exceptions (e.g. `throw` / `catch`)
275
275
+
Group.link("@conditional", g.Conditional) -- keywords related to conditionals (e.g. `if` / `else`)
276
276
+
Group.link("@repeat", g.Repeat) -- keywords related to loops (e.g. `for` / `while`)
277
277
+
--Group.link("@debug", g.UnknownThing) -- keywords related to debugging
278
278
+
Group.link("@label", g.Label) -- GOTO and other labels (e.g. `label:` in C)
279
279
+
Group.link("@include", g.Include) -- keywords for including modules (e.g. `import` / `from` in Python)
280
280
+
Group.link("@exception", g.Exception) -- keywords related to exceptions (e.g. `throw` / `catch`)
281
281
282
282
-- Types {{{2
283
283
-
Group.link("@type", g.Type) -- type or class definitions and annotations
284
284
-
Group.link("@type.builtin", g.Type) -- built-in types
285
285
-
--Group.link("@type.definition", g.UnknownThing) -- type definitions (e.g. `typedef` in C)
286
286
-
--Group.link("@type.qualifier", g.UnknownThing) -- type qualifiers (e.g. `const`)
283
283
+
Group.link("@type", g.Type) -- type or class definitions and annotations
284
284
+
Group.link("@type.builtin", g.Type) -- built-in types
285
285
+
--Group.link("@type.definition", g.UnknownThing) -- type definitions (e.g. `typedef` in C)
286
286
+
--Group.link("@type.qualifier", g.UnknownThing) -- type qualifiers (e.g. `const`)
287
287
288
288
--Group.link("@storageclass", g.UnknownThing) -- visibility/life-time modifiers
289
289
--Group.link("@storageclass.lifetime", g.UnknownThing) -- life-time modifiers (e.g. `static`)
290
290
--Group.link("@attribute", g.UnknownThing) -- attribute annotations (e.g. Python decorators)
291
291
--Group.link("@field", g.UnknownThing) -- object and struct fields
292
292
-
Group.link("@property", g.Identifier) -- similar to `@field`
292
292
+
Group.link("@property", g.Identifier) -- similar to `@field`
293
293
294
294
-- Identifiers {{{2
295
295
-
Group.link("@variable", g.Identifier) -- various variable names
296
296
-
--Group.link("@variable.builtin", g.UnknownThing) -- built-in variable names (e.g. `this`)
295
295
+
Group.link("@variable", g.Identifier) -- various variable names
296
296
+
--Group.link("@variable.builtin", g.UnknownThing) -- built-in variable names (e.g. `this`)
297
297
298
298
-
Group.link("@constant", g.Constant) -- constant identifiers
299
299
-
--Group.link("@constant.builtin", g.UnknownThing) -- built-in constant values
300
300
-
--Group.link("@constant.macro", g.UnknownThing) -- constants defined by the preprocessor
298
298
+
Group.link("@constant", g.Constant) -- constant identifiers
299
299
+
--Group.link("@constant.builtin", g.UnknownThing) -- built-in constant values
300
300
+
--Group.link("@constant.macro", g.UnknownThing) -- constants defined by the preprocessor
301
301
302
302
-
Group.new("@namespace", c.namespace, c.none) -- modules or namespaces
303
303
-
Group.link("@symbol", g.Special) -- symbols or atoms
302
302
+
Group.new("@namespace", c.namespace, c.none) -- modules or namespaces
303
303
+
Group.link("@symbol", g.Special) -- symbols or atoms
304
304
305
305
-- Text {{{2
306
306
-
Group.link("@text", g.Normal) -- non-structured text
307
307
-
Group.link("@text.strong", g.Normal) -- bold text
308
308
-
Group.link("@text.emphasis", g.Normal) -- text with emphasis
309
309
-
Group.link("@text.underline", g.Normal) -- underlined text
310
310
-
Group.link("@text.strike", g.Normal) -- strikethrough text
311
311
-
Group.link("@text.title", g.Normal) -- text that is part of a title
312
312
-
Group.link("@text.literal", g.Normal) -- literal or verbatim text
313
313
-
Group.link("@text.uri", g.UnknownThing) -- URIs (e.g. hyperlinks)
314
314
-
Group.link("@text.math", g.UnknownThing) -- math environments (e.g. `$ ... $` in LaTeX)
315
315
-
Group.link("@text.environment", g.UnknownThing) -- text environments of markup languages
316
316
-
Group.link("@text.environment.name", g.UnknownThing) -- text indicating the type of an environment
317
317
-
Group.link("@text.reference", g.Normal) -- text references, footnotes, citations, etc.
306
306
+
Group.link("@text", g.Normal) -- non-structured text
307
307
+
Group.link("@text.strong", g.Normal) -- bold text
308
308
+
Group.link("@text.emphasis", g.Normal) -- text with emphasis
309
309
+
Group.link("@text.underline", g.Normal) -- underlined text
310
310
+
Group.link("@text.strike", g.Normal) -- strikethrough text
311
311
+
Group.link("@text.title", g.Normal) -- text that is part of a title
312
312
+
Group.link("@text.literal", g.Normal) -- literal or verbatim text
313
313
+
Group.link("@text.uri", g.UnknownThing) -- URIs (e.g. hyperlinks)
314
314
+
Group.link("@text.math", g.UnknownThing) -- math environments (e.g. `$ ... $` in LaTeX)
315
315
+
Group.link("@text.environment", g.UnknownThing) -- text environments of markup languages
316
316
+
Group.link("@text.environment.name", g.UnknownThing) -- text indicating the type of an environment
317
317
+
Group.link("@text.reference", g.Normal) -- text references, footnotes, citations, etc.
318
318
319
319
320
320
-- I think the defaults are fine here?
321
321
-
-- Group.link("@text.todo", g.TODO) -- todo notes
322
322
-
Group.link("@text.note", g.Note) -- info notes
321
321
+
-- Group.link("@text.todo", g.TODO) -- todo notes
322
322
+
Group.link("@text.note", g.Note) -- info notes
323
323
Group.link("@text.warning", g.Warning) -- warning notes
324
324
-
Group.link("@text.danger", g.Error) -- danger/error notes
324
324
+
Group.link("@text.danger", g.Error) -- danger/error notes
325
325
326
326
-
Group.link("@text.diff.add", g.DiffAdd) -- added text (for diff files)
326
326
+
Group.link("@text.diff.add", g.DiffAdd) -- added text (for diff files)
327
327
Group.link("@text.diff.delete", g.DiffDelete) -- deleted text (for diff files)
328
328
329
329
-- Tags {{{2
330
330
-
Group.link("@tag", g.Special) -- XML tag names
331
331
-
Group.link("@tag.attribute", g.Special) -- XML tag attributes
332
332
-
Group.link("@tag.delimiter", g.Special) -- XML tag delimiters
330
330
+
Group.link("@tag", g.Special) -- XML tag names
331
331
+
Group.link("@tag.attribute", g.Special) -- XML tag attributes
332
332
+
Group.link("@tag.delimiter", g.Special) -- XML tag delimiters
333
333
334
334
-- Conceal {{{2
335
335
--Group.link("@conceal", g.UnknownThing) -- for captures that are only used for concealing
···
343
343
-------------------------------------
344
344
345
345
-- Undocumented or invalid?
346
346
-
Group.link("@annotation", g.UnknownThing)
347
347
-
--Group.link("@parameter.reference", g.UnknownThing)
346
346
+
Group.link("@annotation", g.UnknownThing)
347
347
+
--Group.link("@parameter.reference", g.UnknownThing)
348
348
349
349
Group.new("TODO", c.none, c.none) -- what even set this?