mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-20 00:28:52 +01:00
69 lines
1.4 KiB
JSON
69 lines
1.4 KiB
JSON
{
|
|
"name": "Search Results",
|
|
"scopeName": "text.searchResult",
|
|
"patterns": [
|
|
{
|
|
"match": "^# (Query|Flags|Including|Excluding|ContextLines): .*$",
|
|
"name": "comment"
|
|
},
|
|
{
|
|
"begin": "^(?!\\s)(.*?)([^\\\\\\/\\n]*.ts)(:)$",
|
|
"end": "(^$)|(^ (\\d+)(:| ))",
|
|
"name": "searchResult.resultLine.typescript",
|
|
"beginCaptures": {
|
|
"0": {
|
|
"name": "string path.searchResult"
|
|
},
|
|
"1": {
|
|
"name": "dirname.path.searchResult"
|
|
},
|
|
"2": {
|
|
"name": "basename.path.searchResult"
|
|
},
|
|
"3": {
|
|
"name": "endingColon.path.searchResult"
|
|
}
|
|
},
|
|
"whileCaptures": {
|
|
"3": {
|
|
"name": "constant.numeric lineNumber.searchResult resultPrefix.searchResult"
|
|
},
|
|
"4": {
|
|
"name": "resultPrefixSeparator.searchResult resultPrefix.searchResult"
|
|
}
|
|
},
|
|
"patterns": [
|
|
{
|
|
"include": "source.ts"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"match": "^(?!\\s)(.*?)([^\\\\\\/\\n]*)(:)$",
|
|
"name": "string path.searchResult",
|
|
"captures": {
|
|
"1": {
|
|
"name": "dirname.path.searchResult"
|
|
},
|
|
"2": {
|
|
"name": "basename.path.searchResult"
|
|
},
|
|
"3": {
|
|
"name": "endingColon.path.searchResult"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"match": "^ (\\d+)(:| )",
|
|
"captures": {
|
|
"1": {
|
|
"name": "constant.numeric lineNumber.searchResult resultPrefix.searchResult"
|
|
},
|
|
"2": {
|
|
"name": "resultPrefixSeparator.searchResult resultPrefix.searchResult"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|