Skip to content

Commit 8d1454d

Browse files
committed
Merge pull request #436 from gracjan/pr-package-imports-font-lock
Add PackageImports syntax to font-lock.
2 parents 12da44f + 40142cb commit 8d1454d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

haskell-font-lock.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ Returns keywords suitable for `font-lock-keywords'."
392392
(,reservedsym 1 haskell-operator-face)
393393
;; Special case for `as', `hiding', `safe' and `qualified', which are
394394
;; keywords in import statements but are not otherwise reserved.
395-
("\\<import[ \t]+\\(?:\\(safe\\>\\)[ \t]*\\)?\\(?:\\(qualified\\>\\)[ \t]*\\)?[^ \t\n()]+[ \t]*\\(?:\\(\\<as\\>\\)[ \t]*[^ \t\n()]+[ \t]*\\)?\\(\\<hiding\\>\\)?"
395+
("\\<import[ \t]+\\(?:\\(safe\\>\\)[ \t]*\\)?\\(?:\\(qualified\\>\\)[ \t]*\\)?\\(?:\"[^\"]*\"[\t ]*\\)?[^ \t\n()]+[ \t]*\\(?:\\(\\<as\\>\\)[ \t]*[^ \t\n()]+[ \t]*\\)?\\(\\<hiding\\>\\)?"
396396
(1 haskell-keyword-face nil lax)
397397
(2 haskell-keyword-face nil lax)
398398
(3 haskell-keyword-face nil lax)

0 commit comments

Comments
 (0)