<p>I didn't like how geany highlights things in lua code which are undefined unless the user defines them:</p>
<div class="highlight highlight-source-lua"><pre>messages <span class="pl-k">=</span> {
        floor <span class="pl-k">=</span> <span class="pl-s"><span class="pl-pds">"</span>You can walk on it<span class="pl-pds">"</span></span>,
        ceiling <span class="pl-k">=</span> <span class="pl-s"><span class="pl-pds">"</span>It's above you<span class="pl-pds">"</span></span>,
        type <span class="pl-k">=</span> <span class="pl-s"><span class="pl-pds">"</span>type should also not be highlighted here<span class="pl-pds">"</span></span>,
}</pre></div>
<p><a target="_blank" rel="noopener noreferrer" href="https://user-images.githubusercontent.com/3192173/80305553-aaa91d80-87bd-11ea-8c44-e9c5594eeb97.png"><img src="https://user-images.githubusercontent.com/3192173/80305553-aaa91d80-87bd-11ea-8c44-e9c5594eeb97.png" alt="tmp_screenshot" style="max-width:100%;"></a></p>
<p>I have removed some keywords which are undefined in Lua; it's a simple change, so <code>type</code> in the above example and other things are still highlighted even when they shouldn't.</p>
<h1></h1>
<p>Add goto to the basic functions<br>
Remove math and os fields; for example, still highlight math.sin but not sin because sin is not defined by default.<br>
I did not remove fields which are methods, so for example read is still highlighted so that it is shown in myfile:read()</p>

<hr>

<h4>You can view, comment on, or merge this pull request online at:</h4>
<p>  <a href='https://github.com/geany/geany/pull/2485'>https://github.com/geany/geany/pull/2485</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>Change Lua syntax highlighting</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/geany/geany/pull/2485/files#diff-0e531ed9446be982992d061476d381ee">data/filedefs/filetypes.lua</a>
    (6)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/geany/geany/pull/2485.patch'>https://github.com/geany/geany/pull/2485.patch</a></li>
  <li><a href='https://github.com/geany/geany/pull/2485.diff'>https://github.com/geany/geany/pull/2485.diff</a></li>
</ul>

<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/2485">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJZPJD7L24IIOWOST2DROQIDXANCNFSM4MRFUPKA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AAIOWJ5PWKXTREWBO3KFHXDROQIDXA5CNFSM4MRFUPKKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4JBN23DQ.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/2485",
"url": "https://github.com/geany/geany/pull/2485",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>