Gusted dcc442351d
[BUG] Make chroma match case-insenstive
- In the case that [go-enry](https://github.com/go-enry/go-enry/)
returned langauge doesn't match a lexer name (Either because its not
available or because it doesn't match Chroma's name), a last effort
attempt is made to use Chroma's matching.
- go-enry already applies `strings.ToLower` onto the filename to avoid
being case-sensitive, add the same code for Chroma's matching. The code
being used doesn't rely on the filename being case senstive for correct
matching.
- Adds unit test.
- Resolves #752
2024-10-11 15:42:18 +02:00
..
2024-08-18 15:19:01 +02:00
2024-10-09 09:28:37 +00:00
2024-08-12 19:11:09 +02:00
2024-08-18 16:25:13 +02:00
2024-08-09 17:44:41 +02:00
2023-02-11 08:39:50 +08:00
2023-12-25 20:13:18 +08:00
2024-09-01 05:42:34 +02:00
2024-08-18 15:19:01 +02:00
2023-11-03 15:21:05 +00:00
2024-07-17 23:07:41 +02:00
2024-05-14 08:31:34 +02:00
2024-08-26 23:43:09 +02:00