I'm using the syntax package from the mdwtools version 1996/05/17 1.07. I successfully set the properties to show a grammar definition properly but then when I try to combine it with the lineno package I got a nasty error showing a double line number for each new rule. Then digging the code of syntax.sty I found I can fix the problem in the definition of 'grammar' commenting this line:
\vskip-\baselineskip%
Now it works better but I have extra new lines between rules. In fact the definitions start at line number 2 and I cannot remove these extra lines! (It seems is related to the lists command) I suppose this is a bug. TeX is far out from my expertize so I report this bug wondering if someone have a workaround or help me to fix this issue.