File tree Expand file tree Collapse file tree 4 files changed +24
-12
lines changed
src/org/opensolaris/opengrok/analysis/csharp
test/org/opensolaris/opengrok/analysis/csharp Expand file tree Collapse file tree 4 files changed +24
-12
lines changed Original file line number Diff line number Diff line change 27
27
*/
28
28
29
29
package org. opensolaris. opengrok. analysis. csharp;
30
- import java. io. IOException;
31
- import java. io. Reader;
32
- import org. opensolaris. opengrok. analysis. JFlexTokenizer;
33
30
31
+ import org. opensolaris. opengrok. analysis. JFlexTokenizer;
34
32
% %
35
33
%public
36
34
%class CSharpSymbolTokenizer
Original file line number Diff line number Diff line change 28
28
*/
29
29
30
30
package org. opensolaris. opengrok. analysis. csharp;
31
+
31
32
import org. opensolaris. opengrok. analysis. JFlexXrefSimple;
32
- import java. io. IOException;
33
- import java. io. Writer;
34
- import java. io. Reader;
33
+ import org. opensolaris. opengrok. util. StringUtils;
35
34
import org. opensolaris. opengrok. web. HtmlConsts;
36
35
import org. opensolaris. opengrok. web. Util;
37
-
38
36
% %
39
37
%public
40
38
%class CSharpXref
@@ -183,12 +181,26 @@ File = [a-zA-Z]{FNameChar}* "." ([cChHtTsS]|[cC][sS])
183
181
out. write(path);
184
182
out. write(" </a>" );}
185
183
186
- {BrowseableURI} {
187
- appendLink(yytext(), true );
188
- }
189
-
190
184
{FNameChar} + "@" {FNameChar} + "." {FNameChar} +
191
185
{
192
186
writeEMailAddress(yytext());
193
187
}
194
188
}
189
+
190
+ <STRING, SCOMMENT, VSTRING> {
191
+ {BrowseableURI} {
192
+ appendLink(yytext(), true );
193
+ }
194
+ }
195
+
196
+ <COMMENT> {
197
+ {BrowseableURI} {
198
+ appendLink(yytext(), true , StringUtils . END_C_COMMENT );
199
+ }
200
+ }
201
+
202
+ <QSTRING> {
203
+ {BrowseableURI} {
204
+ appendLink(yytext(), true , StringUtils . APOS_NO_BSESC );
205
+ }
206
+ }
Original file line number Diff line number Diff line change @@ -333,3 +333,4 @@ class WrappedDeserializer : Serialization
333
333
private bool _atEnd ;
334
334
}
335
335
} // namespace
336
+ /*http://example.com*/
Original file line number Diff line number Diff line change 341
341
< a class ="l " name ="333 " href ="#333 "> 333</ a > < span class ='fold-space '> </ span > < b > private</ b > < b > bool</ b > < a href ="/source/s?refs=_atEnd " class ="xfld intelliWindow-symbol " data-definition-place ="def "> _atEnd</ a > ;
342
342
< a class ="l " name ="334 " href ="#334 "> 334</ a > < span class ='fold-space '> </ span > }
343
343
< a class ="l " name ="335 " href ="#335 "> 335</ a > < span class ='fold-space '> </ span > } < span class ="c "> // namespace</ span >
344
- < a class ="l " name ="336 " href ="#336 "> 336</ a > < span class ='fold-space '> </ span > </ body >
344
+ < a class ="l " name ="336 " href ="#336 "> 336</ a > < span class ='fold-space '> </ span > < span class ="c "> /*< a href ="http://example.com "> http://example.com</ a > */</ span >
345
+ < a class ="l " name ="337 " href ="#337 "> 337</ a > < span class ='fold-space '> </ span > </ body >
345
346
</ html >
You can’t perform that action at this time.
0 commit comments