diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2015-09-16 07:29:35 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2015-09-16 07:29:35 -0700 |
commit | 49a8cbbca600bb587216cb6b114c4fef2f762e99 (patch) | |
tree | ccca3c3fcb8203be547f643bed9b9ef390ea55fe /linenoise | |
parent | 15346886504761400e6db3930b74cc59adfce6f9 (diff) | |
download | txr-49a8cbbca600bb587216cb6b114c4fef2f762e99.tar.gz txr-49a8cbbca600bb587216cb6b114c4fef2f762e99.tar.bz2 txr-49a8cbbca600bb587216cb6b114c4fef2f762e99.zip |
syntax: be tolerant of carriage returns.
This is needed for multi-line mode with CR line breaks.
It also makes TXR tolerant when code is ported among
systems with different line endings.
* parser.l (NL): New lex named pattern, matching three
possible line terminators: CR, NL or CR-NL.
(grammar): In places where \n was previously matched,
use {NL}. In a few places where \n is in a character
class, add \r. In one place (comment matching), the
the pattern . which implicitly doesn't match newlines
had to be replaced with [^\r\n].
Diffstat (limited to 'linenoise')
0 files changed, 0 insertions, 0 deletions