Skip to content

Commit

Permalink
how did I forget to add (.*) to chunk.begin??
Browse files Browse the repository at this point in the history
  • Loading branch information
yihui committed Apr 14, 2013
1 parent 83cf970 commit 3fe60f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/pattern.R
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ all_patterns = list(
ref.chunk = "^\\.*\\s*<<(.+)>>\\s*$", inline.code = ":r:`([^`]+)`"),

`asciidoc` = list(
chunk.begin = '^//\\s*begin[.]rcode$', chunk.end = '^//\\s*end[.]rcode$',
chunk.begin = '^//\\s*begin[.]rcode(.*)$', chunk.end = '^//\\s*end[.]rcode\\s*$',
chunk.code = '^//+', ref.chunk = '^\\s*<<(.+)>>\\s*$',
inline.code = '`r +([^`\n]+)\\s*`', inline.comment = '^//.*')
)
Expand Down

0 comments on commit 3fe60f3

Please sign in to comment.