When skipping C-style comments in a skipped `ifdef include the '\n'
When a C-style comment /* */ is being skipped because it is in a
skipped `ifdef, `ifndef, etc. directive then we need to output a
'\n' at any comment end of line.
(cherry picked from commit e932c41587)
This commit is contained in:
parent
8964a175f8
commit
d0a12f5b14
|
|
@ -457,7 +457,7 @@ keywords (include|define|undef|ifdef|ifndef|else|elseif|endif)
|
|||
<IFCCOMMENT>\n\r |
|
||||
<IFCCOMMENT>\r\n |
|
||||
<IFCCOMMENT>\n |
|
||||
<IFCCOMMENT>\r { istack->lineno += 1; }
|
||||
<IFCCOMMENT>\r { istack->lineno += 1; fputc('\n', yyout); }
|
||||
<IFCCOMMENT>"*/" { BEGIN(comment_enter); }
|
||||
|
||||
<IFDEF_FALSE,IFDEF_SUPR>[^\r\n] { }
|
||||
|
|
|
|||
Loading…
Reference in New Issue