Fix previous commit:

- Fix syntax, code style, comment alignment
- Changed cleanjs_start from macro (???) to rhs
- Move example of let in ZF to bs_zf instead of bs_let
- Revert change to syntax_code in bs_let
parent 42ffee8a
Pipeline #18103 passed with stages
in 19 minutes and 26 seconds
......@@ -474,7 +474,7 @@ bs_layout_rule =
bs_let =
{ syntax_title = "let expression"
, syntax_patterns = map exact ["let", "in", "let in"]
, syntax_code = ["let ... [in ...]"]
, syntax_code = ["let ... in ..."]
, syntax_description = "An expression that introduces new scope."
, syntax_doc_locations = [CLR 5 "3.5.1" "_Toc311798003"]
, syntax_examples =
......@@ -487,8 +487,6 @@ bs_let =
add_bootstrap "expression = undef" $
EXs "macrorhs"
"let // Multi-line let expressions\n\tfunction args = body\n\tselector = expr\n\t// ...\nin expression"
, EXs "macro"
"[z\\x<-[0..]\n,let (y,z) = fun x\n] //the let MUST end with a newline"
]
}
bs_let_before =
......@@ -867,5 +865,10 @@ bs_zf =
, "arrToList a = [x \\\\ x <-: a] // <-: to draw elements from an array"
, "listToArr l = {x \\\\ x <- l} // {..} to create an array"
, "castList xs = [|x \\\\ x <|- xs] // The two pipe characters make both xs and the result overloaded lists"
] ++
[ add_imports ["StdEnv"] $ EXs "rhs" $
"[ sx \\\\ x <- [0..]\n" +
"\t, let sx = toString x // The let must end with a newline\n" +
"\t]"
]
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment