getBlockEolModes())) { return; } // see FS#1652, pattern extended to swallow preceding whitespace to avoid // issues with lines that only contain whitespace $this->Lexer->addSpecialPattern('(?:^[ \t]*)?\n', $mode, 'eol'); } /** @inheritdoc */ public function handle($match, $state, $pos, Handler $handler) { $handler->addCall('eol', [], $pos); return true; } }