[Rpm-maint] [rpm-software-management/rpm] Cannot leave comments after %endif (#829)
Ernestas Kulik
notifications at github.com
Fri Sep 6 22:16:48 UTC 2019
To be fair, the C grammar is such that the comments are completely discarded by the lexer, if I’m not mistaken. However, I could not find any official formal grammar for spec files, so I’m thinking that it’s just cobbled together to make things work. The problem is exacerbated by shell commands in certain sections, which allow you to, say, create an ad-hoc shell script with a shebang. Is that a comment as far as the lexer/parser/whatever is concerned? Seems rather context-dependent, but there might be more corner cases like this.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/829#issuecomment-529032326
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20190906/9fc8eb7a/attachment.html>
More information about the Rpm-maint
mailing list