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 MkDocs 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

pip install .

Build

python -m build

Test

pytest

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.0.1.tar.gz (63.1 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.0.1-py3-none-any.whl (63.6 kB view details)

Uploaded Python 3

File details

Details for the file pygments_bsl-1.0.1.tar.gz.

File metadata

  • Download URL: pygments_bsl-1.0.1.tar.gz
  • Upload date:
  • Size: 63.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for pygments_bsl-1.0.1.tar.gz
Algorithm Hash digest
SHA256 c210d1e7dbe5dbaf408589fa946ca501e363635cec545eb234ea5aea5f343dfe
MD5 ff58853e828c7651fd48acc6e410f041
BLAKE2b-256 9e797f9a0bf2a86ece34b96302d28b01d36e1eb889e292910b7c69067862c00b

See more details on using hashes here.

File details

Details for the file pygments_bsl-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: pygments_bsl-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 63.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for pygments_bsl-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ed81e9d672c9dc5a8121573f7d6a2e0ecd3a4bf8c0da45abb7cfc1bd4216a432
MD5 205b5107bf8178593d87f2c665f5a60b
BLAKE2b-256 18e606dfeb5a0e8cc39a2ac3dfbebb35482e854989d5f4900e171e956a949988

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