diff options
| author | Georg Brandl <georg@python.org> | 2021-01-20 10:57:30 +0100 |
|---|---|---|
| committer | Georg Brandl <georg@python.org> | 2021-01-20 10:57:30 +0100 |
| commit | b40b0cca067c2e9c2f69c91abbd27e79ad243b42 (patch) | |
| tree | 6f81b370c551ea06e89ff8333b5939df5625e757 /doc/docs | |
| parent | dc9bf0c256dbd88c72349822d59b25f9d8225dc6 (diff) | |
| download | pygments-git-b40b0cca067c2e9c2f69c91abbd27e79ad243b42.tar.gz | |
Rename "tests/lexers" to "tests/snippets" and update the contribution
docs to point to both snippets and examplefiles.
Diffstat (limited to 'doc/docs')
| -rw-r--r-- | doc/docs/lexerdevelopment.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/docs/lexerdevelopment.rst b/doc/docs/lexerdevelopment.rst index e3855dc7..73ba2f9b 100644 --- a/doc/docs/lexerdevelopment.rst +++ b/doc/docs/lexerdevelopment.rst @@ -167,11 +167,11 @@ Finally the lexer can be made publicly known by rebuilding the lexer mapping: $ make mapfiles -To test the new lexer, store an example file with the proper extension as -``tests/examplefiles/<alias>/example.*``. For example, to test your +To test the new lexer, store an example file in +``tests/examplefiles/<alias>``. For example, to test your ``DiffLexer``, add a ``tests/examplefiles/diff/example.diff`` containing a sample diff output. To (re)generate the lexer output which the file is checked -against, use the command ``pytest tests/examplefiles --update-goldens``. +against, use the command ``pytest tests/examplefiles/diff --update-goldens``. Now you can use ``python -m pygments`` from the current root of the checkout to render your example to HTML: |
