Fix spacing of test macro usage

This commit is contained in:
dalance 2019-10-25 12:05:23 +09:00
parent c6c315b300
commit cf31ec7148
2 changed files with 2 additions and 1 deletions

View File

@ -4,6 +4,7 @@
* [Added] get_origin to SyntaxTree * [Added] get_origin to SyntaxTree
* [Fixed] unwrap_node import * [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 ## [v0.2.0](https://github.com/dalance/sv-parser/compare/v0.1.4...v0.2.0) - 2019-10-16

View File

@ -281,7 +281,7 @@ pub(crate) fn default_text(s: Span) -> IResult<Span, DefaultText> {
#[packrat_parser] #[packrat_parser]
pub(crate) fn text_macro_usage(s: Span) -> IResult<Span, TextMacroUsage> { pub(crate) fn text_macro_usage(s: Span) -> IResult<Span, TextMacroUsage> {
let (s, a) = symbol("`")(s)?; 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)?; let (s, c) = opt(paren(list_of_actual_arguments))(s)?;
Ok((s, TextMacroUsage { nodes: (a, b, c) })) Ok((s, TextMacroUsage { nodes: (a, b, c) }))
} }