mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-01 15:51:12 +00:00
refactor, allowed to specify full underline
This commit is contained in:
parent
6e752645a6
commit
26556c631b
4 changed files with 17 additions and 9 deletions
|
@ -66,11 +66,19 @@ pub enum Attribute {
|
|||
},
|
||||
|
||||
Underline {
|
||||
underline_start: UnderlineStart,
|
||||
underline_end: UnderlineEnd,
|
||||
underline_spec: UnderlineSpec,
|
||||
},
|
||||
}
|
||||
|
||||
#[derive(Debug)]
|
||||
pub enum UnderlineSpec {
|
||||
Partial{
|
||||
start: usize,
|
||||
end: usize,
|
||||
},
|
||||
Full
|
||||
}
|
||||
|
||||
#[derive(Debug, Default)]
|
||||
pub struct Attributes {
|
||||
pub all: Vec<Attribute>,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue