Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

0.31.0 - Changes to Line Terminator handling #523

Closed
bd82 opened this issue Jun 30, 2017 · 0 comments
Closed

0.31.0 - Changes to Line Terminator handling #523

bd82 opened this issue Jun 30, 2017 · 0 comments
Labels

Comments

@bd82
Copy link
Member

bd82 commented Jun 30, 2017

Breaking Changes

A Lexer that tracks line/column positions (default behavior) will fail to initialize if
none of it's Token definitions enables the line_breaks flag.
See In-depth explanation for details.

Major Changes

The definition of line terminators (for line/column position tracking). Is now customizable.
By default it is /\n|\r\n?/ as in earlier versions.
However the lineTerminatorsPattern property of the ILexerConfig can be used to adapt it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant