From 8ef16c6da66f4804e10e495735631ea66ec06626 Mon Sep 17 00:00:00 2001 From: Tanishq Kancharla Date: Fri, 1 Oct 2021 22:25:35 -0400 Subject: [PATCH] add source command --- crates/nu-parser/src/parser.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/nu-parser/src/parser.rs b/crates/nu-parser/src/parser.rs index d88c3f73d..2dd9714cc 100644 --- a/crates/nu-parser/src/parser.rs +++ b/crates/nu-parser/src/parser.rs @@ -1,5 +1,6 @@ use crate::{ lex, lite_parse, + parse_keywords::parse_source, type_check::{math_result_type, type_compatible}, LiteBlock, ParseError, Token, TokenContents, }; @@ -2585,7 +2586,7 @@ pub fn parse_statement( b"alias" => parse_alias(working_set, spans), b"module" => parse_module(working_set, spans), b"use" => parse_use(working_set, spans), - b"source" => parse_use(working_set, spans), + b"source" => parse_source(working_set, spans), _ => { let (expr, err) = parse_expression(working_set, spans); (Statement::Pipeline(Pipeline::from_vec(vec![expr])), err)