<div dir="ltr">Hi Sean,<br><br>Thanks for the patch, it looks very nice. I based the initial lens on the options I usually use, so I'm not surprised it's lacking fields. However, list_to_eol is not used as of now. I think it would be actually better to use it instead of defining tabooext separately. So you would have <br>
<br>let list_item = [ sep_spc . key /[^\/+,# \n\t{}]+/ ]<br>let list_to_eol (kw:string) (indent:string)                   <br>     = [ del /[ \t]*/ indent . key kw . ( sep_spc . store /\+/ )? . list_item+ . eol ]<br><br><br>
let attrs (indent:string) = <br>    ...<br>    | list_to_eol "tabooext" indent<br>    | list_to_eol "compressoptions" indent<br><br>This way, you don't have to redefine a specific field for tabooext. That said, the checks are less stricts on "compressoptions". <br>
<br>It would also be nice to try and limit lines to 80 (or preferably 75) characters and begin to document the code (with NaturalDocs, I might begin to do that for all lenses when I get some time).<br><br><br>Raphael<br><br>
<br><br><br><div class="gmail_quote">On Sun, Sep 28, 2008 at 2:50 AM, Sean E. Millichamp <span dir="ltr"><<a href="mailto:sean@bruenor.org">sean@bruenor.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">On Sat, 2008-09-27 at 09:45 +0200, Dominique Dumont wrote:<br>
<br>
> From what I've understood, Augeas cannot decide which lenses will<br>
> apply to 'tabooext + A'.<br>
<br>
</div><div class="Ih2E3d">> I do not know exactly logrotate syntax, but you may want to exclude<br>
> the '+' character from list_item:<br>
><br>
> let list_item = [ sep_spc . key /[^\/,# \n\t{}\+]+/ ]<br>
<br>
</div>Thanks Dominique, that was it exactly.<br>
<br>
I have re-attached the patch.  This one should be ready to go.<br>
<font color="#888888"><br>
Sean<br>
<br>
</font><br>_______________________________________________<br>
augeas-devel mailing list<br>
<a href="mailto:augeas-devel@redhat.com">augeas-devel@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/augeas-devel" target="_blank">https://www.redhat.com/mailman/listinfo/augeas-devel</a><br></blockquote></div><br></div>