Commit Graph

154 Commits

Author SHA1 Message Date
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
Claude
65187930bd Update tokenizer to adhere to PEP492 magic 2016-02-09 21:07:18 +01:00
Dave Halter
f9a64fd637 Fix some issues in Python 2.7 2016-01-26 14:59:40 -02:00
Dave Halter
beeffd2dcd Some pgen2 tests were always skipped. 2016-01-07 18:55:10 +01:00
Dave Halter
2a691eefff Including pgen2 tests from the cpython repo. 2015-12-26 03:15:09 +01:00
Dave Halter
eb2e41f771 Grammar versioning has now a smoother interface. 2015-12-25 19:30:25 +01:00
Dave Halter
c4906e0e3f Rework the parser so we can use arbitrary start nodes of the syntax.
This also includes a rework for error recovery in the parser. This is now just possible for file_input parsing, which means for full files.
Includes also a refactoring of the tokenizer. No more do we have to add an additional newline, because it now works correctly (removes certain confusion.
2015-12-20 22:25:41 +01:00
Claude
c61f39cb2b add test for annotations to test_parser_tree 2015-12-13 23:45:37 +01:00
Kevin Kelley
9ff7f99bac Add test cases demonstrating the issues with parser.tree.Lambda. 2015-10-24 23:34:06 +00:00
Dave Halter
66557903ae \\\r\n is as possible as \\\n. 2015-04-28 18:53:14 +02:00