[Rpm-maint] [rpm-software-management/rpm] Cannot leave comments after %endif (#829)
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:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Rpm-maint