Files
would-reformat/examples/custom-sniffer
2023-09-30 15:33:25 -06:00

19 lines
351 B
Bash
Executable File

#!/usr/bin/env bash
file="$1"
if [[ $file == *.pl ]]; then
# the default is that .pl corresponds to perl, but not here!
echo -n "prolog"
fi
if [[ $file == *.ts ]]; then
# qt translations, who knew
echo -n "qt-translation"
fi
# We're fine with the defaults for other types of files so we don't
# print anything else.
echo ""
exit 0