summaryrefslogtreecommitdiff
path: root/pygments/util.py
Commit message (Collapse)AuthorAgeFilesLines
* Pull flags out of regular expressionsDavid Baumgold2016-12-291-3/+4
|
* Fixes #1153: Change Windows+Py3 workaround code to flush when finished.Tim Hatch2015-10-271-1/+1
| | | | This avoids a case where the last chunk might not be output in iPython Notebook on Windows.
* Fixes noted by pylint, mostly.Tim Hatch2015-10-141-2/+2
|
* Copyright year update.Georg Brandl2015-01-211-1/+1
|
* util: PEP8Georg Brandl2014-11-111-6/+11
|
* (Hopefully) fix test_cmdline failures under Windows without colorama.Georg Brandl2014-11-111-1/+6
|
* Closes #1055: fixup guessing routines for HTML/XML related markupGeorg Brandl2014-11-081-4/+9
| | | | | | | * remove too broad recognition for Lasso lexer * recognize XML declaration (<?xml ...?>) as XML * make HTML doctype recognition more general (HTML5 only requires <!DOCTYPE html>) * fix PHP not to recognize XML declarations
* Add 'duplicates_removed' function (for *_builtins.py generation).Tim Hatch2014-11-061-0/+16
|
* Overhaul encoding handling in cmdline even more.Georg Brandl2014-10-081-5/+30
| | | | | | | Now the encoding guessed for the input file will be used for an output file. We now always read and write to the terminal .buffer on Python 3, which allows us to override the terminal encoding and use our guessing algorithm.
* PEP8 and docstring format cleanup.Georg Brandl2014-10-071-25/+11
|
* Closes #979: improve encoding behavior of cmdline invocationsGeorg Brandl2014-10-071-0/+21
| | | | | | | | Now the preferred locale encoding is used for stdin/stdout if the encoding is not set on the file objects. Also, code from input files is tried to be decoded as UTF-8, the locale encoding and finally latin-1 as a last resort if no encoding option is given.
* Move specialcasing of words() to any subclass of FutureTim Hatch2014-10-031-0/+12
| | | | | | The idea here is that plugins might want to provide some other optimization we haven't dreamed up yet, and to do so this way means they don't need to change with RegexLexerMeta (and it will be easier to support in regexlint).
* Make format_lines take an indent level.Tim Hatch2014-10-031-6/+7
| | | | | We need this because the vim keywords file uses functions to define these lists, because of Jython.
* Add util function for keyword list formattingTim Hatch2014-10-031-0/+20
|
* Clarified comment in _surrogatepair() util.Andrew Pinkham2014-05-061-1/+1
|
* Added comment to _surrogatepair() util.Andrew Pinkham2014-05-061-0/+5
|
* Finalize single-source port for Py2.[67] and Py3.3+.Georg Brandl2014-01-181-20/+29
|
* new year in copyright noticeGeorg Brandl2014-01-101-1/+1
|
* Happy new year 2013.Georg Brandl2013-01-091-1/+1
|
* Handle non-BMP Unicode ranges consistently, regardless of Python build.Tim Hatch2012-08-261-0/+45
|
* Copyright update.Georg Brandl2012-02-051-1/+1
|
* make_analysator can now handle TypeErrorsBenji York2011-10-031-1/+1
|
* Fix current copyright year.Georg Brandl2011-07-091-1/+1
|
* Do not fail in analyse_text methods (#618).Georg Brandl2010-11-261-2/+8
|
* Fix opening unicode file under Py3k.Georg Brandl2010-02-181-0/+4
|
* Happy new year!Georg Brandl2010-01-011-1/+1
|
* Port Pygments to Python 3.1.gbrandl2009-03-311-0/+24
|
* Update copyrighting style to standard "team" tags.gbrandl2009-01-041-2/+2
| | | | Update AUTHORS file accordingly.
* * Add one formatter per image format, to avoid surprises withgbrandl2008-09-071-2/+4
| | | | | | | pygmentize -f gif -o foo.gif foo.py which would previously create a PNG image. * Make image format names case-insensitive.
* Add a cache for `looks_like_xml` and limit it to the first thousand bytes, asthatch2008-07-231-4/+11
| | | | the regex has a tendency to go off into the woods when fed non-xml data.
* Fixed looks_like_xml's tag regex so it doesn't do inordinate amounts of ↵Adam Gomaa2008-05-141-1/+1
| | | | backtracking (making it O(2^n))
* [svn] Fix a few inconsistencies and nits, mainly in the docs.gbrandl2007-05-041-1/+1
| | | | Use the get_choice_opt function consistently.
* [svn] Make the C# lexer unicode aware.gbrandl2007-05-031-0/+8
| | | | | Warning, major hack ahead: the code to support multiple token defs is not the prettiest.
* [svn] Make mapfiles, make check, add D test file, make reindent.gbrandl2007-04-251-1/+1
|
* [svn] Add a new test for pygments.util, fix coverage test.gbrandl2007-02-181-2/+12
|
* [svn] Quite a few things:gbrandl2007-02-121-0/+18
| | | | | | - new pygmentize options, -F for filters and -H for detail help. - an automatically-created formatter map - better HTML formatter subclassing
* [svn] Copyright notice update.gbrandl2007-02-041-1/+1
|
* [svn] implemented filters for pygments (first approach, api might change), ↵blackbird2006-12-211-6/+6
| | | | it's impossible at the moment to add filters by using pygmentize
* [svn] Some style nits and make check.gbrandl2006-12-201-2/+2
|
* [svn] Change Pygments license to BSD.gbrandl2006-12-101-1/+1
|
* [svn] More pylint fixes, update BBcode formatter to new style API.gbrandl2006-10-301-2/+3
|
* [svn] update TODO.gbrandl2006-10-281-2/+1
|
* [svn] checked in changes from the last days. including:blackbird2006-10-271-0/+102
| | | | | | - text in logo - documentation update - new `guess_lexer` method
* [svn] Update make check.gbrandl2006-10-221-2/+3
|
* [svn] Name change, round 4 (rename SVN root folder).gbrandl2006-10-191-0/+50