Menu

#115 Remove optional ;

open
5
2003-09-21
2002-08-15
Anonymous
No

pretty.settings key tells PrettyPrinter how to handle
optional ";"s.

Discussion

  • Mike Atkinson

    Mike Atkinson - 2003-09-21
    • assigned_to: nobody --> mikeatkinson
     
  • Mike Atkinson

    Mike Atkinson - 2003-11-02

    Logged In: YES
    user_id=476481

    Optional ";"s are currently removed as the parser does not
    record them. The case of empty statements is more complex.
    an empty statement may be required to be retained:

    while (x++<10)
    ;

    while others could be removed. At present the pretty printer
    retains all empty statements.

     

Log in to post a comment.

MongoDB Logo MongoDB