summaryrefslogtreecommitdiff
path: root/pygments/lexer.py
Commit message (Collapse)AuthorAgeFilesLines
* Add support for default state transition in ExtendedRegexLexerGaurav Jain2014-05-181-9/+10
|
* Allow default state transitions to allow for state strings as well as tuplesGaurav Jain2014-05-021-5/+7
|
* Add ability to specify default state transitionGaurav Jain2014-04-291-6/+19
| | | | Certain lexers are forced to match an extra empty token if they want to make a state transition. By adding the ability to specfiy a default state transition to take, we can avoid creating extra tokens
* use versionadded directivesGeorg Brandl2014-01-191-1/+3
|
* Finalize single-source port for Py2.[67] and Py3.3+.Georg Brandl2014-01-181-19/+17
|
* futurizing: move to print_function and "except X as Y" syntaxGeorg Brandl2014-01-181-1/+1
|
* new year in copyright noticeGeorg Brandl2014-01-101-1/+1
|
* Closes #851: remove BOM also with explicit encodingGeorg Brandl2014-01-091-0/+2
|
* Fix docstring of get_tokens_unprocessed.Georg Brandl2013-11-241-1/+3
|
* Fix: undefined `statestack` variable in ↵Stephan Jorek2013-10-031-1/+1
| | | | `pygments.lexer.ExtendedRegexLexer.get_tokens_unprocessed(?)`
* fixed bug in ExtendedRegexLexerRob Reilink2013-01-131-1/+1
|
* Merged in andyli/pygments-main/ExtendedRegexLexer-tuple-newstate (pull ↵Georg Brandl2013-01-091-8/+70
|\ | | | | | | request #131: ExtendedRegexLexer handles tuple new_state the same way as RegexLexer)
| * Merged in alastairh/pygments (pull request #141: Improve and unify C family ↵Georg Brandl2013-01-091-17/+18
| |\ | | | | | | | | | language lexers)
| | * Happy new year 2013.Georg Brandl2013-01-091-1/+1
| | |
| | * Whitespace cleanup.Georg Brandl2013-01-091-3/+2
| | |
| | * Remove BOM when the input is unicode.Andy Li2012-12-121-1/+4
| | |
| | * fixed #822 (remove BOM if present)Andy Li2012-12-081-0/+1
| | |
| * | Remove the unnecessary analyse_text methods, reduce the default priorities. ↵Alastair Houghton2013-01-031-11/+10
| | | | | | | | | | | | Also remove some trailing whitespace and tighten-up a couple of except clauses.
| * | Added support for inheritance to RegexLexer, so that subclasses canAlastair Houghton2012-12-191-4/+66
| |/ | | | | | | | | | | | | | | selectively inherit tokendefs from their superclasses. Used this new ability to simplify and unify the C family languages in compiled.py, and to add support for Objective-C++. Also added code to support autodetection of language for .h files, with the default being C if no content is provided, since Objective-C uses the .h file extension.
* | ExtendedRegexLexer handles tuple new_state the same way as RegexLexer.Andy Li2012-11-241-1/+7
|/
* Closes #777: fix position in case of unexpected EOL.Robert Lehmann2012-05-311-1/+1
|
* Closes #692: when using chardet mode, look for BOM and default to replace ↵Georg Brandl2012-02-061-2/+19
| | | | errorhandling.
* Copyright update.Georg Brandl2012-02-051-1/+1
|
* Closes #693: fix ObjectiveC lexer throwing errors sometimes because ↵Georg Brandl2012-02-051-6/+8
| | | | bygroups() does not skip empty groups for callbacks.
* Fix subclassing of regex lexers with their own token defs.Georg Brandl2012-02-041-1/+1
|
* Fix current copyright year.Georg Brandl2011-07-091-1/+1
|
* Patch to allow Jgments to pull out the raw regexes easier (#477)Tim Hatch2010-12-211-38/+56
|
* - Added the ``ensurenl`` lexer option, which can be used to suppress theGeorg Brandl2010-02-181-2/+13
| | | | | | | | automatic addition of a newline to the lexer input. - Fixed a bug in `do_insertions()` used for multi-lexer languages. - Added tests for standard lexer whitespace options.
* Remove compatibility "sets" imports.Georg Brandl2010-02-181-5/+0
|
* Remove undefined name from __all__.Georg Brandl2010-02-181-1/+1
|
* Happy new year!Georg Brandl2010-01-011-1/+1
|
* Port Pygments to Python 3.1.gbrandl2009-03-311-2/+3
|
* #392: Fix fatal backtracking in Scala lexer.gbrandl2009-02-141-1/+0
|
* Update copyrighting style to standard "team" tags.gbrandl2009-01-041-2/+2
| | | | Update AUTHORS file accordingly.
* Fix newline problem.gbrandl2008-09-191-4/+3
|
* fixed asm lexers, fixed #pop / #push in multitargetmitsuhiko2007-09-281-9/+11
|
* a simple '#pop' is not possible for multiple targets toomitsuhiko2007-09-271-3/+8
|
* [svn] Fix in the Python lexer, 2.6 compatibility fixes.gbrandl2007-08-171-1/+2
|
* [svn] Smartify pygmentize encoding handling.gbrandl2007-06-131-3/+3
|
* [svn] A few corrections.gbrandl2007-05-061-1/+2
|
* [svn] Make the C# lexer unicode aware.gbrandl2007-05-031-21/+33
| | | | | Warning, major hack ahead: the code to support multiple token defs is not the prettiest.
* [svn] fixed debugging annoyance in pygments and added support for a "-" ↵blackbird2007-03-281-1/+1
| | | | after a tag/variable in thy jinja/django highlighter
* [svn] small bugfix for do_insertionsblackbird2007-03-251-0/+2
|
* [svn] improved do_insertions and added support for nested lexers in rst ↵blackbird2007-03-251-8/+21
| | | | lexer (.. sourcecode:: python etc)
* [svn] A better error message if compiling a regex fails.gbrandl2007-03-201-1/+5
|
* [svn] Fix a cmdline bug.gbrandl2007-02-251-5/+5
|
* [svn] Add tests for filters.gbrandl2007-02-141-1/+1
|
* [svn] Shorten some testfiles, silence some pylint warnings,gbrandl2007-02-141-6/+6
| | | | add a latex formatter unittest.
* [svn] Quite a few things:gbrandl2007-02-121-4/+4
| | | | | | - 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
|