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.
129 lines
2.8 KiB
129 lines
2.8 KiB
{
|
|
"key": "emphasis",
|
|
"patterns": [
|
|
{
|
|
"match": "(?<![\\w|\\\\])([_]{2})(?!\\s)(?m:(.+?))(?<![\\s|\\\\])(\\1)(?!\\w)",
|
|
"name": "strong.emphasis.bold.markup.md",
|
|
"captures": {
|
|
"1": {
|
|
"name": "punctuation.md"
|
|
},
|
|
"2": {
|
|
"patterns": [
|
|
{
|
|
"include": "#inlines-in-inlines"
|
|
}
|
|
]
|
|
},
|
|
"3": {
|
|
"name": "punctuation.md"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"match": "(?<![\\w|\\\\])([\\*]{2})(?!\\s)(?m:(.+?))(?<![\\s|\\\\])(\\1)(?!\\w)",
|
|
"name": "strong.emphasis.bold.markup.md",
|
|
"captures": {
|
|
"1": {
|
|
"name": "punctuation.md"
|
|
},
|
|
"2": {
|
|
"patterns": [
|
|
{
|
|
"include": "#inlines-in-inlines"
|
|
}
|
|
]
|
|
},
|
|
"3": {
|
|
"name": "punctuation.md"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"match": "(?<=\\w)([\\*]{2})(?:.+?)(?<!\\W)(\\1)",
|
|
"name": "strong.emphasis.bold.markup.md",
|
|
"captures": {
|
|
"1": {
|
|
"name": "punctuation.md"
|
|
},
|
|
"2": {
|
|
"name": "punctuation.md"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"match": "(?<=\\s|^)([\\*]{2})(?=\\w)(?:.+?)(\\1)(?=\\w)",
|
|
"name": "strong.emphasis.bold.markup.md",
|
|
"captures": {
|
|
"1": {
|
|
"name": "punctuation.md"
|
|
},
|
|
"2": {
|
|
"name": "punctuation.md"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"match": "(?<![\\w|_|\\\\])([_])(?!\\s|\\1)(?m:(.+?))(?<![\\s|\\\\])(\\1)(?!\\w)",
|
|
"name": "emphasis.italic.markup.md",
|
|
"captures": {
|
|
"1": {
|
|
"name": "punctuation.md"
|
|
},
|
|
"2": {
|
|
"patterns": [
|
|
{
|
|
"include": "#inlines-in-inlines"
|
|
}
|
|
]
|
|
},
|
|
"3": {
|
|
"name": "punctuation.md"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"match": "(?<![\\w|\\*|\\\\])([\\*])(?!\\s|\\1)(?m:(.+?))(?<![\\s|\\\\])(\\1)(?!\\w)",
|
|
"name": "emphasis.italic.markup.md",
|
|
"captures": {
|
|
"1": {
|
|
"name": "punctuation.md"
|
|
},
|
|
"2": {
|
|
"patterns": [
|
|
{
|
|
"include": "#inlines-in-inlines"
|
|
}
|
|
]
|
|
},
|
|
"3": {
|
|
"name": "punctuation.md"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"match": "(?<=\\w)([\\*])(?:.+?)(?<!\\W)(\\1)",
|
|
"name": "emphasis.italic.markup.md",
|
|
"captures": {
|
|
"1": {
|
|
"name": "punctuation.md"
|
|
},
|
|
"2": {
|
|
"name": "punctuation.md"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"match": "(?<=\\s|^)([\\*])(?=\\w)(?:.+?)(\\1)(?=\\w)",
|
|
"name": "emphasis.italic.markup.md",
|
|
"captures": {
|
|
"1": {
|
|
"name": "punctuation.md"
|
|
},
|
|
"2": {
|
|
"name": "punctuation.md"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
|