diff options
-rw-r--r-- | misc.c | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -537,10 +537,17 @@ Char array[]; { case 'b': return '\b'; case 'f': return '\f'; - case 'n': return '\n'; case 'r': return '\r'; case 't': return '\t'; + case 'n': + /* Special case. flex.skl takes care to map + * incoming '\n's to '\012', even on systems that + * don't use that value. We need to be consistent + * with that choice. + */ + return '\012'; + #if __STDC__ case 'a': return '\a'; case 'v': return '\v'; |