-
Notifications
You must be signed in to change notification settings - Fork 50
JSON syntax highlighting broken #87
Description
Hi there, I'm using Atom 1.57.0 and JSON syntax highlighting has been broken for quite a while. Issues relating to this problem have been opened in this repo multiple times (here, here, here), but closed every time without resolution.
This is what my JSON files look like when I check "Use Tree Sitter Parsers" in settings:
As you can see, the JSON syntax highlighting is broken. Only when I disable Tree Sitter does the highlighting work as expected:
This is clearly an issue, because it is undesirable to keep Tree Sitters disabled as this breaks syntax highlighting in other languages like JavaScript and Python.
It seems this comment by @Arcanemagus explains what the issue is. By the sounds of it, tree-sitter-json is providing a correct syntax tree for the JSON, but something has changed with the way JSON is styled by Atom's themes, or the way the syntax tree is being interpreted by Atom's JSON grammar.
What can be done to get the issue fixed to make sure JSON files are highlighted correctly in Atom?

