From: <pj...@us...> - 2008-07-18 00:28:53
|
Revision: 4967 http://jython.svn.sourceforge.net/jython/?rev=4967&view=rev Author: pjenvey Date: 2008-07-18 00:28:49 +0000 (Fri, 18 Jul 2008) Log Message: ----------- boost the mark limit even higher for the lenghty lines in pygments.lexers._vimbuiltins Modified Paths: -------------- branches/asm/src/org/python/core/ParserFacade.java Modified: branches/asm/src/org/python/core/ParserFacade.java =================================================================== --- branches/asm/src/org/python/core/ParserFacade.java 2008-07-17 21:25:44 UTC (rev 4966) +++ branches/asm/src/org/python/core/ParserFacade.java 2008-07-18 00:28:49 UTC (rev 4967) @@ -204,7 +204,7 @@ private static String readEncoding(InputStream stream) throws IOException { - stream.mark(10000); + stream.mark(100000); String encoding = null; BufferedReader br = new BufferedReader(new InputStreamReader(stream), 512); for (int i = 0; i < 2; i++) { @@ -218,6 +218,8 @@ break; } } + // XXX: reset() can still raise an IOException if a line exceeds our large mark + // limit stream.reset(); return encodingMap(encoding); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |