Skip to content

Commit f52227b

Browse files
committed
font-lock: remove useless rule for (,) and (->)
The (,) and (->) don't have much use in PureScript, nor in Haskell for that matter. In Haskell (,) was a prefix notation for tuple construction, but in PureScript this operator isn't a thing. Both trigger "syntax error" in PureScript (and (->) doesn't work even in Haskell). Indeed a debatable rule. Let's just remove it.
1 parent 49e0fae commit f52227b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

purescript-font-lock.el

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,8 +230,7 @@ Returns keywords suitable for `font-lock-keywords'."
230230
(,topdecl-sym (2 (symbol-value 'purescript-definition-face)))
231231
(,topdecl-sym2 (1 (symbol-value 'purescript-definition-face)))
232232

233-
;; These four are debatable...
234-
("(\\(,*\\|->\\))" 0 (symbol-value 'purescript-constructor-face))
233+
;; This one is debatable…
235234
("\\[\\]" 0 (symbol-value 'purescript-constructor-face))
236235
;; Expensive.
237236
(,qvarid 0 (symbol-value 'purescript-default-face))

0 commit comments

Comments
 (0)