@@ -47,11 +47,11 @@ except:
47
47
# opened - was the tag file successfully opened?
48
48
# error_number - errno value when 'opened' is false
49
49
# format - format of tag file (1 = original, 2 = extended)
50
- # sort - how is the tag file sorted?
51
- # author - name of author of generating program (may be empy string)
52
- # name - name of program (may be empy string)
53
- # url - URL of distribution (may be empy string)
54
- # version - program version (may be empty string)
50
+ # sort - how is the tag file sorted?
51
+ # author - name of author of generating program (may be an empty string)
52
+ # name - name of program (may be an empty string)
53
+ # url - URL of distribution (may be an empty string)
54
+ # version - program version (may be an empty string)
55
55
56
56
print tagFile[' name' ]
57
57
print tagFile[' author' ]
@@ -60,7 +60,7 @@ print tagFile['format']
60
60
# Available sort type:
61
61
# TAG_UNSORTED, TAG_SORTED, TAG_FOLDSORTED
62
62
63
- # Note: use this only if you know how the tags file is sorted which is
63
+ # Note: use this only if you know how the tags file is sorted which is
64
64
# specified when you generate the tag file
65
65
status = tagFile.setSortType(ctags.TAG_SORTED )
66
66
```
@@ -78,17 +78,17 @@ if status:
78
78
# lineNumber - line number in source file of tag definition (may be zero if not known)
79
79
# kind - kind of tag (none if not known)
80
80
# fileScope - is tag of file-limited scope?
81
-
82
- # Note: other keys will be assumed as an extension key and will
83
- # return None if no such key is found
81
+
82
+ # Note: other keys will be assumed as an extension key and will
83
+ # return None if no such key is found
84
84
85
85
print entry[' name' ]
86
86
print entry[' kind' ]
87
87
```
88
88
89
89
** Finding a Tag Entry**
90
- ``` python
91
- # Available options:
90
+ ``` python
91
+ # Available options:
92
92
# TAG_PARTIALMATCH - begin with
93
93
# TAG_FULLMATCH - full length matching
94
94
# TAG_IGNORECASE - disable binary search
@@ -100,7 +100,7 @@ if tagFile.find(entry, 'find', ctags.TAG_PARTIALMATCH | ctags.TAG_IGNORECASE):
100
100
print entry[' pattern' ]
101
101
print entry[' kind' ]
102
102
103
- # Find the next tag matching the name and options supplied to the
103
+ # Find the next tag matching the name and options supplied to the
104
104
# most recent call to tagFile.find(). (replace the entry if found)
105
105
status = tagFile.findNext(entry)
106
106
0 commit comments