shithub: mc

Download patch

ref: 8c7095cc5e7701e9e9f6f17d8dd60e32c2dc5bd0
parent: 8c6a9b940b85f46056519373fcca1d9aefd49eec
author: Ori Bernstein <[email protected]>
date: Tue Aug 20 11:51:12 EDT 2013

Reformat example code.

--- a/doc/lang.txt
+++ b/doc/lang.txt
@@ -331,16 +331,21 @@
             const Val234 = `Val 234     /* set up a constant value */
             var v = `Val 123            /* set up variable to match */
             match v
-                /* pattern clauses */
-                `Val 123:       std.put("Matched literal union pat\n");;
-
-                Val234:         std.put("Matched const value pat\n");;
-
-                `Val a:         std.put("Matched pattern with capture\n")
-                                std.put("Captured value: a = %i\n", a)
-                                ;;
-                a               std.put("A top level bind matches anything.");;
-                `Val 111        std.put("Unreachable block");;
+            /* pattern clauses */
+            `Val 123:
+                std.put("Matched literal union pat\n");;
+            Val234:
+                std.put("Matched const value pat\n")
+                ;;
+            `Val a:
+                std.put("Matched pattern with capture\n")
+                std.put("Captured value: a = %i\n", a)
+                ;;
+            a
+                std.put("A top level bind matches anything.");;
+            `Val 111
+                std.put("Unreachable block.")
+                ;;
             ;;