[PATCH 1 of 2] highlight: configurable file size limit (issue3005)

Anton Shestakov av6 at dwimlabs.net
Tue Aug 4 10:24:42 CDT 2015


On Wed, 5 Aug 2015 00:03:25 +0900
Yuya Nishihara <yuya at tcha.org> wrote:
> 
> Just an idea: it could be a fileset to mitigate a bug of pygments,
> for example, to enable known-good parser for small .py files:
> 
>   set:**.py and size('<5M')

I like this idea. I was thinking of another possible config option for
highlight with allowed/denied extensions, but filesets are much more
flexible.

Since they can fully cover what highlightmax would do now, I'll try to
figure out how to do fileset matching and do that instead.

Please drop this patch. The second patch (exit early) doesn't depend on
this one.


More information about the Mercurial-devel mailing list