Pygments 1C (BSL, SDBL) lexer
Project description
pygments-bsl
Pygments is a syntax highlighting tool.
Online example Zensical with pygments-bsl support https://zeegin.github.io/pygments-bsl/
pygments-bsl used in:
Syntax rules adopted from https://github.com/1c-syntax.
Install
$ pip install pygments-bsl
Install local
python -m pip install -e .
Build
python -m pip install --upgrade build
python -m build
Test
python -m pip install --upgrade pytest
pytest
Validate release artifacts
python -m pip install --upgrade build twine
python -m build
python -m twine check dist/*
python tools/check_dist.py
Docs
python3.12 -m venv .venv-docs
source .venv-docs/bin/activate
pip install --upgrade pip
pip install -e .
pip install "zensical==0.0.24"
zensical serve
Python 3.10+ is required. The command above uses Python 3.12 because that's the tested docs environment. The docs environment is separate from the package's main runtime.
Generate lexer data from JSON (after updating files in 3rd_party/)
python tools/generate_data.py
Usage
pygmentize "C:\git\pygments-bsl\tests\examplefiles\bsl\samples.bsl"
pygmentize "C:\git\pygments-bsl\tests\examplefiles\bsl\samples.os"
pygmentize "C:\git\pygments-bsl\tests\examplefiles\sdbl\samples.sdbl"
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pygments_bsl-1.1.0.tar.gz.
File metadata
- Download URL: pygments_bsl-1.1.0.tar.gz
- Upload date:
- Size: 46.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7c736ceff465a40704c94b76374746a34001d9755ac93d3b0cbe37e2d583acb5
|
|
| MD5 |
00aa9e12c5fd194fb761804e4763cb49
|
|
| BLAKE2b-256 |
6f8c828be2aee1ce640a40cfbec69982f2170bbb4cb84cbf5a2e26e06224502e
|
File details
Details for the file pygments_bsl-1.1.0-py3-none-any.whl.
File metadata
- Download URL: pygments_bsl-1.1.0-py3-none-any.whl
- Upload date:
- Size: 45.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
871114e9cbcac74e6583e367eac847bdb8c814267571b38336ca4accbd71539f
|
|
| MD5 |
6acd224c79bfb3051d4b6d119f8ed235
|
|
| BLAKE2b-256 |
57d7a78f3e0ee0e370ea8e33eb80165cf5a5341e3235bdabe8ee5f9906f7a77d
|