-
Notifications
You must be signed in to change notification settings - Fork 14
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
Incorrect spacing in C/C++ pointer type variable definitions #11
Comments
*mypointer = 20; ++(*current); Might a dereference be signaled in the midst of a [a-z]string? |
Moved from #8, because I think this is where you intended to ask the question:
Yeah this is entirely a matter of style.
Yeah, I'm using a bunch of heuristics at the moment which will make the most common cases work but they aren't always good enough. |
Think this regexp might be changed to: space operator only if not at BOL and require being after alphanumeric and underscore (i.e. permitted symbol-character): Result: #s(electric-operator-compiled-rule :operator "" :regex "\([ ]\)\\([ ]\)" :action electric-operator-c-mode-*) WDYT? |
Have a look at what it currently does, I think it's something similar to
that.
…On Wed, 17 Oct 2018, 09:28 Andreas Röhler, ***@***.***> wrote:
Think this regexp might be changed to: space operator only if not at BOL
and require being after alphanumeric and underscore (i.e. permitted
symbol-character):
Result: #s(electric-operator-compiled-rule :operator "*" :regex "\([ ]*\)\*\([
]*\)" :action electric-operator-c-mode-*)
WDYT?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#11 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAwk1OhUBbgO6d38h8JHmnuclLG8RL6sks5uluopgaJpZM4FOUf4>
.
|
We still can't distinguish between multiplication and pointer variables outside of function argument lists.
So for example
becomes
even though it's (probably) a pointer variable not a multiplication.
Related to #7
The text was updated successfully, but these errors were encountered: