-
Committer:
Matt Nordhoff
-
Date:
2009-03-06 13:19:38 UTC
-
mto:
This revision was merged to the branch mainline in
revision
297.
-
Revision ID:
mnordhoff@mattnordhoff.com-20090306131938-roexw3he9snqfa35
Only pass the first 1 KB of the file to Pygments's guess_lexer.
Mercurial's syntax highlighting extension did this because the function seemed to have exponential performance. I don't know if that's still the case.