just/tests/lib.rs
Casey Rodarmor aa506fa5bd
Allow ignore line endings inside delimiters (#717)
Modify the lexer to keep track of opening `({[` and closing `]})` delimiters.
When the lexer would emit an eol or indent outside of a recipe when there
is at least one open delimiter, emit a whitespace token instead.

This allows expressions to be split on multiple lines, like so:

    x := if 'a' == 'b' {
      'x'
    } else {
      'y'
    }

This does not work inside of recipe body interpolations, although this
restriction might relaxed in the future.
2020-10-27 23:51:17 -07:00

22 lines
275 B
Rust

#[macro_use]
mod test;
mod common;
mod choose;
mod completions;
mod conditional;
mod delimiters;
mod dotenv;
mod edit;
mod error_messages;
mod examples;
mod init;
mod interrupts;
mod invocation_directory;
mod misc;
mod readme;
mod search;
mod shell;
mod working_directory;