Skip to content

Commit

Permalink
feat: add WENN-SONST code block snippet
Browse files Browse the repository at this point in the history
  • Loading branch information
PocketMiner82 committed Apr 15, 2024
1 parent 8664fea commit 014b671
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pseudocodeIde/interpreter/pseudocode/PseudocodeKeywords.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,11 @@ public static class PseudocodeKeywords
static PseudocodeKeywords()
{
// code block snippets
KEYWORDS.Add(new PseudocodeType("WENN", IF, "WENN ^\n\t\nENDE WENN"));
KEYWORDS.Add(new PseudocodeType("WENN", IF, new List<PseudocodeAutocompleteItem>()
{
new PseudocodeAutocompleteItem("WENN ^\n\t\nENDE WENN", "WENN Block"),
new PseudocodeAutocompleteItem("WENN ^\n\t\nSONST\n\t\nENDE WENN", "WENN-SONST Block")
}));
KEYWORDS.Add(new PseudocodeType("FALLS", SWITCH_PREFIX, "FALLS ^ GLEICH\n\tbedingung1:\n\t\t\n\tSONST:\n\t\t\nENDE FALLS"));
KEYWORDS.Add(new PseudocodeType("SOLANGE", WHILE, "SOLANGE ^\n\t\nENDE SOLANGE"));
KEYWORDS.Add(new PseudocodeType("WIEDERHOLE", DO, "WIEDERHOLE\n\t\nSOLANGE ^"));
Expand Down

0 comments on commit 014b671

Please sign in to comment.