basic highlighting flow using MarkupNodes

This commit is contained in:
Anton-4 2022-03-04 20:19:05 +01:00
parent 853badf777
commit 37704323b1
No known key found for this signature in database
GPG key ID: C954D6E0F9C0ABFD
16 changed files with 269 additions and 301 deletions

View file

@ -21,6 +21,8 @@ pub enum HighlightStyle {
Blank,
Comment,
DocsComment,
UppercaseIdent, // TODO remove other HighlightStyle subtypes of UppercaseIdent?
LowercaseIdent, // TODO remove other HighlightStyle subtypes of LowercaseIdent?
}
pub fn default_highlight_map() -> HashMap<HighlightStyle, RgbaTup> {
@ -46,6 +48,8 @@ pub fn default_highlight_map() -> HashMap<HighlightStyle, RgbaTup> {
(Blank, from_hsb(258, 50, 90)),
(Comment, from_hsb(258, 50, 90)), // TODO check color
(DocsComment, from_hsb(258, 50, 90)), // TODO check color
(UppercaseIdent, almost_white),
(LowercaseIdent, from_hsb(225, 50, 100)),
]
.iter()
.for_each(|tup| {