about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--011load.cc14
1 files changed, 7 insertions, 7 deletions
diff --git a/011load.cc b/011load.cc
index d575c706..ab8973e4 100644
--- a/011load.cc
+++ b/011load.cc
@@ -340,6 +340,13 @@ void test_parse_comment_terminated_by_eof() {
   cerr << ".";  // termination = success
 }
 
+:(scenario warn_on_missing_space_before_bracket)
+% Hide_errors = true;
+def main[
+  1:number <- copy 23
+]
++error: insert a space before '[' in 'main['
+
 //: Warn if a recipe gets redefined, because large codebases can accidentally
 //: step on their own toes. But there'll be many occasions later where
 //: we'll want to disable the errors.
@@ -353,13 +360,6 @@ bool should_check_for_redefine(const string& recipe_name) {
   return true;
 }
 
-:(scenario warn_on_missing_space_before_bracket)
-% Hide_errors = true;
-def main[
-  1:number <- copy 23
-]
-+error: insert a space before '[' in 'main['
-
 :(scenario forbid_redefining_recipes)
 % Hide_errors = true;
 def main [