Move chroma style settings to separate struct

This commit is contained in:
Christian Muehlhaeuser
2019-12-15 00:08:11 +01:00
parent da222f957c
commit ed99f8a844
2 changed files with 65 additions and 63 deletions
+34 -32
View File
@@ -37,38 +37,40 @@ type StyleBlock struct {
type StyleCodeBlock struct {
StyleBlock
Theme string `json:"theme"`
Text StylePrimitive `json:"text"`
Error StylePrimitive `json:"error"`
Comment StylePrimitive `json:"comment"`
CommentPreproc StylePrimitive `json:"comment_preproc"`
Keyword StylePrimitive `json:"keyword"`
KeywordReserved StylePrimitive `json:"keyword_reserved"`
KeywordNamespace StylePrimitive `json:"keyword_namespace"`
KeywordType StylePrimitive `json:"keyword_type"`
Operator StylePrimitive `json:"operator"`
Punctuation StylePrimitive `json:"punctuation"`
Name StylePrimitive `json:"name"`
NameBuiltin StylePrimitive `json:"name_builtin"`
NameTag StylePrimitive `json:"name_tag"`
NameAttribute StylePrimitive `json:"name_attribute"`
NameClass StylePrimitive `json:"name_class"`
NameConstant StylePrimitive `json:"name_constant"`
NameDecorator StylePrimitive `json:"name_decorator"`
NameException StylePrimitive `json:"name_exception"`
NameFunction StylePrimitive `json:"name_function"`
NameOther StylePrimitive `json:"name_other"`
Literal StylePrimitive `json:"literal"`
LiteralNumber StylePrimitive `json:"literal_number"`
LiteralDate StylePrimitive `json:"literal_date"`
LiteralString StylePrimitive `json:"literal_string"`
LiteralStringEscape StylePrimitive `json:"literal_string_escape"`
GenericDeleted StylePrimitive `json:"generic_deleted"`
GenericEmph StylePrimitive `json:"generic_emph"`
GenericInserted StylePrimitive `json:"generic_inserted"`
GenericStrong StylePrimitive `json:"generic_strong"`
GenericSubheading StylePrimitive `json:"generic_subheading"`
Background StylePrimitive `json:"background"`
Theme string `json:"theme"`
Chroma struct {
Text StylePrimitive `json:"text"`
Error StylePrimitive `json:"error"`
Comment StylePrimitive `json:"comment"`
CommentPreproc StylePrimitive `json:"comment_preproc"`
Keyword StylePrimitive `json:"keyword"`
KeywordReserved StylePrimitive `json:"keyword_reserved"`
KeywordNamespace StylePrimitive `json:"keyword_namespace"`
KeywordType StylePrimitive `json:"keyword_type"`
Operator StylePrimitive `json:"operator"`
Punctuation StylePrimitive `json:"punctuation"`
Name StylePrimitive `json:"name"`
NameBuiltin StylePrimitive `json:"name_builtin"`
NameTag StylePrimitive `json:"name_tag"`
NameAttribute StylePrimitive `json:"name_attribute"`
NameClass StylePrimitive `json:"name_class"`
NameConstant StylePrimitive `json:"name_constant"`
NameDecorator StylePrimitive `json:"name_decorator"`
NameException StylePrimitive `json:"name_exception"`
NameFunction StylePrimitive `json:"name_function"`
NameOther StylePrimitive `json:"name_other"`
Literal StylePrimitive `json:"literal"`
LiteralNumber StylePrimitive `json:"literal_number"`
LiteralDate StylePrimitive `json:"literal_date"`
LiteralString StylePrimitive `json:"literal_string"`
LiteralStringEscape StylePrimitive `json:"literal_string_escape"`
GenericDeleted StylePrimitive `json:"generic_deleted"`
GenericEmph StylePrimitive `json:"generic_emph"`
GenericInserted StylePrimitive `json:"generic_inserted"`
GenericStrong StylePrimitive `json:"generic_strong"`
GenericSubheading StylePrimitive `json:"generic_subheading"`
Background StylePrimitive `json:"background"`
} `json:"chroma"`
}
type StyleList struct {