Merge pull request #52068 from ThreeRhinosInAnElephantCostume/fixgdscript

Fix parse error on statement-less files with only newlines, add a warning for empty files.
This commit is contained in:
Rémi Verschelde 2021-09-13 17:30:31 +02:00 committed by GitHub
commit 4059cf2f02
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 57 additions and 4 deletions

View file

@ -0,0 +1,4 @@
>> WARNING
>> Line: 1
>> EMPTY_FILE
>> Empty script file.

View file

@ -0,0 +1 @@
#a comment

View file

@ -0,0 +1,4 @@
>> WARNING
>> Line: 1
>> EMPTY_FILE
>> Empty script file.

View file

@ -0,0 +1,4 @@
>> WARNING
>> Line: 1
>> EMPTY_FILE
>> Empty script file.

View file

@ -0,0 +1,4 @@
#a comment, followed by a bunch of newlines

View file

@ -0,0 +1,4 @@
>> WARNING
>> Line: 1
>> EMPTY_FILE
>> Empty script file.