mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-03 00:24:34 +00:00
basic highlighting flow using MarkupNodes
This commit is contained in:
parent
853badf777
commit
37704323b1
16 changed files with 269 additions and 301 deletions
|
@ -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| {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue