author | Ethan Lee <flibitijibibo@flibitijibibo.com> |
Wed, 26 Aug 2020 14:37:18 -0400 | |
changeset 1301 | 79bbc92200dc |
parent 1142 | 7b554e065321 |
permissions | -rw-r--r-- |
1142
7b554e065321
Allow multiline comments before preprocessor directives.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
1 |
// This shouldn't care that there's a multiline comment before a preprocessor |
7b554e065321
Allow multiline comments before preprocessor directives.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
2 |
// directive. It should translate to whitespace, thrown away, making the |
7b554e065321
Allow multiline comments before preprocessor directives.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
3 |
// "#if 1" the first thing on the line, and thus valid. |
7b554e065321
Allow multiline comments before preprocessor directives.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
4 |
// Note that this isn't legal in C/C++ preprocessing, but Microsoft's fxc.exe |
7b554e065321
Allow multiline comments before preprocessor directives.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
5 |
// allows this quirk. |
7b554e065321
Allow multiline comments before preprocessor directives.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
6 |
/* comment! */ #if 1 |
7b554e065321
Allow multiline comments before preprocessor directives.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
7 |
RIGHT |
7b554e065321
Allow multiline comments before preprocessor directives.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
8 |
#else |
7b554e065321
Allow multiline comments before preprocessor directives.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
9 |
WRONG |
7b554e065321
Allow multiline comments before preprocessor directives.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
10 |
#endif |