diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2015-08-02 12:23:06 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2015-08-02 12:23:06 -0700 |
commit | ea53a7933e55a168a37edbaf2f46da40671e36de (patch) | |
tree | 33207c61b0343a9818e3259fa227cb34413c9f49 | |
parent | 850985353a47e9dc7bd085b4daf157939194715d (diff) | |
download | mu-ea53a7933e55a168a37edbaf2f46da40671e36de.tar.gz |
1917
-rw-r--r-- | edit.mu | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/edit.mu b/edit.mu index 735a42fa..a11d449c 100644 --- a/edit.mu +++ b/edit.mu @@ -457,19 +457,15 @@ f] ] ] -after +render-loop-initialization [ - highlighting-state:number <- copy 0/normal -] - after +character-c-recived [ - color, highlighting-state <- get-color color, highlighting-state, c + color <- get-color color, c ] -# color:number, highlighting-state:number <- get-color color:number, highlighting-state:number, c:character +# color:number <- get-color color:number, c:character +# so far the previous color is all the information we need; that may change recipe get-color [ local-scope color:number <- next-ingredient - highlighting-state:number <- next-ingredient c:character <- next-ingredient color-is-white?:boolean <- equal color, 7/white #? $print [character: ], c, 10/newline #? 1 @@ -511,7 +507,7 @@ recipe get-color [ } # otherwise no change +exit - reply color, highlighting-state + reply color ] scenario render-colors-assignment [ |