mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-02 00:01:16 +00:00
feat: only render unline if attribute is there
This commit is contained in:
parent
0853c0bdb7
commit
6e752645a6
2 changed files with 58 additions and 28 deletions
|
@ -47,16 +47,28 @@ pub struct UnderlineEnd {
|
|||
#[derive(Debug)]
|
||||
pub enum Attribute {
|
||||
// Rust does not yet support types for enum variants so we have to do it like this
|
||||
Caret { caret: Caret },
|
||||
Caret {
|
||||
caret: Caret,
|
||||
},
|
||||
|
||||
SelectionStart { selection_start: SelectionStart },
|
||||
SelectionEnd { selection_end: SelectionEnd },
|
||||
SelectionStart {
|
||||
selection_start: SelectionStart,
|
||||
},
|
||||
SelectionEnd {
|
||||
selection_end: SelectionEnd,
|
||||
},
|
||||
|
||||
HighlightStart { highlight_start: HighlightStart },
|
||||
HighlightEnd { highlight_end: HighlightEnd },
|
||||
HighlightStart {
|
||||
highlight_start: HighlightStart,
|
||||
},
|
||||
HighlightEnd {
|
||||
highlight_end: HighlightEnd,
|
||||
},
|
||||
|
||||
UnderlineStart { underline_start: UnderlineStart },
|
||||
UnderlineEnd { underline_end: UnderlineEnd },
|
||||
Underline {
|
||||
underline_start: UnderlineStart,
|
||||
underline_end: UnderlineEnd,
|
||||
},
|
||||
}
|
||||
|
||||
#[derive(Debug, Default)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue