v1.0.0
This commit is contained in:
@@ -46,12 +46,10 @@ public class Parser
|
||||
{
|
||||
case TokenType.NewLine:
|
||||
Advance();
|
||||
// Check if this was an empty line (previous was also newline or start)
|
||||
if (_position >= 2 && _tokens[_position - 2].Type == TokenType.NewLine)
|
||||
{
|
||||
return new EmptyLineNode(token.Position);
|
||||
}
|
||||
return null;
|
||||
if(token.Position.Column==1)
|
||||
return new NewLineNode(token.Position);
|
||||
else
|
||||
return null;
|
||||
|
||||
case TokenType.Text:
|
||||
return ParseText();
|
||||
|
||||
Reference in New Issue
Block a user