about summary refs log tree commit diff stats
path: root/011load.cc
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2016-10-04 09:39:46 -0700
committerKartik K. Agaram <vc@akkartik.com>2016-10-04 09:39:46 -0700
commitfaf521d94c942ea6ab42b301db303ed02e376c16 (patch)
tree4c96c0f12515896e2eaef28ad4eacd01684e0d41 /011load.cc
parentee6a21cede4cfe6773afc4985d298e3841dde370 (diff)
downloadmu-faf521d94c942ea6ab42b301db303ed02e376c16.tar.gz
3441
Diffstat (limited to '011load.cc')
-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 [