X-Git-Url: https://git.sur5r.net/?p=i3%2Fi3;a=blobdiff_plain;f=generate-command-parser.pl;h=6208945dc87558f0ee88cd5cfdbfcd9a9bd68e69;hp=c0a9a4d42755ea9c11b6c983fa216f53fc849459;hb=fbfbdb8e124480bc90bbd6a8b59c1692c4ebd531;hpb=065ce6b8fcd3510033d81f5f3731a765e1324b91 diff --git a/generate-command-parser.pl b/generate-command-parser.pl index c0a9a4d4..6208945d 100755 --- a/generate-command-parser.pl +++ b/generate-command-parser.pl @@ -109,7 +109,7 @@ for my $line (@lines) { # Second step: Generate the enum values for all states. # It is important to keep the order the same, so we store the keys once. -# We sort descendingly by length to be able to replace occurences of the state +# We sort descendingly by length to be able to replace occurrences of the state # name even when one state’s name is included in another one’s (like FOR_WINDOW # is in FOR_WINDOW_COMMAND). my @keys = sort { (length($b) <=> length($a)) or ($a cmp $b) } keys %states;