lang/javascript: fix rjsx-electric-gt reparsing advice

This commit is contained in:
Henrik Lissner 2018-05-22 01:47:40 +02:00
parent 8ea0f34270
commit 53a7e35082
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -67,8 +67,8 @@
;; However, the parser doesn't run immediately, so a fast typist can outrun ;; However, the parser doesn't run immediately, so a fast typist can outrun
;; it, causing issues, so force it to parse. ;; it, causing issues, so force it to parse.
(defun +javascript|reparse (n) (defun +javascript|reparse (n)
;; if n != 0, then rjsx-maybe-reparse will be run elsewhere ;; if n != 1, then rjsx-maybe-reparse will be run elsewhere
(if (= n 0) (rjsx-maybe-reparse))) (if (= n 1) (rjsx-maybe-reparse)))
(advice-add #'rjsx-electric-gt :before #'+javascript|reparse)) (advice-add #'rjsx-electric-gt :before #'+javascript|reparse))