source-highlight hangs when using zsh.lang languge definition
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
source-highlight (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
When the source-highlight language definition is set to zsh.lang, the program hangs. It doesn't hang when set to other language definitions.
To reproduce:
source-highlight --failsafe -f esc --lang-def=zsh.lang --style-
What happens:
Nothing. I have to use CTRL-C to quit.
What I expected:
Syntax highlighted output
Other information:
If I use a different language definition, I get the highlighted output almost immediately. For example, the following command works without a problem:
source-highlight --failsafe -f esc --lang-def=sh.lang --style-
ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: source-highlight 3.1.8-1.1
ProcVersionSign
Uname: Linux 4.4.0-21-generic x86_64
NonfreeKernelMo
ApportVersion: 2.20.1-0ubuntu2
Architecture: amd64
CurrentDesktop: XFCE
Date: Thu May 5 10:09:06 2016
SourcePackage: source-highlight
UpgradeStatus: Upgraded to xenial on 2016-05-04 (0 days ago)
The problem is in /usr/share/ source- highlight/ zsh.lang. The keyword clause ends with a trailing vertical bar. If you remove that, zsh source highlighting will work. This bug is still in the latest version in the git repo (https:/ /git.savannah. gnu.org/ cgit/src- highlite. git/tree/ src/zsh. lang).
There is some more information in the GNU bug report (https:/ /savannah. gnu.org/ bugs/?45299)