refactor: keyword
This commit is contained in:
parent
da04d3d25d
commit
74781e6e7e
7 changed files with 144 additions and 128 deletions
|
|
@ -112,9 +112,9 @@ pub enum Event<'a> {
|
|||
ListItemBeg,
|
||||
ListItemEnd,
|
||||
|
||||
AffKeywords,
|
||||
|
||||
Call,
|
||||
Call {
|
||||
value: &'a str,
|
||||
},
|
||||
|
||||
Clock,
|
||||
|
||||
|
|
@ -131,7 +131,7 @@ pub enum Event<'a> {
|
|||
cont: &'a str,
|
||||
},
|
||||
Keyword {
|
||||
key: &'a str,
|
||||
key: Key<'a>,
|
||||
value: &'a str,
|
||||
},
|
||||
Rule,
|
||||
|
|
@ -253,6 +253,7 @@ impl<'a> Parser<'a> {
|
|||
self.off += off;
|
||||
|
||||
match ele {
|
||||
Element::Call { value } => Event::Call { value },
|
||||
Element::Comment(c) => Event::Comment(c),
|
||||
Element::CommentBlock { args, cont } => Event::CommentBlock { args, cont },
|
||||
Element::CtrBlock { .. } => Event::CtrBlockBeg,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue