From f51c5e315958fbad8244af3ffe80632dfb15dee6 Mon Sep 17 00:00:00 2001 From: Ted Nyman Date: Fri, 12 Jul 2013 14:10:55 -0700 Subject: [PATCH] Update documentation related to Pygments --- lib/linguist/blob_helper.rb | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/lib/linguist/blob_helper.rb b/lib/linguist/blob_helper.rb index 2d6b9ed0..81956e47 100644 --- a/lib/linguist/blob_helper.rb +++ b/lib/linguist/blob_helper.rb @@ -189,11 +189,10 @@ module Linguist # Public: Is the blob safe to colorize? # - # We use Pygments.rb for syntax highlighting blobs, which - # has some quirks and also is essentially 'un-killable' via - # normal timeout. To workaround this we try to - # carefully handling Pygments.rb anything it can't handle. - # + # We use Pygments for syntax highlighting blobs. Pygments + # can be too slow for very large blobs or for certain + # corner-case blobs. + # # Return true or false def safe_to_colorize? !large? && text? && !high_ratio_of_long_lines?