allow . and - in the name part of a begin script statement, but not at the beginning of a name. Fixes #4061

This commit is contained in:
Marc Zinnschlag 2018-01-12 16:37:06 +01:00
parent dd5ebe225b
commit 2dff3aab22
3 changed files with 15 additions and 2 deletions

View file

@ -63,6 +63,7 @@ namespace Compiler
if (mState==BeginState && keyword==Scanner::K_begin)
{
mState = NameState;
scanner.enableTolerantNames(); /// \todo disable
return true;
}