TextMate-style syntax highlighting in PHP
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.
 
 

98 lines
1.9 KiB

{
"key": "link-text",
"patterns": [
{
"name": "text.link.string.md",
"match": "(?x) ^(\\[) ( ( (?:!\\[) (?:[^\\[\\]]*) (?:\\]) ) (\\() ([^ [:cntrl:]]+)? (?: (?:\\s+) ( (?:[\"'\\(]) .*? (?:[\"'\\)]) ) (?:\\s*) )? (\\)) (\\{[[:ascii:]]*\\})? ) (\\])",
"captures": {
"1": {
"name": "punctuation.md"
},
"2": {
"name": "link.markup.md"
},
"3": {
"patterns": [
{
"include": "#link-text"
}
]
},
"4": {
"name": "punctuation.md"
},
"5": {
"patterns": [
{
"include": "#link-destination"
}
]
},
"6": {
"patterns": [
{
"include": "#link-title"
}
]
},
"7": {
"name": "punctuation.md"
},
"8": {
"patterns": [
{
"include": "#special-attributes"
}
]
},
"9": {
"name": "punctuation.md"
}
}
},
{
"name": "image.link.string.md",
"match": "^(!\\[)(.*)(\\])$",
"captures": {
"1": {
"name": "punctuation.md"
},
"2": {
"patterns": [
{
"include": "#emphasis"
},
{
"include": "#code"
}
]
},
"3": {
"name": "punctuation.md"
}
}
},
{
"name": "text.link.string.md",
"match": "^(\\[)(.*)(\\])$",
"captures": {
"1": {
"name": "punctuation.md"
},
"2": {
"patterns": [
{
"include": "#emphasis"
},
{
"include": "#code"
}
]
},
"3": {
"name": "punctuation.md"
}
}
}
]
}