File tree Expand file tree Collapse file tree 3 files changed +16
-6
lines changed
src/org/opensolaris/opengrok/analysis/sh
test/org/opensolaris/opengrok/analysis/sh Expand file tree Collapse file tree 3 files changed +16
-6
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ package org.opensolaris.opengrok.analysis.sh;
27
27
import java. io. IOException;
28
28
import java. util. Stack;
29
29
import org. opensolaris. opengrok. analysis. JFlexXrefSimple;
30
+ import org. opensolaris. opengrok. util. StringUtils;
30
31
import org. opensolaris. opengrok. web. HtmlConsts;
31
32
import org. opensolaris. opengrok. web. Util;
32
33
% %
@@ -311,13 +312,20 @@ File = {FNameChar}+ "." ([a-zA-Z]+)
311
312
}
312
313
313
314
<STRING, SCOMMENT, QSTRING> {
314
-
315
- {BrowseableURI} {
316
- appendLink(yytext(), true );
317
- }
318
-
319
315
{FNameChar} + "@" {FNameChar} + "." {FNameChar} +
320
316
{
321
317
writeEMailAddress(yytext());
322
318
}
323
319
}
320
+
321
+ <STRING, SCOMMENT> {
322
+ {BrowseableURI} {
323
+ appendLink(yytext(), true );
324
+ }
325
+ }
326
+
327
+ <QSTRING> {
328
+ {BrowseableURI} {
329
+ appendLink(yytext(), true , StringUtils . APOS_NO_BSESC );
330
+ }
331
+ }
Original file line number Diff line number Diff line change @@ -267,3 +267,4 @@ exit 0
267
267
268
268
typeset -i vint
269
269
vint=0xFFEF
270
+ echo ' http://example.com'
Original file line number Diff line number Diff line change 275
275
< a class ="l " name ="267 " href ="#267 "> 267</ a >
276
276
< a class ="l " name ="268 " href ="#268 "> 268</ a > < b > typeset</ b > -i < a href ="/source/s?defs=vint " class ="intelliWindow-symbol " data-definition-place ="undefined-in-file "> vint</ a >
277
277
< a class ="l " name ="269 " href ="#269 "> 269</ a > < a href ="/source/s?defs=vint " class ="intelliWindow-symbol " data-definition-place ="undefined-in-file "> vint</ a > =< span class ="n "> 0xFFEF</ span >
278
- < a class ="hl " name ="270 " href ="#270 "> 270</ a > </ body >
278
+ < a class ="hl " name ="270 " href ="#270 "> 270</ a > < b > echo</ b > < span class ="s "> '< a href ="http://example.com "> http://example.com</ a > '</ span >
279
+ < a class ="l " name ="271 " href ="#271 "> 271</ a > </ body >
279
280
</ html >
You can’t perform that action at this time.
0 commit comments