Skip to content

Commit

Permalink
http
Browse files Browse the repository at this point in the history
  • Loading branch information
p4ymak committed Feb 12, 2024
1 parent 0c79bec commit aadae61
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/syntax/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,12 @@ impl Syntax {
..self
}
}
pub fn with_hyperlinks<T: Into<BTreeSet<&'static str>>>(self, hyperlinks: T) -> Self {
Syntax {
hyperlinks: hyperlinks.into(),
..self
}
}
pub fn with_keywords<T: Into<BTreeSet<&'static str>>>(self, keywords: T) -> Self {
Syntax {
keywords: keywords.into(),
Expand Down

0 comments on commit aadae61

Please sign in to comment.