Dave Halter
074a154af3
Fix a small issue that coul dhappen e.g. in stdin.
2016-07-06 08:05:50 +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
0c7894b3e6
Fix a few fast parser tests.
2016-06-02 08:24:52 +02: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
Dave Halter
66557903ae
\\\r\n is as possible as \\\n.
2015-04-28 18:53:14 +02:00
Dave Halter
8fca3f78a1
Add a py__name__ call to modules. This makes listing the qualified names of modules possible (in combination with the module_name_cache). Fixes #519 .
2015-04-14 17:36:20 +02:00
Dave Halter
9149c5adc2
Python 3.2 tests didn't work because a u string literal was used.
2015-03-31 14:42:26 +02:00
Dave Halter
72fd190149
unicode strings should not raise an error if used in repr.
...
Python 2 doesn't allow unicode objects in __repr__ methods. Therefore we need to encode them as utf-8 bytes.
2015-03-25 23:42:52 +01:00
Dave Halter
0de5a0f412
Python 2 allows tuple unpacking in parameter definitions. Jedi just ignores such constructs, since they are really rare and not the future.
2015-03-24 15:02:07 +01:00
Dave Halter
e698e6aeeb
Rework some of the analysis statement gathering.
2015-03-05 13:36:41 +01:00
Dave Halter
07156b427c
Fix some compatibilty issues in the test suite for Python 2.7.
2015-02-09 14:15:25 +01:00
Dave Halter
5e8f8f7a8d
Fix issues with error correction / newline correction.
2015-01-27 12:24:54 +01:00
Dave Halter
88a3e25814
Fix newline stuff for empty parsers.
2015-01-27 01:15:39 +01:00
Dave Halter
cc64265187
Grammar modifications so that the Python2.7 grammar looks more like the Python 3.4 grammar.
2015-01-13 01:05:13 +01:00
Dave Halter
ef72f4fb6c
Test the new error correction feature.
2015-01-12 01:27:25 +01:00
Dave Halter
fe8a99dfd5
Fix the parser tests.
2014-12-08 00:32:38 +01:00
Dave Halter
34c9422749
The parser tests should also give the parser a grammar.
2014-12-08 00:22:33 +01:00
Dave Halter
03e01631cc
Remove NamePart from existance and rename it to Name.
2014-09-26 16:29:53 +02:00
Dave Halter
3add6e4289
Fix various bugs.
2014-09-26 12:22:56 +02:00
Dave Halter
bb5ffe9343
CompiledObject.name returns a Name now, not a string. This is more consistent with the Jedi design and doesn't lead to bugs while ducktyping.
2014-09-03 19:43:21 +02:00
Dave Halter
2616143d10
unicode issues with docstrings should be gone, fixes #420
2014-07-18 17:43:25 +02:00
Dave Halter
e07f51387f
added a test for hex value issues in docstrings, see #427
2014-07-18 17:09:44 +02:00
Dave Halter
21341283ca
another parser issue, very much related to the last one. sometimes a None element was used as a token.fixes #418
2014-07-18 15:10:10 +02:00
Dave Halter
f64b309ff0
carriage return test for statements that continue, even though they shouldn't
2014-05-04 12:31:21 +02:00
Dave Halter
a97c91002f
replace name and statement end_pos (this way we can get rid of all that end_pos crap soon)
2014-03-05 23:46:39 +01:00
Dave Halter
b28f8fc7b4
test_parsing -> test_parser
2014-02-26 10:45:28 +01:00