Skip to content
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

Grammar does not support case fallthrough terminators #40

Closed
mm4nn opened this issue Dec 14, 2018 · 0 comments · Fixed by #85
Closed

Grammar does not support case fallthrough terminators #40

mm4nn opened this issue Dec 14, 2018 · 0 comments · Fixed by #85

Comments

@mm4nn
Copy link

mm4nn commented Dec 14, 2018

I'm using tree-sitter-bash through bash-language-server => w0rp/ale on VIM and I have a case statement that uses a fallthrough terminator similar to the following.

case "$1" in
    init) echo "here is where I would do some init"
        exit;;

    --help | -h)
        ;;&
 
    *) print_usage
        exit;;
esac

Perhaps there is a better way to do the above but this is just a simple example to reproduce the issue. I should also note that the script runs fine when executed in the terminal.

The errors that are reported are:
Syntax error: expected "esac" somewhere in the file (on line ;;&) and
Failed to parse expression (on line *) print_usage)

I'm not sure if these are coming from bash-language-server/tree-sitter or are generic ALE errors (I ran :ALEInfo and do not see these errors printed anywhere)

skovhus added a commit to skovhus/tree-sitter-bash that referenced this issue May 16, 2020
skovhus added a commit to skovhus/tree-sitter-bash that referenced this issue May 16, 2020
maxbrunsfeld pushed a commit that referenced this issue May 29, 2020
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 a pull request may close this issue.

1 participant