Changeset 239
- Timestamp:
- 02/21/2008 15:40:59 (9 months ago)
- Location:
- branches/superredcloth
- Files:
-
- 1 added
- 1 modified
-
ext/superredcloth_scan/superredcloth_scan.rl (modified) (3 diffs)
-
test/extra_whitespace.yml (added)
Legend:
- Unmodified
- Added
- Removed
-
branches/superredcloth/ext/superredcloth_scan/superredcloth_scan.rl
r238 r239 32 32 block_start = ( btype >A %{ STORE(type) } A C :> "." ( "." %extend | "" ) " "+ ) ; 33 33 next_block_start = ( btype A C :> "." ) ; 34 double_return = CRLF{2 } ;34 double_return = CRLF{2,} ; 35 35 block_end = ( double_return | EOF ); 36 36 extended_block_end = double_return . next_block_start >A @{ p = reg - 1; } ; … … 40 40 ol = "#" %{nest++; list_type = "ol";}; 41 41 list_start = ( ( ul | ol )+ N A C :> " "+ ) >{nest = 0;} ; 42 blank_line = CRLF; 42 43 43 44 # html blocks … … 120 121 list_start { list_layout = rb_ary_new(); LIST_ITEM(); fgoto list; }; 121 122 table { INLINE(table, table_close); DONE(table); fgoto block; }; 123 blank_line => cat; 122 124 default 123 125 {