Fails to read file arg (maybe waiting for stdin) when --syntax-by-name is used
3.55
Arch Linux
I'd been using -S <syntax> to specify syntax, but recently realized that will fail if I happen to have a file or folder named <syntax> in the working directory, so am migrating to the --syntax-by-name option as a replacement.
In any git repo, the following just hangs, I'm guessing it's waiting for some stdin, even though a file is specified as an argument:
$ highlight -O truecolor --stdout --syntax-by-name ini .git/config
Whereas the presumably equivalent:
$ highlight -O truecolor --stdout -S ini .git/config
works fine, as long as there is no ini file or folder in the cwd.
Edited by Andy Kluger