
Wrong editor colors 3.0.6446
Wrong editor colors 3.0.6446
Hi! After updating from 3.0.6364 found out that internal editor shows wrong syntax highlighting in the JSON files with comments (example in attachment) - it was OK in 3.0.6364. Maybe some settings are exists to change behavior to old one? 

- Attachments
-
- far-3.0.6446.png (6.03 KiB) Viewed 560 times
-
- far-3.0.6364.png (6.01 KiB) Viewed 560 times
Wrong editor colors 3.0.6446
comments of the form //… or /…/ are not allowed in JSON. this check was made in the new version of the scheme.
The json format in your example is incorrect.
The json format in your example is incorrect.
- HaRT
- Moderator
- Posts: 11275
- Joined: Tue 30 Aug, 2005 17:21
- Has thanked: 252 times
- Been thanked: 392 times
Wrong editor colors 3.0.6446
Formally, that's true. In practice, people do use comments in JSON config files a lot, and many JSON support libraries accept them either unconditionally or by an option.ctapmex wrote: Sat 17 May, 2025 15:02 comments of the form //… or /…/ are not allowed in JSON. this check was made in the new version of the scheme.
The json format in your example is incorrect.
Just to avoid yet another holy war, here's an old SO thread with all kind of opinions, also multiple discussions on Reddit.
IMHO it would be practical for the Colorer JSON scheme to have a parameter whether it should highlight JavaScript comments as a syntax error or as a comment.
Фар есть инструмент, а не нянька. © 2009 DrKnS
Wrong editor colors 3.0.6446
reviewed the changes. Perhaps the comments started to glow as an error by accident, because they are displayed correctly at the beginning of the file. Fixed it, in the new night version or here https://github.com/colorer/Colorer-sche ... /v1.2.0.71