Commits

abudden committed e92aa33

More debug in ctags interface.

Comments (0)

Files changed (1)

plugin/TagHighlight/module/ctags_interface.py

 #!/usr/bin/env python
 # Tag Highlighter:
 #   Author:  A. S. Budden <abudden _at_ gmail _dot_ com>
-#   Date:    02/08/2011
+#   Date:    12/08/2011
 # Copyright: Copyright (C) 2009-2011 A. S. Budden
 #            Permission is hereby granted to use and distribute this code,
 #            with or without modifications, provided that this copyright
         args += ["--exclude=docs", "--exclude=Documentation"]
 
     if options['include_locals']:
+        Debug("Including local variables in tag generation", "Information")
         kinds = options['language_handler'].GetKindList()
         def FindLocalVariableKinds(language_kinds):
             """Finds the key associated with a value in a dictionary.
 
             Assumes presence has already been checked."""
+            Debug("Finding local variable types from " + repr(language_kinds), "Information")
             return "".join(key[-1] for key,val in language_kinds.items() if val == 'CTagsLocalVariable')
 
         for language in ctags_languages:
             if language in kinds and 'CTagsLocalVariable' in kinds[language].values():
+                Debug("Finding local variables for " + language, "Information")
                 args += ['--{language}-kinds=+{kind}'.format(language=language,
                     kind=FindLocalVariableKinds(kinds[language]))]
+            else:
+                Debug("Skipping language: " + language, "Information")
 
     # Must be last as it includes the file list:
     if options['recurse']:
     else:
         args += glob.glob(os.path.join(options['source_root'],'*'))
 
+    Debug("Command arguments: " + repr(args), "Information")
+
     return args
 
 key_regexp = re.compile('^(?P<keyword>.*?)\t(?P<remainder>.*\t(?P<kind>[a-zA-Z])(?:\t|$).*)')
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.