-
Notifications
You must be signed in to change notification settings - Fork 35
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
Auto-indent does not indent a line followed by a comment #67
Comments
I was going through this issue for some time and figured that auto-indent does not indent a line if there is any snippet of code following the opening brace of a code block. It is not just true for a comment but anything that follows an opening brace. |
Confirmed. What might be going on (haven't thoroughly checked) is that the autoindent code looks for a |
@neelabhg I might have a solution. Can you assign me to this issue? |
Changes: * Created a new mode that inherits from ace's c_cpp mode. * Fixed a regular expression inside the getNextLineIdent to account for strings after an opening bracket. TODO: * Figure out how to configure the editor to use a custom mode. Closes cs-education#67
Changes: * Fixed code styling issues. Closes cs-education#67
Reported by @angrave:
My guess is that
{
and}
are ignored if a comment token/*
is in theline somewhere.
The text was updated successfully, but these errors were encountered: