chriswailes / RLTK

The Ruby Language Toolkit
http://chriswailes.github.io/RLTK/
University of Illinois/NCSA Open Source License
453 stars 35 forks source link

Add ability to limit amount of context returned for error message #51

Closed pnomolos closed 6 years ago

pnomolos commented 7 years ago

Depending on what I'm parsing, sometimes having several thousand nodes of context in the error message is a pretty large pain in the butt (especially when working over a network connection). This adds the ability to limit the amount of context the error message returns (defaults to 100 nodes on either side of the current node).