emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master 9785d35: * lisp/json.el (json-read-keyword): Revert


From: Mark Oteiza
Subject: [Emacs-diffs] master 9785d35: * lisp/json.el (json-read-keyword): Revert previous change to catch EOL.
Date: Fri, 15 Sep 2017 15:38:49 -0400 (EDT)

branch: master
commit 9785d3513741c598ae53aecafacbb9bca3e53e48
Author: Mark Oteiza <address@hidden>
Commit: Mark Oteiza <address@hidden>

    * lisp/json.el (json-read-keyword): Revert previous change to catch EOL.
---
 lisp/json.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/json.el b/lisp/json.el
index b13ec78..d5f05fe 100644
--- a/lisp/json.el
+++ b/lisp/json.el
@@ -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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]