Output also HTML_FOOTER with highlight --html (#550)

* Output also HTML_FOOTER with highlight --html

* move html footer output after end of for loop, as only one closing tag
is needed
This commit is contained in:
Mark Schmitz 2020-03-02 23:04:15 +00:00 committed by GitHub
parent 078cab3f96
commit b1c7768cc2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -286,6 +286,11 @@ fn run() -> error::Result<()> {
return Error::err(format!("No syntax highlighting query found"));
}
}
if html_mode {
println!("{}", highlight::HTML_FOOTER);
}
} else if let Some(matches) = matches.subcommand_matches("build-wasm") {
let grammar_path = current_dir.join(matches.value_of("path").unwrap_or(""));
wasm::compile_language_to_wasm(&grammar_path, matches.is_present("docker"))?;