Associate *.sarif files with json syntax (#2695)

* Associate `*.sarif` files with `json` syntax

* Update changelog for #2695
This commit is contained in:
Linda_pp authored and GitHub committed 2023-10-04 09:34:40 +02:00
1 parent 721f956c1c
commit 9f795dd947
2 files changed
+4 -3

No files matched your search

+3 -3
View File
@@ -76,9 +76,9 @@ impl<'a> SyntaxMapping<'a> {
.insert("fish_history", MappingTarget::MapTo("YAML"))
.unwrap();
mapping
.insert("*.jsonl", MappingTarget::MapTo("JSON"))
.unwrap();
for glob in ["*.jsonl", "*.sarif"] {
mapping.insert(glob, MappingTarget::MapTo("JSON")).unwrap();
}
// See #2151, https://nmap.org/book/nse-language.html
mapping