Skip to content

Commit 3bcdf32

Browse files
committed
Add more keywords with number sign
1 parent a6d00b5 commit 3bcdf32

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

swift-mode-font-lock.el

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,15 +68,20 @@ Return nil otherwise."
6868

6969
;; Keywords that begin with a number sign (#)
7070
("#available\\>" . font-lock-preprocessor-face)
71+
("#colorLiteral\\>" . font-lock-preprocessor-face)
7172
("#column\\>" . font-lock-preprocessor-face)
72-
("#elseif\\>" . font-lock-preprocessor-face)
7373
("#else\\>" . font-lock-preprocessor-face)
74+
("#elseif\\>" . font-lock-preprocessor-face)
7475
("#endif\\>" . font-lock-preprocessor-face)
76+
("#fileLiteral\\>" . font-lock-preprocessor-face)
7577
("#file\\>" . font-lock-preprocessor-face)
7678
("#function\\>" . font-lock-preprocessor-face)
7779
("#if\\>" . font-lock-preprocessor-face)
80+
("#imageLiteral\\>" . font-lock-preprocessor-face)
81+
("#keypath\\>" . font-lock-preprocessor-face)
7882
("#line\\>" . font-lock-preprocessor-face)
7983
("#selector\\>" . font-lock-preprocessor-face)
84+
("#sourceLocation\\>" . font-lock-preprocessor-face)
8085

8186
;; Keywords used in declarations
8287
"\\<associatedtype\\>"

0 commit comments

Comments
 (0)