diff --git a/src/custom_syntax.rs b/src/custom_syntax.rs
index f718b0e3..95ec521a 100644
--- a/src/custom_syntax.rs
+++ b/src/custom_syntax.rs
@@ -3,12 +3,12 @@
use crate::ast::Expr;
use crate::engine::EvalContext;
use crate::func::native::SendSync;
+use crate::parser::ParseResult;
use crate::r#unsafe::unsafe_try_cast;
use crate::tokenizer::{is_valid_identifier, Token};
use crate::types::dynamic::Variant;
use crate::{
- Engine, Identifier, ImmutableString, LexError, ParseError, Position, RhaiResult, Shared,
- StaticVec, INT,
+ Engine, Identifier, ImmutableString, LexError, Position, RhaiResult, Shared, StaticVec, INT,
};
#[cfg(feature = "no_std")]
use std::prelude::v1::*;
@@ -47,11 +47,11 @@ pub type FnCustomSyntaxEval = dyn Fn(&mut EvalContext, &[Expression]) -> RhaiRes
/// A general expression parsing trait object.
#[cfg(not(feature = "sync"))]
pub type FnCustomSyntaxParse =
- dyn Fn(&[ImmutableString], &str) -> Result