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:
parent
18c11f85d7
commit
01a6b071fa
1 changed files with 1 additions and 1 deletions
|
@ -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 ))
|
||||
""
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue