phase 1 -- escape nl in comment joins the line.

This commit is contained in:
Kelvin Sherlock 2016-07-28 15:26:37 -04:00
parent ed341db9fa
commit b9782a0926

View File

@ -6,6 +6,7 @@ enum {
st_text_esc, st_text_esc,
st_comment, st_comment,
st_comment_esc,
st_vstring, st_vstring,
st_vstring_esc, st_vstring_esc,
@ -42,6 +43,11 @@ int phase1::process(unsigned char c, int st) {
line++; line++;
return st_text; return st_text;
case st_comment_esc:
multiline = true;
line++;
return st_text;
case st_text_esc: case st_text_esc:
case st_vstring_esc: case st_vstring_esc:
case st_dstring_esc: case st_dstring_esc:
@ -82,9 +88,11 @@ text:
break; break;
case st_comment: case st_comment:
return st; if (c == esc) return st_comment_esc;
return st_comment;
break; break;
case st_comment_esc:
case st_text_esc: case st_text_esc:
case st_dstring_esc: case st_dstring_esc:
case st_estring1_esc: case st_estring1_esc: