started on supprting comments in editor+docs

This commit is contained in:
Anton-4 2021-11-23 20:03:25 +01:00
parent 44cf238a67
commit 30c1d218a7
5 changed files with 22 additions and 2 deletions

View file

@ -19,6 +19,8 @@ pub enum HighlightStyle {
Import,
Provides,
Blank,
Comment,
DocsComment,
}
pub fn default_highlight_map() -> HashMap<HighlightStyle, RgbaTup> {
@ -42,7 +44,8 @@ pub fn default_highlight_map() -> HashMap<HighlightStyle, RgbaTup> {
(Import, from_hsb(225, 50, 100)),
(Provides, from_hsb(225, 50, 100)),
(Blank, from_hsb(258, 50, 90)),
// comment from_hsb(285, 6, 47) or 186, 35, 40
(Comment, from_hsb(258, 50, 90)), // TODO check color
(DocsComment, from_hsb(258, 50, 90)), // TODO check color
]
.iter()
.for_each(|tup| {