Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for checksum lists #5138

Merged
merged 11 commits into from
Jun 8, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions grammars.yml
Original file line number Diff line number Diff line change
Expand Up @@ -459,6 +459,7 @@ vendor/grammars/language-etc:
- source.ucd.nameslist
- source.ucd.unidata
- source.wgetrc
- text.checksums
- text.openbsd-pkg.desc
- text.xml.svg
vendor/grammars/language-faust:
Expand Down
116 changes: 116 additions & 0 deletions lib/linguist/languages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -766,6 +766,122 @@ Charity:
tm_scope: none
ace_mode: text
language_id: 56
Checksums:
type: data
tm_scope: text.checksums
aliases:
- checksum
- hash
- hashes
- sum
- sums
filenames:
- CHECKSUM
- CHECKSUMS
- CKSUM
- CKSUMS
- CRC
- CRC32
theonlypwner marked this conversation as resolved.
Show resolved Hide resolved
- CRC32SUM
- CRC32SUMS
- CRCSUM
- CRCSUMS
- MD2
- MD2SUM
- MD2SUMS
- MD4
- MD4SUM
- MD4SUMS
- MD5
- MD5SUM
theonlypwner marked this conversation as resolved.
Show resolved Hide resolved
- MD5SUMS
- RMD160
- RMD160SUM
- RMD160SUMS
- SHA1
- SHA1SUM
theonlypwner marked this conversation as resolved.
Show resolved Hide resolved
- SHA1SUMS
- SHA2
- SHA224
- SHA224SUM
- SHA224SUMS
- SHA256
- SHA256SUM
theonlypwner marked this conversation as resolved.
Show resolved Hide resolved
- SHA256SUMS
theonlypwner marked this conversation as resolved.
Show resolved Hide resolved
- SHA2SUM
- SHA2SUMS
- SHA3
- SHA384
- SHA384SUM
- SHA384SUMS
- SHA3SUM
- SHA3SUMS
- SHA512
- SHA512SUM
theonlypwner marked this conversation as resolved.
Show resolved Hide resolved
- SHA512SUMS
- SUM
- SUMS
- checksum
- checksums
- cksum
theonlypwner marked this conversation as resolved.
Show resolved Hide resolved
- cksums
- crc
- crc32
- crc32sum
- crc32sums
- crcsum
- crcsums
- md2
- md2sum
- md2sums
- md4
- md4sum
- md4sums
- md5
- md5sum
- md5sums
- rmd160
- rmd160sum
- rmd160sums
- sha1
- sha1sum
- sha1sums
- sha2
- sha224
- sha224sum
- sha224sums
- sha256
- sha256sum
- sha256sums
- sha2sum
- sha2sums
- sha3
- sha384
- sha384sum
- sha384sums
- sha3sum
- sha3sums
- sha512
- sha512sum
- sha512sums
- sum
- sums
theonlypwner marked this conversation as resolved.
Show resolved Hide resolved
theonlypwner marked this conversation as resolved.
Show resolved Hide resolved
extensions:
- ".crc"
- ".crc32"
- ".md2"
- ".md4"
- ".md5"
- ".rmd160"
theonlypwner marked this conversation as resolved.
Show resolved Hide resolved
- ".sha1"
- ".sha2"
- ".sha224"
- ".sha256"
- ".sha3"
- ".sha384"
- ".sha512"
ace_mode: text
language_id: 372063053
ChucK:
type: programming
extensions:
Expand Down
3 changes: 3 additions & 0 deletions samples/Checksums/bsd-style.sha256
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SHA256 (empty) = e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
SHA256 (file0) = 0000000000000000000000000000000000000000000000000000000000000000
SHA256 (file1) = 0000000000000000000000000000000000000000000000000000000000000001
3 changes: 3 additions & 0 deletions samples/Checksums/filenames/SHA256
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SHA256 (empty) = e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
SHA256 (file0) = 0000000000000000000000000000000000000000000000000000000000000000
SHA256 (file1) = 0000000000000000000000000000000000000000000000000000000000000001
1 change: 1 addition & 0 deletions samples/Checksums/filenames/SHA256SUM
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 empty_text_file
3 changes: 3 additions & 0 deletions samples/Checksums/filenames/SHA256SUMS
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 *empty_binary_file
0000000000000000000000000000000000000000000000000000000000000000 *file0
0000000000000000000000000000000000000000000000000000000000000001 *file1
3 changes: 3 additions & 0 deletions samples/Checksums/gnu-style.sha256
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 *empty_binary_file
0000000000000000000000000000000000000000000000000000000000000000 *file0
0000000000000000000000000000000000000000000000000000000000000001 *file1
1 change: 1 addition & 0 deletions samples/Checksums/single_hash.crc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ffffffff
Alhadis marked this conversation as resolved.
Show resolved Hide resolved
1 change: 1 addition & 0 deletions samples/Checksums/single_hash.crc32
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ffffffff
1 change: 1 addition & 0 deletions samples/Checksums/single_hash.md2
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
8350e5a3e24c153df2275c9f80692773
1 change: 1 addition & 0 deletions samples/Checksums/single_hash.md4
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
31d6cfe0d16ae931b73c59d7e0c089c0
1 change: 1 addition & 0 deletions samples/Checksums/single_hash.md5
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
d41d8cd98f00b204e9800998ecf8427e
1 change: 1 addition & 0 deletions samples/Checksums/single_hash.rmd160
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
9c1185a5c5e9fc54612808977ee8f548b2258d31
1 change: 1 addition & 0 deletions samples/Checksums/single_hash.sha1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
da39a3ee5e6b4b0d3255bfef95601890afd80709
1 change: 1 addition & 0 deletions samples/Checksums/single_hash.sha224
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
d14a028c2a3a2bc9476102bb288234c415a2b01f828ea62ac5b3e42f
1 change: 1 addition & 0 deletions samples/Checksums/single_hash.sha256
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
1 change: 1 addition & 0 deletions samples/Checksums/single_hash.sha384
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
38b060a751ac96384cd9327eb1b1e36a21fdb71114be07434c0cc7bf63f6e1da274edebfe76f65fbd51ad2f14898b95b
1 change: 1 addition & 0 deletions samples/Checksums/single_hash.sha512
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
cf83e1357eefb8bdf1542850d66d8007d620e4050b5715dc83f4a921d36ce9ce47d0d13c5d85f2b0ff8318d2877eec2f63b931bd47417a81a538327af927da3e
1 change: 1 addition & 0 deletions samples/Checksums/single_hash_dec.crc32
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
4294967295
1 change: 1 addition & 0 deletions samples/Checksums/single_hash_no_trailing_newline.sha256
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
1 change: 1 addition & 0 deletions samples/Checksums/zero.sha2
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0000000000000000000000000000000000000000000000000000000000000000
1 change: 1 addition & 0 deletions samples/Checksums/zero.sha3
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
00000000000000000000000000000000000000000000000000000000
1 change: 1 addition & 0 deletions vendor/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,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)
Expand Down
4 changes: 2 additions & 2 deletions vendor/licenses/git_submodule/language-etc.dep.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
---
name: language-etc
version: c74c8dfe66fd6239724cfd3a259de282234ac0d1
version: 1360c89e72ee623f7191d8c42c59f5bbd312c391
type: git_submodule
homepage: https://github.com/Alhadis/language-etc
license: isc
licenses:
- sources: LICENSE.md
text: |
Copyright (c) 2018-2020, John Gardner
Copyright (c) 2018-2021, John Gardner

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
Expand Down