Mercurial > hg
diff tests/test-highlight.t @ 27997:bc2dd19b9534
test-highlight: add normalization rule for Pygments 2.1
It appears that several classes have 'h', '1', '2' suffixes on Pygments 2.1,
which is the current version on Debian sid.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Tue, 26 Jan 2016 23:33:53 +0900 |
parents | 4301b99126ef |
children | 6b77adc2c7b5 |
line wrap: on
line diff
--- a/tests/test-highlight.t Tue Jan 26 23:27:12 2016 +0900 +++ b/tests/test-highlight.t Tue Jan 26 23:33:53 2016 +0900 @@ -12,7 +12,8 @@ $ filterhtml () { > sed -e "s/class=\"k\"/class=\"kn\"/g" \ - > -e "s/class=\"mf\"/class=\"mi\"/g" + > -e "s/class=\"mf\"/class=\"mi\"/g" \ + > -e "s/class=\"\([cs]\)[h12]\"/class=\"\1\"/g" > } create random Python file to exercise Pygments