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.
Fix #45 , Fix #47
Under the current rule for parsing of command, whether the command is a subexpression or not, line breaks are allowed between command arguments.
This causes the parser to fail to correctly detect the end of a command or pipeline.
This pr changes the rules to allow line breaks between command arguments only when the command is a subexpression.
After this change, the highlights looks like follows
![スクリーンショット 2023-12-27 215258](https://private-user-images.githubusercontent.com/17674842/293035720-e1549800-857f-4653-aebc-09dfe8f2f883.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyOTU0MjQsIm5iZiI6MTczOTI5NTEyNCwicGF0aCI6Ii8xNzY3NDg0Mi8yOTMwMzU3MjAtZTE1NDk4MDAtODU3Zi00NjUzLWFlYmMtMDlkZmU4ZjJmODgzLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjExVDE3MzIwNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTgzYzYzMjdiZTFiODJlZjk0MGRlNmY1YzkyZjlhMmI4MWQ5MjIyNjliODVjOTI4MTdkNmU0NzQ2MjFmZTk5ZDImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.RpbhN-eb4GWBOLRK4Idq75moxf-0Ftqvl2mpy4asrgs)
![スクリーンショット 2023-12-27 215503](https://private-user-images.githubusercontent.com/17674842/293035742-0389e7a9-94da-4b41-83b1-661ac6f46303.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyOTU0MjQsIm5iZiI6MTczOTI5NTEyNCwicGF0aCI6Ii8xNzY3NDg0Mi8yOTMwMzU3NDItMDM4OWU3YTktOTRkYS00YjQxLTgzYjEtNjYxYWM2ZjQ2MzAzLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjExVDE3MzIwNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTczN2I1NDc5NjQwYTY5OGQ4OGQ3OWRhYWRjYjI1ZGRkZTliZWYyMDVhYWUwMWM4OTE4YjM2MTdiODgzZDIxOTEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.3kfIon5ulVAHxBy5ZraqyoStvsX5zgg0kAiA40fssWQ)