[jboss-cvs] jboss-seam ...

Christian Bauer christian at hibernate.org
Mon Mar 19 00:54:56 EDT 2007


  User: cbauer  
  Date: 07/03/19 00:54:56

  Modified:    jboss-seam  seam-text.g
  Log:
  Added [<=Macro] callback syntax
  
  Revision  Changes    Path
  1.33      +13 -1     jboss-seam/seam-text.g
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: seam-text.g
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/seam-text.g,v
  retrieving revision 1.32
  retrieving revision 1.33
  diff -u -b -r1.32 -r1.33
  --- seam-text.g	7 Mar 2007 16:01:58 -0000	1.32
  +++ seam-text.g	19 Mar 2007 04:54:56 -0000	1.33
  @@ -52,6 +52,10 @@
       protected String linkTag(String description, String url) {
           return "<a href=\"" + url + "\" styleClass=\"seamTextLink\">" + description + "</a>";
       }
  +
  +    protected String macroInclude(String macroName) {
  +        return "";
  +    }
   }
   
   startRule: (newline)* ( (heading (newline)* )? text (heading (newline)* text)* )?
  @@ -72,7 +76,7 @@
   formatted: bold|underline|italic|monospace|superscript|deleted
       ;
   
  -plain: word|punctuation|escape|space|link
  +plain: word|punctuation|escape|space|link|macro
       ;
     
   word: w:WORD { append( w.getText() ); }
  @@ -124,6 +128,14 @@
         CLOSE
       ;
   
  +macro: OPEN
  +      LT EQ
  +      { beginCapture(); }
  +      attributeValue 
  +      { String macroName = endCapture(); append(macroInclude(macroName)); }
  +      CLOSE
  +    ;
  +
   bold: STAR { append("<b>"); }
         (plain|underline|italic|monospace|superscript|deleted|newline)+
         STAR { append("</b>"); }
  
  
  



More information about the jboss-cvs-commits mailing list