all_patterns: All built-in patterns
Description
This object is a named list of all built-in patterns.format
List of 8
$ rnw :List of 7
..$ chunk.begin : chr "^\s*<<(.*)>>=.*$"
..$ chunk.end : chr "^\s*@\s*(%+.*|)$"
..$ inline.code : chr "\\Sexpr\{([^}]+)\}"
..$ inline.comment: chr "^\s*%.*"
..$ ref.chunk : chr "^\s*<<(.+)>>\s*$"
..$ header.begin : chr "(^|\n)[^%]*\s*\\documentclass[^}]+\}"
..$ document.begin: chr "\s*\\begin\{document\}"
$ brew :List of 1
..$ inline.code: chr "<%[=]{0,1}\s+([^%]+)\s+[-]*%>"
$ tex :List of 8
..$ chunk.begin : chr "^\s*%+\s*begin.rcode\s*(.*)"
..$ chunk.end : chr "^\s*%+\s*end.rcode"
..$ chunk.code : chr "^%+"
..$ ref.chunk : chr "^%+\s*<<(.+)>>\s*$"
..$ inline.comment: chr "^\s*%.*"
..$ inline.code : chr "\\rinline\{([^}]+)\}"
..$ header.begin : chr "(^|\n)[^%]*\s*\\documentclass[^}]+\}"
..$ document.begin: chr "\s*\\begin\{document\}"
$ html :List of 5
..$ chunk.begin : chr "^\s*"
..$ ref.chunk : chr "^\s*<<(.+)>>\s*$"
..$ inline.code : chr ""
..$ header.begin: chr "\s*"
$ md :List of 4
..$ chunk.begin: chr "^[\t >]*```+\s*\{[.]?([a-zA-Z]+.*)\}\s*$"
..$ chunk.end : chr "^[\t >]*```+\s*$"
..$ ref.chunk : chr "^\s*<<(.+)>>\s*$"
..$ inline.code: chr "`r +([^`]+)\s*`"
$ rst :List of 5
..$ chunk.begin: chr "^\s*[.][.]\s+\{r(.*)\}\s*$"
..$ chunk.end : chr "^\s*[.][.]\s+[.][.]\s*$"
..$ chunk.code : chr "^[.][.]"
..$ ref.chunk : chr "^\.*\s*<<(.+)>>\s*$"
..$ inline.code: chr ":r:`([^`]+)`"
$ asciidoc:List of 6
..$ chunk.begin : chr "^//\s*begin[.]rcode(.*)$"
..$ chunk.end : chr "^//\s*end[.]rcode\s*$"
..$ chunk.code : chr "^//+"
..$ ref.chunk : chr "^\s*<<(.+)>>\s*$"
..$ inline.code : chr "`r +([^`]+)\s*`|[+]r +([^+]+)\s*[+]"
..$ inline.comment: chr "^//.*"
$ textile :List of 5
..$ chunk.begin : chr "^###[.]\s+begin[.]rcode(.*)$"
..$ chunk.end : chr "^###[.]\s+end[.]rcode\s*$"
..$ ref.chunk : chr "^\s*<<(.+)>>\s*$"
..$ inline.code : chr "@r +([^@]+)\s*@"
..$ inline.comment: chr "^###[.].*"References
Usage: http://yihui.name/knitr/patternsExamples
Run this codeall_patterns$rnw
all_patterns$html
str(all_patterns)
Run the code above in your browser using DataLab