scripts/kernel-doc: parse kernel-doc deterministically
[firefly-linux-kernel-4.4.55.git] / scripts / kernel-doc
index 9922e66883a5b763eb2b24345b9925cbe06db3c3..71ada00738055401660ebc1d96558279b53bd502 100755 (executable)
@@ -2587,7 +2587,7 @@ $kernelversion = get_kernel_version();
 
 # generate a sequence of code that will splice in highlighting information
 # using the s// operator.
-foreach my $pattern (keys %highlights) {
+foreach my $pattern (sort keys %highlights) {
 #   print STDERR "scanning pattern:$pattern, highlight:($highlights{$pattern})\n";
     $dohighlight .=  "\$contents =~ s:$pattern:$highlights{$pattern}:gs;\n";
 }