@@ -45,8 +45,8 @@ syn keyword swiftBoolean true false
45
45
46
46
syn region swiftString start =/ "/ skip =/ \\\\\|\\ "/ end =/ "/ contains =swiftInterpolation
47
47
syn region swiftInterpolation start =/ \\ (/ end =/ )/ contained
48
- syn region swiftComment start =" /\* " end =" \* /" contains =swiftComment
49
- syn region swiftLineComment start =" //" end =" $"
48
+ syn region swiftComment start =" /\* " end =" \* /" contains =swiftComment,swiftLineComment,swiftTodo
49
+ syn region swiftLineComment start =" //" end =" $" contains = swiftComment,swiftTodo
50
50
51
51
syn match swiftDecimal / [+\- ]\?\<\( [0-9][0-9_]*\)\( [.][0-9_]*\)\?\( [eE][+\- ]\? [0-9][0-9_]*\)\?\> /
52
52
syn match swiftHex / [+\- ]\?\< 0x[0-9A-Fa-f][0-9A-Fa-f_]*\(\( [.][0-9A-Fa-f_]*\)\? [pP][+\- ]\? [0-9][0-9_]*\)\?\> /
@@ -64,6 +64,8 @@ syn match swiftPreproc /^#\<if\>\|^#\<endif\>/
64
64
65
65
syn match swiftAttribute / @\<\w\+\> / skipwhite
66
66
67
+ syn keyword swiftTodo TODO FIXME contained
68
+
67
69
hi def link swiftImport Include
68
70
hi def link swiftImportModule Title
69
71
hi def link swiftImportComponent Identifier
@@ -98,5 +100,6 @@ hi def link swiftNew Operator
98
100
hi def link swiftMutating Statement
99
101
hi def link swiftPreproc PreCondit
100
102
hi def link swiftAttribute Type
103
+ hi def link swiftTodo Todo
101
104
102
105
let b: current_syntax = " swift"
0 commit comments