Skip to main content

A Pygments lexer plugin for Pharo Smalltalk.

Project description

pygments-pharo-lexer

A standalone Pygments plugin package for the Pharo Smalltalk lexer.

Installation

pip install pygments-pharo-lexer

Usage

from pygments.lexers import get_lexer_by_name

lexer = get_lexer_by_name("pharo")

You can also import the lexer class directly:

from pygments_pharo.lexer import PharoLexer

Releasing

Build and verify the package locally before publishing:

python -m pip install -e .[dev]
python -m pytest
python -m build
python -m twine check dist/*

Publishing is automated by the Publish to PyPI GitHub Actions workflow. In PyPI, create a pending Trusted Publisher for project pygments-pharo-lexer with owner pharo-llm, repository pygments-pharo-lexer, and workflow publish-pypi.yml, then push a version tag:

git tag v0.1.0
git push origin v0.1.0

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pygments_pharo_lexer-0.1.0.tar.gz (7.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pygments_pharo_lexer-0.1.0-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file pygments_pharo_lexer-0.1.0.tar.gz.

File metadata

  • Download URL: pygments_pharo_lexer-0.1.0.tar.gz
  • Upload date:
  • Size: 7.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for pygments_pharo_lexer-0.1.0.tar.gz
Algorithm Hash digest
SHA256 91f6c725f010afdf05770e32e9b25c826aab53f1829039c0c2b344a3a6a8a4a9
MD5 be080a7ec51cf7f465d0a094d34edb6c
BLAKE2b-256 c16fde470bb0d75417ad5f25529913d839e6f31d566f8aefd2001da08b34c741

See more details on using hashes here.

Provenance

The following attestation bundles were made for pygments_pharo_lexer-0.1.0.tar.gz:

Publisher: publish-pypi.yml on pharo-llm/pygments-pharo-lexer

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pygments_pharo_lexer-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for pygments_pharo_lexer-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 eda2d9a8bbcc2b4b40c649c561366074af2757a0cd99469a92933d749649b4a8
MD5 7e12003dbc39069fef7822ac0b68a6e5
BLAKE2b-256 8fbbb8334588346de168c5eb805c164dead0817d5b86a2028c44ac768788d31c

See more details on using hashes here.

Provenance

The following attestation bundles were made for pygments_pharo_lexer-0.1.0-py3-none-any.whl:

Publisher: publish-pypi.yml on pharo-llm/pygments-pharo-lexer

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page