summaryrefslogtreecommitdiff
path: root/tests/test_cmdline.py
Commit message (Collapse)AuthorAgeFilesLines
* Update copyright year (fixes #1514.)Matthäus G. Chajdas2020-08-221-1/+1
|
* Fix Solarized line number colors (#1477)Paweł Fertyk2020-07-041-2/+3
| | | | | | | | | | | | | | | | | * Add font and background colors to Style * Move all styles to get_style_defs, add tests * Remove hardcoded styles, add special lineno style * Add styles for special line numbers in tables * Update noclasses documentation * Refactor linenos elements and styles, add tests * Update AUTHORS * Fix multiple CSS prefixes, add tests
* Remove Python 2 compatibility (#1348)Georg Brandl2020-02-291-14/+7
| | | | | | | | | | | * Remove Python 2 compatibility * remove 2/3 shims in pygments.util * update setup.py metadata * Remove unneeded object inheritance. * Remove unneeded future imports.
* Remove unittest classes from the test suite.Georg Brandl2019-11-101-244/+249
|
* Initial port to py.testGeorg Brandl2019-11-101-4/+5
| | | | | Unittest classes are kept - for now - since py.test is ok with them. Generator tests had to be switched to pytest parametrized tests.
* Fixup all headers and some more minor problems.2.4.2Georg Brandl2019-05-281-1/+1
|
* Use unicode literals in docstrings as wellNikolay Orlyuk2019-01-171-3/+10
| | | | Resolves #1492
* Merged in tprynn/pygments-main/command-line-lexer-formatter (pull request #559)Georg Brandl2017-01-221-1/+1
|\ | | | | | | Custom Lexer/Formatter File Loading
| * Copyright update.Georg Brandl2017-01-221-1/+1
| |
| * Add support for partials and path segments for Handlebars.Christian Hammond2016-11-041-0/+252
| | | | | | | | | | | | | | | | | | | This introduces support for some missing features to the Handlebars lexer: Partials and path segments. Partials mostly appeared to work before, but the `>` in `{{> ... }}` would appear as a syntax error, as could other components of the partial. This change introduces support for: * Standard partials: `{{> partialName}}` * Partials with parameters: `{{> partialName varname="value"}}` * Ddynamic partials: `{{> (partialFunc)}}` * Ddynamic partials with lookups: `{{> (lookup ../path "partialName")}}` * Partial blocks: `{{> @partial-block}}` * Inline partials: `{{#*inline}}..{{/inline}}` It also introduces support for path segments, which can reference content in the current context or in a parent context. For instance, `this.name`, `this/name`, `./name`, `../name`, `this/name`, etc. These are all now tracked as variables.
* Update pull request per comments by birkenfeld.Tanner Prynn2016-02-241-8/+27
| | | | | | | Add optional function parameter for the class name to instantiate, and update cli to support this. Move error handling to within the loading functions; they now only raise ClassNotFound. Modify doc with these updates and the version number. Test case clean up and additions.
* add tests for custom lexer/formatter loading from fileTanner Prynn2016-02-221-0/+35
|
* merge default into stableGeorg Brandl2016-01-171-0/+252