File tree Expand file tree Collapse file tree 3 files changed +11
-2
lines changed
branches/snap-stage3/src/etc/vim Expand file tree Collapse file tree 3 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 1
1
---
2
2
refs/heads/master: 19dfec2aaf746535de1521f68421f9980dbf25de
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
- refs/heads/snap-stage3: ad9c54c631a39bbaf926021f18d683feba49fc09
4
+ refs/heads/snap-stage3: a307608781027d8c1b4c99bf1a8ac2c0d960a1bc
5
5
refs/heads/try: ef355f6332f83371e4acf04fc4eb940ab41d78d3
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
Original file line number Diff line number Diff line change
1
+ " Highlight the 78th text column
2
+ " Feature became available in v7.3
3
+ if version >= 703
4
+ set colorcolumn = 78
5
+ endif
Original file line number Diff line number Diff line change @@ -103,12 +103,15 @@ syn match rustFloat display "\<[0-9][0-9_]*\.[0-9_]\+\(f\|f32\|f64\)\>
103
103
syn match rustFloat display " \< [0-9][0-9_]*\. [0-9_]\+\% ([eE][+-]\= [0-9_]\+\)\> "
104
104
syn match rustFloat display " \< [0-9][0-9_]*\. [0-9_]\+\% ([eE][+-]\= [0-9_]\+\)\( f\| f32\| f64\)\> "
105
105
106
+ " rustLifetime must appear before rustCharacter, or chars will get the lifetime highlighting
107
+ syn match rustLifetime display " \'\% ([^[:cntrl:][:space:][:punct:][:digit:]]\| _\)\% ([^[:cntrl:][:punct:][:space:]]\| _\) *"
106
108
syn match rustCharacter " '\( [^'\\ ]\|\\\( ['nrt\\\" ]\| x\x\{ 2}\| u\x\{ 4}\| U\x\{ 8}\)\) '"
107
109
108
110
syn region rustComment start =" /\* " end =" \* /" contains =rustComment,rustTodo
109
111
syn region rustComment start =" //" skip =" \\ $" end =" $" contains =rustTodo keepend
110
112
111
- syn keyword rustTodo TODO FIXME XXX NB
113
+
114
+ syn keyword rustTodo TODO FIXME XXX NB unsafe
112
115
113
116
hi def link rustHexNumber rustNumber
114
117
hi def link rustBinNumber rustNumber
@@ -134,6 +137,7 @@ hi def link rustType Type
134
137
hi def link rustTodo Todo
135
138
hi def link rustAttribute PreProc
136
139
hi def link rustStorage StorageClass
140
+ hi def link rustLifetime Special
137
141
138
142
" Other Suggestions:
139
143
" hi rustAssert ctermfg=yellow
You can’t perform that action at this time.
0 commit comments