Skip to content
Commit c7f762ef authored by James Graham's avatar James Graham Committed by Christoph Cullmann
Browse files

Alternate Names for Definitions

This use case comes from NeoChat where we've started using `ksyntaxhighligher` to highlight code in messages. The difficulty we're having is that typically when using a markdown code block the convention is to use lower case and in some cases abbreviations or slightly different names, e.g. cpp instead of C++ or hs instead of Haskell.

This means in order to handle things efficiently we need to be able to handle two cases:
- Case Insensitive search on the name as we would expect `rust` rather than `Rust`
- Alternate names where these are different to the main definition name

This adds MR adds both as it seems best to do this in the library rather than go it alone in NeoChat
parent db7282d9
Pipeline #620880 failed with stage
in 2 minutes and 9 seconds
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment