File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change 1
- ; ;; json-mode.el --- Major mode for editing JSON files.
1
+ ; ;; json-mode.el --- Major mode for editing JSON files
2
2
3
3
; ; Copyright (C) 2011-2014 Josh Johnston
4
4
@@ -63,11 +63,9 @@ Return the new `auto-mode-alist' entry"
63
63
(defvar json-mode--auto-mode-entry )
64
64
65
65
;;;### autoload
66
- (defcustom json-mode-auto-mode-list '(
67
- " .babelrc"
66
+ (defcustom json-mode-auto-mode-list '(" .babelrc"
68
67
" .bowerrc"
69
- " composer.lock"
70
- )
68
+ " composer.lock" )
71
69
" List of filenames for the JSON entry of `auto-mode-alist' .
72
70
73
71
Note however that custom `json-mode' entries in `auto-mode-alist'
@@ -162,6 +160,7 @@ json font lock syntactic face function."
162
160
(define-derived-mode jsonc-mode json-mode " JSONC"
163
161
" Major mode for editing JSON files with comments"
164
162
:syntax-table jsonc-mode-syntax-table)
163
+ (setq font-lock-defaults '(json-font-lock-keywords-1 t ))
165
164
166
165
; ; Well formatted JSON files almost always begin with “{” or “[”.
167
166
;;;### autoload
You can’t perform that action at this time.
0 commit comments