mirror of
https://github.com/RustPython/Parser.git
synced 2025-09-01 16:18:18 +00:00
Implement Tok::Comment
This commit is contained in:
parent
a5b59f3c9d
commit
b6c230f3ca
4 changed files with 23 additions and 9 deletions
|
@ -25,6 +25,7 @@ pub enum Tok {
|
|||
Rsqb,
|
||||
Colon,
|
||||
Comma,
|
||||
Comment,
|
||||
Semi,
|
||||
Plus,
|
||||
Minus,
|
||||
|
@ -155,6 +156,7 @@ impl fmt::Display for Tok {
|
|||
Rsqb => f.write_str("']'"),
|
||||
Colon => f.write_str("':'"),
|
||||
Comma => f.write_str("','"),
|
||||
Comment => f.write_str("#"),
|
||||
Semi => f.write_str("';'"),
|
||||
Plus => f.write_str("'+'"),
|
||||
Minus => f.write_str("'-'"),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue