Ken Hughes
0859141238
Scripts
...
-------
Removed empty parenthesis from class definitions, causes a syntax error in
Python 2.4 (reported by Sanne on IRC, thanks!)
2008-09-10 21:37:22 +00:00
Ian Thompson
bccce7e30e
Fix for class variable parsing/listing bug.
2008-08-30 11:27:27 +00:00
Ian Thompson
e1ceab6ed6
Missed parentheses from except clause, has a whole different meaning.
2008-08-18 14:16:34 +00:00
Ian Thompson
7f30e5fdd2
Better class support with inheritance for text parsing.
2008-08-18 10:01:49 +00:00
Ian Thompson
3a62928777
Fix for numeric var types creating an error.
2008-08-17 10:08:38 +00:00
Ian Thompson
d1d1d2b870
Improvements to the base BPyTextPlugin module:
...
- Added a centralized function for resolving targets (aaa.bbb.ccc)
- Added documentation support for locally defined classes and methods
- The time taken to parse now dictates how long to use the cache before parsing again
- Other tweaks and comments and support for numeric var types
The text plugin scripts have been updated to make use of these features.
2008-08-15 23:14:22 +00:00
Ian Thompson
65d0ef3e74
Speed improvements for reading text lines and the option to specify a range for Text.asLines([start[, end]]) Also some tweaks for the plug-in scripts and updates to pydocs.
2008-08-12 15:17:08 +00:00
Ian Thompson
a5d955632f
Added sys.path module search to BPyTextPlugin module and fixed IndentationError when parsing.
2008-08-10 17:00:25 +00:00
Ian Thompson
d42891975b
Typing 'from a import b' threw an error if b was not found. Accidentally moved this out of the try block in an earlier tidy-up.
2008-08-08 15:54:04 +00:00
Ian Thompson
6531d859ba
TextPlugin update: Converted try-except blocks to use try-catch-else to allow better error tracking. Commented the descriptor classes and improved variable support for basic types (string, list, etc.)
2008-07-26 20:02:10 +00:00
Ian Thompson
5435d7c3ea
Oops, typo in rev. 15664 caused error
2008-07-21 11:21:49 +00:00
Ian Thompson
6352cd509e
BPyTextPlugin now has descriptors for variables, functions and classes (and their variables/functions). Each descriptor also holds the line number of the definition allowing a simple outliner to be written.
...
Text.setCursorPos(row, col) now pops the text into view if it is in the active window space. The outliner uses this to jump to any definition in a script; it is invoked with Ctrl+T.
2008-07-21 00:38:42 +00:00
Ian Thompson
b205cf34b4
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.
2008-07-18 11:00:34 +00:00
Ian Thompson
cc89221a24
Previously relying on import to run scripts didn't work every time and was not the right way to do it. Also fixed a problem with 'import *' not working and added the sys.modules list to the import suggestion list with a timed update.
2008-07-16 10:33:48 +00:00
Ian Thompson
512eec04aa
Made suggestions case-insensitive which also puts _ prefixed items at the bottom. Improvements have also been made to the way the list works, when it should disappear/update/confirm, etc.
2008-07-15 17:03:59 +00:00
Ian Thompson
9037159d7a
Text plugin script updates: Better error handling, variable parsing, token caching for repeat parsing of the same document. Fixed joining of multiline statements and context detection.
2008-07-15 12:55:20 +00:00
Ian Thompson
aeb4d0c631
Created a BPy module BPyTextPlugin to centralize functions used across the text plugin scripts. Also created two more scripts to handle imports and member suggestions.
2008-07-15 07:34:46 +00:00