Skip to content

Commit 844a7d6

Browse files
committed
vim: do not highlight keywords in backticks
Swift permits the use of reserved keywords as identifiers. Reflect that in the syntax highlighting.
1 parent 4dab467 commit 844a7d6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

utils/vim/syntax/swift.vim

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,9 @@ syn match swiftCastOp "\<as\>[!?]\?" skipwhite nextgroup=swiftType
154154

155155
syn match swiftNilOps "??"
156156

157+
syn region swiftReservedIdentifier oneline
158+
\ start=/`/ end=/`/
159+
157160
hi def link swiftImport Include
158161
hi def link swiftImportModule Title
159162
hi def link swiftImportComponent Identifier

0 commit comments

Comments
 (0)