mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 21:09:43 +00:00
Add initial "file is a block" syntax hilight
This commit is contained in:
parent
58d954737f
commit
fa948c2f1e
|
@ -6,6 +6,38 @@
|
|||
"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",
|
||||
|
@ -27,7 +59,7 @@
|
|||
"1": {
|
||||
"name": "constant.numeric lineNumber.searchResult resultPrefix.searchResult"
|
||||
},
|
||||
"2:": {
|
||||
"2": {
|
||||
"name": "resultPrefixSeparator.searchResult resultPrefix.searchResult"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue