forked from golang/vscode-go
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
syntaxes: color govulncheck output in the output channel
Change-Id: I00ff7a0cf0f016748f4da3278055f720e6cc480a Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/455555 Reviewed-by: Jamal Carvalho <[email protected]> TryBot-Result: kokoro <[email protected]> Run-TryBot: Hyang-Ah Hana Kim <[email protected]>
- Loading branch information
Showing
2 changed files
with
135 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,124 @@ | ||
{ | ||
"scopeName": "govulncheck", | ||
"patterns": [ | ||
{ | ||
"include": "#log" | ||
}, | ||
{ | ||
"include": "#info" | ||
}, | ||
{ | ||
"include": "#affecting" | ||
}, | ||
{ | ||
"include": "#unaffecting" | ||
}, | ||
{ | ||
"include": "#callstack" | ||
}, | ||
{ | ||
"include": "#callstacklong" | ||
}, | ||
{ | ||
"include": "#frame" | ||
}, | ||
{ | ||
"include": "#framePosition" | ||
} | ||
], | ||
"repository": { | ||
"log": { | ||
"comment": "log", | ||
"match": "^\\d{2}:\\d{2}:\\d{2} \\S.*$", | ||
"name": "comment.govulncheck" | ||
}, | ||
"info": { | ||
"comment": "info", | ||
"match": "^# .*", | ||
"name": "comment.govulncheck" | ||
}, | ||
"affecting": { | ||
"comment": "vulnerability heading", | ||
"match": "^(⚠) (\\S+) \\((https://[^)]+)\\)", | ||
"name": "markup.heading.2.govulncheck", | ||
"captures": { | ||
"1": { | ||
"name": "markup.bold.severity.govulncheck" | ||
}, | ||
"2": { | ||
"name": "markup.bold.vulnid.govulncheck" | ||
}, | ||
"3": { | ||
"name": "entity.bold.link.govulncheck" | ||
} | ||
} | ||
}, | ||
"unaffecting": { | ||
"comment": "vulnerability heading", | ||
"match": "^(ⓘ) (\\S+) \\((https://[^)]+)\\)", | ||
"name": "markup.heading.2.govulncheck", | ||
"captures": { | ||
"1": { | ||
"name": "markup.severity.govulncheck" | ||
}, | ||
"2": { | ||
"name": "markup.vulnid.govulncheck" | ||
}, | ||
"3": { | ||
"name": "markup.link.govulncheck" | ||
} | ||
} | ||
}, | ||
"callstacklong": { | ||
"comment": "callstack", | ||
"match": "^\\- (\\S+) (\\S+) calls ([^,]+), which eventually calls (\\S+)", | ||
"name": "markup.list.unnumbered.callstack.summary.govulncheck", | ||
"captures": { | ||
"1": { | ||
"name": "markup.link.callstack.position.govulncheck" | ||
}, | ||
"2": { | ||
"name": "markup.italic.raw.callstack.symbol.govulncheck" | ||
}, | ||
"3": { | ||
"name": "markup.italic.callstack.symbol.govulncheck" | ||
}, | ||
"4": { | ||
"name": "markup.italic.callstack.symbol.govulncheck" | ||
} | ||
} | ||
}, | ||
"callstack": { | ||
"comment": "callstack", | ||
"match": "^\\- (\\S+) (\\S+) calls ([^,]+)$", | ||
"name": "markup.list.unnumbered.callstack.summary.govulncheck", | ||
"captures": { | ||
"1": { | ||
"name": "markup.link.callstack.position.govulncheck" | ||
}, | ||
"2": { | ||
"name": "markup.italic.raw.callstack.symbol.govulncheck" | ||
}, | ||
"3": { | ||
"name": "markup.italic.callstack.symbol.govulncheck" | ||
} | ||
} | ||
}, | ||
"frame": { | ||
"comment": "frame", | ||
"match": "^\\t(\\S+)", | ||
"name": "markup.list.unnumbered.fram.govulncheck", | ||
"captures": { | ||
"1": { "name": "markup.italic.raw.callstack.symbol.govulncheck"} | ||
} | ||
}, | ||
"framePosition": { | ||
"comment": "frame position info", | ||
"match": "^\\t\\t(\\([^)]+\\))", | ||
"name": "markup.list.unnumbered.frame.govulncheck", | ||
"captures": { | ||
"1": { "name": "comment.govulncheck"} | ||
} | ||
} | ||
} | ||
} |