feat: add todo_type method in Headline
This commit is contained in:
parent
c432d335f1
commit
2f64e1e6af
7 changed files with 69 additions and 32 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue