summaryrefslogtreecommitdiff
path: root/pygments/lexer.py
Commit message (Collapse)AuthorAgeFilesLines
* Copyright update.Georg Brandl2017-01-221-1/+1
|
* some pep8 fixupsGeorg Brandl2016-02-141-2/+2
|
* Merged in chebee7i/pygments-main/lexer_comments (pull request #253)Tim Hatch2015-10-311-68/+172
|\ | | | | | | (with conflicts resolved)
| * Fixes noted by pylint, mostly.Tim Hatch2015-10-141-8/+8
| |
| * Small problem with overriding get_tokens_unprocessed in the docs (thanks M. ↵Georg Brandl2015-10-121-1/+0
| | | | | | | | Harnisch).
| * Copyright year update.Georg Brandl2015-01-211-1/+1
| |
| * Default lexer encoding is now "guess", i.e. UTF-8 / Locale / Latin1 isGeorg Brandl2014-11-061-5/+4
| | | | | | | | tried in that order.
| * Improve comment around inherit handling.Tim Hatch2014-10-281-1/+3
| |
| * Improve comments for RegexLexer inheritance.Tim Hatch2014-10-281-0/+6
| |
| * Fix inheritance repetition problem. __mro__ already includes cls.Tim Hatch2014-10-281-1/+1
| |
| * Overhaul encoding handling in cmdline even more.Georg Brandl2014-10-081-1/+1
| | | | | | | | | | | | | | 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.
| * Closes #800: Add "inencoding" option to override "encoding".Georg Brandl2014-10-081-1/+3
| |
| * Closes #979: improve encoding behavior of cmdline invocationsGeorg Brandl2014-10-071-9/+5
| | | | | | | | | | | | | | | | 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-5/+7
| | | | | | | | | | | | 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).
| * Add a profiling lexer subclass.Georg Brandl2014-09-201-2/+59
| |
| * regexopt: return the uncompiled regex.Georg Brandl2014-09-201-2/+2
| |
| * Add module to optimize regexes that consist of a long |-separated list of ↵Georg Brandl2014-09-161-3/+21
| | | | | | | | literals.
| * pygments.lexer: small PEP8 overhaul.Georg Brandl2014-09-161-8/+11
| |
| * 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
| |
* | Remove commented lines, as they are no longer necessary.chebee7i2013-11-131-0/+2
|/
* 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
|