Commit Graph

163 Commits

Author SHA1 Message Date
Dave Halter
9b85d5517f Fix more issues in the diff parser. 2016-09-27 00:29:11 +02:00
Dave Halter
09a5f27068 Add a test for wrong whitespace. 2016-09-26 23:56:37 +02:00
Dave Halter
c728148ece Fix an issue with dividing suites and remove a lot of print statements. 2016-09-23 17:31:29 +02:00
Dave Halter
6eb3b15e9b Make a test a bit better testable (more flexible). 2016-09-21 18:13:18 +02:00
Dave Halter
37e3e79faa Check in the diff tests that the graph is valid. 2016-09-19 05:41:59 +02:00
Dave Halter
885cf62a12 Remove the position_modifier from the parser. 2016-09-18 00:50:31 +02:00
Dave Halter
ed71d05ed7 Small test changes. 2016-09-15 09:37:35 +02:00
Dave Halter
74058fbf28 Finally passing all diff parser tests. 2016-09-15 01:26:28 +02:00
Dave Halter
8132055428 Fix an issue with parser endings and therefore adapt a few tests. 2016-09-14 17:23:49 +02:00
Dave Halter
47028c947a Better debugging and solving a test with for stmts. 2016-09-13 20:34:02 +02:00
Dave Halter
2eeafe23f8 Use differ for all diff tests. 2016-09-12 02:26:29 +02:00
Dave Halter
994e6615b1 Ifs in two directions. 2016-09-11 22:42:47 +02:00
Dave Halter
dfdda4a2f1 Copying an if (and other flows) is now working. 2016-09-11 21:51:44 +02:00
Dave Halter
c764976ef2 Merge branch 'remove_names_dicts' into diff 2016-09-11 13:24:11 +02:00
Dave Halter
1226962922 Remove dedents from the parser tree. No need for them. 2016-09-11 13:03:29 +02:00
Dave Halter
cc5a2cd219 Small changes. 2016-09-09 17:38:07 +02:00
Dave Halter
5923765369 get_parsed_node should return the right thing. 2016-09-08 18:14:13 +02:00
Dave Halter
024a97e59c Better end positions. 2016-09-08 09:52:42 +02:00
Dave Halter
91ed1da6f4 Better testing. 2016-09-08 00:17:54 +02:00
Dave Halter
20b4f6c363 Rework the parents when dividing nodes. 2016-09-05 18:04:53 +02:00
Dave Halter
00a8b3e4f1 Some more tests are passing. 2016-09-03 03:06:38 +02:00
Dave Halter
2f6ba2a7ae Split the old fast parser tests. 2016-09-02 13:49:44 +02:00
Dave Halter
42e5777620 Some progress and bugfixes. 2016-08-26 12:47:02 +02:00
Dave Halter
1e5ad467d3 Start debugging the beast. 2016-08-23 18:24:58 +02:00
Dave Halter
b9040870c0 Some ideas for a diff parser. 2016-08-14 00:23:40 +02:00
Dave Halter
b5bd8496b0 Fix the errors for the old octal tests. 2016-07-18 19:28:01 +02:00
Dave Halter
2563746810 Fix issues with octals in Python 2 (and possibly 3). Fixes #559. 2016-07-17 22:36:26 +02:00
Dave Halter
b1fbc512d8 xfail for a fast parser test that I'm not sure what to do with. 2016-07-11 17:05:59 +02:00
Dave Halter
72634a94b8 Try to use line numbers instead of offsets in the fast parser. 2016-07-11 08:56:30 +02:00
Dave Halter
e5f09e1c7d Fix an issue with end_pos of a module. 2016-07-08 00:03:52 +02:00
Dave Halter
c499696b60 Fix python 2.7 tests. 2016-07-07 19:16:01 +02:00
Dave Halter
adcc1c2b51 Don't delete ErrorNode names. They are part of the parser now.
Fixes #594 and possibly also #590 and #579.
2016-07-07 18:33:45 +02:00
Dave Halter
4243adf54b Add param splitting test. 2016-07-06 08:30:27 +02:00
Dave Halter
074a154af3 Fix a small issue that coul dhappen e.g. in stdin. 2016-07-06 08:05:50 +02:00
Dave Halter
10b8936b11 More python2.7 fixes. 2016-07-03 02:57:43 +02:00
Dave Halter
52c42c3392 Reenable call signature caching and move a lot of parser specific caching to the parser itself. 2016-06-28 08:46:29 +02:00
Dave Halter
969100e471 Move the parsing away from user_context to api.py. 2016-06-27 08:48:36 +02:00
Dave Halter
0445d51d34 Remove the user_scope from the user_context module. 2016-06-27 08:35:24 +02:00
Dave Halter
73e71b3c1a Finally able to remove the user_context. This is awesome!
Now we only use the syntax tree to understand where the user is doing something.
2016-06-23 16:26:28 +02:00
Dave Halter
27f05de3b7 Fix a few more issues, mostly with the fast parser. 2016-06-13 18:21:17 +02:00
Dave Halter
82c76fa689 Merge with the linter branch (especially the changes of pep484. 2016-06-07 13:51:25 +02:00
Dave Halter
4ec72d8f24 Finally fix the last remaining fast parser issue. 2016-06-06 08:55:10 +02:00
Dave Halter
436f7dffe0 Fix another very annoying fast parser issue. 2016-06-06 08:37:40 +02:00
Dave Halter
dd85fc6ffd Add error token in a normal way to the syntax tree as ErrorLeaf. 2016-06-05 14:49:57 +02:00
Dave Halter
aa97e4e714 Fix the fast parser issue #589. 2016-06-05 14:42:32 +02:00
Dave Halter
12f878a4f7 Test for the issue #589. 2016-06-04 01:06:13 +02:00
Dave Halter
c3ffaab8af The fast parser had some splitting issues. 2016-06-04 00:50:36 +02:00
Dave Halter
0c7894b3e6 Fix a few fast parser tests. 2016-06-02 08:24:52 +02:00
Claude
d5f08f8bdd opting for skipping PEP492 backwards compatibility magic, instead directly making await and async keywords
See discussion at
https://github.com/davidhalter/jedi/pull/691#issuecomment-182815864
2016-02-11 19:30:01 +01:00
Claude
7077d0b762 Using python 3.7-like parser, instead of python 3.5 magic.
See https://github.com/davidhalter/jedi/pull/691#issuecomment-182815864
Revert "Update tokenizer to adhere to PEP492 magic"

This reverts commit 65187930bd.
2016-02-11 19:14:31 +01:00