File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -272,7 +272,7 @@ If the region is not active, beautify the entire buffer ."
272
272
((setq symbol (bounds-of-thing-at-point 'symbol ))
273
273
(cond
274
274
((looking-at-p " null" ))
275
- ((save-excursion (skip-chars-backward " [ -0-9.] " ) (looking-at json-mode-number-re))
275
+ ((save-excursion (skip-chars-backward " -0-9." ) (looking-at json-mode-number-re))
276
276
(kill-region (match-beginning 0 ) (match-end 0 ))
277
277
(insert " null" ))
278
278
(t (kill-region (car symbol) (cdr symbol)) (insert " null" ))))
@@ -287,7 +287,7 @@ If the region is not active, beautify the entire buffer ."
287
287
(defun json-increment-number-at-point (&optional delta )
288
288
" Add DELTA to the number at point; DELTA defaults to 1."
289
289
(interactive " P" )
290
- (when (save-excursion (skip-chars-backward " [ -0-9.] " ) (looking-at json-mode-number-re))
290
+ (when (save-excursion (skip-chars-backward " -0-9." ) (looking-at json-mode-number-re))
291
291
(let ((num (+ (or delta 1 )
292
292
(string-to-number (buffer-substring-no-properties (match-beginning 0 ) (match-end 0 )))))
293
293
(pt (point )))
You can’t perform that action at this time.
0 commit comments