File tree Expand file tree Collapse file tree 3 files changed +21
-2
lines changed
src/org/opensolaris/opengrok/analysis/lua
test/org/opensolaris/opengrok/analysis/lua Expand file tree Collapse file tree 3 files changed +21
-2
lines changed Original file line number Diff line number Diff line change 29
29
package org. opensolaris. opengrok. analysis. lua;
30
30
31
31
import org. opensolaris. opengrok. analysis. JFlexXrefSimple;
32
+ import org. opensolaris. opengrok. util. StringUtils;
32
33
import org. opensolaris. opengrok. web. HtmlConsts;
33
34
import org. opensolaris. opengrok. web. Util;
34
35
@@ -186,8 +187,18 @@ File = [a-zA-Z]{FNameChar}* "." ([Ll][Uu][Aa] | [Tt][Xx][Tt] |
186
187
out. write(path);
187
188
out. write(" </a>" );
188
189
}
190
+ {FNameChar} + "@" {FNameChar} + "." {FNameChar} + {
191
+ writeEMailAddress(yytext());
192
+ }
193
+ }
194
+
195
+ <STRING, LSTRING, COMMENT, SCOMMENT> {
189
196
{BrowseableURI} {
190
197
appendLink(yytext(), true );
191
198
}
192
- {FNameChar} + "@" {FNameChar} + "." {FNameChar} + { writeEMailAddress(yytext()); }
199
+ }
200
+ <QSTRING> {
201
+ {BrowseableURI} {
202
+ appendLink(yytext(), true , StringUtils . APOS_NO_BSESC );
203
+ }
193
204
}
Original file line number Diff line number Diff line change 359
359
360
360
361
361
return _M
362
+ return ' http://example.com?a='
363
+ return [=[ http://example.com?a=]=]
364
+ return " http://example.com?a="
365
+ return ' http://example.com?a=\' b\' '
Original file line number Diff line number Diff line change 367
367
< a class ="l " name ="359 " href ="#359 "> 359</ a >
368
368
< a class ="hl " name ="360 " href ="#360 "> 360</ a >
369
369
< a class ="l " name ="361 " href ="#361 "> 361</ a > < b > return</ b > < a href ="/source/s?defs=_M " class ="intelliWindow-symbol " data-definition-place ="undefined-in-file "> _M</ a >
370
- < a class ="l " name ="362 " href ="#362 "> 362</ a > </ body >
370
+ < a class ="l " name ="362 " href ="#362 "> 362</ a > < b > return</ b > < span class ="s "> '< a href ="http://example.com?a= "> http://example.com?a=</ a > '</ span >
371
+ < a class ="l " name ="363 " href ="#363 "> 363</ a > < b > return</ b > < span class ="s "> [=[< a href ="http://example.com?a= "> http://example.com?a=</ a > ]=]</ span >
372
+ < a class ="l " name ="364 " href ="#364 "> 364</ a > < b > return</ b > < span class ="s "> "< a href ="http://example.com?a= "> http://example.com?a=</ a > "</ span >
373
+ < a class ="l " name ="365 " href ="#365 "> 365</ a > < b > return</ b > < span class ="s "> '< a href ="http://example.com?a= "> http://example.com?a=</ a > \'b\''</ span >
374
+ < a class ="l " name ="366 " href ="#366 "> 366</ a > </ body >
371
375
</ html >
You can’t perform that action at this time.
0 commit comments