Skip to content

Commit

Permalink
Add mapping for Unix mail spool (sharkdp#2156)
Browse files Browse the repository at this point in the history
  • Loading branch information
cyqsimon authored Apr 27, 2022
1 parent 4291fd5 commit 3ae0533
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

- Mapped clang-format config file (.clang-format) to YAML syntax (@TruncatedDinosour)
- log syntax: improved handling of escape characters in double quoted strings. See #2123 (@keith-hall)
- Associate `/var/spool/mail/*` and `/var/mail/*` with the `Email` syntax. See #2156 (@cyqsimon)
- Added cmd-help syntax to scope --help messages. See #2148 (@victor-gp)

## Themes
Expand Down
5 changes: 5 additions & 0 deletions src/syntax_mapping.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,11 @@ impl<'a> SyntaxMapping<'a> {
mapping.insert(glob, MappingTarget::MapTo("INI")).unwrap();
}

// unix mail spool
for glob in &["/var/spool/mail/*", "/var/mail/*"] {
mapping.insert(glob, MappingTarget::MapTo("Email")).unwrap()
}

// pacman hooks
mapping
.insert("*.hook", MappingTarget::MapTo("INI"))
Expand Down

0 comments on commit 3ae0533

Please sign in to comment.