STL rework
- fixed lots of bugs - overlay libraries work correctly and reliably - the STL is an overlay library - examples updated
This commit is contained in:
@@ -83,11 +83,7 @@ pub fn import_parser<'a>(
|
||||
Some(Import {
|
||||
path: ctx.interner().i(&path),
|
||||
name: {
|
||||
if name == ctx.interner().i("*") {
|
||||
None
|
||||
} else {
|
||||
Some(name)
|
||||
}
|
||||
if name == ctx.interner().i("*") { None } else { Some(name) }
|
||||
},
|
||||
})
|
||||
})
|
||||
|
||||
@@ -115,11 +115,7 @@ impl InternedDisplay for Lexeme {
|
||||
Self::PH(Placeholder { name, class }) => match *class {
|
||||
PHClass::Scalar => write!(f, "${}", i.r(*name)),
|
||||
PHClass::Vec { nonzero, prio } => {
|
||||
if nonzero {
|
||||
write!(f, "...")
|
||||
} else {
|
||||
write!(f, "..")
|
||||
}?;
|
||||
if nonzero { write!(f, "...") } else { write!(f, "..") }?;
|
||||
write!(f, "${}", i.r(*name))?;
|
||||
if prio != 0 {
|
||||
write!(f, ":{}", prio)?;
|
||||
|
||||
Reference in New Issue
Block a user