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.
27 lines
581 B
27 lines
581 B
3 years ago
|
{
|
||
|
"scopeName": "source.js.regexp.replacement",
|
||
|
"patterns": [
|
||
|
{
|
||
|
"include": "#regexp-replacement"
|
||
|
}
|
||
|
],
|
||
|
"repository": {
|
||
|
"regexp-replacement": {
|
||
|
"patterns": [
|
||
|
{
|
||
|
"match": "\\$([1-9][0-9]|[1-9]|0[1-9]|[&`'])",
|
||
|
"name": "variable.regexp.replacement"
|
||
|
},
|
||
|
{
|
||
|
"match": "\\$\\$",
|
||
|
"name": "constant.character.escape.dollar.regexp.replacement"
|
||
|
},
|
||
|
{
|
||
|
"match": "\\\\[^$]",
|
||
|
"name": "constant.character.escape.backslash.regexp.replacement"
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
}
|
||
|
}
|