Skip to content

Commit

Permalink
Preserve ending whitespace in each line
Browse files Browse the repository at this point in the history
  • Loading branch information
Trinovantes committed Jun 29, 2024
1 parent f8f66f2 commit f8d99d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Lexer/tokenizeInput.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export function tokenizeInput(input: string): Array<Token> {

tokens.push({
idx,
str: str.trimEnd(),
str,
})

idx = end + 1 // Skip \n character
Expand Down

0 comments on commit f8d99d6

Please sign in to comment.