The Squirrel interpreter. See http://www.squirrel-lang.org/
Diff: sq/sq.c
- Revision:
- 3:7268a3ceaffc
- Parent:
- 1:8a2835ae5c5d
--- a/sq/sq.c Tue Dec 16 11:22:31 2014 +0000 +++ b/sq/sq.c Tue Dec 16 11:39:42 2014 +0000 @@ -250,7 +250,7 @@ int c; if(done)return; c = getchar(); - if (c == _SC('\n')) { + if ((c == _SC('\n')) || (c == _SC('\r'))) { if (i>0 && buffer[i-1] == _SC('\\')) { buffer[i-1] = _SC('\n');