• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1Hello, and thank you for submitting an issue to nom!
2
3
4First, please note that, for family reasons, I have limited time to work on
5nom, so following the advice here will make sure I will quickly understand
6your problem and answer as soon as possible.
7Second, if I don't get to work on your issue quickly, that does not mean I
8don't consider it important or useful. Major version releases happen once
9a year, and a lot of fixes are done for the occasion, once I have had time
10to think of the right solution. So I will get back to you :)
11
12## Prerequisites
13
14Here are a few things you should provide to help me understand the issue:
15
16- Rust version : `rustc -V`
17- nom version :
18- nom compilation features used:
19
20## Test case
21
22Please provide a short, complete (with crate import, etc) test case for
23the issue, showing clearly the expected and obtained results.
24
25Example test case:
26
27```
28#[macro_use]
29extern crate nom;
30
31named!(multi<&[u8], Vec<&[u8]> >, many1!( tag!( "abcd" ) ) );
32
33let a = b"abcdabcd";
34
35fn main() {
36  let res = vec![&b"abcd"[..], &b"abcd"[..]];
37  assert_eq!(multi(&a[..]),Ok((&b""[..], res))); // returns Err::Incomplete(Unknown))
38}
39```
40
41