Package: exuberant-ctags
Version: 1:5.7-2
Severity: normal
Tags: patch
User: [EMAIL PROTECTED]
Usertags: origin-ubuntu hardy ubuntu-patch

Python variables starting with "def" are parsed as functions.

The attached patch is taken from upstream and has been reported
for Ubuntu on https://launchpad.net/bugs/179492.

Please include it in the Debian package of exuberant-ctags, so
we can just sync the package again for Ubuntu.

Thank you.
--- exuberant-ctags-5.7.orig/python.c
+++ exuberant-ctags-5.7/python.c
@@ -408,12 +408,12 @@
                {
                        boolean found = FALSE;
                        boolean is_class = FALSE;
-                       if (!strncmp (keyword, "def", 3))
+                       if (!strncmp (keyword, "def ", 4))
                        {
                                cp = skipSpace (keyword + 3);
                                found = TRUE;
                        }
-                       else if (!strncmp (keyword, "class", 5))
+                       else if (!strncmp (keyword, "class ", 6))
                        {
                                cp = skipSpace (keyword + 5);
                                found = TRUE;

Reply via email to