bat
bat copied to clipboard
Raku syntax
Yep I'd like Raku syntax highlighting, but not only can I not find it I cannot fined how to add it is there a file I need to build for this ?? I hope I don't have to program rust to do it.
Please check out the documentation: https://github.com/sharkdp/bat#adding-new-syntaxes--language-definitions
From what I've seen, other tools use Perl6 grammars to highlight Raku code. https://github.com/shikijs/shiki/blob/main/scripts/grammarSources.ts#L41 https://github.com/Raku/atom-language-perl6/blob/master/grammars/raku.regexp.cson
bat
comes with Perl syntax highlighting - does that fit your needs? If not, maybe you'll want to experiment with converting that cson
file linked above to an XML tmLanguage
file