I am editing a dead simple JSON file:
{
"foo": "bar"
}
Here's what I see:
Doing a C-h m
I see the following minor modes running alongside JSON mode:
Enabled minor modes: Auto-Composition Auto-Compression Auto-Encryption
Column-Number File-Name-Shadow Font-Lock Global-Font-Lock
Global-Hl-Line Global-Linum Js2 Line-Number Linum Mouse-Wheel Openwith
Tool-Bar Tooltip Transient-Mark
The following problem is reported when the cursor is on :
character:
missing ; before statement
The entire "bar"
string value is also highlight red.
Is the problem related to js-lint
running alongside JSON?
js-lint
in the mode line). Did you try adding aSPC
char before the:
(shouldn't be needed, obviously - just a thought).SPC
makes no difference. This is embarrassing but I don't know whatjs-lint
means. Looking at my.emacs
it appears I am usingjson-mode
: github.com/joshwnj/json-mode/blob/master/json-mode.el. How can I get more information about the major mode employed (likeC-h m
does for the minor modes)?C-h m
tells you about both major and minor modes.C-h f json-mode
tells you about it also, and provides a link to the file that defines it. In that file it is likely that you will find contact info for the maintainer. But you already have that from the GitHub page for the library. Contact Josh Johnston with a recipe to reproduce the bug.