Skip to content

Commit cf1ece1

Browse files
committed
Add keywords that begin with a number sign
1 parent 94f06c0 commit cf1ece1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

utils/swift-mode.el

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@
5252
`(,(regexp-opt '("willSet" "didSet") 'words) . font-lock-keyword-face)
5353
;; Operators
5454
`("\\b\\(?:\\(?:pre\\|post\\|in\\)fix\\s-+\\)operator\\b" . font-lock-keyword-face)
55+
;; Keywords that begin with a number sign
56+
`("#\\(available\\|else\\|elseif\\|end\\|if\\)\\b" . font-lock-string-face)
57+
`("#\\(column\\|file\\|function\\|line\\|selector\\)\\b" . font-lock-keyword-face)
5558
;; Infix operator attributes
5659
`(,(regexp-opt '("precedence" "associativity" "left" "right" "none")
5760
'words) . font-lock-keyword-face)

0 commit comments

Comments
 (0)