public function whitespaces(array $whitespaces): self
    {
        if (!$whitespaces) {
            return $this;
        }

        $copy = clone $this;
        $copy->whitespaces = array_merge($copy->whitespaces, $whitespaces);
        return $copy;
    }
public function whitespaces(array $whitespaces): self
    {
        if (!$whitespaces) {
            return $this;
        }

        $copy = clone $this;
        $copy->whitespaces = array_merge($copy->whitespaces, $whitespaces);
        return $copy;
    }
public function whitespaces ( array $ whitespaces ) : self { if ( ! $ whitespaces ) { return $ this ; } $ copy = clone $ this ; $ copy -> whitespaces = array_merge ( $ copy -> whitespaces , $ whitespaces ) ; return $ copy ; }
Create new Lexer extending this one with whitespaces

Whitespaces are searched between all actual tokens and completely ignored.

> Note: Returned object can be the same one in case of empty additions.
@param string[] $whitespaces Additional whitespaces regexps. Duplicating currently
is not checked, so it on your own.
@return static
@since 1.4.0
Create new Lexer extending this one with whitespaces