On Fri Oct  5 08:45:47 EDT 2012, [email protected] wrote:
> On Friday 05 of October 2012 07:49:57 erik quanstrom wrote:
> > does it not work to write a plumb rule that parses the whole line?   then
> > it would possible to double-click at the edges of the line to select the
> > whole line.
> 
> ok, got it working. the important bit is regcompnl() vs. regcomp().
> 
> 
> simple problems are simple:
> 
> $PLAN9/src/cmd/plumb $ 9 diff -c -n rules.c-orig rules.c
> X-rules.c:363 c rules.c:363
> <                       r->regex = regcomp(r->qarg);
> ---                                                                           
>                                                                               
>                                
> >                       r->regex = regcompnl(r->qarg);                        
> >                                                                            

you'll probablly rather put a literal newline in your rule.
you probablly don't want any surprises in other rules that
expect . not to match \n.  ☺

- erik

Reply via email to