Mercurial > hgrepos > Python > libs > pygments-lexer-pseudocode2
view Makefile @ 56:661461fb4dfc
Make the "py-name" rules parameterized: allow to provide the token type.
For this to work the implemting function must be global, because the
access to the class is not yet possible at construction time.
So consistently make some previons LexBase members module globals.
Make some LexBase members module globals consistently.
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Mon, 27 Apr 2026 12:37:27 +0200 |
| parents | 6ac1ea5d2d4a |
| children | ddefcc20367c |
line wrap: on
line source
# dev and build helper # :- # SPDX-FileCopyrightText: © 2026 Franz Glasner # SPDX-License-Identifier: MIT # :- .PHONY: help all clean distclean dist build tests flake8 docs clean-docs clean-docs-html install-dev install-docs help: @echo Targets: help, clean, distclean, dist, build all: tests flake8 build: python -m build dist: distclean build distclean: clean rm -rf dist/ *.egg-info clean: rm -rf __arch/ find . -name '*.pyc' -delete tests: -python -m unittest discover -s tests flake8: -flake8 pygments_lexer_pseudocode2 -flake8 tests docs: (cd docs && make html) clean-docs: (cd docs && make clean) clean-docs-html: rm -rf docs/_build/html install-dev: python -m pip install -r requirements-dev.txt install-docs: python -m pip install -r requirements-docs.txt python -m pip install --editable .
