new file mode 100644
@@ -0,0 +1,9 @@
+#! nft -f
+
+# mixed syntactical and non-syntactical errors
+filter {
+filter input
+filter input tcp
+filter input tcp dport
+filter input tcp dport tcp
+filter input tcp dport tcp dport
new file mode 100644
@@ -0,0 +1,18 @@
+#! nft -f
+
+# mixed syntactical and non-syntactical errors in blocks
+table filter {
+ # missing identifier
+ chain
+
+ # missing chain block
+ chain output
+
+ chain output {
+ tcp
+ tcp dport
+ tcp dport tcp
+ tcp dport tcp dport
+ tcp dport ssh
+ }
+}
Mixed syntactical and non-syntactical errors in individual commands and blocks. Signed-off-by: Patrick McHardy <kaber@trash.net> --- tests/error.1 | 9 +++++++++ tests/error.2 | 18 ++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 tests/error.1 create mode 100644 tests/error.2