Issue #1309 new

pygmentize frozen by special *.bat/.cmd file

Michael Schier
created an issue

Original reported on https://github.com/viewvc/viewvc/issues/130.

Python: 2.6.9-39.1 python-Pygments: 2.1.1-43.3 OS: SLES 11 SP4

$ cat worksnot.bat 
rem works not if syntax highlighting is on and mimetype is text/cmd
if %NotMoreCharsThen_hm_some_I_dont_no____WhoKnowThisTruely% LSS %bar% (
del %foo2%
)
$ pygmentize worksnot.bat 
rem works not if syntax highlighting is on and mimetype is text/cmd

If the variable is shorter %NotMoreCharsThen_hm_some_I_dont_no____WhoKnowThisTruely% like %foo%, no error happens.

Comments (1)

  1. Log in to comment