
The current grammar definition of Json cannot distinguish between keys and values. As a result, the current coloring keys and values are recognized as String types. Can this be perfected?
The current grammar definition of Json cannot distinguish between keys and values. As a result, the current coloring keys and values are recognized as String types. Can this be perfected?
Hello,
Actually v20.1.1 added a different syntax highlighting for JSON property names per this change:
Improved the JSON syntax highlighting with a new classification type and related highlighting style for property names.
I opened a sample with the JSON language in the Web Languages Add-on just now and it seems to work well. Are you stll seeing a problem?
Sorry, I made a mistake. Other engineers randomly set up a syntax definition file and named it Json.langdef.
I found that json.langdef is not included in the sample project. Why does this grammar file need to be sold separately? Apart from it, it seems that all other grammar files are available.
Hello,
The JSON lexer we have in our Web Languages Add-on is coded by hand in C#, and doesn't come from a Json.langdef file. The JSON syntax language in the add-on has many additional features like parsing with AST generation, syntax error reporting, code outlining, text formatting, smart indent and more.
Please log in to a validated account to post comments.