1
0
forked from VimPlug/jedi
Commit Graph

78 Commits

Author SHA1 Message Date
David Halter
e647e09f0c fix problems with unnecessary brackets and following executions, which fixes also the last remaining lambda problem 2012-12-24 10:47:11 +01:00
David Halter
f05b960386 lambdas: fix problems with reverse tokenizer 2012-12-24 01:26:35 +01:00
David Halter
716d2362fd fixed mostly wrong lambda tests (and a few lambda improvements as well) 2012-12-23 15:52:49 +01:00
David Halter
c7fd196850 get_code is now able to process returns again 2012-12-22 20:28:34 +01:00
David Halter
e701a4ef92 lambdas: add correct parents and change evaluate 2012-12-22 19:43:30 +01:00
David Halter
77b2ea2dce basic lambda parsing 2012-12-22 19:27:44 +01:00
David Halter
ef1f637e71 Lambda class 2012-12-22 19:08:37 +01:00
David Halter
e789e41fde remove old return statements 2012-12-19 21:27:59 +01:00
David Halter
ca21f76128 no confusions in executions for dict assignments, fixes #83 2012-12-19 21:23:50 +01:00
David Halter
15510a4c3b more unicode casts instead of str casts 2012-12-19 18:46:32 +01:00
David Halter
df95416160 refactored return/yield parsing, fixes davidhalter/jedi-vim#49 2012-12-18 15:35:59 +01:00
David Halter
ffeecc1674 improved speed for tests again, reparsing is now only done if something changed (removed reparsing of the user_scope in every completion). this is not going to have a deep impact on users, but it speeds up tests. 2012-12-18 00:51:25 +01:00
David Halter
7e7006e142 fix problems (end_pos of positions was wrong) with user_scopes 2012-12-17 23:19:44 +01:00
David Halter
8bbd2108bd basic caching of fast_parser modules. 2012-12-17 01:27:15 +01:00
David Halter
c1d442fa17 added a line_offset attribute - enables fast_parser to change positions 2012-12-16 17:23:15 +01:00
David Halter
36b75c3e15 fixed the last remaining problems with fast_parser (not cached yet) 2012-12-16 03:50:50 +01:00
David Halter
bcdf273c21 fix comment problem (code shouldn't be parsed multiple times) 2012-12-16 02:41:04 +01:00
David Halter
2b579eb09b many bugfixes related to fast_parser 2012-12-15 16:38:21 +01:00
David Halter
b8b4a02398 fixed some bugs within fast_parser and added an option 'settings.fast_parser' to turn on fast parsing. 2012-12-14 18:16:54 +01:00
David Halter
05885a8b06 parsing change of positions for modules (wasn't correct before) 2012-12-14 15:20:51 +01:00
David Halter
fa831b4f4a Module -> SubModule because of part_parser 2012-12-14 11:47:47 +01:00
David Halter
f3273e1cda refactor use of NoErrorTokenizer 2012-12-14 10:07:39 +01:00
David Halter
b0386d9c74 start/end_pos refactored in parsing 2012-12-13 19:59:29 +01:00
David Halter
a51a1f7aa0 remove PyFuzzyParser attributes in favor of local vars 2012-12-13 18:16:06 +01:00
David Halter
3aecb3ff90 add NoErrorTokenizer, for more readability 2012-12-13 18:08:01 +01:00
David Halter
cab74d5f51 move parsing.PushBackIterator and parsing.indent_block to common 2012-12-13 16:38:15 +01:00
David Halter
2d8d180354 preparation for a more general purpose tokenizer 2012-12-13 16:25:39 +01:00
David Halter
800f6eb84b bugfix for the latest patch 2012-12-10 20:20:39 +01:00
David Halter
ba6297a070 fix for a problem with get_in_function_call, if parentheses were not closed. 2012-12-10 19:46:17 +01:00
David Halter
9f8c27c956 ignore an exception with incomplete 'as' statements 2012-12-10 13:49:57 +01:00
David Halter
6bdda36205 removed all the weakref stuff again. It didn't speed up anything, but made things much more complicated 2012-12-09 16:33:24 +01:00
David Halter
a79b3e2b87 docstring parsing to infer argument types, fixes #40 2012-12-02 23:12:59 +01:00
David Halter
12dfb0f5b4 escape text within regex, fixes pydoc problems in windows, thanks to @musicx -> fixes #72 2012-11-30 12:13:39 +01:00
David Halter
125262275d optimize call_def stuff with multiple flows, may help #20 2012-11-29 14:47:12 +01:00
David Halter
e5b0989afe fix import formatting in description for davidhalter/jedi-vim#42 2012-11-27 13:07:06 +01:00
David Halter
7b3d8b6772 fix datetime.so problem for davidhalter/jedi-vim#42 2012-11-27 12:46:26 +01:00
David Halter
576e53f771 a few pep8 improvements 2012-11-21 16:49:01 +01:00
David Halter
c1c2437fec added magic methods for classes with object 2012-11-18 22:52:09 +01:00
David Halter
cf233108d4 parsing.Module.name failed if path was an empty string -> fixes #60 2012-11-14 17:09:17 +01:00
David Halter
5423dda8d3 multi line funcs with comments don't raise an error anymore - fixes jedi-vim issue 29 2012-11-12 18:07:25 +01:00
David Halter
3d1f67b8a0 better support for get_in_function_call - fixes #57 2012-11-11 02:48:33 +01:00
David Halter
8dd9952288 added much nicer descriptions for the completion. fixes #49 2012-11-08 00:48:26 +01:00
David Halter
dbb36fd9fb the statement 'a=b=c' returned 'b' only and ignored 'a' - fixes #45 2012-11-07 17:54:45 +01:00
Takafumi Arakaki
cffb3d2483 Refactoring: add Function.doc 2012-11-06 22:02:59 +01:00
Takafumi Arakaki
5f25f244ca Add Function.get_call_signature 2012-11-03 23:41:31 +01:00
David Halter
5999bae6f6 removed next by accident 2012-11-02 18:40:36 +01:00
David Halter
4667ea5573 indentation reduced with iterator (see previous commit) 2012-11-02 18:34:15 +01:00
David Halter
740260b372 use iterators instead of some handmade crap in parsing.PyFuzzyParser (it is still a hack, however...) 2012-11-02 18:32:03 +01:00
David Halter
ed928d5d58 tokenize not needed anymore in _compatibility 2012-11-02 18:12:22 +01:00
David Halter
299f52c04b renamed BytesIO to StringIO, because it no longer made sense 2012-11-02 18:10:23 +01:00