Mercurial > hg-stable
changeset 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 | 84513a4fcc3a |
files | tests/test-highlight.t |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
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