diff --git a/CHANGELOG.md b/CHANGELOG.md index 7cd1b29..b22c2a5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ * [Added] get_origin to SyntaxTree * [Fixed] unwrap_node import +* [Fixed] spacing of text macro usage ## [v0.2.0](https://github.com/dalance/sv-parser/compare/v0.1.4...v0.2.0) - 2019-10-16 diff --git a/sv-parser-parser/src/general/compiler_directives.rs b/sv-parser-parser/src/general/compiler_directives.rs index 674690a..a55b48f 100644 --- a/sv-parser-parser/src/general/compiler_directives.rs +++ b/sv-parser-parser/src/general/compiler_directives.rs @@ -281,7 +281,7 @@ pub(crate) fn default_text(s: Span) -> IResult { #[packrat_parser] pub(crate) fn text_macro_usage(s: Span) -> IResult { let (s, a) = symbol("`")(s)?; - let (s, b) = text_macro_identifier_exact(s)?; + let (s, b) = text_macro_identifier(s)?; let (s, c) = opt(paren(list_of_actual_arguments))(s)?; Ok((s, TextMacroUsage { nodes: (a, b, c) })) }