Skip to content

Commit 344d931

Browse files
authored
Merge pull request swiftlang#26267 from porglezomp-misc/master
2 parents b4ce18a + fea0f4d commit 344d931

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

utils/vim/syntax/sil.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ syn keyword swiftImport import skipwhite nextgroup=swiftImportModule
6161
syn match swiftImportModule /\<[A-Za-z_][A-Za-z_0-9]*\>/ contained nextgroup=swiftImportComponent
6262
syn match swiftImportComponent /\.\<[A-Za-z_][A-Za-z_0-9]*\>/ contained nextgroup=swiftImportComponent
6363

64-
syn region swiftComment start="/\*" end="\*/" contains=swiftComment,swiftLineComment,swiftTodo
65-
syn region swiftLineComment start="//" end="$" contains=swiftComment,swiftTodo
64+
syn region swiftComment start="/\*" end="\*/" contains=swiftComment,swiftTodo
65+
syn region swiftLineComment start="//" end="$" contains=swiftTodo
6666

6767
syn match swiftLineComment /^#!.*/
6868
syn match swiftTypeName /\<[A-Z][a-zA-Z_0-9]*\>/

utils/vim/syntax/swift.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,8 +158,8 @@ syn region swiftParenthesisRegion matchgroup=NONE start=/(/ end=/)/ contains=TOP
158158

159159
syn region swiftString start=/"/ skip=/\\\\\|\\"/ end=/"/ contains=swiftInterpolationRegion
160160
syn region swiftInterpolationRegion matchgroup=swiftInterpolation start=/\\(/ end=/)/ contained contains=TOP
161-
syn region swiftComment start="/\*" end="\*/" contains=swiftComment,swiftLineComment,swiftTodo
162-
syn region swiftLineComment start="//" end="$" contains=swiftComment,swiftTodo
161+
syn region swiftComment start="/\*" end="\*/" contains=swiftComment,swiftTodo
162+
syn region swiftLineComment start="//" end="$" contains=swiftTodo
163163

164164
syn match swiftDecimal /[+\-]\?\<\([0-9][0-9_]*\)\([.][0-9_]*\)\?\([eE][+\-]\?[0-9][0-9_]*\)\?\>/
165165
syn match swiftHex /[+\-]\?\<0x[0-9A-Fa-f][0-9A-Fa-f_]*\(\([.][0-9A-Fa-f_]*\)\?[pP][+\-]\?[0-9][0-9_]*\)\?\>/

0 commit comments

Comments
 (0)