Changeset 254
- Timestamp:
- 03/07/2008 15:38:12 (9 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
branches/superredcloth/ext/superredcloth_scan/superredcloth_scan.rl
r252 r254 45 45 dd_start = ":=" ; 46 46 blank_line = CRLF; 47 link_alias = ( "[" >{ ASET(type, ignore) } %A phrase %T "]" %A uri ) ;47 link_alias = ( "[" >{ ASET(type, ignore) } %A phrase %T "]" %A uri %{ STORE_URL(href); } ) ; 48 48 49 49 # html blocks … … 150 150 dl_start { INLINE(html, dl_open); ASET(type, dt); fgoto dl; }; 151 151 table { INLINE(table, table_close); DONE(table); fgoto block; }; 152 link_alias { STORE_URL(href);rb_hash_aset(refs_found, rb_hash_aref(regs, ID2SYM(rb_intern("text"))), rb_hash_aref(regs, ID2SYM(rb_intern("href")))); DONE(block); };152 link_alias { rb_hash_aset(refs_found, rb_hash_aref(regs, ID2SYM(rb_intern("text"))), rb_hash_aref(regs, ID2SYM(rb_intern("href")))); DONE(block); }; 153 153 blank_line => cat; 154 154 default