Commit Graph

66 Commits

Author SHA1 Message Date
Dave Halter
957f2cedf4 Disable some tests that don't run in 2.6, because its syntax doesn't support it. 2017-09-03 01:23:54 +02:00
Dave Halter
1edccbe2c3 Improve literal tests. 2017-01-08 19:52:21 +01:00
Dave Halter
7300f3e7ef Fix issues with Python 3.6's f strings and underscores in numbers. 2017-01-08 19:39:14 +01:00
Dave Halter
2d544c51c6 Better completions in comments. 2016-07-25 09:58:04 +02:00
Dave Halter
2776af3db5 Fix an issue with global stmts. They caused recursionerrors when used wrong. Fixes #610. 2016-07-18 19:23:08 +02:00
Dave Halter
927534a8d5 Strange unicode characters are error tokens. Fixes #587. 2016-07-13 08:53:08 +02:00
Dave Halter
79caa2186e list(open().read()) should work now, fixes #412. 2015-04-09 00:46:31 +02:00
Dave Halter
5cc5505185 Moved comprehension tests out of basic tests into its own file. 2015-03-03 12:58:52 +01:00
Dave Halter
96add84459 Fix a very complicated issue with comprehensions. 2015-03-03 12:56:48 +01:00
Dave Halter
a5728f8767 list comprehensions should be completeable. 2015-02-27 11:14:08 +01:00
Dave Halter
f5dad437dd Get rid of the None default for memoize_default. It shouldn't have a default if not given. This also uncovered a bug in for/else loops, that wasn't teste before. 2015-02-27 01:42:14 +01:00
Dave Halter
541b8872d0 Changed is_node so it can actually deal with InstanceElements. 2014-11-13 01:15:44 +01:00
Dave Halter
c326562c27 Implemented x if foo else y case. 2014-11-12 11:49:27 +01:00
Dave Halter
54c5591ccb Progress with list comprehensions. There is now a separate class. 2014-11-12 11:42:31 +01:00
Dave Halter
cc661473bc Trying to change used_names, so that they don't contain name definitions from CompFor. 2014-11-11 17:13:27 +01:00
Dave Halter
cf32e15f65 Remove the old 'is not' logic to detect if not instances and use them to do branch predictions. This is not necessary anymore, since we now support that in a more general way (flow_analysis). 2014-08-12 18:14:03 +02:00
Dave Halter
f1711f8f9c possible direction of branch checks for name resolution. 2014-08-10 13:17:37 +02:00
Dave Halter
d09279e0ad change tests that provided wrong instance information 2014-07-31 15:16:24 +02:00
Danilo Bargen
2a1c108bbf Fixed whitespace problems in completion tests 2014-07-26 17:39:05 +02:00
Dave Halter
8d63e6f6e7 somehow temporary solution to enable completion of __file__ 2014-07-01 15:10:32 +02:00
Dave Halter
e106e4ffc8 fixed for loop in exception issue combined with usage of an exception variable 2014-06-22 23:32:07 +02:00
Dave Halter
401914e91c exception elements are always instances 2014-06-22 16:25:42 +02:00
Dave Halter
b7bf8d515c support for completions on return statements. 2014-06-22 12:05:22 +02:00
Dave Halter
d752907290 temporary solution for completions in asserts 2014-06-22 11:27:28 +02:00
Dave Halter
3ee3a04bcb fix list comprehension issues in nested parentheses. 2014-06-20 17:29:30 +02:00
Dave Halter
2fc404f99d fix issue with list comprehensions in function calls 2014-06-20 16:28:31 +02:00
Dave Halter
c6aea92753 fix issues with tokens in expression list 2014-06-10 11:03:36 +02:00
Dave Halter
081fa79d9b fix issues with generator comprehensions used directly with a send() call or something similar 2014-06-10 00:56:51 +02:00
Dave Halter
9cffbef608 tests for generator to tuple assignment as well as generator comprehensions 2014-06-10 00:40:38 +02:00
Dave Halter
af801ef9b4 make generator comprehensions work 2014-06-10 00:36:36 +02:00
Dave Halter
c48146093e test: list comprehension name resolve should not include its own definitions 2014-06-09 12:53:17 +02:00
Dave Halter
f57b53bbe2 check for 'if foo is not None' checks in the NameFinder. Solves the issues with the subprocess library. 2014-05-20 16:23:46 +02:00
Dave Halter
1f7e4ca637 dict literals are now working (at least the parser) 2014-03-05 18:46:43 +01:00
Dave Halter
7222d70ecb restructure token breaks in statement parser 2014-03-05 14:39:21 +01:00
Dave Halter
7d7a86239c tests for list comprehensions with included dict literals 2014-03-05 14:23:53 +01:00
Dave Halter
a69eee5876 error tokens only exist in the end in a tokenizer 2014-02-21 00:09:49 +01:00
David Halter
997e506038 fix a magic method problem 2013-08-02 15:11:01 +02:00
David Halter
8598fe7327 get the reverse tokenizer positions right even with strange docstring situations 2013-07-26 01:24:44 +02:00
David Halter
b84315b829 tests for import problems 2013-07-19 00:56:56 +02:00
David Halter
7684135b99 finally found a test for unicode problems 2013-07-18 16:45:27 +02:00
David Halter
dd6967de7c fixed a unicode test problem 2013-07-18 14:54:40 +02:00
David Halter
075c60de29 fix a problem related to #246: comments were used as normal strings 2013-07-18 12:18:07 +02:00
David Halter
c3fe5d04dd line_offset to offset in Parser, which is important for exact positioning 2013-02-18 23:17:41 +04:30
David Halter
7d3fd315d3 dots without any other actual relevant code shouldn't just complete, fixes #46 2012-12-19 01:55:32 +01:00
David Halter
a7c806e96f added tests for magic methods 2012-11-19 12:13:07 +01:00
David Halter
6a8b160e1b nested list comprehension with brackets: parser failed; fixes #26 2012-10-16 13:56:10 +02:00
David Halter
7f40a9b86c vim-jedi pydoc: better formatting 2012-09-05 17:54:38 +02:00
David Halter
39ce26eb1e completion works now also in docstrings 2012-08-31 00:27:05 +02:00
David Halter
73f341866c added recursion decorator / fast_parent_copy fix 2012-08-29 22:53:51 +02:00
David Halter
e7dd205c34 nested list comprehensions are working + tests 2012-08-27 23:30:07 +02:00