chevrotain icon indicating copy to clipboard operation
chevrotain copied to clipboard

Simplify Custom Line Terminator Handling

Open bd82 opened this issue 6 years ago • 0 comments

The ILexerConfig requires two very similar properties to handle custom line terminators https://sap.github.io/chevrotain/documentation/3_6_1/interfaces/ilexerconfig.html

With a breaking change we can probably only accept a list of strings or charCodes to be used as line terminators and compute the regExp automatically. So only one argument would have to be provided.

bd82 avatar Jun 21 '18 22:06 bd82