lang/javascript: attempt more fontification

This commit is contained in:
Henrik Lissner 2018-08-22 02:16:58 +02:00
parent f51f2948af
commit ecb01dbdfc
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -28,7 +28,6 @@
:commands js2-line-break
:config
(setq js2-skip-preprocessor-directives t
js2-highlight-external-variables nil
js-chain-indent t
;; let flycheck handle this
js2-mode-show-parse-errors nil
@ -36,7 +35,10 @@
;; Flycheck provides these features, so disable them: conflicting with
;; the eslint settings.
js2-strict-trailing-comma-warning nil
js2-strict-missing-semi-warning nil)
js2-strict-missing-semi-warning nil
;; maximum fontification
js2-highlight-level 3
js2-highlight-external-variables t)
(add-hook 'js2-mode-hook #'rainbow-delimiters-mode)
;; Indent switch-case another step