From 61e7a1bff682ef695d0fe2204b9b2e0918b47fb5 Mon Sep 17 00:00:00 2001 From: elliott_c Date: Tue, 23 Feb 2010 15:10:52 +0000 Subject: ChangeLogTag: Tue Feb 23 15:08:32 UTC 2010 Chad Elliott --- devtools/document_template.pl | 26 ++++++++++++++++++-------- 1 file changed, 18 insertions(+), 8 deletions(-) (limited to 'devtools') diff --git a/devtools/document_template.pl b/devtools/document_template.pl index f1c51f65..6536c539 100755 --- a/devtools/document_template.pl +++ b/devtools/document_template.pl @@ -288,10 +288,15 @@ if (open($fh, $input)) { } } else { - foreach my $ao (keys %arrow_op) { - if ($k =~ /^$ao/) { - $tvar = 1; - last; + if ($k =~ /^\w+\->/) { + $tvar = 1; + } + else { + foreach my $ao (keys %arrow_op) { + if ($k =~ /^$ao/) { + $tvar = 1; + last; + } } } } @@ -311,10 +316,15 @@ if (open($fh, $input)) { if (defined $keywords{$n}) { } else { - foreach my $ao (keys %arrow_op) { - if ($n =~ /^$ao/) { - $tvar = 1; - last; + if ($n =~ /^\w+\->/) { + $tvar = 1; + } + else { + foreach my $ao (keys %arrow_op) { + if ($n =~ /^$ao/) { + $tvar = 1; + last; + } } } if (!$tvar) { -- cgit v1.2.1