Commit Graph

277 Commits

Author SHA1 Message Date
Dave Halter
3669a81e2f Small improvements. 2017-07-22 19:07:55 +02:00
Dave Halter
d76eee2a96 Add 'named arguments must follow bare *' issue and a few conftest tweaks. 2017-07-22 19:00:35 +02:00
Dave Halter
1b66fa4d44 Correct a parent issue in param rewriting. 2017-07-22 18:46:57 +02:00
Dave Halter
58fbd61898 Small refactoring. 2017-07-22 17:32:31 +02:00
Dave Halter
89999949e2 Move some 2.6 stuff around. 2017-07-22 16:00:28 +02:00
Dave Halter
1ed3cac7c0 Move some things around to allow checking for different versions. 2017-07-22 15:47:04 +02:00
Dave Halter
9e5d6db24a More small fixes regarding docstrings. 2017-07-21 19:56:04 +02:00
Dave Halter
97b98a1da3 Fix an issue where the future import should be first. 2017-07-21 19:43:49 +02:00
Dave Halter
1df06025c2 Handling of star_expr and some async issues. 2017-07-21 17:23:25 +02:00
Dave Halter
82d69ca211 Add a comment about using async funcdefs. 2017-07-20 17:38:34 +02:00
Dave Halter
05f86b9c87 Fix an issue with async funcdefs in different forms. 2017-07-20 17:37:57 +02:00
Dave Halter
fa30872d26 Add and fix some async/await issues. 2017-07-20 17:28:43 +02:00
Dave Halter
9296fe3def Skip 2 tests in Python 2.6. 2017-07-20 17:11:10 +02:00
Dave Halter
26c71a9586 Add yield issues when outside function. 2017-07-20 09:51:35 +02:00
Dave Halter
fc1c16b966 await checks. 2017-07-20 09:44:10 +02:00
Dave Halter
7c9877cd2e Check for future imports in the beginning. 2017-07-20 09:21:28 +02:00
Dave Halter
03526cd84e Add default 'except:' must be last. 2017-07-20 01:33:59 +02:00
Dave Halter
9c4bf8cec4 Add error code for return outside function. 2017-07-20 00:20:22 +02:00
Dave Halter
d21504e2ca break should be in loop. 2017-07-20 00:11:15 +02:00
Dave Halter
4a86571b21 Add 'continue' not properly in loop 2017-07-19 23:52:41 +02:00
Dave Halter
4f7d78716a Remove the strange return values from visi_leaf. 2017-07-19 23:40:31 +02:00
Dave Halter
9b8418db3f Forgot to check in the allowed_syntax file. 2017-07-19 23:35:16 +02:00
Dave Halter
ff04517895 Remove a skipped test. 2017-07-19 23:33:34 +02:00
Dave Halter
4919eccf00 Add 'continue' not supported inside 'finally' clause. 2017-07-19 23:33:16 +02:00
Dave Halter
944fe5a896 Fix the last IndentationError. 2017-07-19 22:15:20 +02:00
Dave Halter
d52c8651d7 Fix a 2.7 error. 2017-07-19 21:58:38 +02:00
Dave Halter
bf5190c7bf Add SyntaxError: too many statically nested blocks. 2017-07-19 21:56:06 +02:00
Dave Halter
65df539e97 Better matching syntax errors. 2017-07-19 20:56:31 +02:00
Dave Halter
756587ae4a Add tests to check if python returns the same errors as the parser. 2017-07-19 20:54:23 +02:00
Dave Halter
6876e1b7c0 Use ERROR_DEDENT instead of ERRORTOKEN for wrong dedents. 2017-07-19 20:15:06 +02:00
Dave Halter
569cb99ca7 Start scanning for indentation errors. 2017-07-19 18:45:58 +02:00
Dave Halter
5e65bd2aaf Remove xfail tests that didn't make any sense. 2017-07-19 18:15:23 +02:00
Dave Halter
78c371f73a Refactor the version info to use a tuple, always. 2017-07-19 09:09:33 +02:00
Dave Halter
dc3b3158eb Move some code from one compatibility file to another. 2017-07-18 18:00:51 +02:00
Dave Halter
790bc459ed Make a proper recovery for only error statements in a suite. 2017-07-18 17:53:04 +02:00
Dave Halter
6ee986aa45 Remove some code that wasn't doing anything. 2017-07-17 08:49:02 +02:00
Dave Halter
837e9ca388 A paren wrongly used in __repr__. 2017-07-17 08:48:19 +02:00
Dave Halter
1a4539420d addtoken -> add_token. 2017-07-17 08:44:27 +02:00
Dave Halter
e3f7427c99 Restructure the Python 2 grammar to be closer to the original Python 2 grammar in case of list comprehensions. 2017-07-16 22:14:15 +02:00
Dave Halter
688dfaad24 Make ellipsis work for the differences between 2 and 3. 2017-07-16 18:49:19 +02:00
Dave Halter
33344d3ce4 Docstring changes. 2017-07-14 19:30:35 +02:00
Dave Halter
f6b3b1cc24 Make version a keyword only argument in load_grammar. 2017-07-14 18:28:03 +02:00
Dave Halter
1d0e982d89 Fix some stuff for Jedi. 2017-07-14 17:30:33 +02:00
Dave Halter
d32a84e181 Fix some default/annotation stuff. 2017-07-14 02:20:26 +02:00
Dave Halter
9d10ceeff1 Give jedi a better API for tokenizing. 2017-07-13 17:25:35 +02:00
Dave Halter
fcc6541f08 3.4 adaptions now everything in 3 is similar. 2017-07-13 08:59:40 +02:00
Dave Halter
e47667efb5 Make the 3.5 grammar more similar to its original. 2017-07-13 08:57:31 +02:00
Dave Halter
18d46878a2 Make the 3.6 grammar more similar to the original grammar. 2017-07-13 08:53:58 +02:00
Dave Halter
c6f18e42db Fix a py27 issue that was caused by changing grammars. 2017-07-13 08:46:52 +02:00
Dave Halter
d1d019b3c0 Some small grammar changes for 2.7. 2017-07-13 08:44:25 +02:00