[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 2/5] tests: highlight empty right-hand sides
From: |
Akim Demaille |
Subject: |
[PATCH 2/5] tests: highlight empty right-hand sides |
Date: |
Fri, 25 Jan 2013 16:45:54 +0100 |
* tests/actions.at, tests/c++.at, tests/headers.at,
* tests/input.at: here.
---
tests/actions.at | 2 +-
tests/c++.at | 2 +-
tests/headers.at | 4 ++--
tests/input.at | 8 ++++----
4 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/tests/actions.at b/tests/actions.at
index b9337ac..b352451 100644
--- a/tests/actions.at
+++ b/tests/actions.at
@@ -196,7 +196,7 @@ AT_DATA_GRAMMAR([[input.y]],
]AT_YYLEX_DECLARE[
}
%%
-exp:;
+exp: /* empty */;
%%
]AT_YYERROR_DEFINE[
]AT_YYLEX_DEFINE[
diff --git a/tests/c++.at b/tests/c++.at
index d599c87..e5cd069 100644
--- a/tests/c++.at
+++ b/tests/c++.at
@@ -205,7 +205,7 @@ AT_DATA([input.yy],
%debug
%defines
%%
-exp:;
+exp: /* empty */;
%%
]AT_YYERROR_DEFINE[
]])
diff --git a/tests/headers.at b/tests/headers.at
index 203c8fc..11b8c91 100644
--- a/tests/headers.at
+++ b/tests/headers.at
@@ -41,7 +41,7 @@ AT_DATA_GRAMMAR([$1.y],
]AT_YYLEX_DECLARE_EXTERN[
%}
%%
-dummy:;
+dummy: /* empty */;
%%
#include <$1.h>
])
@@ -81,7 +81,7 @@ AT_DATA_GRAMMAR([input.y],
]AT_YYLEX_DEFINE[
%}
%%
-exp:;
+exp: /* empty */;
]])
AT_BISON_CHECK([--defines -o input.c input.y])
diff --git a/tests/input.at b/tests/input.at
index 8127f4b..ac5a1fb 100644
--- a/tests/input.at
+++ b/tests/input.at
@@ -114,7 +114,7 @@ AT_DATA([input.y],
%%
exp: foo { $$; } foo { $2; } foo
| foo
- | /* Empty. */
+ | /* empty. */
;
]])
@@ -132,7 +132,7 @@ input.y:6.6-8: warning: type clash on default action: <bar>
!= <> [-Wother]
| foo
^^^
input.y:7.5: warning: empty rule for typed nonterminal, and no action [-Wother]
- | /* Empty. */
+ | /* empty. */
^
]])
@@ -908,7 +908,7 @@ m4_define([AT_CHECK_REQUIRE],
AT_DATA_GRAMMAR([input.y],
[[%require "$1";
%%
-empty_file:;
+empty_file: /* empty */;
]])
AT_BISON_CHECK([-o input.c input.y], $2, [], ignore)
AT_CLEANUP
@@ -1722,7 +1722,7 @@ m4_pushdef([AT_TEST],
[AT_DATA([[input.y]],
[[$1
%%
-exp:;
+exp: /* empty */;
]])
AT_BISON_CHECK([[$2 input.y]], [[1]], [[]],
[[$3: error: '%name-prefix' and '%define api.prefix' cannot be used together
--
1.8.1.1