@@ -253,8 +253,10 @@ Returns keywords suitable for `font-lock-keywords'."
253
253
(, topdecl-var (1 'haskell-definition-face ))
254
254
(, topdecl-var2 (2 'haskell-definition-face ))
255
255
(, topdecl-bangpat (1 'haskell-definition-face ))
256
- (, topdecl-sym (2 'haskell-definition-face ))
257
- (, topdecl-sym2 (1 'haskell-definition-face ))
256
+ (, topdecl-sym (2 (unless (member (match-string 2 ) '(" \\ " " =" " ->" " →" " <-" " ←" " ::" " ∷" " ," " ;" " `" ))
257
+ 'haskell-definition-face )))
258
+ (, topdecl-sym2 (1 (unless (member (match-string 1 ) '(" \\ " " =" " ->" " →" " <-" " ←" " ::" " ∷" " ," " ;" " `" ))
259
+ 'haskell-definition-face )))
258
260
259
261
; ; These four are debatable...
260
262
(" (\\ (,*\\ |->\\ ))" 0 'haskell-constructor-face )
@@ -269,7 +271,8 @@ Returns keywords suitable for `font-lock-keywords'."
269
271
270
272
(, conid 0 'haskell-constructor-face )
271
273
272
- (, sym 0 (if (eq (char-after (match-beginning 0 )) ?: )
274
+ (, sym 0 (if (and (eq (char-after (match-beginning 0 )) ?: )
275
+ (not (member (match-string 0 ) '(" ::" " ∷" ))))
273
276
'haskell-constructor-face
274
277
'haskell-operator-face ))))
275
278
keywords))
0 commit comments