Registered Member
|
The official highlighting configuration use a type list to distinguish types and other things, which doesn't look right to me.
So I try to write my own configuration and avoiding a list for known types while highlight types in a right way. Then I bumped into Rust's function signature, which is not documented, but you can check similar things here. So, function signatures can be something like , or . That said, argument name can be ignored like C. Now I have no idea how to capture the type part of this declaration. Normally you can use RegExpr and lookAhead altogether to handle it. Here comes the hard part: if you want to capture the part of , there can be comments before that colon. Rust support nested comment like /* /* */ */, so you cannot do the same for Rust's grammar. So is it likely that I can ignore the argument name correctly? I'll try my best to clarify my question if any part of the post is not clear. |
Registered users: bartoloni, Bing [Bot], Google [Bot], Yahoo [Bot]