about summary refs log tree commit diff stats
path: root/011load.cc
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-05-27 11:27:50 -0700
committerKartik K. Agaram <vc@akkartik.com>2015-05-27 11:27:50 -0700
commit1326a4ec1ba2dfa093f8cf66e02d93ff7f4cebc6 (patch)
treebffbf0999e8c017e00f146930cc4c378461393e8 /011load.cc
parentab3aa2d4c141c30958f65aaf5bd86091b0e61621 (diff)
downloadmu-1326a4ec1ba2dfa093f8cf66e02d93ff7f4cebc6.tar.gz
1483 - *really* check color screens in scenarios
Required fixing two levels of bugs:

a) The hack in tangle to drop initial comments a '%' directive..

b) ..was masking a bug where run_mu_scenario wasn't robust to initial
comments.

Mildly concerned that neither of the sub-issues have their own tests,
but I'm just removing hacks, and writing tests for that throwaway
function like run_mu_scenario seems pointless. Instead I've solved the
problem by disallowing comments before '%' directives.

I've also taken this opportunity to at least try to document the
'scenarios' and '%' directives at the first layer where they appear.
Diffstat (limited to '011load.cc')
-rw-r--r--011load.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/011load.cc b/011load.cc
index 8cbffbe7..b779aa9e 100644
--- a/011load.cc
+++ b/011load.cc
@@ -1,6 +1,6 @@
 //: Phase 1 of running mu code: load it from a textual representation.
 
-:(scenarios load)
+:(scenarios load)  // use 'load' instead of 'run' in all scenarios in this layer
 :(scenario first_recipe)
 recipe main [
   1:number <- copy 23:literal