File tree Expand file tree Collapse file tree 3 files changed +14
-3
lines changed
src/org/opensolaris/opengrok/analysis/rust
test/org/opensolaris/opengrok/analysis/rust Expand file tree Collapse file tree 3 files changed +14
-3
lines changed Original file line number Diff line number Diff line change 30
30
package org. opensolaris. opengrok. analysis. rust;
31
31
32
32
import org. opensolaris. opengrok. analysis. JFlexXrefSimple;
33
+ import org. opensolaris. opengrok. util. StringUtils;
33
34
import org. opensolaris. opengrok. web. HtmlConsts;
34
35
import org. opensolaris. opengrok. web. Util;
35
36
% %
@@ -202,11 +203,19 @@ File = [a-zA-Z]{FNameChar}* "." ([Rr][Ss] | [Cc][Oo][Nn][Ff] | [Tt][Xx][Tt] |
202
203
out. write(" </a>" );
203
204
}
204
205
206
+ {FNameChar} + "@" {FNameChar} + "." {FNameChar} + {
207
+ writeEMailAddress(yytext());
208
+ }
209
+ }
210
+
211
+ <STRING, RSTRING, SCOMMENT> {
205
212
{BrowseableURI} {
206
213
appendLink(yytext(), true );
207
214
}
215
+ }
208
216
209
- {FNameChar} + "@" {FNameChar} + "." {FNameChar} + {
210
- writeEMailAddress(yytext());
217
+ <COMMENT> {
218
+ {BrowseableURI} {
219
+ appendLink(yytext(), true , StringUtils . END_C_COMMENT );
211
220
}
212
221
}
Original file line number Diff line number Diff line change @@ -152,3 +152,4 @@ mod tests {
152
152
/* /* */ /** */
153
153
pub mod dummy_item {} /*! */ */
154
154
}
155
+ /*http://example.com*/
Original file line number Diff line number Diff line change 160
160
< a class ="l " name ="152 " href ="#152 "> 152</ a > < span class ='fold-space '> </ span > < span class ="c "> /* /* */ /** */
161
161
< a class ="l " name ="153 " href ="#153 "> 153</ a > < span class ='fold-space '> </ span > pub mod dummy_item {} /*! */ */</ span >
162
162
< a class ="l " name ="154 " href ="#154 "> 154</ a > < span class ='fold-space '> </ span > }
163
- < a class ="l " name ="155 " href ="#155 "> 155</ a > < span class ='fold-space '> </ span > </ body >
163
+ < a class ="l " name ="155 " href ="#155 "> 155</ a > < span class ='fold-space '> </ span > < span class ="c "> /*< a href ="http://example.com "> http://example.com</ a > */</ span >
164
+ < a class ="l " name ="156 " href ="#156 "> 156</ a > < span class ='fold-space '> </ span > </ body >
164
165
</ html >
You can’t perform that action at this time.
0 commit comments