1
0
Fork 0
Browse Source

Token: Add more escape characters

master
Alison Watson 5 years ago
parent
commit
7c854b943f
  1. 3
      lithos_c/src/token.c

3
lithos_c/src/token.c

@ -91,8 +91,9 @@ void Lth_TokenGet(FILE *fp, Lth_Token *out)
{
switch((ch = fgetc(fp)))
{
case '\\': ACS_PrintChar(ch); break;
case '\\': ACS_PrintChar('\\'); break;
case 'C': ACS_PrintChar('\C'); break;
case 'n': ACS_PrintChar('\n'); break;
default: if(ch == beg) ACS_PrintChar(beg); break;
}
}

Loading…
Cancel
Save