diff --git a/alib2cli/src/lexer/CharSequence.cpp b/alib2cli/src/lexer/CharSequence.cpp
index f2c7ff84dc02896ad7586792f8fecd90cea9495e..61fa83ce7a361bc6a9b09ae61b57931e969d8d0e 100644
--- a/alib2cli/src/lexer/CharSequence.cpp
+++ b/alib2cli/src/lexer/CharSequence.cpp
@@ -26,7 +26,7 @@ void CharSequence::fetch ( bool readNextLine ) {
 		}
 	}
 
-	if ( line.empty ( ) )
+	if ( std::all_of ( line.begin ( ), line.end ( ), isspace ) )
 		return;
 
 	m_lines.push_back ( std::move ( line ) );
diff --git a/examples2/aql/eof.aql b/examples2/aql/eof.aql
new file mode 100644
index 0000000000000000000000000000000000000000..9252e12f9c2be3b8442a9855994b013ebb200759
--- /dev/null
+++ b/examples2/aql/eof.aql
@@ -0,0 +1 @@
+execute 12
\ No newline at end of file