mirror of
https://github.com/sharkdp/bat
synced 2024-11-13 23:57:09 +00:00
Associate *.sarif
files with json
syntax (#2695)
* Associate `*.sarif` files with `json` syntax * Update changelog for #2695
This commit is contained in:
parent
721f956c1c
commit
9f795dd947
2 changed files with 4 additions and 3 deletions
|
@ -21,6 +21,7 @@
|
||||||
- Associate `Containerfile` with `Dockerfile` syntax, see #2606 (@einfachIrgendwer0815)
|
- Associate `Containerfile` with `Dockerfile` syntax, see #2606 (@einfachIrgendwer0815)
|
||||||
- Replaced quotes with double quotes so fzf integration example script works on windows and linux. see #2095 (@johnmatthiggins)
|
- Replaced quotes with double quotes so fzf integration example script works on windows and linux. see #2095 (@johnmatthiggins)
|
||||||
- Associate `ksh` files with `bash` syntax, see #2633 (@johnmatthiggins)
|
- Associate `ksh` files with `bash` syntax, see #2633 (@johnmatthiggins)
|
||||||
|
- Associate `sarif` files with `JSON` syntax, see #2695 (@rhysd)
|
||||||
- Associate `ron` files with `rust` syntax, see #2427 (@YeungOnion)
|
- Associate `ron` files with `rust` syntax, see #2427 (@YeungOnion)
|
||||||
- Add support for [WebGPU Shader Language](https://www.w3.org/TR/WGSL/), see #2692 (@rhysd)
|
- Add support for [WebGPU Shader Language](https://www.w3.org/TR/WGSL/), see #2692 (@rhysd)
|
||||||
|
|
||||||
|
|
|
@ -76,9 +76,9 @@ impl<'a> SyntaxMapping<'a> {
|
||||||
.insert("fish_history", MappingTarget::MapTo("YAML"))
|
.insert("fish_history", MappingTarget::MapTo("YAML"))
|
||||||
.unwrap();
|
.unwrap();
|
||||||
|
|
||||||
mapping
|
for glob in ["*.jsonl", "*.sarif"] {
|
||||||
.insert("*.jsonl", MappingTarget::MapTo("JSON"))
|
mapping.insert(glob, MappingTarget::MapTo("JSON")).unwrap();
|
||||||
.unwrap();
|
}
|
||||||
|
|
||||||
// See #2151, https://nmap.org/book/nse-language.html
|
// See #2151, https://nmap.org/book/nse-language.html
|
||||||
mapping
|
mapping
|
||||||
|
|
Loading…
Reference in a new issue