@@ -180,16 +180,16 @@ private void initialize() throws IOException {
180
180
181
181
command .add ("--langdef=rust" );
182
182
command .add ("--langmap=rust:.rs" );
183
- command .add ("--regex-rust=/^[[:space:]]*(#\\ [[^\\ ]]\\ ][[:space:]]*)*(pub[[:space:]]+)?(extern[[:space:]]+)?(\" [^\" ]+\" [[:space:]]+)?(unsafe[[:space:]]+)?fn[[:space:]]+([[:alnum:]_]+)/\\ 6/f ,functions,function definitions/" );
183
+ command .add ("--regex-rust=/^[[:space:]]*(#\\ [[^\\ ]]\\ ][[:space:]]*)*(pub[[:space:]]+)?(extern[[:space:]]+)?(\" [^\" ]+\" [[:space:]]+)?(unsafe[[:space:]]+)?fn[[:space:]]+([[:alnum:]_]+)/\\ 6/h ,functions,function definitions/" );
184
184
command .add ("--regex-rust=/^[[:space:]]*(pub[[:space:]]+)?type[[:space:]]+([[:alnum:]_]+)/\\ 2/T,types,type definitions/" );
185
185
command .add ("--regex-rust=/^[[:space:]]*(pub[[:space:]]+)?enum[[:space:]]+([[:alnum:]_]+)/\\ 2/g,enum,enumeration names/" );
186
- command .add ("--regex-rust=/^[[:space:]]*(pub[[:space:]]+)?struct[[:space:]]+([[:alnum:]_]+)/\\ 2/s ,structure names/" );
187
- command .add ("--regex-rust=/^[[:space:]]*(pub[[:space:]]+)?mod[[:space:]]+([[:alnum:]_]+)/\\ 2/m ,modules,module names/" );
188
- command .add ("--regex-rust=/^[[:space:]]*(pub[[:space:]]+)?(static|const)[[:space:]]+(mut[[:space:]]+)?([[:alnum:]_]+)/\\ 4/c ,consts,static constants/" );
189
- command .add ("--regex-rust=/^[[:space:]]*(pub[[:space:]]+)?(unsafe[[:space:]]+)?trait[[:space:]]+([[:alnum:]_]+)/\\ 3/t ,traits,traits/" );
190
- command .add ("--regex-rust=/^[[:space:]]*(pub[[:space:]]+)?(unsafe[[:space:]]+)?impl([[:space:]\n ]*<[^>]*>)?[[:space:]]+(([[:alnum:]_:]+)[[:space:]]*(<[^>]*>)?[[:space:]]+(for)[[:space:]]+)?([[:alnum:]_]+)/\\ 5 \\ 7 \\ 8/i ,impls,trait implementations/" );
186
+ command .add ("--regex-rust=/^[[:space:]]*(pub[[:space:]]+)?struct[[:space:]]+([[:alnum:]_]+)/\\ 2/S ,structure names/" );
187
+ command .add ("--regex-rust=/^[[:space:]]*(pub[[:space:]]+)?mod[[:space:]]+([[:alnum:]_]+)/\\ 2/n ,modules,module names/" );
188
+ command .add ("--regex-rust=/^[[:space:]]*(pub[[:space:]]+)?(static|const)[[:space:]]+(mut[[:space:]]+)?([[:alnum:]_]+)/\\ 4/C ,consts,static constants/" );
189
+ command .add ("--regex-rust=/^[[:space:]]*(pub[[:space:]]+)?(unsafe[[:space:]]+)?trait[[:space:]]+([[:alnum:]_]+)/\\ 3/r ,traits,traits/" );
190
+ command .add ("--regex-rust=/^[[:space:]]*(pub[[:space:]]+)?(unsafe[[:space:]]+)?impl([[:space:]\n ]*<[^>]*>)?[[:space:]]+(([[:alnum:]_:]+)[[:space:]]*(<[^>]*>)?[[:space:]]+(for)[[:space:]]+)?([[:alnum:]_]+)/\\ 5 \\ 7 \\ 8/I ,impls,trait implementations/" );
191
191
command .add ("--regex-rust=/^[[:space:]]*macro_rules![[:space:]]+([[:alnum:]_]+)/\\ 1/d,macros,macro definitions/" );
192
- command .add ("--regex-rust=/^[[:space:]]*let[[:space:]]+(mut)?[[:space:]]+([[:alnum:]_]+)/\\ 2/v ,variables/" );
192
+ command .add ("--regex-rust=/^[[:space:]]*let[[:space:]]+(mut)?[[:space:]]+([[:alnum:]_]+)/\\ 2/V ,variables/" );
193
193
194
194
//PLEASE add new languages ONLY with POSIX syntax (see above wiki link)
195
195
0 commit comments