Skip to content

Commit 94f06c0

Browse files
committed
Improve operators
1 parent 49cb76a commit 94f06c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/swift-mode.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
`("\\b\\(?:[^a-zA-Z_0-9]*\\)\\(get\\|set\\)\\(?:[^a-zA-Z_0-9]*\\)\\b" 1 font-lock-keyword-face)
5252
`(,(regexp-opt '("willSet" "didSet") 'words) . font-lock-keyword-face)
5353
;; Operators
54-
`("\\b\\(\\(pre\\|post\\|in\\)fix\\s-+\\)operator\\b" . font-lock-keyword-face)
54+
`("\\b\\(?:\\(?:pre\\|post\\|in\\)fix\\s-+\\)operator\\b" . font-lock-keyword-face)
5555
;; Infix operator attributes
5656
`(,(regexp-opt '("precedence" "associativity" "left" "right" "none")
5757
'words) . font-lock-keyword-face)

0 commit comments

Comments
 (0)