ptpb / pb

pb is a formerly-lightweight pastebin and url shortener
Other
549 stars 52 forks source link

add custom lexers #223

Closed buhman closed 5 years ago

buhman commented 5 years ago

This adds external lexers for toml and puppet, and makes them available to the relevant views and utility functions.

buhman commented 5 years ago

implements #221

codecov-io commented 5 years ago

Codecov Report

Merging #223 into master will increase coverage by 0.9%. The diff coverage is 97.61%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master     #223     +/-   ##
=========================================
+ Coverage   75.48%   76.38%   +0.9%     
=========================================
  Files          18       22      +4     
  Lines         885      923     +38     
=========================================
+ Hits          668      705     +37     
- Misses        217      218      +1
Impacted Files Coverage Δ
pb/lexers/puppet.py 100% <100%> (ø)
pb/util.py 88.37% <100%> (ø) :arrow_up:
pb/lexers/__init__.py 100% <100%> (ø)
pb/lexers/toml.py 100% <100%> (ø)
pb/paste/views.py 73.97% <100%> (-0.12%) :arrow_down:
pb/lexers/lexers.py 93.33% <93.33%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 30a220a...1731944. Read the comment docs.

buhman commented 5 years ago

yolo