Skip to content

Commit 413f56a

Browse files
committed
Factor out (purescript-font-lock-defaults-create) block
1 parent 58fce7c commit 413f56a

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

purescript-mode.el

+1-10
Original file line numberDiff line numberDiff line change
@@ -322,16 +322,7 @@ see documentation for that variable for more details."
322322
(set (make-local-variable 'comment-end-skip) "[ \t]*\\(-}\\|\\s>\\)")
323323
(set (make-local-variable 'parse-sexp-ignore-comments) nil)
324324
(set (make-local-variable 'indent-line-function) 'purescript-mode-suggest-indent-choice)
325-
;; Set things up for font-lock.
326-
(set (make-local-variable 'font-lock-defaults)
327-
'(purescript-font-lock-choose-keywords
328-
nil nil ((?\' . "w") (?_ . "w")) nil
329-
(font-lock-syntactic-keywords
330-
. purescript-font-lock-choose-syntactic-keywords)
331-
(font-lock-syntactic-face-function
332-
. purescript-syntactic-face-function)
333-
;; Get help from font-lock-syntactic-keywords.
334-
(parse-sexp-lookup-properties . t)))
325+
(purescript-font-lock-defaults-create) ; set things up for font-lock.
335326
;; PureScript's layout rules mean that TABs have to be handled with extra care.
336327
;; The safer option is to avoid TABs. The second best is to make sure
337328
;; TABs stops are 8 chars apart, as mandated by the PureScript Report. --Stef

0 commit comments

Comments
 (0)