<p></p>
<blockquote>
<p>But do Lua source files specify which version of Lua they use, by some marker in the file? by file extension? If not how would the specific filetype be chosen when a file is opened?</p>
</blockquote>
<p>The lua version is not included in the script. (An exception is a file with a shebang, but such a file is uncommon and can only be executed directly and not included with dofile.)</p>
<blockquote>
<p>Most other languages highlight all keywords of all versions, but many of them only add keywords not remove keywords, Lua would be unusual in removing them.</p>
</blockquote>
<p>I assume that for consistency it should also highlight old keywords and my changes are too simple.</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/2485#issuecomment-700662548">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJ4KOPUEM5XM5G7YLLLSIHFVNANCNFSM4MRFUPKA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AAIOWJ6ICS22ZJGBRSZBR5LSIHFVNA5CNFSM4MRFUPKKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOFHBUGFA.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#issuecomment-700662548",
"url": "https://github.com/geany/geany/pull/2485#issuecomment-700662548",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>