Add my implementation of a take_until_parser_matches parser.

The author of nom is too busy to review the PR, and cargo does not allow for git dependencies, so I am going to copy my implementation into this code base so I can use upstream nom so I can push to cargo. While this code has been submitted upstream to nom which is under the MIT license, I am the author of this code so I believe I have the full right to also release it in this project under the 0BSD license.
This commit is contained in:
Tom Alexander
2021-02-06 16:23:54 -05:00
parent b4dd4cebfd
commit 0302ed216f
4 changed files with 102 additions and 2 deletions

View File

@@ -24,6 +24,8 @@ path = "src/bin.rs"
required-features = ["json-integration"]
[dependencies]
nom = { git = "https://github.com/tomalexander/nom.git", branch = "take_until_parser_matches" }
nom = "6.1.0"
# The author of nom is too busy to review the PR, and cargo does not allow for git dependencies, so I am going to copy my implementation into this code base so I can use upstream nom so I can push to cargo.
# nom = { git = "https://github.com/tomalexander/nom.git", branch = "take_until_parser_matches" }
serde = { version = "1.0.106", optional = true }
serde_json = { version = "1.0.51", optional = true }