Changeset 260 for lang/perl/Text-Nyarlax
- Timestamp:
- 09/23/07 12:09:21 (16 months ago)
- Location:
- lang/perl/Text-Nyarlax/trunk
- Files:
-
- 1 added
- 1 modified
-
lib/Text/Nyarlax/Parser/PRD.pm (modified) (4 diffs)
-
t/parser/spec/blockquote.tb (added)
Legend:
- Unmodified
- Added
- Removed
-
lang/perl/Text-Nyarlax/trunk/lib/Text/Nyarlax/Parser/PRD.pm
r251 r260 99 99 | List[ marker => quotemeta( '#' ), name => 'OrderedList', indent => 0 ] 100 100 | DefinitionList[ indent => 0 ] 101 | BlockQuote 101 102 | Paragraph 102 103 … … 191 192 $elm->push_content( @{ $item{'ListContent'} } ); 192 193 $elm->join_content( text => "\n" ); 194 $return = $elm; 195 } 196 197 BlockQuote : />>>/ Blank Text(?) Blank /\n/ 198 Content(s) 199 /<<</ Blank URI(?) Blank /\n/ 200 { 201 my $elm = element( $item[0] ); 202 $elm->push_content( @{ $item{'Content(s)'} } ); 203 $elm->join_content( element => 'Section' ); 204 $elm->attr->{'title'} = $item{'Text(?)'}->[0] if ( $item{'Text(?)'}->[0] ); 205 $elm->attr->{'cite'} = $item{'URI(?)'}->[0] if ( $item{'URI(?)'}->[0] ); 193 206 $return = $elm; 194 207 } … … 349 362 { $return = { wikiname => $1, link => $2 } } 350 363 | m{ 351 $RE{'URI'} {'HTTP'}364 $RE{'URI'} 352 365 | (?: (?! $bracket{'HyperLink'}->[1] ) [^\n] )+ 353 366 }x … … 360 373 | m{$text_re} 361 374 375 # Token 376 Text : /[^\n]+/ 362 377 Blank : /[ \t]*/ 363 364 378 Identifier : /[a-zA-Z]+/ 365 379 URI : /$RE{'URI'}/ 366 380 __GRAMMER__ 367 381
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)