<p></p>
<p>Eclipse behaviour for parentheses is interesting, it autocompletes <code>)</code> if the character after the typed <code>(</code> is not a value or identifier.</p>
<p>So when typing <code>foo(</code> at the cursor |.</p>
<p><code>if(|xxx)</code> becomes <code>if(foo(|xxx)</code> or <code>if(|1)</code> becomes <code>if(foo(|1)</code></p>
<p>but</p>
<p><code>if(|+xxx)</code> becomes <code>if(foo(|)+xxx)</code> or <code>if(|)</code> becomes <code>if(foo(|))</code></p>
<p>It works fairly well when typing new code and is avoids some (but not all) mistakes during editing, at the expense of having to manually add or delete the closing <code>)</code> in some cases.</p>
<p>Note this is observed behaviour because it isn't documented, which makes the behaviour just plain annoying until its worked out, which is why I want it documented for Geany, whichever decisions we end up with.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/geany/geany/pull/2943#issuecomment-945121135">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJ4SSS34PGY4FHWS6KTUHLEHDANCNFSM5GBHXS3Q">unsubscribe</a>.<br />Triage notifications on the go with GitHub Mobile for <a href="https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675">iOS</a> or <a href="https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub">Android</a>.
<img src="https://github.com/notifications/beacon/AAIOWJ5C5V6OVMOCUIQVDFDUHLEHDA5CNFSM5GBHXS32YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOHBKWO3Y.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/geany/geany/pull/2943#issuecomment-945121135",
"url": "https://github.com/geany/geany/pull/2943#issuecomment-945121135",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>