Skip to content

Commit

Permalink
change the inline syntax to +r + instead of r to avoid confusion w…
Browse files Browse the repository at this point in the history
…ith markdown
  • Loading branch information
yihui committed Apr 14, 2013
1 parent 1aace90 commit 5305618
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 @@ -39,7 +39,7 @@ all_patterns = list(
`asciidoc` = list(
chunk.begin = '^//\\s*begin[.]rcode(.*)$', chunk.end = '^//\\s*end[.]rcode\\s*$',
chunk.code = '^//+', ref.chunk = '^\\s*<<(.+)>>\\s*$',
inline.code = '`r +([^`\n]+)\\s*`', inline.comment = '^//.*')
inline.code = '[+]r +([^+\n]+)\\s*[+]', inline.comment = '^//.*')
)

.sep.label = '^#+\\s*@knitr(.*)$' # pattern for code chunks in an R script
Expand Down

0 comments on commit 5305618

Please sign in to comment.