diff options
Diffstat (limited to 'external/autopygmentize')
| -rwxr-xr-x | external/autopygmentize | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/external/autopygmentize b/external/autopygmentize index d2f969a1..f18cac09 100755 --- a/external/autopygmentize +++ b/external/autopygmentize @@ -40,6 +40,7 @@ if [[ "$lexer" == text ]]; then text/x-po) lexer=po;; text/x-python) lexer=python;; text/x-ruby) lexer=ruby;; + text/x-crystal) lexer=crystal;; text/x-shellscript) lexer=sh;; text/x-tcl) lexer=tcl;; text/x-tex|text/x-texinfo) lexer=latex;; # FIXME: texinfo really needs its own lexer @@ -66,8 +67,8 @@ if [[ "$lexer" == text ]]; then fi encoding=$(file --mime-encoding --uncompress $file_common_opts "$file") -if [[ $encoding == "us-asciibinarybinary" ]]; then - encoding="us-ascii" +if [[ $encoding == "binary" ]]; then + encoding="latin1" fi if [[ -n "$lexer" ]]; then |
