Skip to content

Commit 6e5b6cf

Browse files
authored
Add quote for PEG_TRACE Cached (#398)
1 parent 79823ff commit 6e5b6cf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

peg-macros/translate.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,8 +267,8 @@ fn compile_rule(context: &Context, rule: &Rule) -> TokenStream {
267267
quote_spanned! { span =>
268268
let loc = ::peg::Parse::position_repr(__input, __pos);
269269
match &entry {
270-
&::peg::RuleResult::Matched(..) => println!("[PEG_TRACE] Cached match of rule {} at {}", #str_rule_name, loc),
271-
&Failed => println!("[PEG_TRACE] Cached fail of rule {} at {}", #str_rule_name, loc),
270+
&::peg::RuleResult::Matched(..) => println!("[PEG_TRACE] Cached match of rule `{}` at {}", #str_rule_name, loc),
271+
&Failed => println!("[PEG_TRACE] Cached fail of rule `{}` at {}", #str_rule_name, loc),
272272
};
273273
}
274274
} else {

0 commit comments

Comments
 (0)