tokenize ...
This commit is contained in:
parent
a66c2e05f9
commit
15199f869f
@ -19,6 +19,8 @@ pub enum SimpleToken {
|
||||
SemiColon,
|
||||
/// `@` - lambda parameter alias
|
||||
At,
|
||||
/// `...` - accept unknown named parameters
|
||||
Ellipsis,
|
||||
/// `.` - attribute selection
|
||||
Dot,
|
||||
/// `?` - has attribute
|
||||
@ -125,6 +127,7 @@ fn simple_op(span: SpanRef) -> PResult<SpannedData<Token>> {
|
||||
simple_tagged(":", SimpleToken::Colon),
|
||||
simple_tagged(";", SimpleToken::SemiColon),
|
||||
simple_tagged("@", SimpleToken::At),
|
||||
simple_tagged("...", SimpleToken::Ellipsis),
|
||||
simple_tagged(".", SimpleToken::Dot),
|
||||
simple_tagged("?", SimpleToken::QuestionMark),
|
||||
simple_tagged("//", SimpleToken::DoubleSlash),
|
||||
|
Loading…
Reference in New Issue
Block a user