Preprocessor: Allow '\' as a token, which gets actual use in #error, but should have no other use.

This is just for '\' that's not before a new line.
Note the specification says it has no use other than as line continuation,
but #error is a grey area. (There are no escape sequences.)
This commit is contained in:
John Kessenich 2015-07-25 17:34:32 -06:00
parent f330f08129
commit aead93aafd
4 changed files with 24 additions and 4 deletions

View file

@ -175,7 +175,7 @@ void TPpContext::AddAtomFixed(const char* s, int atom)
void TPpContext::InitAtomTable()
{
// Add single character tokens to the atom table:
const char* s = "~!%^&*()-+=|,.<>/?;:[]{}#";
const char* s = "~!%^&*()-+=|,.<>/?;:[]{}#\\";
char t[2];
t[1] = '\0';