<p>As requested, here is the justification for the additional keywords:</p>
<ol>
<li>PHP7 added new <a href="http://php.net/manual/en/reserved.exceptions.php">standard exception types</a> (classes). New <code>Error</code> objects can also be thrown for non-fatal errors. The geany keyword list already included the old standard <code>Exception</code> so it makes sense to also include the new, specialized exceptions and errors (ie. <code>ArgumentCountError</code>, <code>ArithmeticError</code>, <code>ErrorException</code>, etc.)</li>
<li><code>assert</code> is now a <a href="http://php.net/manual/en/function.assert.php">language construct</a> in PHP7. Language constructs like <code>isset</code>, <code>array</code>, and <code>unset</code> were already included in the geany PHP keywords list so it makes sense to add this new one.</li>
<li>Some <a href="http://php.net/manual/en/language.oop5.magic.php">magic methods</a> like <code>__sleep</code> and <code>__wakeup</code> were already included in the PHP keywords list, but the other magic methods like <code>__construct</code>, <code>__call</code>, etc. were missing. All magic methods should be included for consistency.</li>
<li>PHP7 adds new <a href="http://php.net/manual/en/reserved.interfaces.php">interfaces</a> and makes better use of old ones. They can be implemented in user classes or used for function argument type hinting: <code>callable</code>, <code>traversable</code>, <code>closure</code>, <code>iterable</code> (PHP 7.1), etc.</li>
<li>When running PHP in CLI mode, appropriate <a href="http://php.net/manual/en/features.commandline.io-streams.php">streams</a> are automatically bound to the constants <code>STDIN</code>, <code>STDOUT</code>, and <code>STDERR</code>. Other fundamental constants like <code>TRUE</code>/<code>FALSE</code> were already in the keyword list. I suggest including the stdio streams too.</li>
<li><code>void</code> is a <a href="http://php.net/manual/en/migration71.new-features.php">new return type</a> in PHP 7.1.</li>
</ol>

<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/1547#issuecomment-316415038">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABDrJ5uQvfCzyXb2913orFBgvUQADJRrks5sPhnGgaJpZM4Oc0bd">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABDrJ1cS6eNLTTYdLKuNtVscpiDHNzvKks5sPhnGgaJpZM4Oc0bd.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/pull/1547#issuecomment-316415038"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request 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":"@klaxian in #1547: As requested, here is the justification for the additional keywords:\r\n1. PHP7 added new [standard exception types](http://php.net/manual/en/reserved.exceptions.php) (classes). New `Error` objects can also be thrown for non-fatal errors. The geany keyword list already included the old standard `Exception` so it makes sense to also include the new, specialized exceptions and errors (ie. `ArgumentCountError`, `ArithmeticError`, `ErrorException`, etc.)\r\n2. `assert` is now a [language construct](http://php.net/manual/en/function.assert.php) in PHP7. Language constructs like `isset`, `array`, and `unset` were already included in the geany PHP keywords list so it makes sense to add this new one.\r\n3. Some [magic methods](http://php.net/manual/en/language.oop5.magic.php) like `__sleep` and `__wakeup` were already included in the PHP keywords list, but the other magic methods like `__construct`, `__call`, etc. were missing. All magic methods should be included for consistency.\r\n4. PHP7 adds new [interfaces](http://php.net/manual/en/reserved.interfaces.php) and makes better use of old ones. They can be implemented in user classes or used for function argument type hinting: `callable`, `traversable`, `closure`, `iterable` (PHP 7.1), etc.\r\n5. When running PHP in CLI mode, appropriate [streams](http://php.net/manual/en/features.commandline.io-streams.php) are automatically bound to the constants `STDIN`, `STDOUT`, and `STDERR`. Other fundamental constants like `TRUE`/`FALSE` were already in the keyword list. I suggest including the stdio streams too.\r\n6. `void` is a [new return type](http://php.net/manual/en/migration71.new-features.php) in PHP 7.1."}],"action":{"name":"View Pull Request","url":"https://github.com/geany/geany/pull/1547#issuecomment-316415038"}}}</script>