klauer / blark

Beckhoff TwinCAT ST (IEC 61131-3) code parsing in Python using Lark (Earley)
https://klauer.github.io/blark/
GNU General Public License v2.0
42 stars 5 forks source link

ENH: first pass at html output #88

Closed klauer closed 9 months ago

klauer commented 9 months ago

(This is part of a larger branch which got to be unmanageably large - breaking it up into separate PRs)

A first pass at allowing blark to output syntax-highlighted (or HTML entity-annotated) code. I anticipated using this in documentation at some point, rather than writing something for Pygments

Things to do, maybe or maybe not in this PR:

A couple interesting notes:

Sound like a couple problems for another day...

codecov-commenter commented 9 months ago

Codecov Report

Merging #88 (4cd1d06) into master (a39b3f1) will increase coverage by 0.4%. The diff coverage is 100.0%.

Impacted file tree graph

@@           Coverage Diff            @@
##           master     #88     +/-   ##
========================================
+ Coverage    81.1%   81.5%   +0.4%     
========================================
  Files          26      27      +1     
  Lines        5743    5819     +76     
========================================
+ Hits         4662    4747     +85     
+ Misses       1081    1072      -9     
Files Coverage Δ
blark/__init__.py 100.0% <100.0%> (ø)
blark/html.py 100.0% <100.0%> (ø)
blark/tests/test_cli.py 91.5% <ø> (ø)

... and 1 file with indirect coverage changes