diff --git a/src/utils/strings.rs b/src/utils/strings.rs index 7f0028c..af6433b 100644 --- a/src/utils/strings.rs +++ b/src/utils/strings.rs @@ -12,7 +12,7 @@ use crate::{Scope, Token}; use super::{as_hex, hex_char_for, is_name, is_name_start, parse_interpolation}; -fn ident_body>( +fn ident_body_no_interpolation>( toks: &mut PeekMoreIterator, unit: bool, mut span: Span, @@ -205,7 +205,7 @@ pub(crate) fn eat_ident_no_interpolation>( if toks.peek().unwrap().kind == '-' { toks.next(); text.push('-'); - text.push_str(&ident_body(toks, unit, span)?.node); + text.push_str(&ident_body_no_interpolation(toks, unit, span)?.node); return Ok(Spanned { node: text, span }); } } @@ -224,7 +224,7 @@ pub(crate) fn eat_ident_no_interpolation>( return Err(("Expected identifier.", first.pos()).into()); } - let body = ident_body(toks, unit, span)?; + let body = ident_body_no_interpolation(toks, unit, span)?; span = span.merge(body.span); text.push_str(&body.node); Ok(Spanned { node: text, span })