6821ccba91
Add the pgen2 packages and grammar files to be able to deploy Jedi.
Dave Halter2014-12-16 15:23:49 +01:00
e53e211325
Python 2 compatibility in fake module.
Dave Halter2014-12-16 02:07:20 +01:00
d5e3a09c44
Python 2 compatibility with the new tokens.
Dave Halter2014-12-16 02:03:05 +01:00
fd1cb86765
Now able to remove both tokenize and token from pgen2.
Dave Halter2014-12-16 02:00:33 +01:00
d9d3740c92
Trying to replace the old pgen2 token module with a token module more tightly coupled to the standard library.
Dave Halter2014-12-16 01:52:15 +01:00
eaace104dd
Replace the tokenizer's output with a tuple (switching back from a Token class).
Dave Halter2014-12-16 00:09:31 +01:00
680fdd574b
Remove some old unused tokenize stuff.
Dave Halter2014-12-15 17:44:40 +01:00
4c3584ed3c
Removed the dynamic_arrays_for_instances setting, because it's a subset of dynamic_array_additions, which is more concise.
Dave Halter2014-12-08 16:36:37 +01:00
936a3c9dfe
Small cleanup: Removed a few print statements.
Dave Halter2014-12-08 16:03:23 +01:00
51d309b0a8
Moved keyword completion around to get it working in all cases.
Dave Halter2014-12-08 15:52:05 +01:00
94ea2c1096
Issues with argument clinic parser.
Dave Halter2014-12-08 15:45:40 +01:00
5cc9dd57a6
Finally fixed the last on_import issue, which was that goto was not working on incomplete import statements. Still a bit messy, though.
Dave Halter2014-12-08 15:02:32 +01:00
dffce937f2
With the old parser we did more complicated checking for invalid statements, now the new parser does it by itself. Therefore we can stop doing crazy regex stuff in the API.
Dave Halter2014-12-08 00:52:40 +01:00
0c77e9960a
NotFoundError doesn't really exist anymore. We're deprecating it, so change the corresponding tests.
Dave Halter2014-12-08 00:48:06 +01:00
6058855dd3
test_helpers doesn't make sense anymore, because those the only test it consisted of, was a test with StatementElement, which does not exist anymore in the new parser.
Dave Halter2014-12-07 18:15:18 +01:00
e3ab56504e
Fixed and simplified flask imports.
Dave Halter2014-12-07 18:11:05 +01:00
db636c35ae
Error recovery should not delete parts of simple_stmt.
Dave Halter2014-12-07 18:04:55 +01:00
33b39c2b5d
Don't use the old setup_function/teardown_function pytest stuff. It's very implicit and hard to understand.
Dave Halter2014-12-07 17:21:52 +01:00
49b34b4d01
Stuff mostly related to namespace packages.
Dave Halter2014-12-07 16:51:54 +01:00
528b325c39
Remove precedence tests. They are not needed anymore, since precedence is now handled by the parser itself.
Dave Halter2014-12-07 14:41:57 +01:00
b94a09f360
Fix end_pos of Literals and Whitespace leafs.
Dave Halter2014-12-07 14:28:36 +01:00
fe1d7b7030
Replace the old tokenizer tests with the refactored attributes.
Dave Halter2014-12-07 14:19:21 +01:00
ea4f7053d6
Fix completion/definition.py tests.
Dave Halter2014-12-07 14:13:59 +01:00