Add support for the rouge highlighter. (#336)

https://github.com/jneen/rouge
This commit is contained in:
Blaž Hrastnik 2017-03-18 02:07:06 +09:00 committed by Junegunn Choi
parent 2eaff04946
commit 4f00962a81

View file

@ -4,7 +4,7 @@
require 'shellwords'
COMMAND = %[(highlight -O ansi -l {} || coderay {} || cat {}) 2> /dev/null]
COMMAND = %[(highlight -O ansi -l {} || coderay {} || rougify {} || cat {}) 2> /dev/null]
ANSI = /\x1b\[[0-9;]*m/
REVERSE = "\x1b[7m"
RESET = "\x1b[m"