-
Notifications
You must be signed in to change notification settings - Fork 18
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
Hints fore case and if ... else ... #3
Comments
Could you, please, give an example of where you would expect the "hint" to be for "case" statements? I thought of this a while ago and didn't come up with a good place to put it. Also, Bracketeer already has a hint for "if" and "else" in C. So I'm not sure I understand... |
It seems that statements like if (...) are not recognized by your hint algorithm. It may be a bug? Our case statements have always this format: switch (...) But i agree there are many possibilities to write C code. Another format could be: switch (...) |
Hmm sry some parts of my comment are removed. case 1: } This should be easy to add to your hint algorithm. For the last example use the breaks to add the hint. The case without break is a really dangerous thing in my opinion and should not be used. Therefore it is a rare case and it is not needed to add a hint here. |
Nice idea, I will consider it for the next Bracketeer version |
Done |
It would be nice to have the hint feature for cases (switch) and for if ... else ... constructs in C.
The text was updated successfully, but these errors were encountered: