mawww / kakoune

mawww's experiment for a better code editor
http://kakoune.org
The Unlicense
9.93k stars 714 forks source link

Wrappers utility: Highliting for localized command output #478

Open floreal opened 8 years ago

floreal commented 8 years ago

Hello, Syntax Highlighting doesn't seem to work if your system doesn't use English locales (for example in https://github.com/mawww/kakoune/blob/master/rc/git-tools.kak#L16). What is the recommendation if I want to consider Non English locales in parsing for syntax Highlighting ?

mawww commented 8 years ago

That is a good question, I wonder if we want to start adding localised versions in the base file. ideally we could ask git the localised string and use that to build the regex.

somasis commented 8 years ago

You could just pass LC_ALL=C in the environment to git, that'd force it to return English