Menu

#1386 Literals (null, true and false) missing in json lexer

Initial
closed-invalid
nobody
5
2020-11-16
2020-11-16
No

Consider adding literals (null, as well as booleans true and false) to json lexer per RFC 7159: https://tools.ietf.org/html/rfc7159#section-3

Discussion

  • Zufu Liu

    Zufu Liu - 2020-11-16

    It's application's response to set keywords to lexers, for JSON lexer, you can call SCI_SETKEYWORDS(0, "null true false") to set these keywords.

    see https://www.scintilla.org/ScintillaDoc.html#SCI_SETKEYWORDS

     
  • Jorge Moraleda

    Jorge Moraleda - 2020-11-16

    Thank you @zufuliu. I can confirm that indeed adding the keywords as you suggest works. Someone with enough privileges can close this ticket.

     
  • Neil Hodgson

    Neil Hodgson - 2020-11-16
    • labels: json --> json, lexilla
    • status: open --> closed-invalid
     

Log in to post a comment.