diff --git a/Lexer.php b/Lexer.php index fadeb20..a4f581a 100644 --- a/Lexer.php +++ b/Lexer.php @@ -876,8 +876,6 @@ protected function scanIndent() $mixed = false; } else { - var_dump($this->_indentStyle, $this->_indentWidth, $spaces, $tabs, $mixed); - $this->throwException( "Mixed indentation style encountered. " ."Dont mix tabs and spaces. Stick to one of both." @@ -902,9 +900,7 @@ protected function scanIndent() $this->_level = intval(round($this->strlen($indent) / $this->_indentWidth)); if ($this->_level > $oldLevel + 1) - $this->throwException( - "You should indent in by one level only" - ); + $this->_level = $oldLevel + 1; } else $this->_level = 0; diff --git a/Test/ConfigTest.php b/Test/ConfigTest.php index e8e5c55..9b8f33b 100644 --- a/Test/ConfigTest.php +++ b/Test/ConfigTest.php @@ -38,7 +38,7 @@ public function testRendererForwardsOptionsToLexer($option, $value) $renderer = new Renderer(['lexerOptions' => [$option => $value]]); - $this->assertEquals($value, $renderer->getLexer()->getOption($option)); + $this->assertEquals($value, $renderer->getCompiler()->getParser()->getLexer()->getOption($option)); } public function compilerOptionProvider()