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.
56 lines
1.2 KiB
56 lines
1.2 KiB
{
|
|
"key": "rmarkdown-attributes",
|
|
"patterns": [
|
|
{
|
|
"match": "(?x) (?#<=^|,|,\\s) ([A-Za-z0-9\\.]+) (?:\\s?) (=) (?:\\s?) (TRUE|FALSE)",
|
|
"name": "rmarkdown.attribute.meta.md",
|
|
"captures": {
|
|
"1": {
|
|
"name": "key.keyword.md"
|
|
},
|
|
"2": {
|
|
"name": "punctuation.md"
|
|
},
|
|
"3": {
|
|
"name": "value.constant.md"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"match": "(?x) (?#<=^|,|,\\s) ([A-Za-z0-9\\.]+) (?:\\s?) (=) (?:\\s?) ([A-Za-z0-9]+)",
|
|
"name": "rmarkdown.attribute.meta.md",
|
|
"captures": {
|
|
"1": {
|
|
"name": "key.keyword.md"
|
|
},
|
|
"2": {
|
|
"name": "punctuation.md"
|
|
},
|
|
"3": {
|
|
"name": "value.constant.md"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"match": "(?x) (?#<=^|,|,\\s) ([A-Za-z0-9\\.]+) (?:\\s?) (=) (?:\\s?) ( ('|\") ([^\\4]*?) (\\4) )",
|
|
"name": "rmarkdown.attribute.meta.md",
|
|
"captures": {
|
|
"1": {
|
|
"name": "key.keyword.md"
|
|
},
|
|
"2": {
|
|
"name": "punctuation.md"
|
|
},
|
|
"3": {
|
|
"name": "value.string.md"
|
|
},
|
|
"4": {
|
|
"name": "punctuation.md"
|
|
},
|
|
"6": {
|
|
"name": "punctuation.md"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
|