You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
52 lines
1.1 KiB
52 lines
1.1 KiB
{
|
|
"key": "rmarkdown",
|
|
"patterns": [
|
|
{
|
|
"begin": "(?x) (```)( \\{r\\s? (.*?) \\}$ )",
|
|
"end": "^(\\1)$",
|
|
"name": "fenced.code.md",
|
|
"contentName": "source.embedded.r",
|
|
"patterns": [
|
|
{
|
|
"include": "source.r"
|
|
}
|
|
],
|
|
"beginCaptures": {
|
|
"1": {
|
|
"name": "punctuation.md"
|
|
},
|
|
"2": {
|
|
"patterns": [
|
|
{
|
|
"begin": "(\\{)(r)(\\s?)",
|
|
"beginCaptures": {
|
|
"1": {
|
|
"name": "punctuation.md"
|
|
},
|
|
"2": {
|
|
"name": "language.constant.md"
|
|
}
|
|
},
|
|
"end": "(\\})$",
|
|
"endCaptures": {
|
|
"1": {
|
|
"name": "punctuation.md"
|
|
}
|
|
},
|
|
"patterns": [
|
|
{
|
|
"include": "#rmarkdown-attributes"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"endCaptures": {
|
|
"1": {
|
|
"name": "punctuation.md"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
|