<p><a href="https://github.com/linvinus" class="user-mention">@linvinus</a> </p>

<blockquote>
<p>how highlighting can be wrong? it is just color, user must understand source meaning independent from color.</p>
</blockquote>

<p>Imagine that some portion of the code was highlighted as a string or comment while it actually isn't a string or a comment.  That won't help reading the code, but rather will make it a lot harder, because you have <em>incorrect</em> visual clues.  We don't want that.</p>

<p><a href="https://github.com/elextr" class="user-mention">@elextr</a> </p>

<blockquote>
<p>the fact that its a constructor and would normally return an object of that type is the far more important information, not that it happens to look like a function call, thats just a distraction.</p>
</blockquote>

<p>Well, your constructors (?) return booleans, or are converted to it.  The call site meaning is clearly function-like, how it's implemented looks fairly secondary in your example.<br>
Sure, it might actually be a lot more convoluted, and return a more complex object but that object can be converted to boolean, or has <code>operator |</code>, but the caller doesn't seem to really care.</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/issues/1231#issuecomment-247562552">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABDrJ5224xx2IAcS5GRp7isKOma78K_wks5qqmeWgaJpZM4J8sOE">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABDrJ7F2LGoe148fWk-SsSAELrv2AZGMks5qqmeWgaJpZM4J8sOE.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/geany/geany/issues/1231#issuecomment-247562552"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>

<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/geany/geany","title":"geany/geany","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/geany/geany"}},"updates":{"snippets":[{"icon":"PERSON","message":"@b4n in #1231: @linvinus \r\n\u003e how highlighting can be wrong? it is just color, user must understand source meaning independent from color.\r\n\r\nImagine that some portion of the code was highlighted as a string or comment while it actually isn't a string or a comment.  That won't help reading the code, but rather will make it a lot harder, because you have *incorrect* visual clues.  We don't want that.\r\n\r\n@elextr \r\n\u003e the fact that its a constructor and would normally return an object of that type is the far more important information, not that it happens to look like a function call, thats just a distraction.\r\n\r\nWell, your constructors (?) return booleans, or are converted to it.  The call site meaning is clearly function-like, how it's implemented looks fairly secondary in your example.\r\nSure, it might actually be a lot more convoluted, and return a more complex object but that object can be converted to boolean, or has `operator |`, but the caller doesn't seem to really care."}],"action":{"name":"View Issue","url":"https://github.com/geany/geany/issues/1231#issuecomment-247562552"}}}</script>