mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-10-02 09:31:12 -04:00
fixed fileparser bug (empty line before the initial begin statement were not handled correctly
This commit is contained in:
parent
592fa84e2d
commit
5a1dd4fedd
@ -75,6 +75,12 @@ namespace Compiler
|
|||||||
{
|
{
|
||||||
if (code==Scanner::S_newline)
|
if (code==Scanner::S_newline)
|
||||||
{
|
{
|
||||||
|
if (mState==BeginState)
|
||||||
|
{
|
||||||
|
// ignore empty lines
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
if (mState==BeginCompleteState)
|
if (mState==BeginCompleteState)
|
||||||
{
|
{
|
||||||
// parse the script body
|
// parse the script body
|
||||||
|
Loading…
x
Reference in New Issue
Block a user