feat: add todo_type method in Headline

This commit is contained in:
PoiScript 2023-11-20 01:46:13 +08:00
parent c432d335f1
commit 2f64e1e6af
No known key found for this signature in database
GPG key ID: 22C2B1249D99985E
7 changed files with 69 additions and 32 deletions

View file

@ -154,9 +154,6 @@ impl Headline {
pub fn end(&self) -> u32 {
self.syntax.text_range().end().into()
}
pub fn keyword(&self) -> Option<SyntaxToken> {
support::token(&self.syntax, HEADLINE_KEYWORD)
}
pub fn section(&self) -> Option<Section> {
support::child(&self.syntax)
}