src/Jade/Lexer.php
protected function scanEOS()
    {
        if (!$this->length()) {

            if (count($this->indentStack)) {
                array_shift($this->indentStack);

                return $this->token('outdent');
            }

            return $this->token('eos');
        }
    }
protected function scanEOS()
    {
        if (!$this->length()) {

            if (count($this->indentStack)) {
                array_shift($this->indentStack);

                return $this->token('outdent');
            }

            return $this->token('eos');
        }
    }
protected function scanEOS ( ) { if ( ! $ this -> length ( ) ) { if ( count ( $ this -> indentStack ) ) { array_shift ( $ this -> indentStack ) ; return $ this -> token ( 'outdent' ) ; } return $ this -> token ( 'eos' ) ; } }
Scan EOS from input & return it if found.

@return  Object|null
Scan EOS from input & return it if found .