[jboss-cvs] jboss-seam ...

Gavin King gavin.king at jboss.com
Sun Jan 28 16:14:48 EST 2007


  User: gavin   
  Date: 07/01/28 16:14:48

  Modified:    jboss-seam  seam-text.g
  Log:
  handle [ and ]
  
  Revision  Changes    Path
  1.26      +11 -2     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.25
  retrieving revision 1.26
  diff -u -b -r1.25 -r1.26
  --- seam-text.g	26 Jan 2007 20:22:57 -0000	1.25
  +++ seam-text.g	28 Jan 2007 21:14:48 -0000	1.26
  @@ -84,7 +84,7 @@
   punctuation: p:PUNCTUATION { append( p.getText() ); }
       ;
       
  -escape: ESCAPE ( q:QUOTE { append( q.getText() ); } | specialChars | htmlSpecialChars )
  +escape: ESCAPE ( specialChars | moreSpecialChars | evenMoreSpecialChars | htmlSpecialChars )
       ;
       
   specialChars:
  @@ -102,6 +102,15 @@
           | sc:SEMICOLON { append( sc.getText() ); }
       ;
   
  +moreSpecialChars:
  +          o:OPEN { append( o.getText() ); }
  +        | c:CLOSE { append( c.getText() ); }
  +    ;
  +    
  +evenMoreSpecialChars: 
  +          q:QUOTE { append( q.getText() ); }
  +    ;
  +
   htmlSpecialChars: 
         GT { append(">"); } 
       | LT { append("<"); } 
  @@ -157,7 +166,7 @@
       ;
       
   preformatted: BACKTICK { append("<pre>"); }
  -              (word|punctuation|specialChars|htmlSpecialChars|space|simpleNewline)*
  +              (word|punctuation|specialChars|moreSpecialChars|htmlSpecialChars|space|simpleNewline)*
                 BACKTICK { append("</pre>"); }
       ;
       
  
  
  



More information about the jboss-cvs-commits mailing list