Update documentation related to Pygments

This commit is contained in:
Ted Nyman
2013-07-12 14:10:55 -07:00
parent c439ca5f97
commit f51c5e3159

View File

@@ -189,11 +189,10 @@ module Linguist
# Public: Is the blob safe to colorize? # Public: Is the blob safe to colorize?
# #
# We use Pygments.rb for syntax highlighting blobs, which # We use Pygments for syntax highlighting blobs. Pygments
# has some quirks and also is essentially 'un-killable' via # can be too slow for very large blobs or for certain
# normal timeout. To workaround this we try to # corner-case blobs.
# carefully handling Pygments.rb anything it can't handle. #
#
# Return true or false # Return true or false
def safe_to_colorize? def safe_to_colorize?
!large? && text? && !high_ratio_of_long_lines? !large? && text? && !high_ratio_of_long_lines?