[Search Editor] Add more TM scopes. Ref #86317. (#86612)

This commit is contained in:
Jackson Kearl 2019-12-09 10:34:39 -08:00 committed by GitHub
parent c3c57ae3a0
commit e30906162e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -7,12 +7,30 @@
"name": "comment"
},
{
"match": "^\\S.*:$",
"name": "string path.searchResult"
"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+",
"name": "constant.numeric lineNumber.searchResult"
"match": "^ (\\d+)(:| )",
"captures": {
"1": {
"name": "constant.numeric lineNumber.searchResult resultPrefix.searchResult"
},
"2:": {
"name": "resultPrefixSeparator.searchResult resultPrefix.searchResult"
}
}
}
]
}