Changeset 285
- Timestamp:
- 03/24/2008 09:57:30 (8 months ago)
- Location:
- trunk
- Files:
-
- 2 modified
-
ext/redcloth_scan/redcloth_inline.rl (modified) (2 diffs)
-
test/code.yml (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ext/redcloth_scan/redcloth_inline.rl
r284 r285 59 59 caps = ( upper{3,} >A %*T ) >X ; 60 60 dim = ( digit+ >A %{ STORE(x) } (" x " @{ ASET(space, true)} | "x") digit @{ fhold; } ) >X ; 61 dim_noactions = digit+ ( (" x " | "x") digit+ )+ ; 61 62 tm = [Tt] [Mm] ; 62 63 trademark = " "? ( "[" tm "]" | "(" tm ")" ) ; … … 67 68 entity = ( "&" %A ( '#' digit+ | alpha+ ) %T ';' ) >X ; 68 69 69 other_phrase = phrase -- dim ;70 other_phrase = phrase -- dim_noactions; 70 71 71 72 code_tag := |* -
trunk/test/code.yml
r272 r285 7 7 in: 'Please type @cat "file.txt" > otherfile.txt@ at the prompt.' 8 8 html: '<p>Please type <code>cat "file.txt" > otherfile.txt</code> at the prompt.</p>' 9 --- 10 name: inline code escapement with digits 11 in: |- 12 Regex-based string substitution with Ruby's gsub!: @"123<789".gsub!(/</, "") => "123789"@ 13 html: |- 14 <p>Regex-based string substitution with Ruby’s gsub!: <code>"123<789".gsub!(/</, "") => "123789"</code></p> 9 15 --- 10 16 name: escaping in blockcode