ecmarkup icon indicating copy to clipboard operation
ecmarkup copied to clipboard

Make grammar styling a bit nicer

Open domenic opened this issue 9 years ago • 0 comments

http://tc39.github.io/ecmascript-asyncawait/#AsyncFunctionDeclaration-static-semantics could be prettier:

screenshot 31

Some ideas (brainstorming):

  • Don't allow breaking in component parts, e.g. "[no LineTerminator here]" should always stay on one line.
  • New line and indent after the colon?
  • Turn off linebreaking entirely? (Be careful this doesn't break mobile.)
  • Try to make line breaks consistent, either by the author inserting them or by some heuristic? E.g. a line break before each of "function" and "{AsyncFunctionBody}" might work.
  • Change the font or font color or...?

domenic avatar May 28 '15 19:05 domenic