Repository navigation
Shell: handle CRLF, tab, comment, and backslash-newline line endings in the lexer #29670
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
robobun
wants to merge
22
commits into
main
Choose a base branch
from
farm/8a526bfc/shell-crlf-line-endings
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+583
−32
Open
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
76c483c
shell: normalize CRLF line endings in the shell lexer
robobun f16c43a
shell: trim CRLF lexer comments to house style
robobun 8b84ab6
shell: adapt CRLF handler to break_word(AddDelimiter), add mixed-EOL …
robobun 522c2ff
shell: cut CRLF lexer comments to the non-obvious invariants
robobun 9f83ed7
shell: one-line the escaped-CR comment
robobun d840d39
test(run-shell): pin the inner bun to bunExe() in the mixed-EOL fixture
robobun a68604c
shell: treat an unquoted tab as a word breaker
robobun b594d3d
shell: a backslash-newline inside a word joins it instead of splitting
robobun ea267c0
[autofix.ci] apply automated fixes
autofix-ci[bot] c5b3b80
shell: one-line the backslash-newline comment
robobun 703cef4
test: use the echo builtin in the continuation-join test, Windows has…
robobun 6970871
shell: a trailing comment ends the line instead of swallowing the new…
robobun 8136431
shell: a backslash-newline inside a variable name continues the name
robobun 7f3b097
test: format lex.test.ts
robobun 3902b61
shell: a newline after |, && or || continues the command
robobun ae8a8ad
shell: a backslash does not continue a comment
robobun f4c6412
shell: an escaped character ends a variable name
robobun 5bb9e12
shell: an interpolated value after \<newline> does not extend a varia…
robobun 2faef9e
shell: a # starts a comment wherever a new token starts
robobun 779690e
shell: a # after ** or an interpolated object stays literal
robobun d77a897
shell: a comment inside backticks ends at the closing backtick
robobun e93b4d7
shell: split the eat_comment comment into one line per check
robobun File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.