Sort languages in --list-highlight-languages output (#6718)

Languages appear to be sorted by their long name, which leads to
unexpected results: e.g., the long name of *m4* is *GNU m4*, so it is
listed between *gnuassembler* and *go*.
This commit is contained in:
Albert Krewinkel
2020-10-04 08:03:42 -07:00
committed by GitHub
parent 18c11f85d7
commit 01a6b071fa
+1 -1
View File
@@ -840,7 +840,7 @@ options =
, sShortname s `notElem`
[T.pack "Alert", T.pack "Alert_indent"]
]
mapM_ (UTF8.hPutStrLn stdout) langs
mapM_ (UTF8.hPutStrLn stdout) (sort langs)
exitSuccess ))
""