diff options
Diffstat (limited to 'parser/src/tests.rs')
| -rw-r--r-- | parser/src/tests.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/parser/src/tests.rs b/parser/src/tests.rs index b4da633..79438e0 100644 --- a/parser/src/tests.rs +++ b/parser/src/tests.rs @@ -104,6 +104,18 @@ fn two_targets() { }; } +#[test] +fn inline_code_literal_with_underscore() { + parses_to! { + parser: RstParser, + input: "``NAME_WITH_UNDERSCORE``", + rule: Rule::inline, + tokens: [ + literal(2, 22, [str_nested(2, 22)]), + ] + }; +} + #[allow(clippy::cognitive_complexity)] #[test] fn admonitions() { |
