File tree Expand file tree Collapse file tree 2 files changed +11
-5
lines changed Expand file tree Collapse file tree 2 files changed +11
-5
lines changed Original file line number Diff line number Diff line change 81
81
' name' : ' storage.modifier.const.rust'
82
82
' match' : ' \\ bconst\\ b'
83
83
}
84
+ ' pub' : {
85
+ ' comment' : ' Visibility modifier'
86
+ ' name' : ' storage.modifier.visibility.rust'
87
+ ' match' : ' \\ bpub\\ b'
88
+ }
84
89
' lifetime' : {
85
90
' comment' : ' Named lifetime'
86
91
' name' : ' storage.modifier.lifetime.rust'
219
224
' name' : ' storage.modifier.static.rust'
220
225
' match' : ' \\ bstatic\\ b'
221
226
}
222
- {
223
- ' comment' : ' Visibility modifier'
224
- ' name' : ' storage.modifier.visibility.rust'
225
- ' match' : ' \\ bpub\\ b'
226
- }
227
227
{
228
228
' comment' : ' Boolean constant'
229
229
' name' : ' constant.language.boolean.rust'
251
251
{ ' include' : ' #lifetime' }
252
252
{ ' include' : ' #ref_lifetime' }
253
253
{ ' include' : ' #const' }
254
+ { ' include' : ' #pub' }
254
255
# Operators
255
256
{
256
257
' comment' : ' Operator'
342
343
{ ' include' : ' #traits' }
343
344
{ ' include' : ' #std_traits' }
344
345
{ ' include' : ' #type_params' }
346
+ { ' include' : ' #core_types' }
347
+ { ' include' : ' #pub' }
345
348
]
346
349
}
347
350
# Type alias
Original file line number Diff line number Diff line change @@ -212,3 +212,6 @@ if x == 1 { }
212
212
fn foo ( bar : * const i32 ) {
213
213
let _ = 1234 as * const u32 ;
214
214
}
215
+
216
+ // Keywords and known types in wrapper structs (#56)
217
+ pub struct Foobar ( pub Option < bool > ) ;
You can’t perform that action at this time.
0 commit comments