diff options
author | Demi Obenour <demiobenour@gmail.com> | 2016-10-20 15:55:47 -0400 |
---|---|---|
committer | Will Estes <westes575@gmail.com> | 2016-10-23 14:04:42 -0400 |
commit | b02489f58815b84180664c5b9b2fcfa949d7c286 (patch) | |
tree | a3c7ed817af1e907530daaa7b1859e74c45f8195 /tests/quotes.l | |
parent | 802cd0a6ed95567a6d08251ea816da23d9f7895d (diff) |
Fix M4 quotation in section 2 prologue and refactor duplicated code
Diffstat (limited to 'tests/quotes.l')
-rw-r--r-- | tests/quotes.l | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/tests/quotes.l b/tests/quotes.l index 618f1c1..62f4fb4 100644 --- a/tests/quotes.l +++ b/tests/quotes.l @@ -62,7 +62,11 @@ static int foo (int i){ %% - + /* indented code [ 1 ] */ + /* indented code [[ 2 ]] */ + /* indented code [[[ 3 ]]] */ + /* indented code [[[[ 4 ]]]] */ + /* indented code ]] unmatched [[ */ a /* action comment [ 1 ] */ ; b /* action comment [[ 2 ]] */ ; c /* action comment [[[ 3 ]]] */ ; @@ -76,7 +80,7 @@ f return 1+foo(a[b[c[0]]]); /* action block [[[[ 4 ]]]] TEST_XXX */ /* action block ]] unmatched [[ TEST_XXX */ assert(!strcmp("m4_define(alpha, beta)", "m4_""define(alpha, beta)")); - return 1+foo(a[b[c[0]]]); // TEST_XXX + return 1+foo(a[b[c[0]]]); /* TEST_XXX */ } %% @@ -94,7 +98,7 @@ int main(void); int main (void) { - // m4_m4exit(100) + /* m4_m4exit(100) */ FILE *M4_YY_NOT_IN_HEADER = stdin; yyin = CONCAT_IDENTS(M4_, YY_NOT_IN_HEADER); yyout = stdout; |