Skip to content

Commit 460b7d7

Browse files
committed
Handle Perl quote-like operators generally plus Here-documents
Also: - do not link from inside non-interpolating quote-like operators - allow multi-line strings -- i.e., do not terminate "s"-state prematurely - add a '#' to {URIChar} - update main.pl test file to include quote-like- and Here- examples
1 parent f7ef01e commit 460b7d7

File tree

3 files changed

+724
-57
lines changed

3 files changed

+724
-57
lines changed

src/org/opensolaris/opengrok/analysis/perl/Consts.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@
3232
public class Consts{
3333
public static final Set<String> kwd = new HashSet<String>() ;
3434
static {
35-
//Note that keywords with 1 letter will be ignored since we need at least 2 chars per identifier
35+
// Note that keywords with 1 letter will be ignored for {Identifier}
36+
// since that macro needs at least 2 chars. Single character quote-like
37+
// operators -- e.g., m//, s/// -- will not be ignored.
3638
kwd.add("__DATA__");
3739
kwd.add("__END__");
3840
kwd.add("__FILE__");

0 commit comments

Comments
 (0)