Skip to content

Allow fallthrough in last_case_item - #307

Open
unlimitedsola wants to merge 1 commit into
tree-sitter:masterfrom
sola-contrib:allow-fallthrough
Open

Allow fallthrough in last_case_item#307
unlimitedsola wants to merge 1 commit into
tree-sitter:masterfrom
sola-contrib:allow-fallthrough

Conversation

@unlimitedsola

Copy link
Copy Markdown

Although not really meaningful, bash will happily accept the last case item with ;& and ;;&.

This helps with writing short option parsing code like this:

case "-AR" in
-*A*) echo "A" ;;&
-*R*) echo "R" ;;&
esac

Although not really meaningful, bash will happily accept the last case
item with `;&` and `;;&`.
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.

1 participant