(json-read-keyword): Use thing-at-point rather than word-at-point.
;;; Code:
(eval-when-compile (require 'cl))
-(require 'thingatpt)
;; Compatibility code
(signal 'json-unknown-keyword
(list (save-excursion
(backward-word 1)
- (word-at-point)))))
+ (thing-at-point 'word)))))
(json-advance))
keyword)
(unless (looking-at "\\(\\s-\\|[],}]\\|$\\)")
(signal 'json-unknown-keyword
(list (save-excursion
(backward-word 1)
- (word-at-point)))))
+ (thing-at-point 'word)))))
(cond ((string-equal keyword "true") t)
((string-equal keyword "false") json-false)
((string-equal keyword "null") json-null)))