Parse string literals
This commit is contained in:
parent
867595b5b9
commit
82e5b589e1
2 changed files with 41 additions and 7 deletions
|
|
@ -61,8 +61,6 @@ pub enum StringLitElem {
|
|||
Unicode(char),
|
||||
/// `\\`
|
||||
Backslash,
|
||||
/// `\'`
|
||||
SingleQuote,
|
||||
/// `\"'`
|
||||
DoubleQuote,
|
||||
/// `\t`
|
||||
|
|
@ -77,8 +75,8 @@ pub enum StringLitElem {
|
|||
/// - `""`
|
||||
#[derive(Debug, Clone)]
|
||||
pub struct StringLit {
|
||||
elems: Vec<StringLitElem>,
|
||||
span: Span,
|
||||
pub elems: Vec<StringLitElem>,
|
||||
pub span: Span,
|
||||
}
|
||||
|
||||
impl HasSpan for StringLit {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue