about summary refs log tree commit diff stats
path: root/030container.cc
diff options
context:
space:
mode:
Diffstat (limited to '030container.cc')
-rw-r--r--030container.cc15
1 files changed, 6 insertions, 9 deletions
diff --git a/030container.cc b/030container.cc
index 4adf05a0..bc87d2fc 100644
--- a/030container.cc
+++ b/030container.cc
@@ -419,6 +419,12 @@ void insert_container(const string& command, kind_of_type kind, istream& in) {
   t.size = SIZE(t.elements);
 }
 
+void skip_bracket(istream& in, string message) {
+  skip_whitespace_and_comments(in);
+  if (in.get() != '[')
+    raise << message << '\n' << end();
+}
+
 :(scenarios run)
 :(scenario container_define_twice)
 container foo [
@@ -585,12 +591,3 @@ recipe main [
 ]
 +mem: storing 3 in location 1
 +mem: storing 4 in location 2
-
-//:: helpers
-
-:(code)
-void skip_bracket(istream& in, string message) {
-  skip_whitespace_and_comments(in);
-  if (in.get() != '[')
-    raise << message << '\n' << end();
-}