From 4e8359385f73e549a563fd356b6858050464991d Mon Sep 17 00:00:00 2001 From: Laurenz Date: Fri, 7 Feb 2020 22:29:16 +0100 Subject: =?UTF-8?q?Improve=20syntax=20testing=20framework=20=E2=99=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ... and finally expand a few escape sequences in strings. --- src/syntax/mod.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/syntax/mod.rs') diff --git a/src/syntax/mod.rs b/src/syntax/mod.rs index 620a929e..f640f84e 100644 --- a/src/syntax/mod.rs +++ b/src/syntax/mod.rs @@ -9,6 +9,10 @@ use crate::{Pass, Feedback}; use crate::layout::{LayoutContext, Commands, Command}; use self::span::{Spanned, SpanVec}; +#[cfg(test)] +#[macro_use] +mod test; + pub mod expr; pub mod func; pub mod span; @@ -16,9 +20,6 @@ pub_use_mod!(scope); pub_use_mod!(parsing); pub_use_mod!(tokens); -#[cfg(test)] -mod test; - /// Represents a parsed piece of source that can be layouted and in the future /// also be queried for information used for refactorings, autocomplete, etc. -- cgit v1.2.3