Skip to content

Commit e309061

Browse files
author
Jackson Kearl
authored
[Search Editor] Add more TM scopes. Ref microsoft#86317. (microsoft#86612)
1 parent c3c57ae commit e309061

1 file changed

Lines changed: 22 additions & 4 deletions

File tree

extensions/search-result/syntaxes/searchResult.tmLanguage.json

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,30 @@
77
"name": "comment"
88
},
99
{
10-
"match": "^\\S.*:$",
11-
"name": "string path.searchResult"
10+
"match": "^(?!\\s)(.*?)([^\\\\\\/\\n]*)(:)$",
11+
"name": "string path.searchResult",
12+
"captures": {
13+
"1": {
14+
"name": "dirname.path.searchResult"
15+
},
16+
"2": {
17+
"name": "basename.path.searchResult"
18+
},
19+
"3": {
20+
"name": "endingColon.path.searchResult"
21+
}
22+
}
1223
},
1324
{
14-
"match": "^ \\d+",
15-
"name": "constant.numeric lineNumber.searchResult"
25+
"match": "^ (\\d+)(:| )",
26+
"captures": {
27+
"1": {
28+
"name": "constant.numeric lineNumber.searchResult resultPrefix.searchResult"
29+
},
30+
"2:": {
31+
"name": "resultPrefixSeparator.searchResult resultPrefix.searchResult"
32+
}
33+
}
1634
}
1735
]
1836
}

0 commit comments

Comments
 (0)