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.
 
 

45 lines
864 B

{
"key": "entities",
"patterns": [
{
"match": "(?<=^|\\s)(&)(?=$|\\s|,|!|\\?|\\.)",
"name": "ampersand.md"
},
{
"match": "(&)([a-zA-Z0-9]{2,32})(;)",
"name": "entity.constant.md",
"captures": {
"1": {
"name": "punctuation.md"
},
"3": {
"name": "punctuation.md"
}
}
},
{
"match": "(&#)([0-9]{1,8})(;)",
"name": "entity.constant.md",
"captures": {
"1": {
"name": "punctuation.md"
},
"3": {
"name": "punctuation.md"
}
}
},
{
"match": "(&#[x|X])([0-9a-fA-F]{1,8})(;)",
"name": "entity.constant.md",
"captures": {
"1": {
"name": "punctuation.md"
},
"3": {
"name": "punctuation.md"
}
}
}
]
}