updatePatterns

Creates a copy of this lexer with different patterns.

Return

a new instance of StandardRegexLexer.

Parameters

newPatterns

supplier of the new patterns, with the current ones as arguments