From b1c7768cc2afd40ede904fa7607d324eeade9b3c Mon Sep 17 00:00:00 2001 From: Mark Schmitz Date: Mon, 2 Mar 2020 23:04:15 +0000 Subject: [PATCH] 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 --- cli/src/main.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cli/src/main.rs b/cli/src/main.rs index 8f5fdb4f..79d310fe 100644 --- a/cli/src/main.rs +++ b/cli/src/main.rs @@ -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"))?;