Bug#927822: libhighlight-perl: provide API to map shebangs and extensions to language

2019-04-24 Thread Andre Simon
On 24.04.19 19:29, Eric Wong wrote: David Bremner wrote: Is there an appropriate underlying highlight C++ api? libhighlight-perl is really just a thin wrapper on that. AFAIK, not yet, but the CLI does it internally. So this wishlist item would also include providing the API for C++ users,

Bug#927822: libhighlight-perl: provide API to map shebangs and extensions to language

2019-04-24 Thread Eric Wong
David Bremner wrote: > Eric Wong writes: > > > It would be nice if the highlight API provided a way to reliably > > map filename extensions and shebangs to the language I'm > > highlighting. I'm currently parsing the filetypes.conf directly > > and it's a bit fragile: > > > > > >

Bug#927822: libhighlight-perl: provide API to map shebangs and extensions to language

2019-04-24 Thread David Bremner
Eric Wong writes: > It would be nice if the highlight API provided a way to reliably > map filename extensions and shebangs to the language I'm > highlighting. I'm currently parsing the filetypes.conf directly > and it's a bit fragile: > > >

Bug#927822: libhighlight-perl: provide API to map shebangs and extensions to language

2019-04-23 Thread Eric Wong
Package: libhighlight-perl Version: 3.41-2+b1 Severity: wishlist Tags: upstream It would be nice if the highlight API provided a way to reliably map filename extensions and shebangs to the language I'm highlighting. I'm currently parsing the filetypes.conf directly and it's a bit fragile: