Revert "Migrate most uses of the Span concept to Tag"

This commit is contained in:
Jonathan Turner
2019-09-11 19:53:05 +12:00
committed by GitHub
parent f05c7d6792
commit bee7c5639c
97 changed files with 1255 additions and 1174 deletions

View File

@ -21,10 +21,10 @@ pub(crate) use parse::unit::Unit;
pub(crate) use parse_command::parse_command;
pub(crate) use registry::CommandRegistry;
pub fn parse(input: &str, origin: uuid::Uuid) -> Result<TokenNode, ShellError> {
pub fn parse(input: &str) -> Result<TokenNode, ShellError> {
let _ = pretty_env_logger::try_init();
match pipeline(nom_input(input, origin)) {
match pipeline(nom_input(input)) {
Ok((_rest, val)) => Ok(val),
Err(err) => Err(ShellError::parse_error(err)),
}