Skip to main content

Pygments 1C (BSL, SDBL) lexer

Project description

PyPI - Version

pygments-bsl

Pygments is a syntax highlighting tool.

Who uses Pygments?

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


Download files

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

Source Distribution

pygments_bsl-1.1.0.tar.gz (46.3 kB view details)

Uploaded Source

Built Distribution

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

pygments_bsl-1.1.0-py3-none-any.whl (45.9 kB view details)

Uploaded Python 3

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

Hashes for pygments_bsl-1.1.0.tar.gz
Algorithm Hash digest
SHA256 7c736ceff465a40704c94b76374746a34001d9755ac93d3b0cbe37e2d583acb5
MD5 00aa9e12c5fd194fb761804e4763cb49
BLAKE2b-256 6f8c828be2aee1ce640a40cfbec69982f2170bbb4cb84cbf5a2e26e06224502e

See more details on using hashes here.

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

Hashes for pygments_bsl-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 871114e9cbcac74e6583e367eac847bdb8c814267571b38336ca4accbd71539f
MD5 6acd224c79bfb3051d4b6d119f8ed235
BLAKE2b-256 57d7a78f3e0ee0e370ea8e33eb80165cf5a5341e3235bdabe8ee5f9906f7a77d

See more details on using hashes here.

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