Commit [daaa6d] Maximize Restore History

r54 | josiahcarlson | 2009-05-04 21:30:21 -0700 (Mon, 04 May 2009) | 1 line

PyPE 2.8.6

Josiah Carlson Josiah Carlson 2010-11-21

changed StyleSetter.py
changed __version__.py
changed changelog.txt
changed configuration.py
changed plugins
changed plugins/codetree.py
changed plugins/filehistory.py
changed plugins/findbar.py
changed plugins/findinfiles.py
changed plugins/single_instance.py
changed plugins/spellcheck.py
changed pype.py
changed readme.html
changed readme.txt
changed todo.txt
copied parsers.py -> plugins/parsers.py
StyleSetter.py Diff Switch to side-by-side view
Loading...
__version__.py Diff Switch to side-by-side view
Loading...
changelog.txt Diff Switch to side-by-side view
Loading...
configuration.py Diff Switch to side-by-side view
Loading...
plugins
Directory.
plugins/codetree.py Diff Switch to side-by-side view
Loading...
plugins/filehistory.py Diff Switch to side-by-side view
Loading...
plugins/findbar.py Diff Switch to side-by-side view
Loading...
plugins/findinfiles.py Diff Switch to side-by-side view
Loading...
plugins/single_instance.py Diff Switch to side-by-side view
Loading...
plugins/spellcheck.py Diff Switch to side-by-side view
Loading...
pype.py Diff Switch to side-by-side view
Loading...
readme.html Diff Switch to side-by-side view
Loading...
readme.txt Diff Switch to side-by-side view
Loading...
todo.txt Diff Switch to side-by-side view
Loading...
parsers.py to plugins/parsers.py
--- a/parsers.py
+++ b/plugins/parsers.py
@@ -379,11 +379,11 @@
     out = []
     stk = []
     line_no = 0
-    sections = ('\\section', '\\subsection', '\\subsubsection')
+    sections = ('\\chapter', '\\section', '\\subsection', '\\subsubsection')
     
     def f(which, line, ls, line_no, stk):
         if which in sections:
-            ind = which.count('sub')
+            ind = which.count('sub') + which.endswith('section')
         elif stk:
             ind = 3
         else:
@@ -511,7 +511,11 @@
             break
     
     if line[-1-i] in _name_start:
+        #handles a word that is the whole line
         return line[-1-i:]
+    ## if i and line[-i] in _name_start and line[-1-i] in :
+        ## #handles a word that isn't the whole line
+        ## return line[-i:]
     return ''
 
 '''