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 17:03:42 +02:00 committed by GitHub
parent 18c11f85d7
commit 01a6b071fa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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 ))
""