Menu

#376 json.jsf marks valid number parts as error.

v4.5
closed
nobody
v4.4
5
2017-09-26
2017-09-18
No

The syntax highlighting of the JSON document

[1.23, 1.2e3]

marks 3 and e3 with error coloring (white on red), but both numbers are valid JSON.
The error is in the following rule:

:integer Number

        *                       end             noeat
        "0-9"                   integer
        "."                     decimalpoint
        "eE"                    exponentpart

The target decimalpoint should be replaced by decimalpart:

:integer Number

        *                       end             noeat
        "0-9"                   integer
        "."                     decimalpart
        "eE"                    exponentpart

Discussion

  • John J. Jordan

    John J. Jordan - 2017-09-19

    This was already fixed in Mercurial [097380] and will be included in the next version.

     

    Related

    Commit: [097380]

  • Joe Allen

    Joe Allen - 2017-09-24
    • status: open --> closed
     
  • John J. Jordan

    John J. Jordan - 2017-09-26
    • Group: Unknown --> v4.5
     

Log in to post a comment.

MongoDB Logo MongoDB