mirror of
https://github.com/Dummi26/mers.git
synced 2025-03-10 14:13:52 +01:00
added thread(t) type to parser
This commit is contained in:
parent
e4ef85a9ea
commit
9741fa64cc
@ -1043,6 +1043,12 @@ fn parse_single_type_adv(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
VSingleType::Function(fn_types)
|
VSingleType::Function(fn_types)
|
||||||
|
} else if name.as_str() == "thread" {
|
||||||
|
let inner = parse_type_adv(file, true)?;
|
||||||
|
if !inner.1 {
|
||||||
|
eprintln!("Warn: Parsed type thread(inner_type), but might have missed the closing bracket!");
|
||||||
|
}
|
||||||
|
VSingleType::Thread(inner.0)
|
||||||
} else {
|
} else {
|
||||||
VSingleType::EnumVariantS(name, {
|
VSingleType::EnumVariantS(name, {
|
||||||
let po = parse_type_adv(file, true)?;
|
let po = parse_type_adv(file, true)?;
|
||||||
|
Loading…
Reference in New Issue
Block a user