Metadata-Version: 2.4
Name: pygments-pharo-lexer
Version: 0.1.0
Summary: A Pygments lexer plugin for Pharo Smalltalk.
Author: Pharo-LLM
License-Expression: MIT
Project-URL: Homepage, https://github.com/pharo-llm/pygments-pharo-lexer
Project-URL: Repository, https://github.com/pharo-llm/pygments-pharo-lexer
Project-URL: Issues, https://github.com/pharo-llm/pygments-pharo-lexer/issues
Keywords: pygments,lexer,pharo,smalltalk,syntax-highlighting
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Topic :: Text Processing :: Filters
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: Pygments>=2.19
Provides-Extra: dev
Requires-Dist: pytest>=8; extra == "dev"
Dynamic: license-file

# pygments-pharo-lexer

A standalone Pygments plugin package for the Pharo Smalltalk lexer.

## Installation

```console
pip install pygments-pharo-lexer
```

## Usage

```python
from pygments.lexers import get_lexer_by_name

lexer = get_lexer_by_name("pharo")
```

You can also import the lexer class directly:

```python
from pygments_pharo.lexer import PharoLexer
```

## Releasing

Build and verify the package locally before publishing:

```console
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:

```console
git tag v0.1.0
git push origin v0.1.0
```
