diff options
| author | Laurenz <laurmaedje@gmail.com> | 2020-02-07 22:29:16 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2020-02-07 22:29:16 +0100 |
| commit | 4e8359385f73e549a563fd356b6858050464991d (patch) | |
| tree | b613f3032e623f739b22b24ebf62704f5896ae36 /src/syntax/mod.rs | |
| parent | 02dc29d18a7b67edf0eaa5d125be22eec6cfebb7 (diff) | |
Improve syntax testing framework ♻
... and finally expand a few escape sequences in strings.
Diffstat (limited to 'src/syntax/mod.rs')
| -rw-r--r-- | src/syntax/mod.rs | 7 |
1 files changed, 4 insertions, 3 deletions
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. |
