From 63c738ee47b60b652432d8ba80881704ad24ced2 Mon Sep 17 00:00:00 2001 From: Benjamin Date: Tue, 29 Oct 2024 00:46:56 -0500 Subject: [PATCH] trim labeldefs --- squared_away_lang/src/squared_away_lang/scanner.gleam | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/squared_away_lang/src/squared_away_lang/scanner.gleam b/squared_away_lang/src/squared_away_lang/scanner.gleam index cad67f1..51d3969 100644 --- a/squared_away_lang/src/squared_away_lang/scanner.gleam +++ b/squared_away_lang/src/squared_away_lang/scanner.gleam @@ -11,7 +11,7 @@ pub fn scan(src: String) -> Result(List(token.Token), scan_error.ScanError) { case string.trim(src) { "" -> Ok([]) "=" <> rest -> do_scan(rest |> string.trim_left, []) - _ -> Ok([token.LabelDef(src)]) + _ -> Ok([token.LabelDef(src |> string.trim)]) } }