On Tue, Dec 29, 2015 at 9:42 AM, Christian Hopps <cho...@chopps.org> wrote:
> > Ladislav Lhotka <lho...@nic.cz> writes: > > >> On 29 Dec 2015, at 17:47, Andy Bierman <a...@yumaworks.com> wrote: > >> > >> > >> > >> On Tue, Dec 29, 2015 at 1:09 AM, Ladislav Lhotka <lho...@nic.cz> wrote: > >> Hi, > >> > >> I propose the following change to sec. 14 in 6020bis (third paragraph): > >> > >> OLD > >> This grammar assumes that the scanner replaces YANG comments with a > >> single space character. > >> > >> NEW > >> This grammar assumes that the scanner replaces YANG comments outside > >> quoted arguments with a single space character. > >> > >> > >> > >> A comment inside a quoted string is not a YANG comment. > >> It is just part of a string that happens to look like a comment. > > > > As far as I can tell, this is not clear from the text. > > Doesn't the new text actually imply that YANG comments exist inside > quoted arguments? > > The NEW text is wrong. 6.3. Statements A YANG module contains a sequence of statements. Each statement starts with a keyword, followed by zero or one argument, followed either by a semicolon (";") or a block of substatements enclosed within braces ("{ }"): statement = keyword [argument] (";" / "{" *statement "}") The argument is a string, as defined in Section 6.1.2. This seems clear to me that any characters interpreted to be part of [argument] are not interpreted as a comment. A quoted string as [argument] is taken in its entirety as part of a YANG statement. > Thanks, > Chris. > Andy > > > > > Lada > > > >> > >> > >> Andy > >> > >> I think it would be useful to mention this substitution also in sec > 6.1.1. > >> > >> Lada > >> > >> -- > >> Ladislav Lhotka, CZ.NIC Labs > >> PGP Key ID: E74E8C0C > >> > >> > >> > >> > >> _______________________________________________ > >> netmod mailing list > >> netmod@ietf.org > >> https://www.ietf.org/mailman/listinfo/netmod > >> > >
_______________________________________________ netmod mailing list netmod@ietf.org https://www.ietf.org/mailman/listinfo/netmod