Skip to content

Commit a4b8427

Browse files
committed
Font lock: remove confusing comments.
1 parent c9d9686 commit a4b8427

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

haskell-font-lock.el

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -183,15 +183,6 @@ Returns keywords suitable for `font-lock-keywords'."
183183
;; "^>", otherwise a line of code starts with "^".
184184
(line-prefix (if (eq literate 'bird) "^> ?" "^"))
185185

186-
;; Most names are borrowed from the lexical syntax of the Haskell
187-
;; report.
188-
;; Some of these definitions have been superseded by using the
189-
;; syntax table instead.
190-
191-
;; (ASCsymbol "-!#$%&*+./<=>?@\\\\^|~")
192-
;; Put the minus first to make it work in ranges.
193-
194-
;; We allow _ as the first char to fit GHC
195186
(varid "\\b[[:lower:]_][[:alnum:]'_]*\\b")
196187
;; We allow ' preceding conids because of DataKinds/PolyKinds
197188
(conid "\\b'?[[:upper:]][[:alnum:]'_]*\\b")
@@ -278,17 +269,16 @@ Returns keywords suitable for `font-lock-keywords'."
278269
;; These four are debatable...
279270
("(\\(,*\\|->\\))" 0 haskell-constructor-face)
280271
("\\[\\]" 0 haskell-constructor-face)
281-
;; Expensive.
272+
282273
(,(concat "`" varid "`") 0 haskell-operator-face)
283274
(,(concat "`" conid "`") 0 haskell-operator-face)
284275
(,(concat "`" qvarid "`") 0 haskell-operator-face)
285276
(,(concat "`" qconid "`") 0 haskell-operator-face)
286277
(,qvarid 0 haskell-default-face)
287278
(,qconid 0 haskell-constructor-face)
288-
;; Expensive.
279+
289280
(,conid 0 haskell-constructor-face)
290281

291-
;; Very expensive.
292282
(,sym 0 (if (eq (char-after (match-beginning 0)) ?:)
293283
haskell-constructor-face
294284
haskell-operator-face))))

0 commit comments

Comments
 (0)