Format files properly again
I forgot to include the includes and time zone commands
This commit is contained in:
parent
d7df47eba4
commit
2c7aa78d08
5 changed files with 72 additions and 23 deletions
|
|
@ -706,12 +706,7 @@ fn parse_command(p: Pair<Rule>, file: &mut File) -> Result<()> {
|
|||
|
||||
let p = p.into_inner().next().unwrap();
|
||||
match p.as_rule() {
|
||||
Rule::include => {
|
||||
// Since we've successfully opened the file, its name can't be the
|
||||
// root directory or empty string and must thus have a parent.
|
||||
let parent = file.name.parent().unwrap();
|
||||
file.includes.push(parent.join(parse_include(p)));
|
||||
}
|
||||
Rule::include => file.includes.push(parse_include(p)),
|
||||
Rule::timezone => match file.timezone {
|
||||
None => file.timezone = Some(parse_timezone(p)),
|
||||
Some(_) => fail(p.as_span(), "cannot set timezone multiple times")?,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue