Skip to content

Commit

Permalink
Generate YAML variables
Browse files Browse the repository at this point in the history
  • Loading branch information
andrzejressel committed Dec 6, 2024
1 parent 2ab399c commit 58a7138
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pulumi_wasm_generator_lib/src/description.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ impl<'a> Description<'a> {
fn initial_transition(line: &str) -> (State, Vec<String>) {
match line.trim() {
"<!--Start PulumiCodeChooser -->" | "{{% examples %}}" => (Examples, vec![]),
// Rustdoc treats ``` as rust code block
"```" => (LanguageOutsideExamples, vec!["```sh".to_string()]),
// Rustdoc treats ``` as rust code block. Line may contain whitespace before
"```" => (LanguageOutsideExamples, vec![line.to_string() + "sh"]),
l if l.starts_with("```") => (LanguageOutsideExamples, vec![line.to_string()]),
_ => (Initial, vec![line.to_string()]),
}
Expand Down

0 comments on commit 58a7138

Please sign in to comment.