Skip to content

Commit 2662de2

Browse files
committed
Don't highlight preprocessor syntax
Purescript has no preprocessor, this is a Haskell legacy. This fixes highlight in multiline strings.
1 parent e870a83 commit 2662de2

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

purescript-font-lock.el

-2
Original file line numberDiff line numberDiff line change
@@ -211,8 +211,6 @@ Returns keywords suitable for `font-lock-keywords'."
211211
(setq keywords
212212
`(;; NOTICE the ordering below is significant
213213
;;
214-
("^#.*$" 0 'font-lock-preprocessor-face t)
215-
216214
(,toplevel-keywords 1 (symbol-value 'purescript-keyword-face))
217215
(,reservedid 1 (symbol-value 'purescript-keyword-face))
218216
(,reservedsym 1 (symbol-value 'purescript-operator-face))

tests/purescript-font-lock-tests.el

-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ hello
7575
(7 19 font-lock-string-face))))
7676

7777
(ert-deftest multiline-string-with-hash ()
78-
:expected-result :failed
7978
(purescript-test-ranges
8079
"foo = \"\"\"
8180
# a string with hashtag

0 commit comments

Comments
 (0)