bug-global
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] htags does not allow whitespace before preprocessing directive


From: Hideki IWAMOTO
Subject: [PATCH] htags does not allow whitespace before preprocessing directive
Date: Mon, 24 Feb 2003 21:26:59 +0900

? htags/Makefile
? htags/Makefile.in
? htags/const.pl
? htags/htags
? htags/htags.1
Index: htags/htags.in
===================================================================
RCS file: /cvsroot/global/global/htags/htags.in,v
retrieving revision 1.94
diff -u -r1.94 htags.in
--- htags/htags.in      17 Feb 2003 01:16:50 -0000      1.94
+++ htags/htags.in      24 Feb 2003 12:06:38 -0000
@@ -2056,7 +2056,7 @@
                        local($converted);
                        s/\r$//;
                        # make link for include file
-                       if (!$INCOMMENT && /^#[ \t]*include/) {
+                       if (!$INCOMMENT && /^[ \t]*#[ \t]*include/) {
                                local($last, $sep) = m![</"]([^</"]+)([">])!;
                                if (defined $'includes{$last}) {
                                        local($link);
@@ -2081,7 +2081,7 @@
                        &protect_line();        # protect quoted char, strings 
and comments
                        # painting source code
                        s/({|})/\016$1\017/g;
-                       local($sharp) = s/^(#[ \t]*($'sharp_macros))// ? $1 : 
'';
+                       local($sharp) = s/^([ \t]*#[ \t]*($'sharp_macros))// ? 
$1 : '';
                        if ($sharp !~ '#[ \t]*include') {
                                if ($isjava) {
                                        
s/\b($'java_reserved_words)\b/\022$1\023/go;

----
Hideki IWAMOTO  address@hidden




reply via email to

[Prev in Thread] Current Thread [Next in Thread]