Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions syntax/swift.vim
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ syntax match swiftConstant "let\s\zs\w*"

syntax region swiftString start=\"\ end=\"\
syntax region swiftExpression start="\\(\zs" end="\ze)" containedin=swiftString
syntax region swiftComment start="//" end="\n"
syntax region swiftComment start="/\*" end="\*/"

highlight link swiftKeyword Keyword
highlight link swiftType Type
Expand All @@ -31,4 +33,5 @@ highlight link swiftConstant String

highlight link swiftString String
highlight link swiftExpression Identifier
highlight link SwiftComment Normal