Skip to content

Commit ec0c84b

Browse files
committed
Make LitCStr peekable
1 parent 8cb56cc commit ec0c84b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/token.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ use crate::error::Result;
9898
#[cfg(feature = "parsing")]
9999
use crate::lifetime::Lifetime;
100100
#[cfg(feature = "parsing")]
101-
use crate::lit::{Lit, LitBool, LitByte, LitByteStr, LitChar, LitFloat, LitInt, LitStr};
101+
use crate::lit::{Lit, LitBool, LitByte, LitByteStr, LitCStr, LitChar, LitFloat, LitInt, LitStr};
102102
#[cfg(feature = "parsing")]
103103
use crate::parse::{Parse, ParseStream};
104104
use crate::span::IntoSpans;
@@ -199,6 +199,7 @@ impl_token!("lifetime" Lifetime);
199199
impl_token!("literal" Lit);
200200
impl_token!("string literal" LitStr);
201201
impl_token!("byte string literal" LitByteStr);
202+
impl_token!("C-string literal" LitCStr);
202203
impl_token!("byte literal" LitByte);
203204
impl_token!("character literal" LitChar);
204205
impl_token!("integer literal" LitInt);

0 commit comments

Comments
 (0)