On Thu, Jul 12, 2012 at 11:51 AM, Jason Heeris <jason.hee...@gmail.com> wrote: > On 12 July 2012 17:45, Bert Huijben <b...@qqmail.nl> wrote: >> [Please try to keep the mails in plain-text] > > Oops, my apologies! > >> Things might be simpler when defining that lines that start with ‘[‘ and >> end with ‘]’ should parse everything in between as section markers. > >> But then, I don’t know how that affects the current comment syntax. > > Ah, yes, something like this might prove problematic: > > [repo:/path/to/[12345] file.ext] # Comment comment [comment] > > Then again, the file *could*, in theory, be named "[12345] file.ext] # > Comment [comment comment"! > > I don't really know *what* constraints there are on honouring existing > authz file syntax, whether or not it's explicitly specified.
Or even: [repo:/path/to/file.ext] Comment [comment] (no need for # -- this currently works as well, because everything after the first ']' is ignored) I think ']]' would be the best choice, but still not 100% backwards compatible. But I mean, who in their right mind would write sections like this: [repo:/path/to/file.ext]]haha, this isn't parsed :-) (ok, maybe in some cases as a typo, which is currently ignored and which would then cause a behavior change) -- Johan