diff --git a/lib/linguist/languages.yml b/lib/linguist/languages.yml index 27ed9abcf0..e46b6df960 100644 --- a/lib/linguist/languages.yml +++ b/lib/linguist/languages.yml @@ -958,6 +958,39 @@ Charity: tm_scope: none ace_mode: text language_id: 56 +Checksums: + type: data + tm_scope: text.checksums + aliases: + - checksum + - hash + - hashes + - sum + - sums + filenames: + - MD5SUMS + - SHA1SUMS + - SHA256SUMS + - SHA256SUMS.txt + - SHA512SUMS + - checksums.txt + - cksums + - md5sum.txt + extensions: + - ".crc32" + - ".md2" + - ".md4" + - ".md5" + - ".sha1" + - ".sha2" + - ".sha224" + - ".sha256" + - ".sha256sum" + - ".sha3" + - ".sha384" + - ".sha512" + ace_mode: text + language_id: 372063053 ChucK: type: programming color: "#3f8000" diff --git a/samples/Checksums/bsd-style.sha256 b/samples/Checksums/bsd-style.sha256 new file mode 100644 index 0000000000..f0c8099628 --- /dev/null +++ b/samples/Checksums/bsd-style.sha256 @@ -0,0 +1,3 @@ +SHA256 (empty) = e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 +SHA256 (file0) = 0000000000000000000000000000000000000000000000000000000000000000 +SHA256 (file1) = 0000000000000000000000000000000000000000000000000000000000000001 diff --git a/samples/Checksums/filenames/SHA256SUMS b/samples/Checksums/filenames/SHA256SUMS new file mode 100644 index 0000000000..f485ee1f84 --- /dev/null +++ b/samples/Checksums/filenames/SHA256SUMS @@ -0,0 +1,3 @@ +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 *empty_binary_file +0000000000000000000000000000000000000000000000000000000000000000 *file0 +0000000000000000000000000000000000000000000000000000000000000001 *file1 diff --git a/samples/Checksums/filenames/SHA256SUMS.txt b/samples/Checksums/filenames/SHA256SUMS.txt new file mode 100644 index 0000000000..f0c8099628 --- /dev/null +++ b/samples/Checksums/filenames/SHA256SUMS.txt @@ -0,0 +1,3 @@ +SHA256 (empty) = e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 +SHA256 (file0) = 0000000000000000000000000000000000000000000000000000000000000000 +SHA256 (file1) = 0000000000000000000000000000000000000000000000000000000000000001 diff --git a/samples/Checksums/gnu-style-text.sha256 b/samples/Checksums/gnu-style-text.sha256 new file mode 100644 index 0000000000..77fff0d158 --- /dev/null +++ b/samples/Checksums/gnu-style-text.sha256 @@ -0,0 +1 @@ +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 empty_text_file diff --git a/samples/Checksums/gnu-style.sha256 b/samples/Checksums/gnu-style.sha256 new file mode 100644 index 0000000000..f485ee1f84 --- /dev/null +++ b/samples/Checksums/gnu-style.sha256 @@ -0,0 +1,3 @@ +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 *empty_binary_file +0000000000000000000000000000000000000000000000000000000000000000 *file0 +0000000000000000000000000000000000000000000000000000000000000001 *file1 diff --git a/samples/Checksums/single_hash.crc32 b/samples/Checksums/single_hash.crc32 new file mode 100644 index 0000000000..536e35fcfb --- /dev/null +++ b/samples/Checksums/single_hash.crc32 @@ -0,0 +1 @@ +ffffffff diff --git a/samples/Checksums/single_hash.md2 b/samples/Checksums/single_hash.md2 new file mode 100644 index 0000000000..fe361f0340 --- /dev/null +++ b/samples/Checksums/single_hash.md2 @@ -0,0 +1 @@ +8350e5a3e24c153df2275c9f80692773 diff --git a/samples/Checksums/single_hash.md4 b/samples/Checksums/single_hash.md4 new file mode 100644 index 0000000000..f5c84055ad --- /dev/null +++ b/samples/Checksums/single_hash.md4 @@ -0,0 +1 @@ +31d6cfe0d16ae931b73c59d7e0c089c0 diff --git a/samples/Checksums/single_hash.md5 b/samples/Checksums/single_hash.md5 new file mode 100644 index 0000000000..df9edc403d --- /dev/null +++ b/samples/Checksums/single_hash.md5 @@ -0,0 +1 @@ +d41d8cd98f00b204e9800998ecf8427e diff --git a/samples/Checksums/single_hash.sha1 b/samples/Checksums/single_hash.sha1 new file mode 100644 index 0000000000..be0e2cdbdc --- /dev/null +++ b/samples/Checksums/single_hash.sha1 @@ -0,0 +1 @@ +da39a3ee5e6b4b0d3255bfef95601890afd80709 diff --git a/samples/Checksums/single_hash.sha224 b/samples/Checksums/single_hash.sha224 new file mode 100644 index 0000000000..6c38d98c01 --- /dev/null +++ b/samples/Checksums/single_hash.sha224 @@ -0,0 +1 @@ +d14a028c2a3a2bc9476102bb288234c415a2b01f828ea62ac5b3e42f diff --git a/samples/Checksums/single_hash.sha256 b/samples/Checksums/single_hash.sha256 new file mode 100644 index 0000000000..c306804026 --- /dev/null +++ b/samples/Checksums/single_hash.sha256 @@ -0,0 +1 @@ +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 diff --git a/samples/Checksums/single_hash.sha384 b/samples/Checksums/single_hash.sha384 new file mode 100644 index 0000000000..9663344e7f --- /dev/null +++ b/samples/Checksums/single_hash.sha384 @@ -0,0 +1 @@ +38b060a751ac96384cd9327eb1b1e36a21fdb71114be07434c0cc7bf63f6e1da274edebfe76f65fbd51ad2f14898b95b diff --git a/samples/Checksums/single_hash.sha512 b/samples/Checksums/single_hash.sha512 new file mode 100644 index 0000000000..c2f1924ca3 --- /dev/null +++ b/samples/Checksums/single_hash.sha512 @@ -0,0 +1 @@ +cf83e1357eefb8bdf1542850d66d8007d620e4050b5715dc83f4a921d36ce9ce47d0d13c5d85f2b0ff8318d2877eec2f63b931bd47417a81a538327af927da3e diff --git a/samples/Checksums/single_hash_dec.crc32 b/samples/Checksums/single_hash_dec.crc32 new file mode 100644 index 0000000000..4f6ff861c9 --- /dev/null +++ b/samples/Checksums/single_hash_dec.crc32 @@ -0,0 +1 @@ +4294967295 diff --git a/samples/Checksums/single_hash_no_trailing_newline.sha256 b/samples/Checksums/single_hash_no_trailing_newline.sha256 new file mode 100644 index 0000000000..293ce40fd6 --- /dev/null +++ b/samples/Checksums/single_hash_no_trailing_newline.sha256 @@ -0,0 +1 @@ +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 \ No newline at end of file diff --git a/samples/Checksums/zero.sha2 b/samples/Checksums/zero.sha2 new file mode 100644 index 0000000000..cd09bbf164 --- /dev/null +++ b/samples/Checksums/zero.sha2 @@ -0,0 +1 @@ +0000000000000000000000000000000000000000000000000000000000000000 diff --git a/samples/Checksums/zero.sha3 b/samples/Checksums/zero.sha3 new file mode 100644 index 0000000000..e24f633b73 --- /dev/null +++ b/samples/Checksums/zero.sha3 @@ -0,0 +1 @@ +00000000000000000000000000000000000000000000000000000000 diff --git a/vendor/README.md b/vendor/README.md index 9ca0f7e779..1470d57e4a 100644 --- a/vendor/README.md +++ b/vendor/README.md @@ -89,6 +89,7 @@ This is a list of grammars that Linguist selects to provide syntax highlighting - **CartoCSS:** [yohanboniface/carto-atom](https://github.com/yohanboniface/carto-atom) - **Ceylon:** [jeancharles-roger/ceylon-sublimetext](https://github.com/jeancharles-roger/ceylon-sublimetext) - **Chapel:** [chapel-lang/chapel-tmbundle](https://github.com/chapel-lang/chapel-tmbundle) +- **Checksums:** [Alhadis/language-etc](https://github.com/Alhadis/language-etc) - **ChucK:** [textmate/java.tmbundle](https://github.com/textmate/java.tmbundle) - **Cirru:** [Cirru/sublime-cirru](https://github.com/Cirru/sublime-cirru) - **Clarion:** [fushnisoft/SublimeClarion](https://github.com/fushnisoft/SublimeClarion)