Skip to content

Commit

Permalink
trim labeldefs
Browse files Browse the repository at this point in the history
  • Loading branch information
bcpeinhardt committed Oct 29, 2024
1 parent 5e3e238 commit 63c738e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion squared_away_lang/src/squared_away_lang/scanner.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -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)])
}
}

Expand Down

0 comments on commit 63c738e

Please sign in to comment.