src/Behat/Gherkin/Lexer.php
protected function scanLanguage()
    {
        if ($this->featureStarted) {
            return null;
        }

        if ($this->inPyString) {
            return null;
        }

        if (0 !== mb_strpos(ltrim($this->line), '#', 0, 'utf8')) {
            return null;
        }

        return $this->scanInput('/^\s*\#\s*language:\s*([\w_\-]+)\s*$/', 'Language');
    }
protected function scanLanguage()
    {
        if ($this->featureStarted) {
            return null;
        }

        if ($this->inPyString) {
            return null;
        }

        if (0 !== mb_strpos(ltrim($this->line), '#', 0, 'utf8')) {
            return null;
        }

        return $this->scanInput('/^\s*\#\s*language:\s*([\w_\-]+)\s*$/', 'Language');
    }
protected function scanLanguage ( ) { if ( $ this -> featureStarted ) { return null ; } if ( $ this -> inPyString ) { return null ; } if ( 0 !== mb_strpos ( ltrim ( $ this -> line ) , '#' , 0 , 'utf8' ) ) { return null ; } return $ this -> scanInput ( '/^\s*\#\s*language:\s*([\w_\-]+)\s*$/' , 'Language' ) ; }
Scans Language specifier from input & returns it if found.

@return null|array
Scans Language specifier from input & returns it if found .