summaryrefslogtreecommitdiffstats
path: root/linenoise
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2015-09-16 07:29:35 -0700
committerKaz Kylheku <kaz@kylheku.com>2015-09-16 07:29:35 -0700
commit49a8cbbca600bb587216cb6b114c4fef2f762e99 (patch)
treeccca3c3fcb8203be547f643bed9b9ef390ea55fe /linenoise
parent15346886504761400e6db3930b74cc59adfce6f9 (diff)
downloadtxr-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