We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Consider the following code:
#[derive(Nom)] #[nom(LittleEndian, Selector = "FileType")] pub enum FileBody { #[nom(Selector = "FileType::DIR")] Dir(DirEntry), #[nom(Selector = "FileType::FILE | FileType::BYTES")] File(FileEntry), }
This fails with the following error message:
proc-macro derive panicked message: Parsing the 'nom' meta attribute failed: Error("unexpected token")
Stacking selector attributes results in runtime parsing errors:
#[derive(Nom)] #[nom(LittleEndian, Selector = "FileType")] pub enum FileBody { #[nom(Selector = "FileType::DIR")] Dir(DirEntry), #[nom(Selector = "FileType::FILE")] #[nom(Selector = "FileType::BYTES")] File(FileEntry), }
Or:
#[derive(Nom)] #[nom(LittleEndian, Selector = "FileType")] pub enum FileBody { #[nom(Selector = "FileType::DIR")] Dir(DirEntry), #[nom(Selector = "FileType::FILE", Selector = "FileType::BYTES")] File(FileEntry), }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Consider the following code:
This fails with the following error message:
Stacking selector attributes results in runtime parsing errors:
Or:
The text was updated successfully, but these errors were encountered: