All parsing is now done in one sweep and cached to allow details to be obtained without re-parsing. A text can be manually parsed with parse_text(text) which also updates the cache.

This commit is contained in:
2008-07-18 11:00:34 +00:00
parent 062643eefd
commit b205cf34b4
3 changed files with 405 additions and 185 deletions

View File

@@ -24,7 +24,7 @@ def main():
line, c = current_line(txt)
# Check we are in a normal context
if get_context(txt) != 0:
if get_context(txt) != NORMAL:
return
pos = line.rfind('from ', 0, c)