Skip to content

fix(lexer): parse absolute file paths in Output and Source#766

Open
Krshs90 wants to merge 1 commit into
charmbracelet:mainfrom
Krshs90:fix/absolute-paths-741
Open

fix(lexer): parse absolute file paths in Output and Source#766
Krshs90 wants to merge 1 commit into
charmbracelet:mainfrom
Krshs90:fix/absolute-paths-741

Conversation

@Krshs90

@Krshs90 Krshs90 commented Jul 17, 2026

Copy link
Copy Markdown

Fixes #741. Fixes the lexer so that it correctly handles absolute paths in commands like \Output\ and \Source. Previously, the lexer always treated /\ as a regular expression delimiter, making absolute paths impossible to use without quoting them. Now the lexer is context-aware and only parses /\ as a regex when it follows commands that expect a regex (like \Wait\ or \Set).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Output command fails to parse absolute file paths

1 participant