From ab040f2621c7fafeb7f4da0d6f097b235c44ee4d Mon Sep 17 00:00:00 2001 From: John Gardner Date: Wed, 19 Oct 2022 22:13:29 +1100 Subject: [PATCH] Add support for Simple File Verification (#6098) --- grammars.yml | 2 + lib/linguist/languages.yml | 15 ++++- samples/Simple File Verification/linguist.sfv | 29 ++++++++++ samples/Simple File Verification/openbsd.sfv | 55 +++++++++++++++++++ vendor/README.md | 1 + vendor/grammars/language-etc | 2 +- .../git_submodule/language-etc.dep.yml | 2 +- 7 files changed, 103 insertions(+), 3 deletions(-) create mode 100644 samples/Simple File Verification/linguist.sfv create mode 100755 samples/Simple File Verification/openbsd.sfv diff --git a/grammars.yml b/grammars.yml index 19405cd24b..e1ea395912 100644 --- a/grammars.yml +++ b/grammars.yml @@ -538,6 +538,7 @@ vendor/grammars/language-etc: - source.opts - source.record-jar - source.sexp +- source.sfv - source.shellcheckrc - source.sieve - source.smpl @@ -555,6 +556,7 @@ vendor/grammars/language-etc: - text.openbsd-pkg.desc - text.savane - text.xml.svg +- text.youtube vendor/grammars/language-faust: - source.faust vendor/grammars/language-fontforge: diff --git a/lib/linguist/languages.yml b/lib/linguist/languages.yml index b7a328ff77..15cdb53a10 100644 --- a/lib/linguist/languages.yml +++ b/lib/linguist/languages.yml @@ -4112,7 +4112,7 @@ Move: type: programming color: "#4a137a" extensions: - - ".move" + - ".move" tm_scope: source.move ace_mode: text language_id: 638334599 @@ -6155,6 +6155,19 @@ Sieve: codemirror_mode: sieve codemirror_mime_type: application/sieve language_id: 208976687 +Simple File Verification: + type: data + group: Checksums + color: "#C9BFED" + extensions: + - ".sfv" + aliases: + - sfv + tm_scope: source.sfv + ace_mode: ini + codemirror_mode: properties + codemirror_mime_type: text/x-properties + language_id: 735623761 Singularity: type: programming color: "#64E6AD" diff --git a/samples/Simple File Verification/linguist.sfv b/samples/Simple File Verification/linguist.sfv new file mode 100644 index 0000000000..732cc9646e --- /dev/null +++ b/samples/Simple File Verification/linguist.sfv @@ -0,0 +1,29 @@ +lib\linguist\samples.rb a68f334c +lib\linguist\blob.rb 64839a5b +lib\linguist\linguist.bundle f432fe86 +lib\linguist\file_blob.rb 89f0611a +lib\linguist\popular.yml 3d7ec880 +lib\linguist\repository.rb 509d211c +lib\linguist\heuristics.yml 0d891788 +lib\linguist\lazy_blob.rb 0ba1b9c7 +lib\linguist\language.rb d24f20c8 +lib\linguist\samples.json 1ce080b4 +lib\linguist\tokenizer.rb 52f84158 +lib\linguist\generic.yml 0186ffd2 +lib\linguist\vendor.yml 496c5e23 +lib\linguist\shebang.rb d4920ba5 +lib\linguist\VERSION f931284a +lib\linguist\sha256.rb 6ea81c50 +lib\linguist\version.rb 47439f57 +lib\linguist\classifier.rb dde8616f +lib\linguist\heuristics.rb cd388744 +lib\linguist\grammars.rb 15132734 +lib\linguist\generated.rb ee53378f +lib\linguist\blob_helper.rb 38a1bbac +lib\linguist\documentation.yml 49190aab +lib\linguist\languages.yml 66e15e3f +lib\linguist\strategy\filename.rb 7d2bbb51 +lib\linguist\strategy\extension.rb 2a33913d +lib\linguist\strategy\xml.rb a72a15eb +lib\linguist\strategy\modeline.rb 71705eab +lib\linguist\strategy\manpage.rb 7200a66c \ No newline at end of file diff --git a/samples/Simple File Verification/openbsd.sfv b/samples/Simple File Verification/openbsd.sfv new file mode 100755 index 0000000000..12eb5ad37b --- /dev/null +++ b/samples/Simple File Verification/openbsd.sfv @@ -0,0 +1,55 @@ +; Generated by RHash v1.4.0 on 2022-09-29 at 13:24.03 +; Written by Kravchenko Aleksey (Akademgorodok) - http://rhash.sf.net/ +; +; 126464 09:46.52 2022-04-12 7.1/amd64/BOOTIA32.EFI +; 141838 09:46.52 2022-04-12 7.1/amd64/BOOTX64.EFI +; 54 10:10.09 2022-04-12 7.1/amd64/BUILDINFO +; 43495 10:10.08 2022-04-12 7.1/amd64/INSTALL.amd64 +; 1992 10:39.17 2022-04-12 7.1/amd64/SHA256 +; 2144 10:39.56 2022-04-12 7.1/amd64/SHA256.sig +; 346820017 10:05.02 2022-04-12 7.1/amd64/base71.tgz +; 22876084 10:04.06 2022-04-12 7.1/amd64/bsd +; 22977229 10:04.07 2022-04-12 7.1/amd64/bsd.mp +; 4606368 10:10.08 2022-04-12 7.1/amd64/bsd.rd +; 10717184 10:10.09 2022-04-12 7.1/amd64/cd71.iso +; 89300 09:46.51 2022-04-12 7.1/amd64/cdboot +; 2048 09:46.51 2022-04-12 7.1/amd64/cdbr +; 75127448 10:05.28 2022-04-12 7.1/amd64/comp71.tgz +; 1474560 10:10.09 2022-04-12 7.1/amd64/floppy71.img +; 2810632 10:05.36 2022-04-12 7.1/amd64/game71.tgz +; 1690 10:39.56 2022-04-12 7.1/amd64/index.txt +; 696745984 10:28.18 2022-04-12 7.1/amd64/install71.img +; 588500992 10:27.52 2022-04-12 7.1/amd64/install71.iso +; 7783788 10:05.36 2022-04-12 7.1/amd64/man71.tgz +; 5832704 10:10.08 2022-04-12 7.1/amd64/miniroot71.img +; 98652 09:46.51 2022-04-12 7.1/amd64/pxeboot +; 56506993 10:27.06 2022-04-12 7.1/amd64/xbase71.tgz +; 23516363 10:27.17 2022-04-12 7.1/amd64/xfont71.tgz +; 20600147 10:27.18 2022-04-12 7.1/amd64/xserv71.tgz +; 4653425 10:27.18 2022-04-12 7.1/amd64/xshare71.tgz +7.1/amd64/BOOTIA32.EFI CDB08B3E +7.1/amd64/BOOTX64.EFI 71E3C089 +7.1/amd64/BUILDINFO FC2804F3 +7.1/amd64/INSTALL.amd64 5C3724AD +7.1/amd64/SHA256 0A058594 +7.1/amd64/SHA256.sig 5FAA53E0 +7.1/amd64/base71.tgz 13B2179E +7.1/amd64/bsd A80438B0 +7.1/amd64/bsd.mp 2EB0BB0F +7.1/amd64/bsd.rd 85486877 +7.1/amd64/cd71.iso 6E7472B3 +7.1/amd64/cdboot E7F94BEF +7.1/amd64/cdbr 9F51A0BC +7.1/amd64/comp71.tgz B61ED148 +7.1/amd64/floppy71.img 69D61355 +7.1/amd64/game71.tgz C82C5F13 +7.1/amd64/index.txt A615F95F +7.1/amd64/install71.img 701E882D +7.1/amd64/install71.iso B9CA3606 +7.1/amd64/man71.tgz 57B33255 +7.1/amd64/miniroot71.img E9447B9B +7.1/amd64/pxeboot CAB04BB8 +7.1/amd64/xbase71.tgz C9B24329 +7.1/amd64/xfont71.tgz EE8F05F4 +7.1/amd64/xserv71.tgz 9F1F9787 +7.1/amd64/xshare71.tgz 00474C06 diff --git a/vendor/README.md b/vendor/README.md index 19c212d0bc..17d79cfa7d 100644 --- a/vendor/README.md +++ b/vendor/README.md @@ -473,6 +473,7 @@ This is a list of grammars that Linguist selects to provide syntax highlighting - **ShellSession:** [atom/language-shellscript](https://github.com/atom/language-shellscript) - **Shen:** [rkoeninger/sublime-shen](https://github.com/rkoeninger/sublime-shen) - **Sieve:** [Alhadis/language-etc](https://github.com/Alhadis/language-etc) +- **Simple File Verification:** [Alhadis/language-etc](https://github.com/Alhadis/language-etc) - **Singularity:** [onnovalkering/vscode-singularity](https://github.com/onnovalkering/vscode-singularity) - **Slash:** [slash-lang/Slash.tmbundle](https://github.com/slash-lang/Slash.tmbundle) - **Slice:** [zeroc-ice/vscode-slice](https://github.com/zeroc-ice/vscode-slice) diff --git a/vendor/grammars/language-etc b/vendor/grammars/language-etc index 2ab09f098f..7f0f5daed4 160000 --- a/vendor/grammars/language-etc +++ b/vendor/grammars/language-etc @@ -1 +1 @@ -Subproject commit 2ab09f098fd13a84c391d726c977d6d187aee62f +Subproject commit 7f0f5daed430aa8d8b85c91850743beaff781909 diff --git a/vendor/licenses/git_submodule/language-etc.dep.yml b/vendor/licenses/git_submodule/language-etc.dep.yml index 1fd9052605..c630b4790e 100644 --- a/vendor/licenses/git_submodule/language-etc.dep.yml +++ b/vendor/licenses/git_submodule/language-etc.dep.yml @@ -1,6 +1,6 @@ --- name: language-etc -version: 2ab09f098fd13a84c391d726c977d6d187aee62f +version: 7f0f5daed430aa8d8b85c91850743beaff781909 type: git_submodule homepage: https://github.com/Alhadis/language-etc license: isc