diff --git a/ast/src/expression/value.rs b/ast/src/expression/value.rs index e153801cbd..09e190b96f 100644 --- a/ast/src/expression/value.rs +++ b/ast/src/expression/value.rs @@ -66,7 +66,7 @@ impl Node for ValueExpression { | Char(_, span) | Field(_, span) | Implicit(_, span) - | Integer(_, _, span) // => span, + | Integer(_, _, span) | String(_, span) => span, Group(group) => match &**group { GroupValue::Single(_, span) | GroupValue::Tuple(GroupTuple { span, .. }) => span, @@ -82,7 +82,7 @@ impl Node for ValueExpression { | Char(_, span) | Field(_, span) | Implicit(_, span) - | Integer(_, _, span) // => *span = new_span, + | Integer(_, _, span) | String(_, span) => *span = new_span, Group(group) => match &mut **group { GroupValue::Single(_, span) | GroupValue::Tuple(GroupTuple { span, .. }) => *span = new_span, diff --git a/parser/src/tokenizer/lexer.rs b/parser/src/tokenizer/lexer.rs index 96c6807bb6..da94586407 100644 --- a/parser/src/tokenizer/lexer.rs +++ b/parser/src/tokenizer/lexer.rs @@ -62,7 +62,7 @@ fn eat_identifier(input_tendril: &StrTendril) -> Option { impl Token { /// - /// Eats symbol. Used for string literals and char literals + /// Eats String. Returns Token::StringLiteral with processed contents of the string. /// fn eat_string(input_tendril: &StrTendril) -> (usize, Option) { if input_tendril.is_empty() {