geirm       00/11/21 18:17:26

  Modified:    src/java/org/apache/velocity/runtime/parser Parser.jjt
  Log:
  Small fix : allow 0 argument directives / VMs.  Ex #foobar()  Before VMs, we never 
had the need...
  
  Revision  Changes    Path
  1.33      +2 -2      
jakarta-velocity/src/java/org/apache/velocity/runtime/parser/Parser.jjt
  
  Index: Parser.jjt
  ===================================================================
  RCS file: 
/home/cvs/jakarta-velocity/src/java/org/apache/velocity/runtime/parser/Parser.jjt,v
  retrieving revision 1.32
  retrieving revision 1.33
  diff -u -r1.32 -r1.33
  --- Parser.jjt        2000/11/21 02:29:38     1.32
  +++ Parser.jjt        2000/11/22 02:17:25     1.33
  @@ -130,7 +130,7 @@
    *
    * @author <a href="mailto:[EMAIL PROTECTED]">Jason van Zyl</a>
    * @author <a href="mailto:[EMAIL PROTECTED]">Geir Magnusson Jr.</a>
  - * @version $Id: Parser.jjt,v 1.32 2000/11/21 02:29:38 geirm Exp $ 
  + * @version $Id: Parser.jjt,v 1.33 2000/11/22 02:17:25 geirm Exp $ 
   */
   public class Parser
   {
  @@ -1168,7 +1168,7 @@
        *  if this is indeed a token, match the #foo ( arg ) pattern
        */
   
  -    [<WHITESPACE>] <LPAREN> (  DirectiveArg()  )+ <RPAREN>
  +    [<WHITESPACE>] <LPAREN> (  DirectiveArg()  )* <RPAREN>
       {
           if (d.getType() == Directive.LINE)
               return jjtThis;
  
  
  

Reply via email to