mirror of
https://github.com/jgm/pandoc.git
synced 2026-08-28 11:16:33 +00:00
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:
@@ -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 ))
|
||||
""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user