alecthomas / chroma

A general purpose syntax highlighter in pure Go
MIT License
4.33k stars 395 forks source link

add beef syntax and tests #995

Closed Booklordofthedings closed 1 month ago

Booklordofthedings commented 1 month ago

This adds #994 Beeflang. The syntax itself is just a modifed version of c# with a few keywords added or removed. Also Ive added a test and run the test until it worked.

I am unsure if the mime_type is relevant to keep in there since I dont know where that actually used. Another thing im unsure of is how the selection of what language/syntax to use for a file actually works aka: Does this actually choose Beef syntax highlighting over Brainfuck if its used on a beef (.bf) file ? for that I would probably need help.