* lisp/json.el (json-read-keyword): Revert previous change to catch EOL.

This commit is contained in:
Mark Oteiza 2017-09-15 15:37:25 -04:00
parent 541b596bf1
commit 9785d35137

View file

@ -305,7 +305,7 @@ KEYWORD is the keyword expected."
(json-advance))
keyword)
(json-skip-whitespace)
(unless (memq (following-char) '(?\] ?, ?}))
(unless (looking-at "\\([],}]\\|$\\)")
(signal 'json-unknown-keyword
(list (save-excursion
(backward-word-strictly 1)