mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-02 08:11:12 +00:00
fmt
This commit is contained in:
parent
26556c631b
commit
b46ef4d68d
3 changed files with 19 additions and 26 deletions
|
@ -47,36 +47,21 @@ 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 },
|
||||
|
||||
Underline {
|
||||
underline_spec: UnderlineSpec,
|
||||
},
|
||||
Underline { underline_spec: UnderlineSpec },
|
||||
}
|
||||
|
||||
#[derive(Debug)]
|
||||
pub enum UnderlineSpec {
|
||||
Partial{
|
||||
start: usize,
|
||||
end: usize,
|
||||
},
|
||||
Full
|
||||
Partial { start: usize, end: usize },
|
||||
Full,
|
||||
}
|
||||
|
||||
#[derive(Debug, Default)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue